-- Deploy gaia:2020-08-12_create_table_api_couponmerchantrestrict to mysql

BEGIN;

-- XXX Add DDLs here.
-- XXX Add DDLs here.
CREATE TABLE `api_couponmerchantrestrict` (
    `id` int AUTO_INCREMENT NOT NULL PRIMARY KEY COMMENT '主键，自增长',
    `coupon_id` int NOT NULL COMMENT '美劵id',
     `merchant_id` bigint NOT NULL COMMENT '商户id',
    UNIQUE KEY `uniq_merchant_coupon` (`coupon_id`, `merchant_id`)
 ) ENGINE=InnoDB CHARSET=utf8 COMMENT='美劵和商户的关系表';
;
COMMIT;
