# -*- coding: utf-8 -*- from .__load__ import * class User(Model): __table__ = 'user' __comment__ = '用户表' id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID') site_id = Fields(type='int', comment='所属站点') site_uid = Fields(type='varchar(200)', comment='站点用户ID') name = Fields(type='varchar(500)', comment='用户名称') state = Fields(type='boolean', default='True', comment='数据存在状态') cdate = Fields(type='int', default='time', comment='创建时间')