1234567891011121314151617 |
- # -*- coding: utf-8 -*-
- """
- demeter database
- name:site.py
- """
- 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='站点网址')
- key = Fields(type='varchar(30)', comment='站点key')
- token = Fields(type='varchar(300)', comment='授权token')
- state = Fields(type='boolean', default='True', comment='数据存在状态')
- cdate = Fields(type='int', default='time', comment='创建时间')
|