node.py 565 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:node.py 节点表
  5. """
  6. from .__load__ import *
  7. class Node(Model):
  8. __table__ = 'node'
  9. __comment__ = '节点表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. name = Fields(type='varchar(60)', comment='节点名')
  12. domain_id = Fields(type='int', comment='域id')
  13. ip = Fields(type='varchar(32)', comment='ip地址')
  14. state = Fields(type='boolean', default='True', comment='数据存在状态')
  15. cdate = Fields(type='int', default='time', comment='创建时间')