swkim před 5 roky
rodič
revize
839c0ab0b9

+ 47 - 0
산출물/3.설계/05.DB-Object/06.DDL/table.sql

@@ -6405,6 +6405,52 @@ ALTER TABLE TB_CUST_CONTACT_HST
 
 ALTER TABLE TB_CUST_CONTACT_HST
   AUTO_INCREMENT = 1;
+
+################################################################################
+# 고객쿠폰
+################################################################################
+DROP TABLE IF EXISTS TB_CUST_COUPON RESTRICT;
+CREATE TABLE TB_CUST_COUPON (
+  CUST_CPN_SQ      INT UNSIGNED  NOT NULL COMMENT '고객쿠폰일련번호', -- 고객쿠폰일련번호
+  CUST_NO          INT UNSIGNED  NOT NULL COMMENT '고객번호', -- 고객번호
+  CPN_ID           VARCHAR(20)   NOT NULL COMMENT '쿠폰ID', -- 쿠폰ID
+  AVAIL_STDT       TIMESTAMP     NOT NULL COMMENT '유효시작일시', -- 유효시작일시
+  AVAIL_EDDT       TIMESTAMP     NOT NULL COMMENT '유효종료일시', -- 유효종료일시
+  PUB_REASON       VARCHAR(20)   NOT NULL COMMENT '발행사유(공통코드G250)', -- 발행사유(공통코드G250)
+  PUB_REASON_DTL   VARCHAR(1000) NULL     COMMENT '발행사유상세', -- 발행사유상세
+  USED_DT          TIMESTAMP     NULL     COMMENT '사용된일시', -- 사용된일시
+  END_ALIM_SEND_YN CHAR(1)       NOT NULL DEFAULT 'N' COMMENT '만료알림발송여부', -- 만료알림발송여부
+  REG_NO           INT UNSIGNED  NOT NULL COMMENT '등록자번호', -- 등록자번호
+  REG_DT           TIMESTAMP     NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '등록일시', -- 등록일시
+  UPD_NO           INT UNSIGNED  NOT NULL COMMENT '수정자번호', -- 수정자번호
+  UPD_DT           TIMESTAMP     NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '수정일시' -- 수정일시
+)
+COMMENT '고객쿠폰. 고객에게 쿠폰 발행 시 발생';
+
+-- 고객쿠폰
+ALTER TABLE TB_CUST_COUPON
+  ADD CONSTRAINT PK_CUST_COUPON -- 고객쿠폰 기본키
+    PRIMARY KEY (
+      CUST_CPN_SQ -- 고객쿠폰일련번호
+    );
+
+-- 고객쿠폰 인덱스
+CREATE INDEX IX_CUST_COUPON_01
+  ON TB_CUST_COUPON( -- 고객쿠폰
+    CUST_NO ASC -- 고객번호
+  );
+
+-- 고객쿠폰 인덱스2
+CREATE INDEX IX_CUST_COUPON_02
+  ON TB_CUST_COUPON( -- 고객쿠폰
+    CPN_ID ASC -- 쿠폰ID
+  );
+
+ALTER TABLE TB_CUST_COUPON
+  MODIFY COLUMN CUST_CPN_SQ INT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '고객쿠폰일련번호';
+
+ALTER TABLE TB_CUST_COUPON
+  AUTO_INCREMENT = 1;
     
 ################################################################################
 # 상품 시퀀스
@@ -6813,6 +6859,7 @@ CREATE TABLE TB_COUPON (
   PLAN_SQ            INT UNSIGNED      NULL     COMMENT '기획전번호(쿠폰유형이 플러스쿠폰 일 때 사용 기획전번호)', -- 기획전번호
   REISSUANCE         VARCHAR(20)       NULL     COMMENT '쿠폰재발급여부(공통코드G231)', -- 쿠폰재발급여부(공통코드G231)
   CPN_STAT           VARCHAR(20)       NULL     DEFAULT 'G232_10' COMMENT '쿠폰상태(공통코드G232)', -- 쿠폰상태(공통코드G232)
+  END_ALIM_YN        CHAR(1)           NOT NULL DEFAULT 'N' COMMENT '만료알림여부',
   REG_NO             INT UNSIGNED      NOT NULL COMMENT '등록자번호', -- 등록자번호
   REG_DT             TIMESTAMP         NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '등록일시', -- 등록일시
   UPD_NO             INT UNSIGNED      NOT NULL COMMENT '수정자번호', -- 수정자번호

+ 7 - 7
산출물/3.설계/ERD/.metadata/.plugins/com.tomato.exerd.core/dialog_settings.xml

@@ -4,27 +4,27 @@
 		<item value="" key="history"/>
 		<item value="744" key="DIALOG_WIDTH"/>
 		<item value="613" key="DIALOG_Y_ORIGIN"/>
-		<item value="428" key="DIALOG_HEIGHT"/>
 		<item value="1174" key="DIALOG_X_ORIGIN"/>
+		<item value="428" key="DIALOG_HEIGHT"/>
 		<item value="1|맑은 고딕|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|맑은 고딕" key="DIALOG_FONT_NAME"/>
 	</section>
+	<section name="solutionSelectionDialog">
+		<item value="1" key="applyScope"/>
+	</section>
 	<section name="com.tomato.exerd.print.PrintSettingsEditorDialog">
 		<item value="721" key="DIALOG_WIDTH"/>
 		<item value="374" key="DIALOG_Y_ORIGIN"/>
-		<item value="928" key="DIALOG_X_ORIGIN"/>
 		<item value="621" key="DIALOG_HEIGHT"/>
+		<item value="928" key="DIALOG_X_ORIGIN"/>
 		<item value="1|맑은 고딕|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|맑은 고딕" key="DIALOG_FONT_NAME"/>
 	</section>
-	<section name="solutionSelectionDialog">
-		<item value="1" key="applyScope"/>
+	<section name="solution">
 	</section>
 	<section name="com.tomato.exerd.handler.Helper.DiagramOrderEditor">
 		<item value="350" key="DIALOG_WIDTH"/>
 		<item value="486" key="DIALOG_Y_ORIGIN"/>
-		<item value="453" key="DIALOG_HEIGHT"/>
 		<item value="1113" key="DIALOG_X_ORIGIN"/>
+		<item value="453" key="DIALOG_HEIGHT"/>
 		<item value="1|맑은 고딕|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|맑은 고딕" key="DIALOG_FONT_NAME"/>
 	</section>
-	<section name="solution">
-	</section>
 </section>

binární
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index


binární
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.root/23.tree


binární
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.root/24.tree


binární
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources


binární
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.snap


+ 7 - 6
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml

@@ -32,10 +32,10 @@
 </folder>
 </info>
 </editorArea>
-<editor id="com.tomato.exerd.editor.DiagramEditor" name="ST24.exerd" partName="ST24.exerd" title="ST24.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\ST24.exerd" workbook="DefaultEditorWorkbook">
+<editor activePart="true" focus="true" id="com.tomato.exerd.editor.DiagramEditor" name="ST24.exerd" partName="ST24.exerd" title="ST24.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\ST24.exerd" workbook="DefaultEditorWorkbook">
 <input factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
 </editor>
-<editor activePart="true" focus="true" id="com.tomato.exerd.editor.DiagramEditor" name="iSTYLE24_Mall.exerd" partName="iSTYLE24_Mall.exerd" title="iSTYLE24_Mall.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\asis\iSTYLE24_Mall.exerd" workbook="DefaultEditorWorkbook">
+<editor id="com.tomato.exerd.editor.DiagramEditor" name="iSTYLE24_Mall.exerd" partName="iSTYLE24_Mall.exerd" title="iSTYLE24_Mall.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\asis\iSTYLE24_Mall.exerd" workbook="DefaultEditorWorkbook">
 <input factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
 </editor>
 <editor id="com.tomato.exerd.editor.DiagramEditor" name="iSTYLE24_Wms.exerd" partName="iSTYLE24_Wms.exerd" title="iSTYLE24_Wms.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\asis\iSTYLE24_Wms.exerd" workbook="DefaultEditorWorkbook">
@@ -175,10 +175,8 @@
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Wms.exerd"/>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
+<editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
 </editors>
-<item historyLabel="ST24.exerd" index="0"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="1"/>
-<item historyLabel="ST24.exerd" index="0"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="1"/>
 <item historyLabel="ST24.exerd" index="0"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="1"/>
@@ -225,7 +223,10 @@
 <item historyLabel="ST24.exerd" index="6"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="3"/>
 <item historyLabel="ST24.exerd" index="6"/>
-<item active="true" historyLabel="iSTYLE24_Mall.exerd" index="7"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="7"/>
+<item historyLabel="ST24.exerd" index="8"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="7"/>
+<item active="true" historyLabel="ST24.exerd" index="8"/>
 </navigationHistory>
 <input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/" type="8"/>
 </page>

binární
산출물/3.설계/ERD/ST24.exerd