z-tmp.sql 2.0 KB

123456789101112131415161718192021222324252627282930
  1. drop table if exists crm_kkcoupon;
  2. CREATE TABLE `crm_kkcoupon` (
  3. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  4. `created_on` bigint(20) NOT NULL DEFAULT 0 COMMENT '요청일시',
  5. `updated_on` bigint(20) NOT NULL DEFAULT 0 COMMENT '마지막변경일시',
  6. `coupon_on` bigint(20) NOT NULL DEFAULT 0 COMMENT '쿠폰발행일자',
  7. `created_date` char(8) NOT NULL DEFAULT '' COMMENT '요청발생일자',
  8. `coupon_date` char(8) NOT NULL DEFAULT '' COMMENT '쿠폰발행일자',
  9. `coupon_no` varchar(21) NOT NULL DEFAULT '' COMMENT '쿠폰 일련번호',
  10. `coupon_code` varchar(64) NOT NULL DEFAULT '' COMMENT '할인쿠폰코드',
  11. `target_uri` varchar(1024) NOT NULL COMMENT '상품페이지URI',
  12. `product_id` int(10) unsigned NOT NULL DEFAULT 1 COMMENT '상품id',
  13. `init_dcrate` decimal(6,4) NOT NULL DEFAULT 0.0000 COMMENT '최초할인율',
  14. `final_dcrate` decimal(6,4) NOT NULL DEFAULT 0.0000 COMMENT '최종할인율',
  15. `buy_prc` decimal(20,4) NOT NULL DEFAULT 0.0000 COMMENT '구매가격',
  16. `buy_qty` decimal(20,4) NOT NULL DEFAULT 0.0000 COMMENT '구매수량',
  17. `buyer_member_id` int(10) unsigned NOT NULL DEFAULT 1 COMMENT '구매회원',
  18. `seller_member_id` int(10) unsigned NOT NULL DEFAULT 1 COMMENT '판매회원',
  19. `buyer_email` varchar(69) NOT NULL DEFAULT '' COMMENT '구매자이메일',
  20. `seller_email` varchar(69) NOT NULL DEFAULT '' COMMENT '판매자이메일',
  21. `sort` varchar(20) NOT NULL DEFAULT '' COMMENT '조건:블로그작성(0), 리뷰작성(1), 대량구매(2)',
  22. `sort_desc` varchar(20) NOT NULL DEFAULT '' COMMENT '할인조건 직접입력',
  23. `status` char(1) NOT NULL DEFAULT '' COMMENT '상황:요청(0),판매대응(1),구매재응(2),완료(3),판매거부(4),구매거부(5)',
  24. `is_closed` char(1) NOT NULL DEFAULT '' COMMENT '종결처리',
  25. `is_first_request` char(1) NOT NULL DEFAULT '' COMMENT '고객의 첫번째 요청여부',
  26. `ip` varchar(20) NOT NULL DEFAULT '',
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;