# -*- coding: utf-8 -*- from .__load__ import * class Data(Model): __table__ = '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='知识库标识') state = Fields(type='boolean', default='True', comment='数据存在状态') cdate = Fields(type='int', default='time', comment='创建时间')