update: add coupon per user limit

This commit is contained in:
tokumeikoi
2021-08-28 16:32:55 +09:00
parent 2d5fb03937
commit 5a3b897c57
8 changed files with 76 additions and 41 deletions

View File

@ -27,6 +27,7 @@ CREATE TABLE `v2_coupon` (
`type` tinyint(1) NOT NULL,
`value` int(11) NOT NULL,
`limit_use` int(11) DEFAULT NULL,
`limit_use_with_user` int(11) DEFAULT NULL,
`limit_plan_ids` varchar(255) DEFAULT NULL,
`started_at` int(11) NOT NULL,
`ended_at` int(11) NOT NULL,
@ -351,4 +352,4 @@ CREATE TABLE `v2_user` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2021-08-18 12:22:48
-- 2021-08-28 06:53:57

View File

@ -435,3 +435,6 @@ ADD INDEX `server_id` (`server_id`);
ALTER TABLE `v2_ticket_message`
CHANGE `message` `message` text COLLATE 'utf8mb4_general_ci' NOT NULL AFTER `ticket_id`;
ALTER TABLE `v2_coupon`
ADD `limit_use_with_user` int(11) NULL AFTER `limit_use`;