|
@@ -0,0 +1,27 @@
|
|
|
|
+-- ----------------------------
|
|
|
|
+-- 新零售查验单会员库存记录表
|
|
|
|
+-- ----------------------------
|
|
|
|
+drop table if exists mall_new_retail_order_restore_stock_record;
|
|
|
|
+
|
|
|
|
+/*==============================================================*/
|
|
|
|
+/* Table: mall_new_retail_order_restore_stock_record */
|
|
|
|
+/*==============================================================*/
|
|
|
|
+create table mall_new_retail_order_restore_stock_record
|
|
|
|
+(
|
|
|
|
+ id int(11) not null auto_increment comment '编号',
|
|
|
|
+ order_id int(11) comment '订单表id',
|
|
|
|
+ order_sn varchar(32) comment '订单编号',
|
|
|
|
+ store_id int(11) comment '门店编号',
|
|
|
|
+ shop_name varchar(64) comment '门店名称',
|
|
|
|
+ sku varchar(60) comment 'sku',
|
|
|
|
+ restore_num int(11) comment '查验单还原数量',
|
|
|
|
+ status char(1) comment '还原是否成功,0:成功,1:失败',
|
|
|
|
+ creater_sn varchar(22) comment '创建人编号',
|
|
|
|
+ create_time datetime comment '创建时间,yyyy-MM-dd HH:mm:ss',
|
|
|
|
+ moder_sn varchar(22) comment '修改人编号',
|
|
|
|
+ mod_time datetime comment '修改时间,yyyy-MM-dd HH:mm:ss',
|
|
|
|
+ tstm datetime default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '时间戳',
|
|
|
|
+ primary key (id)
|
|
|
|
+);
|
|
|
|
+
|
|
|
|
+alter table mall_new_retail_order_restore_stock_record comment '查验单如果从保税仓发货, 会导致kmall门店库存变少, 因此提供了还原查验单库存的功能以及还原库存记录';
|