user_data.py 666 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. from .__load__ import *
  3. class User_data(Model):
  4. __table__ = 'user_data'
  5. __comment__ = '用户数据'
  6. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  7. site_id = Fields(type='int', comment='所属站点')
  8. role_id = Fields(type='int', comment='角色id')
  9. uid = Fields(type='int', comment='用户ID', default='-1')
  10. name = Fields(type='varchar(32)', comment='知识库标识')
  11. content = Fields(type='text', comment='内容', default='')
  12. state = Fields(type='boolean', default='True', comment='数据存在状态')
  13. cdate = Fields(type='int', default='time', comment='创建时间')