Commit 96c30932 by mercymodest

feat:- add sql

parent c1505d7a
alter table store
alter table store
......@@ -52,3 +52,19 @@ alter table card
-- 表: 每日付关联会员卡关联门店信息
CREATE TABLE IF NOT EXISTS `daily_pay_card_store` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`card_uuid` bigint(20) NOT NULL COMMENT 'card.uuid',
`store_uuid` bigint(20) NOT NULL COMMENT 'store.uuid',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_member_card_store` (`card_uuid`, `store_uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='每日付关联会员卡关联门店信息';
-- idx: store_uuid
CREATE INDEX `idx_store_uuid` ON `daily_pay_card_store` (`store_uuid`);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment