# -*- coding: utf-8 -*- from .__load__ import * class Role(Model): __table__ = 'role' __comment__ = '角色表' id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID') site_id = Fields(type='int', comment='所属站点') create_uid = Fields(type='int', comment='创建人ID', default='-1') owner_uid = Fields(type='int', comment='持有人ID', default='-1') name = Fields(type='varchar(500)', comment='名称') lang_model_id = Fields(type='int(11)', comment='模型ID', default='1') persona = Fields(type='text', comment='人设提示词', default='') use_num = Fields(type='int', comment='使用次数') status = Fields(type='tinyint', default='1', comment='角色状态:1是正常2是冻结') state = Fields(type='boolean', default='True', comment='数据存在状态') cdate = Fields(type='int', default='time', comment='创建时间')