web_article_category.py 505 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:article_category.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Web_article_category(Model):
  9. __table__ = 'web_article_category'
  10. __comment__ = '文章分类表'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  12. name = Fields(type='varchar(50)', comment='分类名')
  13. state = Fields(type='boolean', default='True', comment='数据存在状态')
  14. cdate = Fields(type='int', default='time', comment='创建时间')