user.py 724 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:user.py
  5. """
  6. from .__load__ import *
  7. class User(Model):
  8. __table__ = 'user'
  9. __comment__ = '用户权限验证表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. site_id = Fields(type='int', comment='所属站点')
  12. uid = Fields(type='varchar(200)', comment='用户ID')
  13. convert_id = Fields(type='int', comment='转换id')
  14. state = Fields(type='boolean', default='True', comment='数据存在状态')
  15. status = Fields(type='int', default='2', comment='权限类型1为作者2为购买者,只要该数据表有值则代表有权限访问所有文件')
  16. cdate = Fields(type='int', default='time', comment='创建时间')