order.py 653 B

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