site.py 710 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:site.py
  5. """
  6. from .__load__ import *
  7. class Site(Model):
  8. __table__ = 'site'
  9. __comment__ = '站点主表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='站点ID')
  11. name = Fields(type='varchar(200)', comment='站点名')
  12. link = Fields(type='varchar(200)', comment='站点网址')
  13. login_link = Fields(type='varchar(300)', comment='登录页链接')
  14. username = Fields(type='varchar(300)', comment='账号')
  15. password = Fields(type='varchar(300)', comment='密码')
  16. state = Fields(type='boolean', default='True', comment='数据存在状态')
  17. cdate = Fields(type='int', default='time', comment='创建时间')