package.py 539 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:package.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Package(Model):
  9. __table__ = 'package'
  10. __comment__ = '上传的包'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='包ID')
  12. name = Fields(type='varchar(200)', comment='包名')
  13. url = Fields(type='varchar(300)', comment='包地址')
  14. state = Fields(type='boolean', default='True', comment='数据存在状态')
  15. cdate = Fields(type='int', default='time', comment='创建时间')