code.py 728 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:code.py 代码提交表
  5. """
  6. from .__load__ import *
  7. class Code(Model):
  8. __table__ = 'code'
  9. __comment__ = '代码提交表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. file = Fields(type='text', comment='文件列表')
  12. project_id = Fields(type='int(11)', comment='项目id')
  13. desc = Fields(type='varchar(500)', comment='描述')
  14. status = Fields(type='int(11)', default='1', comment='1提交2审核通过3审核失败')
  15. admin = Fields(type='int(11)', comment='提交人')
  16. state = Fields(type='boolean', default='True', comment='数据存在状态')
  17. cdate = Fields(type='int', default='time', comment='创建时间')