site.py 728 B

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