package_version.py 625 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:package_version.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Package_version(Model):
  9. __table__ = 'package_version'
  10. __comment__ = '版本号'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='版本ID')
  12. package_id = Fields(type='int', comment='PackageID')
  13. name = Fields(type='varchar(200)', comment='版本名')
  14. version = Fields(type='varchar(200)', comment='版本号')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')