order.py 635 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:order.py
  5. """
  6. from .__load__ import *
  7. class Order(Model):
  8. __table__ = 'order'
  9. __comment__ = '订单表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='订单ID')
  11. orderID = Fields(type='varchar(500)', comment='原订单ID')
  12. pic = Fields(type='varchar(300)', comment='订单图片')
  13. site_id = Fields(type='int', comment='所属站点')
  14. product_id = Fields(type='int', comment='商品id')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')