GoodsModel.DB_STRUCTURE = {
_pid: 'string|true',
GOODS_ID: 'string|true',
GOODS_TITLE: 'string|true|comment=标题',
GOODS_STATUS: 'int|true|default=1|comment=状态 0=未启用,1=待借用,2=借用中,9=已损坏',
GOODS_SALE_CNT: 'int|true|default=0|comment=已借用次数',
GOODS_CATE_ID: 'string|true|default=0|comment=分类',
GOODS_CATE_NAME: 'string|false|comment=分类名冗余',
GOODS_ORDER: 'int|true|default=9999',
GOODS_VOUCH: 'int|true|default=0',
GOODS_FORMS: 'array|true|default=[]',
GOODS_OBJ: 'object|true|default={}',
GOODS_QR: 'string|false',
GOODS_VIEW_CNT: 'int|true|default=0',
GOODS_RENT_TIME: 'int|true|default=0|comment=最近借用时间',
GOODS_RENT_USER_ID: 'string|false|comment=最近借用人',
GOODS_RENT_USER_NAME: 'string|false|comment=最近借用人',
GOODS_ADD_TIME: 'int|true',
GOODS_EDIT_TIME: 'int|true',
GOODS_ADD_IP: 'string|false',
GOODS_EDIT_IP: 'string|false',
};
OrderModel.DB_STRUCTURE = {
_pid: 'string|true',
ORDER_ID: 'string|true',
ORDER_USER_ID: 'string|true',
ORDER_GOODS_ID: 'string|true|comment=商品ID',
ORDER_GOODS_TITLE: 'string|false|comment=标题',
ORDER_STATUS: 'int|true|default=1|comment=状态 0=取消,1=借用中,9=完成',
ORDER_FORMS: 'array|true|default=[]|comment=表单',
ORDER_OBJ: 'object|true|default={}',
ORDER_RETURN_TIME: 'int|true|default=0',
ORDER_ADD_TIME: 'int|true',
ORDER_EDIT_TIME: 'int|true',
ORDER_ADD_IP: 'string|false',
ORDER_EDIT_IP: 'string|false',
};
评论