product.py 687 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:product.py
  5. """
  6. from .__load__ import *
  7. class Product(Model):
  8. __table__ = 'product'
  9. __comment__ = '商品表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='商品ID')
  11. name = Fields(type='varchar(200)', comment='商品名')
  12. link = Fields(type='varchar(500)', comment='商品链接')
  13. site_id = Fields(type='int', comment='所属站点')
  14. state = Fields(type='boolean', default='True', comment='数据存在状态')
  15. status = Fields(type='int', default='1', comment='抢购状态1待机2入队3抢购中4抢购完成')
  16. cdate = Fields(type='int', default='time', comment='创建时间')