1234567891011121314151617 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """
- demeter database
- name:device_page.py
- author:rabin
- """
- from __load__ import *
- class Device_page(Base):
- __table__ = 'device_page'
- __comment__ = '设备页面管理'
- id = Fields(type='uuid', primaryKey=True, comment='页面ID', uuid='farm_id')
- farm_id = Fields(type='int', default='setting.farm', comment='园区ID', match='not')
- #name = Fields(type='varchar(50)', comment='页面名', match='not', manage='list,update', index='using gin(name gin_trgm_ops)', indexs='yes')
- name = Fields(type='varchar(50)', comment='页面名', match='not', manage='list,update')
- state = Fields(type='boolean', default='True', comment='数据存在状态')
- cdate = Fields(type='int', default='time', comment='创建时间', manage='list')
|