#!/usr/bin/env python # -*- coding: utf-8 -*- """ demeter database name:set.py author:rabin """ from __load__ import * class Set(Base): __table__ = 'set' __comment__ = '设置表' id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='设置ID') name = Fields(type='varchar(255)', comment='网站标题') state = Fields(type='boolean', default='True', comment='数据存在状态') cdate = Fields(type='int', default='time', comment='创建时间')