sync_data.py 594 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:hardware.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Sync_data(Model):
  9. __table__ = 'sync_data'
  10. __comment__ = '同步数据表'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='数据id')
  12. farm = Fields(type='varchar(11)', comment='农场id')
  13. table = Fields(type='varchar(50)', comment='表名')
  14. data = Fields(type='text(255)', comment='同步的数据')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')