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