#292 쿠폰 로그 테이블 추가하여 내역을 기록함
This commit is contained in:
@ -128,8 +128,6 @@ CREATE TABLE IF NOT EXISTS `shop_coupon` (
|
||||
`cp_minimum` INT(11) NOT NULL DEFAULT '0',
|
||||
`cp_maximum` INT(11) NOT NULL DEFAULT '0',
|
||||
`od_id` bigint(20) unsigned NOT NULL,
|
||||
`cp_used` TINYINT(4) NOT NULL DEFAULT '0',
|
||||
`cp_used_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`cp_datetime` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`cp_no`),
|
||||
UNIQUE KEY `cp_id` (`cp_id`),
|
||||
@ -138,6 +136,24 @@ CREATE TABLE IF NOT EXISTS `shop_coupon` (
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `shop_coupon_log`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shop_coupon_log` (
|
||||
`cl_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`cp_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`od_id` bigint(20) NOT NULL,
|
||||
`cp_price` int(11) NOT NULL DEFAULT '0',
|
||||
`cl_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`cl_id`),
|
||||
KEY `mb_id` (`mb_id`),
|
||||
KEY `od_id` (`od_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `shop_default`
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user