Update database tables for store features

- Add new columns to `li_coupon_activity`, `li_foot_print`, and `li_order` tables
- Add `self_pick_flag` column to `li_store` table

[init/mysql/lilishop.sql]
- Add `coupon_frequency_enum` column to `li_coupon_activity` table
- Add `store_id` column to `li_foot_print` table
- Add `store_address_path`, `store_address_center`, and `store_address_mobile` columns to `li_order` table
- Add `self_pick_flag` column to `li_store` table
master
misworga831 2023-02-16 10:49:53 +08:00
parent f35b3d866b
commit d097100d89
1 changed files with 6 additions and 0 deletions

View File

@ -2259,6 +2259,7 @@ CREATE TABLE `li_coupon_activity` (
`coupon_activity_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`scope_id` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '范围关联的ID',
`scope_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT 'PORTION_GOODS' COMMENT '关联范围类型',
`coupon_frequency_enum` varchar(255) COMMENT '领取周期',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;
@ -6824,6 +6825,7 @@ CREATE TABLE `li_foot_print` (
`goods_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品ID',
`member_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '会员ID',
`sku_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格ID',
`store_id` varchar(255) DEFAULT NULL COMMENT '店铺ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
@ -10410,6 +10412,9 @@ CREATE TABLE `li_order` (
`receivable_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`order_promotion_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`verification_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`store_address_path` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`store_address_center` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`store_address_mobile` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
@ -58443,6 +58448,7 @@ CREATE TABLE `li_store` (
`yzf_sign` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`merchant_euid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`page_show` bit(1) NULL DEFAULT NULL COMMENT '默认页面是否开启',
`self_pick_flag` bit(1) DEFAULT NULL COMMENT '是否开启自提',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;