notice_type.py 584 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:notice_type.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Notice_type(Model):
  9. __table__ = 'notice_type'
  10. __comment__ = '错误码提醒类型表'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='类型ID')
  12. name = Fields(type='varchar(300)', comment='错误码中文')
  13. key = Fields(type='varchar(300)', comment='错误码关键key')
  14. state = Fields(type='boolean', default='True', comment='数据存在状态')
  15. cdate = Fields(type='int', default='time', comment='创建时间')