1234567891011121314151617 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """
- demeter database
- name:content_category.py
- author:rabin
- """
- from __load__ import *
- class Content_article(Base):
- __table__ = 'content_article'
- __comment__ = '内容文章表'
- id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='文章ID')
- name = Fields(type='varchar(255)', comment='文章名')
- content = Fields(type='text', comment='文章内容')
- state = Fields(type='boolean', default='True', comment='数据存在状态')
- cdate = Fields(type='int', default='time', comment='创建时间')
|