process.py 641 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:process.py 进程表
  5. """
  6. from .__load__ import *
  7. class Process(Model):
  8. __table__ = 'process'
  9. __comment__ = '进程表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. container_id = Fields(type='int', comment='容器id')
  12. node_id = Fields(type='int', comment='节点id')
  13. name = Fields(type='varchar(60)', comment='进程名称')
  14. desc = Fields(type='varchar(500)', comment='进程描述')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')