hardware_type.py 580 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:hardware_type.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Hardware_type(Model):
  9. __table__ = 'hardware_type'
  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='硬件类型标识', unique=True)
  14. state = Fields(type='boolean', default='True', comment='数据存在状态')
  15. cdate = Fields(type='int', default='time', comment='创建时间')