project.py 767 B

12345678910111213141516171819
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:project.py 项目表
  5. """
  6. from .__load__ import *
  7. class Project(Model):
  8. __table__ = 'project'
  9. __comment__ = '项目表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. name = Fields(type='varchar(60)', comment='项目名')
  12. node_id = Fields(type='varchar(500)', comment='节点id')
  13. git = Fields(type='varchar(500)', comment='git版本库地址')
  14. key = Fields(type='varchar(32)', comment='项目英文名')
  15. write = Fields(type='text', comment='可写目录')
  16. config = Fields(type='text', comment='配置目录')
  17. state = Fields(type='boolean', default='True', comment='数据存在状态')
  18. cdate = Fields(type='int', default='time', comment='创建时间')