TABLE.txt 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. CREATE TABLE SGC.TCS_ERP_SITE (
  2. CMPN_CD VARCHAR(10) NOT NULL,
  3. SITE_CD VARCHAR(20) NOT NULL,
  4. SITE_NM VARCHAR(100),
  5. SITE_ABB_NM VARCHAR(100),
  6. MNG_HQT_CD VARCHAR(20),
  7. MNG_HQT_NM VARCHAR(100),
  8. SITE_PRGS_GB_CD VARCHAR(20),
  9. SITE_MNG_GB_CD VARCHAR(20),
  10. DCNT NUMBER,
  11. HHCNT NUMBER,
  12. CONST_PRD_FROM_DT VARCHAR(8),
  13. CONST_PRD_TO_DT VARCHAR(8),
  14. COMPL_DT VARCHAR(8),
  15. SPCMT_CN VARCHAR(4000),
  16. OFC_TEL_NO VARCHAR(100),
  17. OFC_FAX_NO VARCHAR(100),
  18. BZPJ_APRO_DT VARCHAR(8),
  19. WRTE_DT DATE DEFAULT sysdate,
  20. WRTE_PR VARCHAR(20),
  21. MDFT_DT DATE,
  22. MDFT_PR VARCHAR(20)
  23. )
  24. TABLESPACE TS_SGCDATA
  25. PCTFREE 10
  26. INITRANS 2
  27. STORAGE (
  28. MAXEXTENTS UNLIMITED
  29. )
  30. LOGGING
  31. NOPARALLEL;
  32. COMMENT ON TABLE SGC.TCS_ERP_SITE IS '하자) ERP 현장';
  33. COMMENT ON COLUMN SGC.TCS_ERP_SITE.BZPJ_APRO_DT IS '사업_승인_일자';
  34. COMMENT ON COLUMN SGC.TCS_ERP_SITE.CMPN_CD IS '회사 코드';
  35. COMMENT ON COLUMN SGC.TCS_ERP_SITE.COMPL_DT IS '준공_일자';
  36. COMMENT ON COLUMN SGC.TCS_ERP_SITE.CONST_PRD_FROM_DT IS '공사 기간 FROM';
  37. COMMENT ON COLUMN SGC.TCS_ERP_SITE.CONST_PRD_TO_DT IS '공사 기간 TO';
  38. COMMENT ON COLUMN SGC.TCS_ERP_SITE.DCNT IS '동수';
  39. COMMENT ON COLUMN SGC.TCS_ERP_SITE.HHCNT IS '세대수';
  40. COMMENT ON COLUMN SGC.TCS_ERP_SITE.MDFT_DT IS '수정 일자';
  41. COMMENT ON COLUMN SGC.TCS_ERP_SITE.MDFT_PR IS '수정 자';
  42. COMMENT ON COLUMN SGC.TCS_ERP_SITE.MNG_HQT_CD IS '관리본부 코드';
  43. COMMENT ON COLUMN SGC.TCS_ERP_SITE.MNG_HQT_NM IS '관리본부 명';
  44. COMMENT ON COLUMN SGC.TCS_ERP_SITE.OFC_FAX_NO IS '사무실_팩스번호';
  45. COMMENT ON COLUMN SGC.TCS_ERP_SITE.OFC_TEL_NO IS '사무실_전화번호';
  46. COMMENT ON COLUMN SGC.TCS_ERP_SITE.SITE_ABB_NM IS '현장_약어_명';
  47. COMMENT ON COLUMN SGC.TCS_ERP_SITE.SITE_CD IS '현장코드';
  48. COMMENT ON COLUMN SGC.TCS_ERP_SITE.SITE_MNG_GB_CD IS '현장관리구분코드[CS019]';
  49. COMMENT ON COLUMN SGC.TCS_ERP_SITE.SITE_NM IS '현장_명';
  50. COMMENT ON COLUMN SGC.TCS_ERP_SITE.SITE_PRGS_GB_CD IS '현장진행구분코드[CS015]';
  51. COMMENT ON COLUMN SGC.TCS_ERP_SITE.SPCMT_CN IS '특기사항_내용';
  52. COMMENT ON COLUMN SGC.TCS_ERP_SITE.WRTE_DT IS '작성 일자';
  53. COMMENT ON COLUMN SGC.TCS_ERP_SITE.WRTE_PR IS '작성 자';
  54. CREATE UNIQUE INDEX SGC.PK_TCS_ERP_SITE ON SGC.TCS_ERP_SITE (
  55. CMPN_CD ASC,
  56. SITE_CD ASC
  57. )
  58. LOGGING
  59. TABLESPACE TS_SGCIDX
  60. PCTFREE 10
  61. INITRANS 2;
  62. ALTER TABLE SGC.TCS_ERP_SITE ADD CONSTRAINT PK_TCS_ERP_SITE
  63. PRIMARY KEY (
  64. CMPN_CD,
  65. SITE_CD
  66. );
  67. CREATE TABLE SGC.TCS_SITE (
  68. CMPN_CD VARCHAR(10) NOT NULL,
  69. SITE_CD VARCHAR(20) NOT NULL,
  70. SITE_NM VARCHAR(100),
  71. SITE_ABB_NM VARCHAR(100),
  72. SITE_PRGS_GB_CD VARCHAR(20),
  73. SITE_MNG_GB_CD VARCHAR(20),
  74. PROD_NO NUMBER,
  75. DCNT NUMBER,
  76. HHCNT NUMBER,
  77. CONST_PRD_FROM_DT VARCHAR(8),
  78. CONST_PRD_TO_DT VARCHAR(8),
  79. COMPL_DT VARCHAR(8),
  80. SPCMT_CN VARCHAR(4000),
  81. OFC_TEL_NO VARCHAR(100),
  82. OFC_FAX_NO VARCHAR(100),
  83. BZPJ_APRO_DT VARCHAR(8),
  84. WRTE_DT DATE DEFAULT sysdate,
  85. WRTE_PR VARCHAR(20),
  86. MDFT_DT DATE,
  87. MDFT_PR VARCHAR(20)
  88. )
  89. TABLESPACE TS_SGCDATA
  90. PCTFREE 10
  91. INITRANS 2
  92. STORAGE (
  93. MAXEXTENTS UNLIMITED
  94. )
  95. LOGGING
  96. NOPARALLEL;
  97. COMMENT ON TABLE SGC.TCS_SITE IS '하자) 하자대상현장';
  98. COMMENT ON COLUMN SGC.TCS_SITE.BZPJ_APRO_DT IS '사업_승인_일자';
  99. COMMENT ON COLUMN SGC.TCS_SITE.CMPN_CD IS '회사 코드';
  100. COMMENT ON COLUMN SGC.TCS_SITE.COMPL_DT IS '준공_일자';
  101. COMMENT ON COLUMN SGC.TCS_SITE.CONST_PRD_FROM_DT IS '공사 기간 FROM';
  102. COMMENT ON COLUMN SGC.TCS_SITE.CONST_PRD_TO_DT IS '공사 기간 TO';
  103. COMMENT ON COLUMN SGC.TCS_SITE.DCNT IS '동수';
  104. COMMENT ON COLUMN SGC.TCS_SITE.HHCNT IS '세대수';
  105. COMMENT ON COLUMN SGC.TCS_SITE.MDFT_DT IS '수정 일자';
  106. COMMENT ON COLUMN SGC.TCS_SITE.MDFT_PR IS '수정 자';
  107. COMMENT ON COLUMN SGC.TCS_SITE.OFC_FAX_NO IS '사무실_팩스번호';
  108. COMMENT ON COLUMN SGC.TCS_SITE.OFC_TEL_NO IS '사무실_전화번호';
  109. COMMENT ON COLUMN SGC.TCS_SITE.PROD_NO IS '상품분류 상품번호';
  110. COMMENT ON COLUMN SGC.TCS_SITE.SITE_ABB_NM IS '현장_약어_명';
  111. COMMENT ON COLUMN SGC.TCS_SITE.SITE_CD IS '현장코드';
  112. COMMENT ON COLUMN SGC.TCS_SITE.SITE_MNG_GB_CD IS '현장관리구분코드[CS019]';
  113. COMMENT ON COLUMN SGC.TCS_SITE.SITE_NM IS '현장_명';
  114. COMMENT ON COLUMN SGC.TCS_SITE.SITE_PRGS_GB_CD IS '현장진행구분코드[CS015]';
  115. COMMENT ON COLUMN SGC.TCS_SITE.SPCMT_CN IS '특기사항_내용';
  116. COMMENT ON COLUMN SGC.TCS_SITE.WRTE_DT IS '작성 일자';
  117. COMMENT ON COLUMN SGC.TCS_SITE.WRTE_PR IS '작성 자';
  118. CREATE UNIQUE INDEX SGC.PK_TCS_SITE ON SGC.TCS_SITE (
  119. CMPN_CD ASC,
  120. SITE_CD ASC
  121. )
  122. LOGGING
  123. TABLESPACE TS_SGCIDX
  124. PCTFREE 10
  125. INITRANS 2;
  126. ALTER TABLE SGC.TCS_SITE ADD CONSTRAINT PK_TCS_SITE
  127. PRIMARY KEY (
  128. CMPN_CD,
  129. SITE_CD
  130. );
  131. CREATE TABLE SGC.TCS_SITE_TRADE_CHRGR (
  132. CMPN_CD VARCHAR(10) NOT NULL,
  133. SITE_CD VARCHAR(20) NOT NULL,
  134. COVEND_ID NUMBER NOT NULL,
  135. CHRGR_TYPE_CD VARCHAR(20) NOT NULL,
  136. CHRGR_NM VARCHAR(100),
  137. CHRGR_CRRY_TEL_NO VARCHAR(100),
  138. CHRGR_SMS_PERM_YN VARCHAR(1) DEFAULT 'N',
  139. CHRGR_EMAIL VARCHAR(400),
  140. WRTE_DT DATE DEFAULT sysdate,
  141. WRTE_PR VARCHAR(20),
  142. MDFT_DT DATE,
  143. MDFT_PR VARCHAR(20)
  144. )
  145. TABLESPACE TS_SGCDATA
  146. PCTFREE 10
  147. INITRANS 2
  148. STORAGE (
  149. MAXEXTENTS UNLIMITED
  150. )
  151. LOGGING
  152. NOPARALLEL;
  153. COMMENT ON TABLE SGC.TCS_SITE_TRADE_CHRGR IS '하자)현장협력업체 담당자';
  154. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.CHRGR_CRRY_TEL_NO IS '담당자_휴대_전화번호';
  155. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.CHRGR_EMAIL IS '담당자_이메일';
  156. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.CHRGR_NM IS '담당자_명';
  157. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.CHRGR_SMS_PERM_YN IS '담당자_SMS_허용_여부';
  158. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.CHRGR_TYPE_CD IS '담당자유형코드[CS006]';
  159. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.CMPN_CD IS '회사 코드';
  160. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.COVEND_ID IS '협력업체 ID';
  161. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.MDFT_DT IS '수정 일자';
  162. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.MDFT_PR IS '수정 자';
  163. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.SITE_CD IS '현장코드';
  164. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.WRTE_DT IS '작성 일자';
  165. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_CHRGR.WRTE_PR IS '작성 자';
  166. CREATE UNIQUE INDEX SGC.PK_TCS_SITE_TRADE_CHRGR ON SGC.TCS_SITE_TRADE_CHRGR (
  167. CMPN_CD ASC,
  168. SITE_CD ASC,
  169. COVEND_ID ASC,
  170. CHRGR_TYPE_CD ASC
  171. )
  172. LOGGING
  173. TABLESPACE TS_SGCIDX
  174. PCTFREE 10
  175. INITRANS 2;
  176. CREATE INDEX SGC.IF1_TCS_SITE_TRADE_CHRGR ON SGC.TCS_SITE_TRADE_CHRGR (
  177. CMPN_CD ASC,
  178. SITE_CD ASC,
  179. COVEND_ID ASC
  180. )
  181. LOGGING
  182. TABLESPACE TS_SGCIDX
  183. PCTFREE 10
  184. INITRANS 2;
  185. ALTER TABLE SGC.TCS_SITE_TRADE_CHRGR ADD CONSTRAINT PK_TCS_SITE_TRADE_CHRGR
  186. PRIMARY KEY (
  187. CMPN_CD,
  188. SITE_CD,
  189. COVEND_ID,
  190. CHRGR_TYPE_CD
  191. );
  192. ALTER TABLE SGC.TCS_SITE_TRADE_CHRGR ADD CONSTRAINT R_812
  193. FOREIGN KEY (
  194. CMPN_CD,
  195. SITE_CD,
  196. COVEND_ID
  197. ) REFERENCES SGC.TCS_SITE_TRADE (
  198. CMPN_CD,
  199. SITE_CD,
  200. COVEND_ID
  201. );
  202. CREATE TABLE SGC.TCS_SITE_TRADE_DEFGR (
  203. CMPN_CD VARCHAR(10) NOT NULL,
  204. SITE_CD VARCHAR(20) NOT NULL,
  205. COVEND_ID NUMBER NOT NULL,
  206. DEFGR_SEQ NUMBER(10) NOT NULL,
  207. CNTRT_NM VARCHAR(300),
  208. CNTRT_AMT NUMBER DEFAULT 0 NOT NULL,
  209. JOBTYP_NM VARCHAR(300),
  210. GUAR_TYPE_CD VARCHAR(20),
  211. GUAR_AMT NUMBER DEFAULT 0 NOT NULL,
  212. GUAR_STRT_DT VARCHAR(8),
  213. GUAR_END_DT VARCHAR(8),
  214. GUAR_INTU_NM VARCHAR(100),
  215. GUAR_INTU_CD VARCHAR(20),
  216. SCRT_NO VARCHAR(50),
  217. DEFT_CNTRT_YN VARCHAR(1),
  218. CNTRT_NO VARCHAR(20),
  219. CNTRT_DGR NUMBER,
  220. IF_GUAR_SEQ NUMBER,
  221. CRT_SYS_CD VARCHAR(20),
  222. GUAR_CHG_GB_CD VARCHAR(20),
  223. BDMT_PO_REQ_DT VARCHAR(8),
  224. GRNTL_AFL_ID VARCHAR(30),
  225. ELEC_GUAR_YN VARCHAR(1),
  226. WRTE_DT DATE DEFAULT sysdate,
  227. WRTE_PR VARCHAR(20),
  228. MDFT_DT DATE,
  229. MDFT_PR VARCHAR(20)
  230. )
  231. TABLESPACE TS_SGCDATA
  232. PCTFREE 10
  233. INITRANS 2
  234. STORAGE (
  235. MAXEXTENTS UNLIMITED
  236. )
  237. LOGGING
  238. NOPARALLEL;
  239. COMMENT ON TABLE SGC.TCS_SITE_TRADE_DEFGR IS '하자)현장협력업체 하자보증';
  240. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.BDMT_PO_REQ_DT IS '자재_발주_요청_일자';
  241. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.CMPN_CD IS '회사 코드';
  242. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.CNTRT_AMT IS '계약_금액';
  243. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.CNTRT_DGR IS '계약_차수';
  244. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.CNTRT_NM IS '계약_명';
  245. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.CNTRT_NO IS '계약번호';
  246. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.COVEND_ID IS '협력업체 ID';
  247. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.CRT_SYS_CD IS '생성시스템코드';
  248. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.DEFGR_SEQ IS '하자보증_순번';
  249. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.DEFT_CNTRT_YN IS '하자_계약_여부';
  250. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.ELEC_GUAR_YN IS '전자_보증_여부';
  251. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.GRNTL_AFL_ID IS '보증서_첨부파일ID';
  252. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.GUAR_AMT IS '보증_금액';
  253. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.GUAR_CHG_GB_CD IS '보증변경구분코드[CO018]';
  254. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.GUAR_END_DT IS '보증_종료_일자';
  255. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.GUAR_INTU_CD IS '보증기관코드[CO008]';
  256. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.GUAR_INTU_NM IS '보증_기관_명';
  257. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.GUAR_STRT_DT IS '보증_시작_일자';
  258. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.GUAR_TYPE_CD IS '보증유형코드[CS007]';
  259. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.IF_GUAR_SEQ IS '인터페이스_보증_순번';
  260. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.JOBTYP_NM IS '공종_명';
  261. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.MDFT_DT IS '수정 일자';
  262. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.MDFT_PR IS '수정 자';
  263. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.SCRT_NO IS '증권번호';
  264. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.SITE_CD IS '현장코드';
  265. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.WRTE_DT IS '작성 일자';
  266. COMMENT ON COLUMN SGC.TCS_SITE_TRADE_DEFGR.WRTE_PR IS '작성 자';
  267. CREATE UNIQUE INDEX SGC.PK_TCS_SITE_TRADE_DEFGR ON SGC.TCS_SITE_TRADE_DEFGR (
  268. CMPN_CD ASC,
  269. SITE_CD ASC,
  270. COVEND_ID ASC,
  271. DEFGR_SEQ ASC
  272. )
  273. LOGGING
  274. TABLESPACE TS_SGCIDX
  275. PCTFREE 10
  276. INITRANS 2;
  277. CREATE INDEX SGC.IF1_TCS_SITE_TRADE_DEFGR ON SGC.TCS_SITE_TRADE_DEFGR (
  278. CMPN_CD ASC,
  279. SITE_CD ASC,
  280. COVEND_ID ASC
  281. )
  282. LOGGING
  283. TABLESPACE TS_SGCIDX
  284. PCTFREE 10
  285. INITRANS 2;
  286. ALTER TABLE SGC.TCS_SITE_TRADE_DEFGR ADD CONSTRAINT PK_TCS_SITE_TRADE_DEFGR
  287. PRIMARY KEY (
  288. CMPN_CD,
  289. SITE_CD,
  290. COVEND_ID,
  291. DEFGR_SEQ
  292. );
  293. ALTER TABLE SGC.TCS_SITE_TRADE_DEFGR ADD CONSTRAINT R_813
  294. FOREIGN KEY (
  295. CMPN_CD,
  296. SITE_CD,
  297. COVEND_ID
  298. ) REFERENCES SGC.TCS_SITE_TRADE (
  299. CMPN_CD,
  300. SITE_CD,
  301. COVEND_ID
  302. );
  303. CREATE TABLE SGC.TCS_SITE_DHS (
  304. CMPN_CD VARCHAR(10) NOT NULL,
  305. SITE_CD VARCHAR(20) NOT NULL,
  306. DONG VARCHAR(100) NOT NULL,
  307. HSNO VARCHAR(100) NOT NULL,
  308. CNTPR_OCPH_NM VARCHAR(100),
  309. CP_NO VARCHAR(100),
  310. WRTE_DT DATE DEFAULT sysdate,
  311. WRTE_PR VARCHAR(20),
  312. MDFT_DT DATE,
  313. MDFT_PR VARCHAR(20)
  314. )
  315. TABLESPACE TS_SGCDATA
  316. PCTFREE 10
  317. INITRANS 2
  318. STORAGE (
  319. MAXEXTENTS UNLIMITED
  320. )
  321. LOGGING
  322. NOPARALLEL;
  323. COMMENT ON TABLE SGC.TCS_SITE_DHS IS '하자) 현장 동호수';
  324. COMMENT ON COLUMN SGC.TCS_SITE_DHS.CMPN_CD IS '회사 코드';
  325. COMMENT ON COLUMN SGC.TCS_SITE_DHS.CNTPR_OCPH_NM IS '계약 입주 자';
  326. COMMENT ON COLUMN SGC.TCS_SITE_DHS.CP_NO IS '핸드폰 번호';
  327. COMMENT ON COLUMN SGC.TCS_SITE_DHS.DONG IS '동';
  328. COMMENT ON COLUMN SGC.TCS_SITE_DHS.HSNO IS '호수';
  329. COMMENT ON COLUMN SGC.TCS_SITE_DHS.MDFT_DT IS '수정 일자';
  330. COMMENT ON COLUMN SGC.TCS_SITE_DHS.MDFT_PR IS '수정 자';
  331. COMMENT ON COLUMN SGC.TCS_SITE_DHS.SITE_CD IS '현장코드';
  332. COMMENT ON COLUMN SGC.TCS_SITE_DHS.WRTE_DT IS '작성 일자';
  333. COMMENT ON COLUMN SGC.TCS_SITE_DHS.WRTE_PR IS '작성 자';
  334. CREATE UNIQUE INDEX SGC.PK_TCS_SITE_DHS ON SGC.TCS_SITE_DHS (
  335. CMPN_CD ASC,
  336. SITE_CD ASC,
  337. DONG ASC,
  338. HSNO ASC
  339. )
  340. LOGGING
  341. TABLESPACE TS_SGCIDX
  342. PCTFREE 10
  343. INITRANS 2;
  344. ALTER TABLE SGC.TCS_SITE_DHS ADD CONSTRAINT PK_TCS_SITE_DHS
  345. PRIMARY KEY (
  346. CMPN_CD,
  347. SITE_CD,
  348. DONG,
  349. HSNO
  350. );
  351. CREATE TABLE SGC.TCS_SITE_TRADE (
  352. CMPN_CD VARCHAR(10) NOT NULL,
  353. SITE_CD VARCHAR(20) NOT NULL,
  354. COVEND_ID NUMBER NOT NULL,
  355. JOB_GB_CD VARCHAR(20),
  356. RMK_CN VARCHAR(4000),
  357. CRT_SYS_CD VARCHAR(20),
  358. WRTE_DT DATE DEFAULT sysdate,
  359. WRTE_PR VARCHAR(20),
  360. MDFT_DT DATE,
  361. MDFT_PR VARCHAR(20)
  362. )
  363. TABLESPACE TS_SGCDATA
  364. PCTFREE 10
  365. INITRANS 2
  366. STORAGE (
  367. MAXEXTENTS UNLIMITED
  368. )
  369. LOGGING
  370. NOPARALLEL;
  371. COMMENT ON TABLE SGC.TCS_SITE_TRADE IS '하자)현장협력업체';
  372. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CMPN_CD IS '회사 코드';
  373. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.COVEND_ID IS '협력업체 ID';
  374. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.CRT_SYS_CD IS '생성시스템코드';
  375. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.JOB_GB_CD IS '협력업체유형코드[CS004]';
  376. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.MDFT_DT IS '수정 일자';
  377. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.MDFT_PR IS '수정 자';
  378. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.RMK_CN IS '비고_내용';
  379. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.SITE_CD IS '현장코드';
  380. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.WRTE_DT IS '작성 일자';
  381. COMMENT ON COLUMN SGC.TCS_SITE_TRADE.WRTE_PR IS '작성 자';
  382. CREATE UNIQUE INDEX SGC.PK_TCS_SITE_TRADE ON SGC.TCS_SITE_TRADE (
  383. CMPN_CD ASC,
  384. SITE_CD ASC,
  385. COVEND_ID ASC
  386. )
  387. LOGGING
  388. TABLESPACE TS_SGCIDX
  389. PCTFREE 10
  390. INITRANS 2;
  391. ALTER TABLE SGC.TCS_SITE_TRADE ADD CONSTRAINT PK_TCS_SITE_TRADE
  392. PRIMARY KEY (
  393. CMPN_CD,
  394. SITE_CD,
  395. COVEND_ID
  396. );
  397. CREATE TABLE SGC.TCS_DEFT (
  398. CMPN_CD VARCHAR(20) NOT NULL,
  399. DEFT_NO VARCHAR(20) NOT NULL,
  400. SITE_CD VARCHAR(20),
  401. DONG VARCHAR(100),
  402. HSNO VARCHAR(100),
  403. OFFR_DT DATE,
  404. APLNT_NM VARCHAR(100),
  405. APLNT_REL VARCHAR(50),
  406. CRRY_TEL_NO VARCHAR(100),
  407. TEL_NO VARCHAR(100),
  408. UPPER_LOC_NO NUMBER,
  409. LOC_NO NUMBER,
  410. DEFT_LJOBTYP_NO NUMBER,
  411. DEFT_MJOBTYP_NO NUMBER,
  412. DEFT_JOBTYP_NO NUMBER,
  413. DEFT_TYPE_NO NUMBER,
  414. DEFT_CAUS_NO NUMBER,
  415. EMG_GB_CD VARCHAR(20),
  416. DEFT_CN VARCHAR(4000),
  417. DEFT_IMG_AFL_ID VARCHAR(30),
  418. REQ_CN VARCHAR(4000),
  419. CONS_MNBD_CD VARCHAR(20),
  420. CONS_COVEND_ID NUMBER,
  421. RCPT_MTD_CD VARCHAR(20),
  422. RCPT_DT DATE,
  423. RCVPR_NM VARCHAR(100),
  424. RCVPR_EMPNO VARCHAR(20),
  425. WORK_WKI_NO VARCHAR(20),
  426. PRCG_MNBD_CD VARCHAR(20),
  427. PRCG_COVEND_ID NUMBER,
  428. ASMNG_CHRGR_EMPNO VARCHAR(20),
  429. VENDR_LBPR_NM VARCHAR(100),
  430. VIS_ELPS_SEQ NUMBER,
  431. WORK_ELPS_SEQ NUMBER,
  432. PRCG_ELPS_SEQ NUMBER,
  433. PRCG_DT DATE,
  434. PGPR_NM VARCHAR(100),
  435. PRCG_CN VARCHAR(500),
  436. PRCG_AFL_ID VARCHAR(30),
  437. DURA_DYS NUMBER,
  438. RPDT_SCOR NUMBER,
  439. CPLT_ELPS_SEQ NUMBER,
  440. CPLT_DT VARCHAR(8),
  441. CPLPR_NM VARCHAR(100),
  442. MBIL_PRCG_CN VARCHAR(500),
  443. MBIL_CN_CONF_YN VARCHAR(1),
  444. DEFT_PRCG_STUS_CD VARCHAR(20),
  445. WRTE_DT DATE DEFAULT sysdate,
  446. WRTE_PR VARCHAR(20),
  447. MDFT_DT DATE,
  448. MDFT_PR VARCHAR(20)
  449. )
  450. TABLESPACE TS_SGCDATA
  451. PCTFREE 10
  452. INITRANS 2
  453. STORAGE (
  454. MAXEXTENTS UNLIMITED
  455. )
  456. LOGGING
  457. NOPARALLEL;
  458. COMMENT ON TABLE SGC.TCS_DEFT IS '하자) 하자접수처리';
  459. COMMENT ON COLUMN SGC.TCS_DEFT.APLNT_NM IS '신청자_명';
  460. COMMENT ON COLUMN SGC.TCS_DEFT.APLNT_REL IS '신청자 관계';
  461. COMMENT ON COLUMN SGC.TCS_DEFT.ASMNG_CHRGR_EMPNO IS '사후관리_담당자_사번';
  462. COMMENT ON COLUMN SGC.TCS_DEFT.CMPN_CD IS '회사 코드';
  463. COMMENT ON COLUMN SGC.TCS_DEFT.CONS_COVEND_ID IS '시공_협력업체ID';
  464. COMMENT ON COLUMN SGC.TCS_DEFT.CONS_MNBD_CD IS '시공주체코드[CS011]';
  465. COMMENT ON COLUMN SGC.TCS_DEFT.CPLPR_NM IS '완료자_명';
  466. COMMENT ON COLUMN SGC.TCS_DEFT.CPLT_DT IS '완료_일자';
  467. COMMENT ON COLUMN SGC.TCS_DEFT.CPLT_ELPS_SEQ IS '완료 경과 순번';
  468. COMMENT ON COLUMN SGC.TCS_DEFT.CRRY_TEL_NO IS '휴대_전화번호';
  469. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_CAUS_NO IS '하자원인번호';
  470. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_CN IS '하자_내용';
  471. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_IMG_AFL_ID IS '하자사진_첨부파일ID';
  472. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_JOBTYP_NO IS '하자공종번호';
  473. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_LJOBTYP_NO IS '하자대공종번호';
  474. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_MJOBTYP_NO IS '하자중공종번호';
  475. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_NO IS '하자번호';
  476. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_PRCG_STUS_CD IS '하자처리상태코드[CS009]';
  477. COMMENT ON COLUMN SGC.TCS_DEFT.DEFT_TYPE_NO IS '하자유형번호';
  478. COMMENT ON COLUMN SGC.TCS_DEFT.DONG IS '동';
  479. COMMENT ON COLUMN SGC.TCS_DEFT.DURA_DYS IS '소요_일수';
  480. COMMENT ON COLUMN SGC.TCS_DEFT.EMG_GB_CD IS '긴급 구분코드[CS020]';
  481. COMMENT ON COLUMN SGC.TCS_DEFT.HSNO IS '호수';
  482. COMMENT ON COLUMN SGC.TCS_DEFT.LOC_NO IS '위치번호';
  483. COMMENT ON COLUMN SGC.TCS_DEFT.MBIL_CN_CONF_YN IS '모바일_내용_확인_여부';
  484. COMMENT ON COLUMN SGC.TCS_DEFT.MBIL_PRCG_CN IS '모바일_처리_내용';
  485. COMMENT ON COLUMN SGC.TCS_DEFT.MDFT_DT IS '수정 일자';
  486. COMMENT ON COLUMN SGC.TCS_DEFT.MDFT_PR IS '수정 자';
  487. COMMENT ON COLUMN SGC.TCS_DEFT.OFFR_DT IS '신청 일자';
  488. COMMENT ON COLUMN SGC.TCS_DEFT.PGPR_NM IS '처리자_명';
  489. COMMENT ON COLUMN SGC.TCS_DEFT.PRCG_AFL_ID IS '처리_첨부파일ID';
  490. COMMENT ON COLUMN SGC.TCS_DEFT.PRCG_CN IS '처리_내용';
  491. COMMENT ON COLUMN SGC.TCS_DEFT.PRCG_COVEND_ID IS '처리_협력업체ID';
  492. COMMENT ON COLUMN SGC.TCS_DEFT.PRCG_DT IS '처리_일자';
  493. COMMENT ON COLUMN SGC.TCS_DEFT.PRCG_ELPS_SEQ IS '처리 경과 순번';
  494. COMMENT ON COLUMN SGC.TCS_DEFT.PRCG_MNBD_CD IS '처리주체코드[CS011]';
  495. COMMENT ON COLUMN SGC.TCS_DEFT.RCPT_DT IS '접수_일자';
  496. COMMENT ON COLUMN SGC.TCS_DEFT.RCPT_MTD_CD IS '접수방법코드[CS010]';
  497. COMMENT ON COLUMN SGC.TCS_DEFT.RCVPR_EMPNO IS '접수자 사원번호';
  498. COMMENT ON COLUMN SGC.TCS_DEFT.RCVPR_NM IS '접수자_명';
  499. COMMENT ON COLUMN SGC.TCS_DEFT.REQ_CN IS '요청_내용';
  500. COMMENT ON COLUMN SGC.TCS_DEFT.RPDT_SCOR IS '신속도_점수';
  501. COMMENT ON COLUMN SGC.TCS_DEFT.SITE_CD IS '현장코드';
  502. COMMENT ON COLUMN SGC.TCS_DEFT.TEL_NO IS '전화번호';
  503. COMMENT ON COLUMN SGC.TCS_DEFT.UPPER_LOC_NO IS '상위_위치번호';
  504. COMMENT ON COLUMN SGC.TCS_DEFT.VENDR_LBPR_NM IS '업체_작업자_명';
  505. COMMENT ON COLUMN SGC.TCS_DEFT.VIS_ELPS_SEQ IS '방문 경과 순번';
  506. COMMENT ON COLUMN SGC.TCS_DEFT.WORK_ELPS_SEQ IS '작업 경과 순번';
  507. COMMENT ON COLUMN SGC.TCS_DEFT.WORK_WKI_NO IS '작업_지시서_번호';
  508. COMMENT ON COLUMN SGC.TCS_DEFT.WRTE_DT IS '작성 일자';
  509. COMMENT ON COLUMN SGC.TCS_DEFT.WRTE_PR IS '작성 자';
  510. CREATE UNIQUE INDEX SGC.PK_TCS_DEFT ON SGC.TCS_DEFT (
  511. CMPN_CD ASC,
  512. DEFT_NO ASC
  513. )
  514. LOGGING
  515. TABLESPACE TS_SGCIDX
  516. PCTFREE 10
  517. INITRANS 2;
  518. ALTER TABLE SGC.TCS_DEFT ADD CONSTRAINT PK_TCS_DEFT
  519. PRIMARY KEY (
  520. CMPN_CD,
  521. DEFT_NO
  522. );
  523. CREATE TABLE SGC.TCS_DEFT_CUSTSIGN (
  524. CMPN_CD VARCHAR(20) NOT NULL,
  525. DEFT_NO VARCHAR(20) NOT NULL,
  526. SIGN_AFL_ID VARCHAR(30),
  527. SIGN_DT DATE,
  528. FILE_KND_NM VARCHAR(200),
  529. WRTE_DT DATE DEFAULT sysdate,
  530. WRTE_PR VARCHAR(20),
  531. MDFT_DT DATE,
  532. MDFT_PR VARCHAR(20)
  533. )
  534. TABLESPACE TS_SGCDATA
  535. PCTFREE 10
  536. INITRANS 2
  537. STORAGE (
  538. MAXEXTENTS UNLIMITED
  539. )
  540. LOGGING
  541. NOPARALLEL;
  542. COMMENT ON TABLE SGC.TCS_DEFT_CUSTSIGN IS '하자) 고객서명';
  543. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.CMPN_CD IS '회사 코드';
  544. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.DEFT_NO IS '하자번호';
  545. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.FILE_KND_NM IS '파일_종류_명';
  546. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.MDFT_DT IS '수정 일자';
  547. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.MDFT_PR IS '수정 자';
  548. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.SIGN_AFL_ID IS '서명_첨부파일ID';
  549. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.SIGN_DT IS '서명_일자';
  550. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.WRTE_DT IS '작성 일자';
  551. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.WRTE_PR IS '작성 자';
  552. CREATE UNIQUE INDEX SGC.PK_TCS_DEFT_CUSTSIGN ON SGC.TCS_DEFT_CUSTSIGN (
  553. CMPN_CD ASC,
  554. DEFT_NO ASC
  555. )
  556. LOGGING
  557. TABLESPACE TS_SGCIDX
  558. PCTFREE 10
  559. INITRANS 2;
  560. ALTER TABLE SGC.TCS_DEFT_CUSTSIGN ADD CONSTRAINT PK_TCS_DEFT_CUSTSIGN
  561. PRIMARY KEY (
  562. CMPN_CD,
  563. DEFT_NO
  564. );
  565. ALTER TABLE SGC.TCS_DEFT_CUSTSIGN ADD CONSTRAINT R_788
  566. FOREIGN KEY (
  567. CMPN_CD,
  568. DEFT_NO
  569. ) REFERENCES SGC.TCS_DEFT (
  570. CMPN_CD,
  571. DEFT_NO
  572. );
  573. CREATE TABLE SGC.TCS_DEFT_ELPS (
  574. CMPN_CD VARCHAR(20) NOT NULL,
  575. DEFT_NO VARCHAR(20) NOT NULL,
  576. PRCG_ELPS_SEQ NUMBER NOT NULL,
  577. PRCG_TYPE_CD VARCHAR(20),
  578. DEFT_PRCG_GB_CD VARCHAR(20),
  579. PRCG_PR_STRT_DT VARCHAR(8),
  580. PRCG_PR_STRT_TM VARCHAR(4),
  581. PRCG_PR_END_TM VARCHAR(4),
  582. PRCG_PR_END_DT VARCHAR(8),
  583. RMK_CN VARCHAR(4000),
  584. MAIL_CN CLOB,
  585. PGPR_NM VARCHAR(100),
  586. PGPR_GB_CD VARCHAR(20),
  587. PRCG_AMT NUMBER DEFAULT 0,
  588. WRTE_DT DATE DEFAULT sysdate,
  589. WRTE_PR VARCHAR(20),
  590. MDFT_DT DATE,
  591. MDFT_PR VARCHAR(20)
  592. )
  593. TABLESPACE TS_SGCDATA
  594. PCTFREE 10
  595. INITRANS 2
  596. STORAGE (
  597. MAXEXTENTS UNLIMITED
  598. )
  599. LOGGING
  600. LOB (MAIL_CN) STORE AS _SGC_LOB325300
  601. ( TABLESPACE TS_SGCDATA ENABLE STORAGE IN ROW )
  602. NOPARALLEL;
  603. COMMENT ON TABLE SGC.TCS_DEFT_ELPS IS '하자) 하자처리경과';
  604. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.CMPN_CD IS '회사 코드';
  605. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.DEFT_NO IS '하자번호';
  606. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.DEFT_PRCG_GB_CD IS '하자처리구분코드[CS013]';
  607. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.MAIL_CN IS '메일 내용';
  608. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.MDFT_DT IS '수정 일자';
  609. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.MDFT_PR IS '수정 자';
  610. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PGPR_GB_CD IS '처리자 구분코드[CS016]';
  611. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PGPR_NM IS '처리자 명';
  612. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PRCG_AMT IS '처리 비용';
  613. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PRCG_ELPS_SEQ IS '처리_경과_순번';
  614. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PRCG_PR_END_DT IS '처리_예정_종료_일자';
  615. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PRCG_PR_END_TM IS '처리_예정_종료_시간TO';
  616. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PRCG_PR_STRT_DT IS '처리_예정_시작_일자';
  617. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PRCG_PR_STRT_TM IS '처리_예정_시작_시간FROM';
  618. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.PRCG_TYPE_CD IS '처리유형코드[CS012]';
  619. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.RMK_CN IS '비고_내용';
  620. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.WRTE_DT IS '작성 일자';
  621. COMMENT ON COLUMN SGC.TCS_DEFT_ELPS.WRTE_PR IS '작성 자';
  622. CREATE UNIQUE INDEX SGC.PK_TCS_DEFT_ELPS ON SGC.TCS_DEFT_ELPS (
  623. CMPN_CD ASC,
  624. DEFT_NO ASC,
  625. PRCG_ELPS_SEQ ASC
  626. )
  627. LOGGING
  628. TABLESPACE TS_SGCIDX
  629. PCTFREE 10
  630. INITRANS 2;
  631. ALTER TABLE SGC.TCS_DEFT_ELPS ADD CONSTRAINT PK_TCS_DEFT_ELPS
  632. PRIMARY KEY (
  633. CMPN_CD,
  634. DEFT_NO,
  635. PRCG_ELPS_SEQ
  636. );
  637. CREATE TABLE SGC.TCS_DEFT_CUSTSIGN (
  638. CMPN_CD VARCHAR(20) NOT NULL,
  639. DEFT_NO VARCHAR(20) NOT NULL,
  640. SIGN_AFL_ID VARCHAR(30),
  641. SIGN_DT DATE,
  642. FILE_KND_NM VARCHAR(200),
  643. WRTE_DT DATE DEFAULT sysdate,
  644. WRTE_PR VARCHAR(20),
  645. MDFT_DT DATE,
  646. MDFT_PR VARCHAR(20)
  647. )
  648. TABLESPACE TS_SGCDATA
  649. PCTFREE 10
  650. INITRANS 2
  651. STORAGE (
  652. MAXEXTENTS UNLIMITED
  653. )
  654. LOGGING
  655. NOPARALLEL;
  656. COMMENT ON TABLE SGC.TCS_DEFT_CUSTSIGN IS '하자) 고객서명';
  657. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.CMPN_CD IS '회사 코드';
  658. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.DEFT_NO IS '하자번호';
  659. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.FILE_KND_NM IS '파일_종류_명';
  660. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.MDFT_DT IS '수정 일자';
  661. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.MDFT_PR IS '수정 자';
  662. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.SIGN_AFL_ID IS '서명_첨부파일ID';
  663. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.SIGN_DT IS '서명_일자';
  664. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.WRTE_DT IS '작성 일자';
  665. COMMENT ON COLUMN SGC.TCS_DEFT_CUSTSIGN.WRTE_PR IS '작성 자';
  666. CREATE UNIQUE INDEX SGC.PK_TCS_DEFT_CUSTSIGN ON SGC.TCS_DEFT_CUSTSIGN (
  667. CMPN_CD ASC,
  668. DEFT_NO ASC
  669. )
  670. LOGGING
  671. TABLESPACE TS_SGCIDX
  672. PCTFREE 10
  673. INITRANS 2;
  674. ALTER TABLE SGC.TCS_DEFT_CUSTSIGN ADD CONSTRAINT PK_TCS_DEFT_CUSTSIGN
  675. PRIMARY KEY (
  676. CMPN_CD,
  677. DEFT_NO
  678. );
  679. CREATE TABLE SGC.MO_PUSHHIST (
  680. PUSH_HIST_SEQ NUMBER NOT NULL,
  681. USER_ID VARCHAR(100),
  682. PUSH_SEND_DTTM TIMESTAMP(6),
  683. PUSH_TYPE VARCHAR(20) NOT NULL,
  684. PUSH_TITLE VARCHAR(200) NOT NULL,
  685. PUSH_CONTENTS VARCHAR(4000) NOT NULL,
  686. PUSH_LINK VARCHAR(1000),
  687. PUSH_STATUS VARCHAR(20) NOT NULL,
  688. PUSH_ERRMSG VARCHAR(4000),
  689. PUSH_SEQ NUMBER NOT NULL,
  690. WRTE_DT DATE DEFAULT sysdate,
  691. WRTE_PR VARCHAR(20)
  692. )
  693. TABLESPACE TS_SGCDATA
  694. PCTFREE 10
  695. INITRANS 2
  696. STORAGE (
  697. MAXEXTENTS UNLIMITED
  698. )
  699. LOGGING
  700. NOPARALLEL;
  701. COMMENT ON TABLE SGC.MO_PUSHHIST IS '모바일) PUSH 알림이력';
  702. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_CONTENTS IS '알림내용';
  703. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_ERRMSG IS '알림에러내용';
  704. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_HIST_SEQ IS '알림이력번호';
  705. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_LINK IS '알림링크';
  706. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_SEND_DTTM IS '알림 일시';
  707. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_SEQ IS '일련 번호';
  708. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_STATUS IS '알림상태';
  709. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_TITLE IS '알림제목';
  710. COMMENT ON COLUMN SGC.MO_PUSHHIST.PUSH_TYPE IS '알림구분';
  711. COMMENT ON COLUMN SGC.MO_PUSHHIST.USER_ID IS '아이디';
  712. COMMENT ON COLUMN SGC.MO_PUSHHIST.WRTE_DT IS '작성 일자';
  713. COMMENT ON COLUMN SGC.MO_PUSHHIST.WRTE_PR IS '작성 자';
  714. CREATE UNIQUE INDEX SGC.PK_PUSHHIST ON SGC.MO_PUSHHIST (
  715. PUSH_HIST_SEQ ASC
  716. )
  717. LOGGING
  718. TABLESPACE TS_SGCIDX
  719. PCTFREE 10
  720. INITRANS 2;
  721. CREATE INDEX SGC.FK_PUSHHIST ON SGC.MO_PUSHHIST (
  722. PUSH_SEQ ASC
  723. )
  724. LOGGING
  725. TABLESPACE TS_SGCIDX
  726. PCTFREE 10
  727. INITRANS 2;
  728. ALTER TABLE SGC.MO_PUSHHIST ADD CONSTRAINT PK_PUSHHIST
  729. PRIMARY KEY (
  730. PUSH_HIST_SEQ
  731. );
  732. ALTER TABLE SGC.MO_PUSHHIST ADD CONSTRAINT PUSHMESSAGE_01
  733. FOREIGN KEY (
  734. PUSH_SEQ
  735. ) REFERENCES SGC.MO_PUSH (
  736. PUSH_SEQ
  737. );
  738. ZEHR_ROM_LOCTN IS '회의실)위치정보';
  739. ATCHFILE_ID IS '첨부파일ID';
  740. LOCATION_ID IS '위치 코드';
  741. MDFT_DT IS '수정 일자';
  742. MDFT_PR IS '수정 자';
  743. MR_LOCATION IS '위치 명';
  744. WRTE_DT IS '작성 일자';
  745. WRTE_PR IS '작성 자';
  746. ZEHR_ROM_INFO IS '회의실)회의실정보';
  747. ADMITTED_NUM IS '수용 인원';
  748. BIGO IS '비고';
  749. BUNHO IS '번호';
  750. EQUIPMENT IS '비품';
  751. LOCATION_ID IS '위치 코드';
  752. MDFT_DT IS '수정 일자';
  753. MDFT_PR IS '수정 자';
  754. MEETINGROOM_ID IS '회의실 ID';
  755. SORT IS '정렬순서';
  756. TEL IS '전화 번호';
  757. VISIBLE_YN IS '표시 여부';
  758. WRTE_DT IS '작성 일자';
  759. WRTE_PR IS '작성 자';
  760. ZEHR_ROM_RESRVTN IS '회의실)회의실예약';
  761. ATTEND_NUM IS '참석 인원';
  762. DEPT_CD IS '부서 코드';
  763. DEPT_NAME IS '부서 명';
  764. END_HHMM IS '예약 종료시간';
  765. END_YYYYMMDD IS '예약 종료일자';
  766. ETC_DEPT_CD IS '기타 부서코드';
  767. ETC_DEPT_NAME IS '기타 부서명';
  768. ETC_NAME IS '기타 사원명';
  769. ETC_REMARK IS '기타 후기';
  770. ETC_SABUN IS '기타 사원번호';
  771. GUBUN IS '예약 구분';
  772. KEYSEND_YN IS '열쇠 지급여부';
  773. KEY_YN IS '열쇠 사용여부';
  774. MDFT_DT IS '수정 일자';
  775. MDFT_PR IS '수정 자';
  776. MEETINGROOM_ID IS '회의실_ID';
  777. MEETING_CON IS '회의 내용';
  778. MEETING_NAME IS '회의 제목';
  779. REMARK IS '사용 후기';
  780. RESERVATION_ID IS '예약_ID';
  781. START_HHMM IS '예약 시작시간';
  782. START_YYYYMMDD IS '예약 시작일자';
  783. STATUS IS '상태';
  784. SUBSC_CMPN_CD IS '예약자 회사코드';
  785. SUBSC_NAME IS '예약자 명';
  786. SUBSC_SABUN IS '예약자 사원번호';
  787. WEEK_FR IS '요일 금';
  788. WEEK_MU IS '요일 월';
  789. WEEK_TH IS '요일 목';
  790. WEEK_TU IS '요일 화';
  791. WEEK_WE IS '요일 수';
  792. WRTE_DT IS '작성 일자';
  793. WRTE_PR IS '작성 자';
  794. delete ZEHR_ROM_RESRVTN;
  795. delete ZEHR_ROM_HISTR;
  796. delete ZEHR_ROM_DISPL;
  797. select * from ZEHR_ROM_DISPL;
  798. DECLARE
  799. asMessage VARCHAR2(2000);
  800. asSuccessCd VARCHAR2(2000);
  801. BEGIN
  802. ZEHR_ROM_DIS_PRDALL (
  803. '20210101',
  804. '20221231',
  805. 'T001',
  806. asSuccessCd,
  807. asMessage
  808. );
  809. dbms_output.put_line(asSuccessCd);
  810. dbms_output.put_line(asMessage);
  811. END;
  812. CREATE TABLE SGC.TMP_DEFT_CUSTSIGN (
  813. CMPN_CD VARCHAR(20) NOT NULL,
  814. DEFT_NO VARCHAR(20) NOT NULL,
  815. SIGN_AFL_ID VARCHAR(30),
  816. SIGN_DT DATE,
  817. FILE_KND_NM VARCHAR(200),
  818. WRTE_DT DATE DEFAULT sysdate,
  819. WRTE_PR VARCHAR(20),
  820. MDFT_DT DATE,
  821. MDFT_PR VARCHAR(20)
  822. )
  823. TABLESPACE TS_SGCDATA
  824. PCTFREE 10
  825. INITRANS 2
  826. STORAGE (
  827. MAXEXTENTS UNLIMITED
  828. )
  829. LOGGING
  830. NOPARALLEL;