12345678910111213141516 |
- # -*- coding: utf-8 -*-
- from .__load__ import *
- class Site(Model):
- __table__ = 'site'
- __comment__ = '站点主表'
- id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='站点ID')
- name = Fields(type='varchar(50)', comment='站点名')
- link = Fields(type='varchar(200)', comment='站点网址')
- appid = Fields(type='varchar(150)', comment='appid')
- appsecret = Fields(type='varchar(300)', comment='appsecret')
- sdate = Fields(type='int', comment='开始时间')
- edate = Fields(type='int', comment='结束时间')
- api = Fields(type='varchar(2000)', comment='接口地址')
- state = Fields(type='boolean', default='True', comment='数据存在状态')
- cdate = Fields(type='int', default='time', comment='创建时间')
|