z-tmp.sql 1.9 KB

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