images.py 686 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:images.py 镜像表
  5. """
  6. from .__load__ import *
  7. class Images(Model):
  8. __table__ = 'images'
  9. __comment__ = '镜像表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. name = Fields(type='varchar(60)', comment='镜像名')
  12. category_id = Fields(type='int', comment='分类id')
  13. type = Fields(type='int', default='1', comment='类型1为系统镜像2为手动添加的镜像')
  14. address = Fields(type='varchar(300)', comment='镜像地址')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')