setting_product.py 656 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:hardware.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Setting_product(Model):
  9. __table__ = 'setting_product'
  10. __comment__ = '产品表-对应旧版本硬件类型表'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='产品ID')
  12. name = Fields(type='varchar(50)', comment='产品名称')
  13. key = Fields(type='varchar(50)', comment='产品标识')
  14. agreement = Fields(type='int', comment='接入协议1mqtt2modbus---废弃')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')