package_version.py 647 B

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