#!/usr/bin/env python # -*- coding: utf-8 -*- """ demeter database name:content.py author:rabin """ from __load__ import * class Content(Base): __table__ = 'content' __comment__ = '首页资料表' id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='内容ID') name = Fields(type='varchar(255)', comment='标题') subname = Fields(type='varchar(255)', comment='首页小标题') product = Fields(type='text', comment='内容描述') weixin = Fields(type='text', comment='内容描述') demo = Fields(type='text', comment='内容描述') pic = Fields(type='varchar(255)', comment='图片') state = Fields(type='boolean', default='True', comment='数据存在状态') cdate = Fields(type='int', default='time', comment='创建时间')