msg_type.py 593 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:msg_type.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Msg_type(Model):
  9. __table__ = 'msg_type'
  10. __comment__ = '消息类型表'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='消息类型ID')
  12. name = Fields(type='varchar(50)', comment='类型名')
  13. key = Fields(type='varchar(50)', comment='类型key')
  14. push = Fields(type='varchar(50)', comment='推送')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')