22 lines
546 B
SQL
22 lines
546 B
SQL
#
|
|
# TABLE STRUCTURE FOR: coupon
|
|
#
|
|
|
|
DROP TABLE IF EXISTS `coupon`;
|
|
|
|
CREATE TABLE `coupon` (
|
|
`coupon_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`code` varchar(20) NOT NULL,
|
|
`is_active` int(11) NOT NULL,
|
|
`percent` int(11) NOT NULL,
|
|
`one_time` int(11) NOT NULL,
|
|
`max_active` int(11) NOT NULL,
|
|
`max_limit` int(11) NOT NULL,
|
|
`created` int(11) NOT NULL,
|
|
`expired` varchar(50) NOT NULL,
|
|
`remark` text NOT NULL,
|
|
`create_by` int(11) NOT NULL,
|
|
PRIMARY KEY (`coupon_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
|