
/**
 * 
 * 현재 컬럼명에 예약어 사용한 테이블
 * 
 * DO(도급액)
 * CMT_CPCH_D(설계변경내역)
 * SWT_CHDH_D(SWT_CHDH_D)
 * SWT_CNCT_D(계약금액내역)
 * SWT_CNDH_D(상세설계변경내역)
 * 
 * LFET(미개수좌안),  RIGHT(미개수우안)
 * GEL_SRIVER_A(하천)
 * 
 * Array(가로등배열방법)
 * GRL_BEJN_P(공원 
 * GRL_CCUT_L(공원회
 * RDL_BEJN_P(제어함
 * RDL_CCUT_L(회로)
 * 
 * 
 * 컬럼명(신호등제식) 미기재 테이블
 * -> RDL_TRSN_P
 * 
 */


--------------------------------------------------------------------------
--// ##공통
--------------------------------------------------------------------------

--CCTV

CREATE TABLE icgis.GEL_CCTV_P (
	FTC              VARCHAR(5)       	NOT NULL
	, IDN              INTEGER          NOT NULL
	, OBJECTID         INTEGER          NOT NULL
	, GUCD             VARCHAR(5)
	, DCD              VARCHAR(10)
	, DEPT             VARCHAR(20)
	, USG              VARCHAR(6)
	, LOC              VARCHAR(80)
	, YMD              DATE
	, MONCASE          VARCHAR(80)
	, MONMGR           VARCHAR(20)
	, NET              VARCHAR(20)
	, RENT             VARCHAR(20)
	, BWIDTH           VARCHAR(20)
	, MCOST            NUMERIC(38,8)
	, YESTIMATE        NUMERIC(38,8)
	, MODEL            VARCHAR(80)
	, RESOL            VARCHAR(20)
	, TRANSSEC         VARCHAR(20)
	, ZOOM             VARCHAR(20)
	, TURNRNG          VARCHAR(80)
	, GRS80X           VARCHAR(20)
	, ETC              VARCHAR(100)
	, UPDATE_YMD       DATE
	, UPDATE_NAM       VARCHAR(50)
	, GRS80Y           VARCHAR(20)
	, SHAPE            public.geometry
);
ALTER TABLE icgis.GEL_CCTV_P ADD CONSTRAINT GEL_CCTV_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GEL_CCTV_P IS 'CCTV';
COMMENT ON COLUMN icgis.GEL_CCTV_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_CCTV_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GEL_CCTV_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_CCTV_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GEL_CCTV_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.GEL_CCTV_P.DEPT IS '부서';
COMMENT ON COLUMN icgis.GEL_CCTV_P.USG IS 'CCTV용도';
COMMENT ON COLUMN icgis.GEL_CCTV_P.LOC IS '설치위치';
COMMENT ON COLUMN icgis.GEL_CCTV_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.GEL_CCTV_P.MONCASE IS '관제방법';
COMMENT ON COLUMN icgis.GEL_CCTV_P.MONMGR IS '관제인력';
COMMENT ON COLUMN icgis.GEL_CCTV_P.NET IS '자가망';
COMMENT ON COLUMN icgis.GEL_CCTV_P.RENT IS '전용회선 임대';
COMMENT ON COLUMN icgis.GEL_CCTV_P.BWIDTH IS '대역폭';
COMMENT ON COLUMN icgis.GEL_CCTV_P.MCOST IS '월 회선비';
COMMENT ON COLUMN icgis.GEL_CCTV_P.YESTIMATE IS '연간유지보수예산';
COMMENT ON COLUMN icgis.GEL_CCTV_P.MODEL IS '모델명';
COMMENT ON COLUMN icgis.GEL_CCTV_P.RESOL IS '해상도';
COMMENT ON COLUMN icgis.GEL_CCTV_P.TRANSSEC IS '전송 프레임/초';
COMMENT ON COLUMN icgis.GEL_CCTV_P.ZOOM IS '줌기능';
COMMENT ON COLUMN icgis.GEL_CCTV_P.TURNRNG IS '회전범위';
COMMENT ON COLUMN icgis.GEL_CCTV_P.GRS80X IS 'X좌표값';
COMMENT ON COLUMN icgis.GEL_CCTV_P.ETC IS '비고';
COMMENT ON COLUMN icgis.GEL_CCTV_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GEL_CCTV_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GEL_CCTV_P.GRS80Y IS 'Y좌표값';
COMMENT ON COLUMN icgis.GEL_CCTV_P.SHAPE IS 'SHAPE';

--건물_지형도

CREATE TABLE icgis.GEL_BLDG_A (
      OBJECTID   INTEGER        NOT NULL
    , FTC        VARCHAR(6)
    , GUCD       VARCHAR(5)
    , LBL        VARCHAR(50)
    , AAA        VARCHAR(6)
    , AAB        VARCHAR(6)
    , DCD        VARCHAR(10)
    , DBL_NAM    VARCHAR(100)
    , BJD_CDE    VARCHAR(10)
    , SAN_CHK    VARCHAR(2)
    , FAC_NUM    VARCHAR(4)
    , FAD_NUM    VARCHAR(4)
    , NRD_NAM    VARCHAR(100)
    , NFC_NUM    VARCHAR(4)
    , NFD_NUM    VARCHAR(4)
    , BLD_HIT    NUMERIC(38,8)
    , IMP_CHK    VARCHAR(1)
    , SHAPE      public.geometry
);
COMMENT ON TABLE icgis.GEL_BLDG_A IS '건물_지형도';
COMMENT ON COLUMN icgis.GEL_BLDG_A.OBJECTID     IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_BLDG_A.FTC          IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_BLDG_A.GUCD         IS '등록구';
COMMENT ON COLUMN icgis.GEL_BLDG_A.LBL          IS '건물명';
COMMENT ON COLUMN icgis.GEL_BLDG_A.AAA          IS '건물형태';
COMMENT ON COLUMN icgis.GEL_BLDG_A.AAB          IS '건물용도';
COMMENT ON COLUMN icgis.GEL_BLDG_A.DCD          IS '행정동';
COMMENT ON COLUMN icgis.GEL_BLDG_A.DBL_NAM      IS '건물세부명';
COMMENT ON COLUMN icgis.GEL_BLDG_A.BJD_CDE      IS '법정읍면동코드';
COMMENT ON COLUMN icgis.GEL_BLDG_A.SAN_CHK      IS '지번_산구분';
COMMENT ON COLUMN icgis.GEL_BLDG_A.FAC_NUM      IS '지번_본번';
COMMENT ON COLUMN icgis.GEL_BLDG_A.FAD_NUM      IS '지번_부번';
COMMENT ON COLUMN icgis.GEL_BLDG_A.NRD_NAM      IS '새주소_도로명';
COMMENT ON COLUMN icgis.GEL_BLDG_A.NFC_NUM      IS '새주소_본번';
COMMENT ON COLUMN icgis.GEL_BLDG_A.NFD_NUM      IS '새주소_부번';
COMMENT ON COLUMN icgis.GEL_BLDG_A.BLD_HIT      IS '건물높이';
COMMENT ON COLUMN icgis.GEL_BLDG_A.IMP_CHK      IS '주요건물여부';
COMMENT ON COLUMN icgis.GEL_BLDG_A.SHAPE        IS 'SHAPE';


--계약공정내역

CREATE TABLE icgis.CMT_CNPG_D (
	  MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(12)		NOT NULL
	, SEQ			NUMERIC(5)   	NOT NULL
	, OBJECTID		INTEGER     	NOT NULL
	, PRTYPE		VARCHAR(7)
	, SYMD			DATE
	, RYMD			DATE
	, UPDATE_YMD	DATE
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CNPG_D ADD CONSTRAINT CMT_CNPG_D_pk PRIMARY KEY (MNGT,IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CNPG_D IS '계약공정내역';
COMMENT ON COLUMN icgis.CMT_CNPG_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.CMT_CNPG_D.IDN IS '계약번호';
COMMENT ON COLUMN icgis.CMT_CNPG_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CNPG_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNPG_D.PRTYPE IS '공정구분';
COMMENT ON COLUMN icgis.CMT_CNPG_D.SYMD IS '계약상년월일';
COMMENT ON COLUMN icgis.CMT_CNPG_D.RYMD IS '실시년월일';
COMMENT ON COLUMN icgis.CMT_CNPG_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNPG_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNPG_D.GLOBALID IS 'GLOBALID';


--- 계약대장

CREATE TABLE icgis.CMT_CTRT_D (
	MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(12)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, CTRTNM		VARCHAR(100)
	, CTRTMETH		VARCHAR(20)
	, CTRTYMD		DATE
	, CTRTKIND		VARCHAR(20)
	, CTRTSUM		NUMERIC(38,8)
	, CTRTDO		NUMERIC(38,8)
	, CTRTGONG		NUMERIC(38,8)
	, CTRTBUGA		NUMERIC(38,8)
	, CTRTKWAN		NUMERIC(38,8)
	, CTRTWASTE		NUMERIC(38,8)
	, CTRTETC		NUMERIC(38,8)
	, CTRTRATIO		NUMERIC(38,8)
	, CNCHSUM		NUMERIC(38,8)
	, CNCHDO		NUMERIC(38,8)
	, CNCHGONG		NUMERIC(38,8)
	, CNCHBUGA		NUMERIC(38,8)
	, CNCHKWAN		NUMERIC(38,8)
	, CNCHWASTE		NUMERIC(38,8)
	, CNCHETC		NUMERIC(38,8)
	, PERIOD		NUMERIC(5)
	, WSTART		DATE
	, WEND			DATE
	, WCOST			NUMERIC(38,8)
	, JANG			VARCHAR(40)
	, KWAN			VARCHAR(40)
	, HANG			VARCHAR(40)
	, SHANG			VARCHAR(40)
	, SSHANG		VARCHAR(40)
	, MOK			VARCHAR(40)
	, SUM			NUMERIC(38,8)
	, COUNTRY		NUMERIC(38,8)
	, CITY			NUMERIC(38,8)
	, DISTRICT		NUMERIC(38,8)
	, REASSIG		NUMERIC(38,8)
	, LOAN			NUMERIC(38,8)
	, ETC			NUMERIC(38,8)
	, UPDATE_YMD	DATE
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CTRT_D ADD CONSTRAINT CMT_CTRT_D_pk PRIMARY KEY (MNGT,IDN);
COMMENT ON TABLE icgis.CMT_CTRT_D IS '계약대장';
COMMENT ON COLUMN icgis.CMT_CTRT_D.MNGT IS '계약기관';
COMMENT ON COLUMN icgis.CMT_CTRT_D.IDN IS '계약번호';
COMMENT ON COLUMN icgis.CMT_CTRT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTNM IS '계약명';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTMETH IS '계약방법';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTYMD IS '계약일자';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTKIND IS '게약종류';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTSUM IS '계약금액_총공사비';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTDO IS '계약금액_도급액';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTGONG IS '계약금액_공급가액';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTBUGA IS '계약금액_부가가치세';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTKWAN IS '계약금액_관급액';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTWASTE IS '계약금액_폐기물';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTETC IS '계약금액_기타';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CTRTRATIO IS '계약금액_낙찰률';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CNCHSUM IS '설계금액_총공사비';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CNCHDO IS '설계금액_도급액';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CNCHGONG IS '설계금액_공급가액';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CNCHBUGA IS '설계금액_부가가치세';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CNCHKWAN IS '설계금액_관급액';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CNCHWASTE IS '설계금액_폐기물';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CNCHETC IS '설계금액_기타';
COMMENT ON COLUMN icgis.CMT_CTRT_D.PERIOD IS '절대공기';
COMMENT ON COLUMN icgis.CMT_CTRT_D.WSTART IS '하자담보_시작일';
COMMENT ON COLUMN icgis.CMT_CTRT_D.WEND IS '하자담보_종료일';
COMMENT ON COLUMN icgis.CMT_CTRT_D.WCOST IS '하자담보_보증금';
COMMENT ON COLUMN icgis.CMT_CTRT_D.JANG IS '지출과목_장';
COMMENT ON COLUMN icgis.CMT_CTRT_D.KWAN IS '지출과목_관';
COMMENT ON COLUMN icgis.CMT_CTRT_D.HANG IS '지출과목_항';
COMMENT ON COLUMN icgis.CMT_CTRT_D.SHANG IS '지출과목_세항';
COMMENT ON COLUMN icgis.CMT_CTRT_D.SSHANG IS '지출과목_세세항';
COMMENT ON COLUMN icgis.CMT_CTRT_D.MOK IS '지출과목_목';
COMMENT ON COLUMN icgis.CMT_CTRT_D.SUM IS '재원';
COMMENT ON COLUMN icgis.CMT_CTRT_D.COUNTRY IS '재원_국비';
COMMENT ON COLUMN icgis.CMT_CTRT_D.CITY IS '재원_시비';
COMMENT ON COLUMN icgis.CMT_CTRT_D.DISTRICT IS '재원_구비';
COMMENT ON COLUMN icgis.CMT_CTRT_D.REASSIG IS '재원_재배정';
COMMENT ON COLUMN icgis.CMT_CTRT_D.LOAN IS '재원_기채';
COMMENT ON COLUMN icgis.CMT_CTRT_D.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.CMT_CTRT_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CTRT_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CTRT_D.GLOBALID IS 'GLOBALID';


--- 계획파일

CREATE TABLE icgis.CMT_PFLE_D (
	IDN				INTEGER			NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL	
	, NAM			VARCHAR(40)		NOT NULL	
	, UPDATE_YMD	DATE					
	, UPDATE_NAM	VARCHAR(50)			
	, GLOBALID		CHAR(38)		NOT NULL	
	, FLE			BYTEA			
);
ALTER TABLE icgis.CMT_PFLE_D ADD CONSTRAINT CMT_PFLE_D_pk PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.CMT_PFLE_D IS '계획파일';
COMMENT ON COLUMN icgis.CMT_PFLE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_PFLE_D.SEQ IS '순번';
COMMENT ON COLUMN icgis.CMT_PFLE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_PFLE_D.NAM IS '파일명';
COMMENT ON COLUMN icgis.CMT_PFLE_D.UPDATE_YMD IS '파일';
COMMENT ON COLUMN icgis.CMT_PFLE_D.UPDATE_NAM IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_PFLE_D.GLOBALID IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_PFLE_D.FLE IS 'GLOBALID';


--- 공사감독자내역

CREATE TABLE icgis.CMT_CNCF_D (
	MNGT			VARCHAR(6)		NOT NULL
	,	IDN			VARCHAR(12)		NOT NULL	
	,	SEQ			NUMERIC(5)		NOT NULL
	,	OBJECTID	INTEGER			NOT NULL
	,	NAM			VARCHAR(20)
	,	STATE		VARCHAR(20)
	,	SDATE		DATE		
	,	UPDATE_YMD	DATE		
	,	UPDATE_NAM	VARCHAR(50)
	,	GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CNCF_D ADD CONSTRAINT CMT_CNCF_D_pk PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CNCF_D IS '공사감독자내역';
COMMENT ON COLUMN icgis.CMT_CNCF_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.CMT_CNCF_D.IDN IS '계약번호';
COMMENT ON COLUMN icgis.CMT_CNCF_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CNCF_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNCF_D.NAM IS '성명';
COMMENT ON COLUMN icgis.CMT_CNCF_D.STATE IS '직급';
COMMENT ON COLUMN icgis.CMT_CNCF_D.SDATE IS '시작일';
COMMENT ON COLUMN icgis.CMT_CNCF_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNCF_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNCF_D.GLOBALID IS 'GLOBALID';


--- 공사계약내역

CREATE TABLE icgis.CMT_CNCT_D (
	MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(10)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)	
	, GUB			VARCHAR(3)		NOT NULL
	, CTRTNO		VARCHAR(12)		NOT NULL
	, FISYEAR		VARCHAR(4)		NOT NULL
	, CTRTNM		VARCHAR(100)	NOT NULL
	, CTRTKIND		VARCHAR(20)	
	, CTRTMETH		VARCHAR(20)	
	, CTRTYMD		VARCHAR(8)	
	, CTRTAMT		NUMERIC(38,8)
	, CTRTMNGT		VARCHAR(6)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CNCT_D ADD CONSTRAINT CMT_CNCT_D_pk PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CNCT_D IS '공사계약내역';
COMMENT ON COLUMN icgis.CMT_CNCT_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.CMT_CNCT_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.CMT_CNCT_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CNCT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNCT_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNCT_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNCT_D.GUB IS '위치구분';
COMMENT ON COLUMN icgis.CMT_CNCT_D.CTRTNO IS '계약대장관리번호';
COMMENT ON COLUMN icgis.CMT_CNCT_D.FISYEAR IS '회계년도';
COMMENT ON COLUMN icgis.CMT_CNCT_D.CTRTNM IS '계약명';
COMMENT ON COLUMN icgis.CMT_CNCT_D.CTRTKIND IS '계약종류';
COMMENT ON COLUMN icgis.CMT_CNCT_D.CTRTMETH IS '계약방법';
COMMENT ON COLUMN icgis.CMT_CNCT_D.CTRTYMD IS '계약일자';
COMMENT ON COLUMN icgis.CMT_CNCT_D.CTRTAMT IS '계약금액';
COMMENT ON COLUMN icgis.CMT_CNCT_D.CTRTMNGT IS 'CTRTMNGT';
COMMENT ON COLUMN icgis.CMT_CNCT_D.GLOBALID IS 'GLOBALID';


--- 공사대장

CREATE TABLE icgis.CMT_CNST_D (
	MNGT			VARCHAR(6)		NOT NULL
	,	IDN			VARCHAR(10)		NOT NULL
	,	OBJECTID	INTEGER			NOT NULL
	,	NAM			VARCHAR(100)	NOT NULL
	,	LOC			VARCHAR(100)	NOT NULL
	,	OBJ			TEXT
	,	DETAIL		TEXT
	,	KUMO		TEXT
	,	SYMD		DATE
	,	EYMD		DATE
	,	NOTE		VARCHAR(100)
	,	UPDATE_YMD	DATE		
	,	UPDATE_NAM	VARCHAR(50)
	,	BUD			NUMERIC(38,8)
	,	SDSG		NUMERIC(38,8)
	,	DDSG		NUMERIC(38,8)
	,	KDSG		NUMERIC(38,8)
	,	EDSG		NUMERIC(38,8)
	,	CDPT		VARCHAR(50)
	,	CNAM		VARCHAR(30)
	,	GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CNST_D ADD CONSTRAINT CMT_CNST_D_pk PRIMARY KEY (MNGT, IDN);
COMMENT ON TABLE icgis.CMT_CNST_D IS '공사대장';
COMMENT ON COLUMN icgis.CMT_CNST_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.CMT_CNST_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.CMT_CNST_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNST_D.NAM IS '공사명';
COMMENT ON COLUMN icgis.CMT_CNST_D.LOC IS '공사위치';
COMMENT ON COLUMN icgis.CMT_CNST_D.OBJ IS '공사목적';
COMMENT ON COLUMN icgis.CMT_CNST_D.DETAIL IS '공사내역';
COMMENT ON COLUMN icgis.CMT_CNST_D.KUMO IS '공사규모';
COMMENT ON COLUMN icgis.CMT_CNST_D.SYMD IS '공사기간_시작일';
COMMENT ON COLUMN icgis.CMT_CNST_D.EYMD IS '공사기간_종료일';
COMMENT ON COLUMN icgis.CMT_CNST_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_CNST_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNST_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNST_D.BUD IS '예산액';
COMMENT ON COLUMN icgis.CMT_CNST_D.SDSG IS '설계액_총공사비';
COMMENT ON COLUMN icgis.CMT_CNST_D.DDSG IS '설계액_도급';
COMMENT ON COLUMN icgis.CMT_CNST_D.KDSG IS '설계액_관급';
COMMENT ON COLUMN icgis.CMT_CNST_D.EDSG IS '설계액_기타';
COMMENT ON COLUMN icgis.CMT_CNST_D.CDPT IS '담당부서';
COMMENT ON COLUMN icgis.CMT_CNST_D.CNAM IS '담당자';
COMMENT ON COLUMN icgis.CMT_CNST_D.GLOBALID IS 'GLOBALID';


--- 공사비 지급내역

CREATE TABLE icgis.CMT_CNPY_D (
	MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(12)		NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, PTYPE			VARCHAR(7)	
	, YMD			DATE		
	, AMOUNT		NUMERIC(38,8)
	, REMIND		NUMERIC(38,8)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CNPY_D ADD CONSTRAINT CMT_CNPY_D_pk PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CNPY_D IS '공사비지급내역';
COMMENT ON COLUMN icgis.CMT_CNPY_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.CMT_CNPY_D.IDN IS '계약번호';
COMMENT ON COLUMN icgis.CMT_CNPY_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CNPY_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNPY_D.PTYPE IS '지급구분';
COMMENT ON COLUMN icgis.CMT_CNPY_D.YMD IS '지급일';
COMMENT ON COLUMN icgis.CMT_CNPY_D.AMOUNT IS '지급액';
COMMENT ON COLUMN icgis.CMT_CNPY_D.REMIND IS '잔액';
COMMENT ON COLUMN icgis.CMT_CNPY_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNPY_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNPY_D.GLOBALID IS 'GLOBALID';


--- 공사업체

CREATE TABLE icgis.CMT_CNCM_D (
	MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(12)		NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, CMTYPE		VARCHAR(10)
	, NAM			VARCHAR(40)
	, CHIEF			VARCHAR(20)
	, ADDR			VARCHAR(80)
	, TEL			VARCHAR(15)
	, FAX			VARCHAR(15)
	, BIGO			VARCHAR(100)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
	
);
ALTER TABLE icgis.CMT_CNCM_D ADD CONSTRAINT CMT_CNCM_D_pk PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CNCM_D IS '공사업체';
COMMENT ON COLUMN icgis.CMT_CNCM_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.CMT_CNCM_D.IDN IS '계약번호';
COMMENT ON COLUMN icgis.CMT_CNCM_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CNCM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNCM_D.CMTYPE IS '구분';
COMMENT ON COLUMN icgis.CMT_CNCM_D.NAM IS '업체명';
COMMENT ON COLUMN icgis.CMT_CNCM_D.CHIEF IS '대표자';
COMMENT ON COLUMN icgis.CMT_CNCM_D.ADDR IS '주소';
COMMENT ON COLUMN icgis.CMT_CNCM_D.TEL IS '전화번호';
COMMENT ON COLUMN icgis.CMT_CNCM_D.FAX IS '팩스번호';
COMMENT ON COLUMN icgis.CMT_CNCM_D.BIGO IS '비고';
COMMENT ON COLUMN icgis.CMT_CNCM_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNCM_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNCM_D.GLOBALID IS 'GLOBALID';


--- 공사파일내역

CREATE TABLE icgis.CMT_CNFL_D (
	MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(10)		NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, NAM			VARCHAR(100)
	, DSC			VARCHAR(100)
	, NOTE			VARCHAR(40)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CNFL_D ADD CONSTRAINT CMT_CNFL_D_pk PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CNFL_D IS '공사파일내역';
COMMENT ON COLUMN icgis.CMT_CNFL_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.CMT_CNFL_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.CMT_CNFL_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CNFL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNFL_D.NAM IS '파일명';
COMMENT ON COLUMN icgis.CMT_CNFL_D.DSC IS '설명';
COMMENT ON COLUMN icgis.CMT_CNFL_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_CNFL_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNFL_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNFL_D.GLOBALID IS 'GLOBALID';


--- 관련파일 내역

CREATE TABLE icgis.CMT_OBFL_D (
	IDN				INTEGER			NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, GUB			VARCHAR(1)		NOT NULL
	, FNAME			VARCHAR(100)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
	, FLE			BYTEA

);
ALTER TABLE icgis.CMT_OBFL_D ADD CONSTRAINT CMT_OBFL_D_pk PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.CMT_OBFL_D IS '관련파일내역';
COMMENT ON COLUMN icgis.CMT_OBFL_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_OBFL_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_OBFL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_OBFL_D.GUB IS '구분';
COMMENT ON COLUMN icgis.CMT_OBFL_D.FNAME IS '파일명';
COMMENT ON COLUMN icgis.CMT_OBFL_D.UPDATE_YMD IS '파일';
COMMENT ON COLUMN icgis.CMT_OBFL_D.UPDATE_NAM IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_OBFL_D.GLOBALID IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_OBFL_D.FLE IS 'GLOBALID';


-- 관리기관 매칭

CREATE TABLE icgis.CMT_DEPT_MAPPING (
	MNGT			VARCHAR(6)		NOT NULL
	, DEPT_CODE		VARCHAR(20)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_DEPT_MAPPING ADD CONSTRAINT CMT_DEPT_MAPPING_pk PRIMARY KEY (MNGT, DEPT_CODE);
COMMENT ON TABLE icgis.CMT_DEPT_MAPPING IS '관리기관매칭';
COMMENT ON COLUMN icgis.CMT_DEPT_MAPPING.MNGT IS '시설물관리기관';
COMMENT ON COLUMN icgis.CMT_DEPT_MAPPING.DEPT_CODE IS '매칭기관관리기관';
COMMENT ON COLUMN icgis.CMT_DEPT_MAPPING.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_DEPT_MAPPING.GLOBALID IS 'GLOBALID';


--- 구경계

CREATE TABLE icgis.GEL_GADM_A (
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)	
	, GUCD		VARCHAR(5)	
	, LBL		VARCHAR(20)
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_GADM_A IS '구경계';
COMMENT ON COLUMN icgis.GEL_GADM_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_GADM_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_GADM_A.GUCD IS '코드';
COMMENT ON COLUMN icgis.GEL_GADM_A.LBL IS '명칭';
COMMENT ON COLUMN icgis.GEL_GADM_A.SHAPE IS 'SHAPE';


--- 권한관리

CREATE TABLE icgis.CMT_ROLE_MA (
	OBJECTID	INTEGER			NOT NULL
	, ROL_NAM	VARCHAR(50)		NOT NULL
	, ROL_DES	VARCHAR(500)
);
COMMENT ON TABLE icgis.CMT_ROLE_MA IS '권한관리';
COMMENT ON COLUMN icgis.CMT_ROLE_MA.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_ROLE_MA.ROL_NAM IS '권한명칭';
COMMENT ON COLUMN icgis.CMT_ROLE_MA.ROL_DES IS '권한설명';


--권한별 보안레이어 정보

CREATE TABLE icgis.CMT_SLRL_DT (
	ROL_IDE		NUMERIC(10)	NOT NULL
	, LYR_NUM	NUMERIC(10)	NOT NULL
	, OBJECTID	INTEGER		NOT NULL
	, LYR_CHK	VARCHAR(2)	NOT NULL
);
ALTER TABLE icgis.CMT_SLRL_DT ADD CONSTRAINT CMT_SLRL_DT_PK PRIMARY KEY (ROL_IDE, LYR_NUM);
COMMENT ON TABLE icgis.CMT_SLRL_DT IS '권한별 보안레이어 정보';
COMMENT ON COLUMN icgis.CMT_SLRL_DT.ROL_IDE IS '권한ID';
COMMENT ON COLUMN icgis.CMT_SLRL_DT.LYR_NUM IS '레이어번호';
COMMENT ON COLUMN icgis.CMT_SLRL_DT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_SLRL_DT.LYR_CHK IS '레이어권한';


--=기준점

CREATE TABLE icgis.GEL_KIZUN_P (
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, HSL		NUMERIC(38,8)	
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_KIZUN_P IS '기준점';
COMMENT ON COLUMN icgis.GEL_KIZUN_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_KIZUN_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_KIZUN_P.HSL IS '고도값';
COMMENT ON COLUMN icgis.GEL_KIZUN_P.SHAPE IS 'SHAPE';


--담장

CREATE TABLE icgis.GEL_WALL_L (
	OBJECTID	INTEGER				NOT NULL
	, FTC		VARCHAR(6)			
	, AAC		VARCHAR(6)			
	, GUCD		VARCHAR(5)			
	, SHAPE		public.geometry		
);
COMMENT ON TABLE icgis.GEL_WALL_L IS '담장';
COMMENT ON COLUMN icgis.GEL_WALL_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_WALL_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_WALL_L.AAC IS '담장구분';
COMMENT ON COLUMN icgis.GEL_WALL_L.GUCD IS '등록구';
COMMENT ON COLUMN icgis.GEL_WALL_L.SHAPE IS 'SHAPE';


--=도로경계선_지형도

CREATE TABLE icgis.GEL_SUR_L (
	OBJECTID	INTEGER		NOT NULL
	, FTC		VARCHAR(6)	
	, GUCD		VARCHAR(5)	
	, ADA		VARCHAR(6)	
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_SUR_L IS '도로경계선_지형도';
COMMENT ON COLUMN icgis.GEL_SUR_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_SUR_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_SUR_L.GUCD IS '등록구';
COMMENT ON COLUMN icgis.GEL_SUR_L.ADA IS '구분';
COMMENT ON COLUMN icgis.GEL_SUR_L.SHAPE IS 'SHAPE';


----도로원표

CREATE TABLE icgis.GEL_RDWP_P (
	FTC				VARCHAR(6)		NOT NULL
	, IDN			INTEGER			NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, RIDN			INTEGER			
	, MNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, CONT			VARCHAR(50)	
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, HJD_CDE		VARCHAR(10)	
	, SGG_CDE		VARCHAR(5)		
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.GEL_RDWP_P ADD CONSTRAINT GEL_RDWP_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GEL_RDWP_P IS '도로원표';
COMMENT ON COLUMN icgis.GEL_RDWP_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_RDWP_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.GEL_RDWP_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_RDWP_P.RIDN IS '허가신청번호';
COMMENT ON COLUMN icgis.GEL_RDWP_P.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.GEL_RDWP_P.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.GEL_RDWP_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.GEL_RDWP_P.CONT IS '하자내용';
COMMENT ON COLUMN icgis.GEL_RDWP_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.GEL_RDWP_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GEL_RDWP_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GEL_RDWP_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.GEL_RDWP_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.GEL_RDWP_P.SHAPE IS 'SHAPE';


----도시기준점

CREATE TABLE icgis.GEL_KISN_P (
	FTR_IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTR_CDE		VARCHAR(10)	
	, GRD_CDE		VARCHAR(14)	
	, DECISIONNO	VARCHAR(20)	
	, FTR_NO		VARCHAR(9)		
	, PLAN_ORG		VARCHAR(11)	
	, WORK_ORG		VARCHAR(16)	
	, WORKNO		VARCHAR(12)	
	, MARKSTATE		VARCHAR(13)	
	, MAPNO			VARCHAR(15)	
	, MAPNAME		VARCHAR(11)	
	, SURVEYDATE	VARCHAR(14)	
	, SURVEYOR		VARCHAR(11)	
	, INSTALLER		VARCHAR(11)	
	, LOCATION		VARCHAR(100)	
	, COURSE		VARCHAR(254)	
	, HEIGHT		NUMERIC(38,8)	
	, DATUM			VARCHAR(8)		
	, GGW_X			VARCHAR(19)	
	, GGW_Y			VARCHAR(19)	
	, GGG_X			NUMERIC(38,8)	
	, GGG_Y			NUMERIC(38,8)	
	, BGW_X			VARCHAR(19)	
	, BGW_Y			VARCHAR(19)	
	, BGG_X			NUMERIC(38,8)	
	, BGG_Y			NUMERIC(38,8)	
	, NOTE			VARCHAR(50)	
	, LOSEDATE		VARCHAR(11)	
	, LOSECMT		VARCHAR(10)	
	, DECISIONDATE	VARCHAR(13)	
	, PROJECT_NAME	VARCHAR(254)	
	, INSTALLDATE	VARCHAR(12)	
	, MAPSCALE		VARCHAR(11)	
	, MAPCODE		VARCHAR(11)	
	, SHT_NAM		VARCHAR(100)	
	, MNG_CDE		VARCHAR(7)		
	, REX_NUM		NUMERIC(38,8)	
	, REY_NUM		NUMERIC(38,8)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.GEL_KISN_P ADD CONSTRAINT GEL_KISN_P_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.GEL_KISN_P IS '도시기준점';
COMMENT ON COLUMN icgis.GEL_KISN_P.FTR_IDN IS '기준점ID';
COMMENT ON COLUMN icgis.GEL_KISN_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_KISN_P.FTR_CDE IS '기준점구분';
COMMENT ON COLUMN icgis.GEL_KISN_P.GRD_CDE IS '기준점등급';
COMMENT ON COLUMN icgis.GEL_KISN_P.DECISIONNO IS '고시번호';
COMMENT ON COLUMN icgis.GEL_KISN_P.FTR_NO IS '기준점명';
COMMENT ON COLUMN icgis.GEL_KISN_P.PLAN_ORG IS '계획기관';
COMMENT ON COLUMN icgis.GEL_KISN_P.WORK_ORG IS '작업기관';
COMMENT ON COLUMN icgis.GEL_KISN_P.WORKNO IS '작업규정승인번호';
COMMENT ON COLUMN icgis.GEL_KISN_P.MARKSTATE IS '기준점상태';
COMMENT ON COLUMN icgis.GEL_KISN_P.MAPNO IS '도엽번호';
COMMENT ON COLUMN icgis.GEL_KISN_P.MAPNAME IS '지도명';
COMMENT ON COLUMN icgis.GEL_KISN_P.SURVEYDATE IS '관측일자';
COMMENT ON COLUMN icgis.GEL_KISN_P.SURVEYOR IS '관측자';
COMMENT ON COLUMN icgis.GEL_KISN_P.INSTALLER IS '설치자';
COMMENT ON COLUMN icgis.GEL_KISN_P.LOCATION IS '소재지';
COMMENT ON COLUMN icgis.GEL_KISN_P.COURSE IS '설치경로';
COMMENT ON COLUMN icgis.GEL_KISN_P.HEIGHT IS '표고';
COMMENT ON COLUMN icgis.GEL_KISN_P.DATUM IS '사용원점';
COMMENT ON COLUMN icgis.GEL_KISN_P.GGW_X IS '세계측지계_경위도X';
COMMENT ON COLUMN icgis.GEL_KISN_P.GGW_Y IS '세계측지계_경위도Y';
COMMENT ON COLUMN icgis.GEL_KISN_P.GGG_X IS '세계측지계_직각좌표X';
COMMENT ON COLUMN icgis.GEL_KISN_P.GGG_Y IS '세계측지계_직각좌표Y';
COMMENT ON COLUMN icgis.GEL_KISN_P.BGW_X IS '지역좌표계_경위도X';
COMMENT ON COLUMN icgis.GEL_KISN_P.BGW_Y IS '지역좌표계_경위도Y';
COMMENT ON COLUMN icgis.GEL_KISN_P.BGG_X IS '지역좌표계_직각좌표X';
COMMENT ON COLUMN icgis.GEL_KISN_P.BGG_Y IS '지역좌표계_직각좌표Y';
COMMENT ON COLUMN icgis.GEL_KISN_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.GEL_KISN_P.LOSEDATE IS '망실신고접수일';
COMMENT ON COLUMN icgis.GEL_KISN_P.LOSECMT IS '망실신고내용';
COMMENT ON COLUMN icgis.GEL_KISN_P.DECISIONDATE IS '고시일자';
COMMENT ON COLUMN icgis.GEL_KISN_P.PROJECT_NAME IS '사업명';
COMMENT ON COLUMN icgis.GEL_KISN_P.INSTALLDATE IS '설치일자';
COMMENT ON COLUMN icgis.GEL_KISN_P.MAPSCALE IS '도엽축척';
COMMENT ON COLUMN icgis.GEL_KISN_P.MAPCODE IS '도엽코드';
COMMENT ON COLUMN icgis.GEL_KISN_P.SHT_NAM IS '도엽명';
COMMENT ON COLUMN icgis.GEL_KISN_P.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.GEL_KISN_P.REX_NUM IS '성과X';
COMMENT ON COLUMN icgis.GEL_KISN_P.REY_NUM IS '성과Y';
COMMENT ON COLUMN icgis.GEL_KISN_P.SHAPE IS 'SHAPE';


----동경계_법정동

CREATE TABLE icgis.GEL_BADM_A (
	OBJECTID	INTEGER	NOT NULL
	, FTC		VARCHAR(6)	
	, GUCD		VARCHAR(5)	
	, BADMCD	VARCHAR(10)
	, LBL		VARCHAR(20)
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_BADM_A IS '동경계_법정동';
COMMENT ON COLUMN icgis.GEL_BADM_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_BADM_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_BADM_A.GUCD IS '등록구';
COMMENT ON COLUMN icgis.GEL_BADM_A.BADMCD IS '법정동코드';
COMMENT ON COLUMN icgis.GEL_BADM_A.LBL IS '법정동명';
COMMENT ON COLUMN icgis.GEL_BADM_A.SHAPE IS 'SHAPE';


--동경계_행정동

CREATE TABLE icgis.GEL_HADM_A (
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)	
	, GUCD		VARCHAR(5)	
	, DCD		VARCHAR(10)
	, LBL		VARCHAR(20)
	, POP		INTEGER		
	, HJD_NAM	VARCHAR(100)
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_HADM_A IS '동경계_행정동';
COMMENT ON COLUMN icgis.GEL_HADM_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_HADM_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_HADM_A.GUCD IS '등록구';
COMMENT ON COLUMN icgis.GEL_HADM_A.DCD IS '코드';
COMMENT ON COLUMN icgis.GEL_HADM_A.LBL IS '명칭';
COMMENT ON COLUMN icgis.GEL_HADM_A.POP IS '인구수';
COMMENT ON COLUMN icgis.GEL_HADM_A.HJD_NAM IS '행정읍면동명';
COMMENT ON COLUMN icgis.GEL_HADM_A.SHAPE IS 'SHAPE';


----등고선

CREATE TABLE icgis.GEL_ELEV_L (
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, HSL		NUMERIC(38,8)	
	, CAA		VARCHAR(6)		
	, GUCD		VARCHAR(5)		
	, PK_ID		VARCHAR(50)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.GEL_ELEV_L IS '등고선';
COMMENT ON COLUMN icgis.GEL_ELEV_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_ELEV_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_ELEV_L.HSL IS '고도값';
COMMENT ON COLUMN icgis.GEL_ELEV_L.CAA IS '등고선구분';
COMMENT ON COLUMN icgis.GEL_ELEV_L.GUCD IS '등록구';
COMMENT ON COLUMN icgis.GEL_ELEV_L.PK_ID IS 'PK_ID';
COMMENT ON COLUMN icgis.GEL_ELEV_L.SHAPE IS 'SHAPE';


--=등록대기_사용자

CREATE TABLE icgis.CMT_WTUS_MA (
	USR_IDE		VARCHAR(50)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, USR_PWD	VARCHAR(200)	NOT NULL
	, USR_NAM	VARCHAR(50)		NOT NULL
	, USR_EML	VARCHAR(50)		NOT NULL
	, USR_DES	VARCHAR(200)
	, DPT_CDE	VARCHAR(50)		NOT NULL
	, WAT_YMD	VARCHAR(8)		NOT NULL
	, WAT_CUS	VARCHAR(2)		NOT NULL
);
ALTER TABLE icgis.CMT_WTUS_MA ADD CONSTRAINT CMT_WTUS_MA_PK PRIMARY KEY (USR_IDE);
COMMENT ON TABLE icgis.CMT_WTUS_MA IS '등록대기_사용자';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.USR_IDE IS '사용자ID';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.USR_PWD IS '사용자암호';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.USR_NAM IS '사용자명';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.USR_EML IS '이메일';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.USR_DES IS '설명';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.DPT_CDE IS '부서코드';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.WAT_YMD IS '등록대기일자';
COMMENT ON COLUMN icgis.CMT_WTUS_MA.WAT_CUS IS '대기원인';


----레이어 도메인 적용 상세

CREATE TABLE icgis.CMT_LAYER_DT (
	LAYER_ID	VARCHAR(20)		NOT NULL
	, CODE		VARCHAR(10)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, LAYER_NM	VARCHAR(50)
	, NAME		VARCHAR(50)
);
ALTER TABLE icgis.CMT_LAYER_DT ADD CONSTRAINT CMT_LAYER_DT_PK PRIMARY KEY (LAYER_ID, CODE);
COMMENT ON TABLE icgis.CMT_LAYER_DT IS '레이어 도메인 적용 상세';
COMMENT ON COLUMN icgis.CMT_LAYER_DT.LAYER_ID IS '레이어ID';
COMMENT ON COLUMN icgis.CMT_LAYER_DT.CODE IS '코드';
COMMENT ON COLUMN icgis.CMT_LAYER_DT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_LAYER_DT.LAYER_NM IS '레이어명';
COMMENT ON COLUMN icgis.CMT_LAYER_DT.NAME IS '코드명';


----레이어접근권한

CREATE TABLE icgis.CMT_SLLG_DT (
	USR_IDE			VARCHAR(50)		NOT NULL
	, LYR_IDE		VARCHAR(20)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, OPR_DIV		VARCHAR(2)		NOT NULL
	, PMS_CHK		VARCHAR(1)		NOT NULL
	, PMS_HSN		VARCHAR(50)		
	, LOG_DTE		VARCHAR(19)		NOT NULL
	, OPR_DES		VARCHAR(500)		
);
ALTER TABLE icgis.CMT_SLLG_DT ADD CONSTRAINT CMT_SLLG_DT_PK PRIMARY KEY (USR_IDE, LYR_IDE);
COMMENT ON TABLE icgis.CMT_SLLG_DT IS '레이어접근권한';
COMMENT ON COLUMN icgis.CMT_SLLG_DT.USR_IDE IS '사용자ID';
COMMENT ON COLUMN icgis.CMT_SLLG_DT.LYR_IDE IS '레이어ID';
COMMENT ON COLUMN icgis.CMT_SLLG_DT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_SLLG_DT.OPR_DIV IS '레이어접근구분';
COMMENT ON COLUMN icgis.CMT_SLLG_DT.PMS_CHK IS '접근허용여부';
COMMENT ON COLUMN icgis.CMT_SLLG_DT.PMS_HSN IS '접근아이피_호스트명';
COMMENT ON COLUMN icgis.CMT_SLLG_DT.LOG_DTE IS '접근일시';
COMMENT ON COLUMN icgis.CMT_SLLG_DT.OPR_DES IS '레이어접근상세';


--바다

CREATE TABLE icgis.GEL_SEA_A (
	OBJECTID	INTEGER				NOT NULL
	,SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.GEL_SEA_A IS '바다';
COMMENT ON COLUMN icgis.GEL_SEA_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_SEA_A.SHAPE IS 'SHAPE';


----법정구역코드

CREATE TABLE icgis.CMT_BJADMCD_D (
	GUNGU_CODE		VARCHAR(5)		NOT NULL	
	, DONG_CODE		VARCHAR(10)		NOT NULL	
	, RI_CODE		VARCHAR(10)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUNGU_NAME	VARCHAR(20)		NOT NULL
	, DONG_NAME		VARCHAR(20)
	, RI_NAME		VARCHAR(20)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_BJADMCD_D ADD CONSTRAINT CMT_BJADMCD_D_PK PRIMARY KEY (GUNGU_CODE, DONG_CODE, RI_CODE);
COMMENT ON TABLE icgis.CMT_BJADMCD_D IS '법정구역코드';
COMMENT ON COLUMN icgis.CMT_BJADMCD_D.GUNGU_CODE IS '군구코드';
COMMENT ON COLUMN icgis.CMT_BJADMCD_D.DONG_CODE IS '읍면동코드';
COMMENT ON COLUMN icgis.CMT_BJADMCD_D.RI_CODE IS '동리코드';
COMMENT ON COLUMN icgis.CMT_BJADMCD_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_BJADMCD_D.GUNGU_NAME IS '군구명';
COMMENT ON COLUMN icgis.CMT_BJADMCD_D.DONG_NAME IS '읍면동명';
COMMENT ON COLUMN icgis.CMT_BJADMCD_D.RI_NAME IS '동리명';
COMMENT ON COLUMN icgis.CMT_BJADMCD_D.GLOBALID IS 'GLOBALID';


--보도경계선_지형도

CREATE TABLE icgis.GEL_HUR_L (
	OBJECTID	INTEGER	NOT NULL	
	, FTC		VARCHAR(6)		
	, GUCD		VARCHAR(5)		
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.GEL_HUR_L IS '보도경계선_지형도';
COMMENT ON COLUMN icgis.GEL_HUR_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_HUR_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_HUR_L.GUCD IS '등록구';
COMMENT ON COLUMN icgis.GEL_HUR_L.SHAPE IS 'SHAPE';


--보안레이어관리

CREATE TABLE icgis.CMT_SLYR_MA(
	LYR_IDE		VARCHAR(20)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, LYR_NAM	VARCHAR(50)		NOT NULL
	, LYR_GRP	VARCHAR(2)		NOT NULL
);
ALTER TABLE icgis.CMT_SLYR_MA ADD CONSTRAINT CMT_SLYR_MA_PK PRIMARY KEY (LYR_IDE);
COMMENT ON TABLE icgis.CMT_SLYR_MA IS '보안레이어관리';
COMMENT ON COLUMN icgis.CMT_SLYR_MA.LYR_IDE IS '레이어ID';
COMMENT ON COLUMN icgis.CMT_SLYR_MA.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_SLYR_MA.LYR_NAM IS '레이어한글명';
COMMENT ON COLUMN icgis.CMT_SLYR_MA.LYR_GRP IS '레이어구분';


----부서변경내역

CREATE TABLE icgis.CMT_OBCH_D(
	IDN				INTEGER			NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			NOT NULL
	, DPCD			VARCHAR(20)		NOT NULL
	, DPNM			VARCHAR(80)		NOT NULL
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_OBCH_D ADD CONSTRAINT CMT_OBCH_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.CMT_OBCH_D IS '부서변경내역';
COMMENT ON COLUMN icgis.CMT_OBCH_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_OBCH_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_OBCH_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_OBCH_D.YMD IS '변경일';
COMMENT ON COLUMN icgis.CMT_OBCH_D.DPCD IS '부서코드';
COMMENT ON COLUMN icgis.CMT_OBCH_D.DPNM IS '부서명';
COMMENT ON COLUMN icgis.CMT_OBCH_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_OBCH_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_OBCH_D.GLOBALID IS 'GLOBALID';


----부서정보

CREATE TABLE icgis.CMT_DEPT_D(
	DEPT_CODE			VARCHAR(20)		NOT NULL
	, UP_ORG_CODE		VARCHAR(20)		NOT NULL
	, OBJECTID			INTEGER			NOT NULL
	, DEPT_NAME			VARCHAR(50)		
	, T_ORG_CODE		VARCHAR(20)		
	, FDEPT_NAME		VARCHAR(80)		
	, ENG_ORG_NAME		VARCHAR(30)		
	, ADDR1				VARCHAR(80)		
	, ADDR2				VARCHAR(80)		
	, DEP_HOMEP_ADDR	VARCHAR(80)		
	, ORG_EMAIL			VARCHAR(60)		
	, MAIN_TEL			VARCHAR(50)		
	, MAIN_FAX			VARCHAR(30)		
	, SELFGOV_CODE		VARCHAR(5)			
	, TEMP_DEPT_CK		VARCHAR(5)			
	, DEPT_STATUS		VARCHAR(5)			
	, DEPT_ROLE			VARCHAR(60)		
	, CAREER			VARCHAR(5)			
	, RANK				VARCHAR(10)		
	, V_CODE			VARCHAR(20)		
	, GLOBALID			CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_DEPT_D ADD CONSTRAINT CMT_DEPT_D_PK PRIMARY KEY (DEPT_CODE);
COMMENT ON TABLE icgis.CMT_DEPT_D IS '부서정보';
COMMENT ON COLUMN icgis.CMT_DEPT_D.DEPT_CODE IS '부서코드';
COMMENT ON COLUMN icgis.CMT_DEPT_D.UP_ORG_CODE IS '상위기관코드';
COMMENT ON COLUMN icgis.CMT_DEPT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_DEPT_D.DEPT_NAME IS '부서명';
COMMENT ON COLUMN icgis.CMT_DEPT_D.T_ORG_CODE IS '최상위기관코드';
COMMENT ON COLUMN icgis.CMT_DEPT_D.FDEPT_NAME IS '전체부서명';
COMMENT ON COLUMN icgis.CMT_DEPT_D.ENG_ORG_NAME IS '영문기관명';
COMMENT ON COLUMN icgis.CMT_DEPT_D.ADDR1 IS '주소1';
COMMENT ON COLUMN icgis.CMT_DEPT_D.ADDR2 IS '주소2';
COMMENT ON COLUMN icgis.CMT_DEPT_D.DEP_HOMEP_ADDR IS '부서홈페이지주소';
COMMENT ON COLUMN icgis.CMT_DEPT_D.ORG_EMAIL IS '기관메일주소';
COMMENT ON COLUMN icgis.CMT_DEPT_D.MAIN_TEL IS '대표전화';
COMMENT ON COLUMN icgis.CMT_DEPT_D.MAIN_FAX IS '팩스번호';
COMMENT ON COLUMN icgis.CMT_DEPT_D.SELFGOV_CODE IS '자치단체구분코드';
COMMENT ON COLUMN icgis.CMT_DEPT_D.TEMP_DEPT_CK IS '임시조직여부';
COMMENT ON COLUMN icgis.CMT_DEPT_D.DEPT_STATUS IS '부서상태';
COMMENT ON COLUMN icgis.CMT_DEPT_D.DEPT_ROLE IS '부서업무';
COMMENT ON COLUMN icgis.CMT_DEPT_D.CAREER IS '차수';
COMMENT ON COLUMN icgis.CMT_DEPT_D.RANK IS '서열';
COMMENT ON COLUMN icgis.CMT_DEPT_D.V_CODE IS '가상코드';
COMMENT ON COLUMN icgis.CMT_DEPT_D.GLOBALID IS 'GLOBALID';


----비활성화 사용자

CREATE TABLE icgis.CMT_USDA_MA(
	USR_IDE		VARCHAR(50)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, USR_NAM	VARCHAR(50)		NOT NULL
	, DIS_YMD	VARCHAR(8)		NOT NULL
);
ALTER TABLE icgis.CMT_USDA_MA ADD CONSTRAINT CMT_USDA_MA_PK PRIMARY KEY (USR_IDE);
COMMENT ON TABLE icgis.CMT_USDA_MA IS '비활성화 사용자';
COMMENT ON COLUMN icgis.CMT_USDA_MA.USR_IDE IS '사용자ID';
COMMENT ON COLUMN icgis.CMT_USDA_MA.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_USDA_MA.USR_NAM IS '사용자명';
COMMENT ON COLUMN icgis.CMT_USDA_MA.DIS_YMD IS '비활성화일자';


----사업당담자

CREATE TABLE icgis.CMT_PPPL_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, GLOBALID		CHAR(38)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, POS			VARCHAR(50)
	, NAM			VARCHAR(50)
	, TEL			VARCHAR(20)
	, MAIL			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
);
ALTER TABLE icgis.CMT_PPPL_D ADD CONSTRAINT CMT_PPPL_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.CMT_PPPL_D IS '사업당담자';
COMMENT ON COLUMN icgis.CMT_PPPL_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_PPPL_D.SEQ IS '순번';
COMMENT ON COLUMN icgis.CMT_PPPL_D.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.CMT_PPPL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_PPPL_D.POS IS '직위';
COMMENT ON COLUMN icgis.CMT_PPPL_D.NAM IS '성명';
COMMENT ON COLUMN icgis.CMT_PPPL_D.TEL IS '전화번호';
COMMENT ON COLUMN icgis.CMT_PPPL_D.MAIL IS '이메일';
COMMENT ON COLUMN icgis.CMT_PPPL_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_PPPL_D.UPDATE_NAM IS '최종수정자명';


----사용자

CREATE TABLE icgis.CMT_USER_D(
	REGNO				VARCHAR(13)		NOT NULL
	, DEPT_CODE			VARCHAR(20)		NOT NULL
	, OBJECTID			INTEGER			NOT NULL
	, NAME				VARCHAR(20)
	, DEPT_NAME			VARCHAR(100)
	, FDEPT_NAME		VARCHAR(100)
	, UP_ORG_CODE		VARCHAR(20)
	, STFLEV_NAME		VARCHAR(30)
	, STFLEV_CODE		VARCHAR(20)
	, POS_NAME			VARCHAR(50)
	, POS_CODE			VARCHAR(10)
	, TITLE_NAME		VARCHAR(50)
	, EMAIL				VARCHAR(100)
	, EXT_EMAIL			VARCHAR(100)
	, OFFICE_TEL		VARCHAR(50)
	, OFFICE_FAX		VARCHAR(50)
	, HOME_TEL			VARCHAR(100)
	, CELL_NO			VARCHAR(50)
	, E_APP_ID			VARCHAR(30)
	, RANK				VARCHAR(10)
	, CAR_NO			VARCHAR(100)
	, HOME_ADDR1		VARCHAR(200)
	, HOME_ADDR2		VARCHAR(200)
	, SEX				VARCHAR(10)
	, BIRTH_DATE		VARCHAR(30)
	, MAR_DATE			VARCHAR(30)
	, WORK_TYPE			VARCHAR(10)
	, DISP_DEP_NAME		VARCHAR(100)
	, DISP_DEP_CODE		VARCHAR(30)
	, CHARGE_ROLE		VARCHAR(2000)
	, PICFILE_NAME		VARCHAR(50)
	, CN				VARCHAR(30)
	, USER_STATUS		VARCHAR(10)
	, REG_DATE			VARCHAR(30)
	, FUSER_NAME		VARCHAR(100)
	, T_ORG_CODE		VARCHAR(20)
	, JUMINNO			VARCHAR(50)
	, PASSWD			VARCHAR(50)
	, GLOBALID			CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_USER_D ADD CONSTRAINT CMT_USER_D_PK PRIMARY KEY (REGNO);
COMMENT ON TABLE icgis.CMT_USER_D IS '사용자';
COMMENT ON COLUMN icgis.CMT_USER_D.REGNO IS '사용자ID';
COMMENT ON COLUMN icgis.CMT_USER_D.DEPT_CODE IS '부서코드';
COMMENT ON COLUMN icgis.CMT_USER_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_USER_D.NAME IS '이름';
COMMENT ON COLUMN icgis.CMT_USER_D.DEPT_NAME IS '부서명';
COMMENT ON COLUMN icgis.CMT_USER_D.FDEPT_NAME IS '전체부서명';
COMMENT ON COLUMN icgis.CMT_USER_D.UP_ORG_CODE IS '차상위부서코드';
COMMENT ON COLUMN icgis.CMT_USER_D.STFLEV_NAME IS '직급명';
COMMENT ON COLUMN icgis.CMT_USER_D.STFLEV_CODE IS '직급코드';
COMMENT ON COLUMN icgis.CMT_USER_D.POS_NAME IS '직위명';
COMMENT ON COLUMN icgis.CMT_USER_D.POS_CODE IS '직위코드';
COMMENT ON COLUMN icgis.CMT_USER_D.TITLE_NAME IS '직책명';
COMMENT ON COLUMN icgis.CMT_USER_D.EMAIL IS '메일';
COMMENT ON COLUMN icgis.CMT_USER_D.EXT_EMAIL IS '외부메일';
COMMENT ON COLUMN icgis.CMT_USER_D.OFFICE_TEL IS '사무실전화번호';
COMMENT ON COLUMN icgis.CMT_USER_D.OFFICE_FAX IS '사무실팩스번호';
COMMENT ON COLUMN icgis.CMT_USER_D.HOME_TEL IS '집전화번호';
COMMENT ON COLUMN icgis.CMT_USER_D.CELL_NO IS '핸드폰';
COMMENT ON COLUMN icgis.CMT_USER_D.E_APP_ID IS '전자결재ID_사번';
COMMENT ON COLUMN icgis.CMT_USER_D.RANK IS '서열';
COMMENT ON COLUMN icgis.CMT_USER_D.CAR_NO IS '차량번호';
COMMENT ON COLUMN icgis.CMT_USER_D.HOME_ADDR1 IS '집주소1';
COMMENT ON COLUMN icgis.CMT_USER_D.HOME_ADDR2 IS '집주소2';
COMMENT ON COLUMN icgis.CMT_USER_D.SEX IS '성별';
COMMENT ON COLUMN icgis.CMT_USER_D.BIRTH_DATE IS '생년월일';
COMMENT ON COLUMN icgis.CMT_USER_D.MAR_DATE IS '결혼기념일';
COMMENT ON COLUMN icgis.CMT_USER_D.WORK_TYPE IS '근무형태';
COMMENT ON COLUMN icgis.CMT_USER_D.DISP_DEP_NAME IS '파견지_겸직부서명';
COMMENT ON COLUMN icgis.CMT_USER_D.DISP_DEP_CODE IS '파견지_겸직부서_코드';
COMMENT ON COLUMN icgis.CMT_USER_D.CHARGE_ROLE IS '담당업무';
COMMENT ON COLUMN icgis.CMT_USER_D.PICFILE_NAME IS '사진파일명';
COMMENT ON COLUMN icgis.CMT_USER_D.CN IS '행정전자서명키값_CN';
COMMENT ON COLUMN icgis.CMT_USER_D.USER_STATUS IS '사용자상태';
COMMENT ON COLUMN icgis.CMT_USER_D.REG_DATE IS '등록날짜';
COMMENT ON COLUMN icgis.CMT_USER_D.FUSER_NAME IS '사용자전체이름';
COMMENT ON COLUMN icgis.CMT_USER_D.T_ORG_CODE IS '최상위기관코드';
COMMENT ON COLUMN icgis.CMT_USER_D.JUMINNO IS '주민등록번호';
COMMENT ON COLUMN icgis.CMT_USER_D.PASSWD IS '비밀번호';
COMMENT ON COLUMN icgis.CMT_USER_D.GLOBALID IS 'GLOBALID';


----사용자권한

CREATE TABLE icgis.UIS_USER_D(
	USER_ID				VARCHAR(20)		NOT NULL
	, JUMINNO			VARCHAR(50)
	, USER_PW			VARCHAR(50)
	, AUTHORITY_STATUS	VARCHAR(20)
	, AUTHORITY_SEARCH	CHAR(1)		
	, AUTHORITY_UPDATE	CHAR(1)		
	, OBJECTID			INTEGER			NOT NULL
);
ALTER TABLE icgis.UIS_USER_D ADD CONSTRAINT UIS_USER_D_PK PRIMARY KEY (USER_ID);
COMMENT ON TABLE icgis.UIS_USER_D IS '사용자권한';
COMMENT ON COLUMN icgis.UIS_USER_D.USER_ID IS '사용자ID';
COMMENT ON COLUMN icgis.UIS_USER_D.JUMINNO IS '주민등록번호';
COMMENT ON COLUMN icgis.UIS_USER_D.USER_PW IS '사용자비밀번호';
COMMENT ON COLUMN icgis.UIS_USER_D.AUTHORITY_STATUS IS '권한상태';
COMMENT ON COLUMN icgis.UIS_USER_D.AUTHORITY_SEARCH IS '권한검색';
COMMENT ON COLUMN icgis.UIS_USER_D.AUTHORITY_UPDATE IS '권한갱신일';
COMMENT ON COLUMN icgis.UIS_USER_D.OBJECTID IS 'OBJECTID';


----사용자별 권한관리

CREATE TABLE icgis.CMT_USRL_MA(
	USR_IDE		VARCHAR(50)		NOT NULL
	, ROL_IDE	NUMERIC(10)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
);
ALTER TABLE icgis.CMT_USRL_MA ADD CONSTRAINT CMT_USRL_MA_PK PRIMARY KEY (USR_IDE, ROL_IDE);
COMMENT ON TABLE icgis.CMT_USRL_MA IS '사용자별 권한관리';
COMMENT ON COLUMN icgis.CMT_USRL_MA.USR_IDE IS '사용자ID';
COMMENT ON COLUMN icgis.CMT_USRL_MA.ROL_IDE IS '권한ID';
COMMENT ON COLUMN icgis.CMT_USRL_MA.OBJECTID IS 'OBJECTID';


-- 색인도1/1000

CREATE TABLE icgis.GEL_IND010_A(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)	
	, MAPNO		VARCHAR(10)
	, CYMD		VARCHAR(4)	
	, UYMD		VARCHAR(4)	
	, NOTE		VARCHAR(100)
	, DWGEXT	VARCHAR(1)	
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_IND010_A IS '색인도1/1000';
COMMENT ON COLUMN icgis.GEL_IND010_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_IND010_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_IND010_A.MAPNO IS '도엽번호';
COMMENT ON COLUMN icgis.GEL_IND010_A.CYMD IS '제작년도';
COMMENT ON COLUMN icgis.GEL_IND010_A.UYMD IS '갱신년도';
COMMENT ON COLUMN icgis.GEL_IND010_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GEL_IND010_A.DWGEXT IS '수치지형도구축여부';
COMMENT ON COLUMN icgis.GEL_IND010_A.SHAPE IS 'SHAPE';


--색인도1/10000

CREATE TABLE icgis.GEL_IND100_A(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, MAPNO		VARCHAR(10)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.GEL_IND100_A IS '색인도1/10000';
COMMENT ON COLUMN icgis.GEL_IND100_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_IND100_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_IND100_A.MAPNO IS '도엽번호';
COMMENT ON COLUMN icgis.GEL_IND100_A.SHAPE IS 'SHAPE';


-- 색인도1/2500

CREATE TABLE icgis.GEL_IND025_A(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)	
	, MAPNO		VARCHAR(10)
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_IND025_A IS '색인도1/2500';
COMMENT ON COLUMN icgis.GEL_IND025_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_IND025_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_IND025_A.MAPNO IS '도엽번호';
COMMENT ON COLUMN icgis.GEL_IND025_A.SHAPE IS 'SHAPE';


---색인도1/500

CREATE TABLE icgis.GEL_IND005_A(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, MAPNO		VARCHAR(10)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.GEL_IND005_A IS '색인도1/500';
COMMENT ON COLUMN icgis.GEL_IND005_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_IND005_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_IND005_A.MAPNO IS '도엽번호';
COMMENT ON COLUMN icgis.GEL_IND005_A.SHAPE IS 'SHAPE';


--- 색인도1/5000

CREATE TABLE icgis.GEL_IND050_A(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)	
	, MAPNO		VARCHAR(10)
	, CYMD		VARCHAR(4)	
	, UYMD		VARCHAR(4)	
	, NOTE		VARCHAR(100)
	, DWGEXT	VARCHAR(1)	
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_IND050_A IS '색인도1/5000';
COMMENT ON COLUMN icgis.GEL_IND050_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_IND050_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_IND050_A.MAPNO IS '도엽번호';
COMMENT ON COLUMN icgis.GEL_IND050_A.CYMD IS '제작년도';
COMMENT ON COLUMN icgis.GEL_IND050_A.UYMD IS '갱신년도';
COMMENT ON COLUMN icgis.GEL_IND050_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GEL_IND050_A.DWGEXT IS '수치지형도구축여부';
COMMENT ON COLUMN icgis.GEL_IND050_A.SHAPE IS 'SHAPE';


----색인도1/50000

CREATE TABLE icgis.GEL_IND500_A(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, MAPNO		VARCHAR(10)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.GEL_IND500_A IS '색인도1/50000';
COMMENT ON COLUMN icgis.GEL_IND500_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_IND500_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_IND500_A.MAPNO IS '도엽번호';
COMMENT ON COLUMN icgis.GEL_IND500_A.SHAPE IS 'SHAPE';


---설계변경내역
-- DO 예약어 컬럼으로 주석처리

CREATE TABLE icgis.CMT_CPCH_D(
	MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(12)		NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, CDATE			DATE			
	, DTYPE			VARCHAR(7)		
	, CAUSE			VARCHAR(1000)	
	, TOTAL			NUMERIC(38,8)	
--	, DO			NUMERIC(38,8)	
	, GONG			NUMERIC(38,8)	
	, KWAN			NUMERIC(38,8)	
	, WASTE			NUMERIC(38,8)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.CMT_CPCH_D ADD CONSTRAINT CMT_CPCH_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CPCH_D IS '설계변경내역';
COMMENT ON COLUMN icgis.CMT_CPCH_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.CMT_CPCH_D.IDN IS '계약번호';
COMMENT ON COLUMN icgis.CMT_CPCH_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CPCH_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CPCH_D.CDATE IS '변경일';
COMMENT ON COLUMN icgis.CMT_CPCH_D.DTYPE IS '변경구분';
COMMENT ON COLUMN icgis.CMT_CPCH_D.CAUSE IS '설계변경사유';
COMMENT ON COLUMN icgis.CMT_CPCH_D.TOTAL IS '총공사비';
--COMMENT ON COLUMN icgis.CMT_CPCH_D.DO IS '도급액';
COMMENT ON COLUMN icgis.CMT_CPCH_D.GONG IS '공급가액';
COMMENT ON COLUMN icgis.CMT_CPCH_D.KWAN IS '관급액';
COMMENT ON COLUMN icgis.CMT_CPCH_D.WASTE IS '폐기물';
COMMENT ON COLUMN icgis.CMT_CPCH_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CPCH_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CPCH_D.GLOBALID IS 'GLOBALID';


---수치지형도 사업내역

CREATE TABLE icgis.CMT_DMAPBIZ_D(
	IDN			NUMERIC(5)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, NAM		VARCHAR(100)	NOT NULL
	, PRD		VARCHAR(30)		NOT NULL
	, SCST		NUMERIC(38,8)	
	, NCST		NUMERIC(38,8)	
	, CCST		NUMERIC(38,8)	
	, ORG		VARCHAR(50)	
	, ENP		VARCHAR(50)	
	, NOTE		VARCHAR(100)	
	, PATH		VARCHAR(50)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_DMAPBIZ_D ADD CONSTRAINT CMT_DMAPBIZ_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.CMT_DMAPBIZ_D IS '수치지형도 사업내역';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.IDN IS '일련번호';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.NAM IS '사업명';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.PRD IS '사업기간';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.SCST IS '설계금액';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.NCST IS '준공금액';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.CCST IS '최종금액';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.ORG IS '관리기관';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.ENP IS '사업체명';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.PATH IS '수치지형도 경로';
COMMENT ON COLUMN icgis.CMT_DMAPBIZ_D.GLOBALID IS 'GLOBALID';


--수치지형도 파라미터

CREATE TABLE icgis.CMT_DMAPPARAM_D(
	PARAMNAME		VARCHAR(20)		NOT NULL
	, GLOBALID		CHAR(38)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, PARAMVALUE	VARCHAR(50)
);
ALTER TABLE icgis.CMT_DMAPPARAM_D ADD CONSTRAINT CMT_DMAPPARAM_D_PK PRIMARY KEY (PARAMNAME);
COMMENT ON TABLE icgis.CMT_DMAPPARAM_D IS '수치지형도 파라미터';
COMMENT ON COLUMN icgis.CMT_DMAPPARAM_D.PARAMNAME IS '파라미터';
COMMENT ON COLUMN icgis.CMT_DMAPPARAM_D.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.CMT_DMAPPARAM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_DMAPPARAM_D.PARAMVALUE IS '파라미터값';


--수치지형도 파일내역

CREATE TABLE icgis.CMT_DMAPDS_D(
	FIDN		INTEGER			NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, FILE_NAME	VARCHAR(100)	
	, GLOBALID	CHAR(38)		NOT NULL
	, FILE_DATA	BYTEA
);
ALTER TABLE icgis.CMT_DMAPDS_D ADD CONSTRAINT CMT_DMAPDS_D_PK PRIMARY KEY (FIDN);
COMMENT ON TABLE icgis.CMT_DMAPDS_D IS '수치지형도 파일내역';
COMMENT ON COLUMN icgis.CMT_DMAPDS_D.FIDN IS '일련번호';
COMMENT ON COLUMN icgis.CMT_DMAPDS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_DMAPDS_D.FILE_NAME IS '파일명';
COMMENT ON COLUMN icgis.CMT_DMAPDS_D.GLOBALID IS '이미지';
COMMENT ON COLUMN icgis.CMT_DMAPDS_D.FILE_DATA IS 'GLOBALID';


---수치지형도 폴더내역

CREATE TABLE icgis.CMT_DMAPLIST_D(
	IDN			NUMERIC(5)		NOT NULL
	, BIDN		INTEGER			NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, C_TYPE	VARCHAR(20)	
	, B_LIST	VARCHAR(30)	
	, M_SCALE	VARCHAR(20)	
	, M_INDEX	VARCHAR(20)	
	, FILE_NAME	VARCHAR(100)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_DMAPLIST_D ADD CONSTRAINT CMT_DMAPLIST_D_PK PRIMARY KEY (IDN, BIDN);
COMMENT ON TABLE icgis.CMT_DMAPLIST_D IS '수치지형도 폴더내역';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.IDN IS '일련번호';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.BIDN IS '블록번호';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.C_TYPE IS '축척';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.B_LIST IS '폴더명';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.M_SCALE IS '맵축척';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.M_INDEX IS '인덱스명';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.FILE_NAME IS '파일명';
COMMENT ON COLUMN icgis.CMT_DMAPLIST_D.GLOBALID IS 'GLOBALID';


--시설물지도서비스정의

CREATE TABLE icgis.CMT_FACIL_D(
	GUB			VARCHAR(20)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, SNAME		VARCHAR(20)		NOT NULL
	, BASE		VARCHAR(1)		
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_FACIL_D ADD CONSTRAINT CMT_FACIL_D_PK PRIMARY KEY (GUB);
COMMENT ON TABLE icgis.CMT_FACIL_D IS '시설물지도서비스정의';
COMMENT ON COLUMN icgis.CMT_FACIL_D.GUB IS '지도구분';
COMMENT ON COLUMN icgis.CMT_FACIL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_FACIL_D.SNAME IS '서비스명';
COMMENT ON COLUMN icgis.CMT_FACIL_D.BASE IS '기본여부';
COMMENT ON COLUMN icgis.CMT_FACIL_D.GLOBALID IS 'GLOBALID';


---시설보수파일내역

CREATE TABLE icgis.CMT_BIMG_D(
	NUM				NUMERIC(5)		NOT NULL
	, FTC			VARCHAR(6)		NOT NULL
	, IDN			INTEGER			NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, NAM			VARCHAR(40)		NOT NULL
	, IMGE			VARCHAR(100)	
	, NOTE			VARCHAR(40)	
	, DSC			DATE			
	, UPDATE_YMD	VARCHAR(50)	
	, UPDATE_NAM	CHAR(38)		NOT NULL
	, GLOBALID		BYTEA	
);
ALTER TABLE icgis.CMT_BIMG_D ADD CONSTRAINT CMT_BIMG_D_PK PRIMARY KEY (NUM, FTC, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_BIMG_D IS '시설보수파일내역';
COMMENT ON COLUMN icgis.CMT_BIMG_D.NUM IS '지형지물부호';
COMMENT ON COLUMN icgis.CMT_BIMG_D.FTC IS '개별번호';
COMMENT ON COLUMN icgis.CMT_BIMG_D.IDN IS '일련번호';
COMMENT ON COLUMN icgis.CMT_BIMG_D.SEQ IS '순번';
COMMENT ON COLUMN icgis.CMT_BIMG_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_BIMG_D.NAM IS '파일명';
COMMENT ON COLUMN icgis.CMT_BIMG_D.IMGE IS '이미지';
COMMENT ON COLUMN icgis.CMT_BIMG_D.NOTE IS '설명';
COMMENT ON COLUMN icgis.CMT_BIMG_D.DSC IS '비고';
COMMENT ON COLUMN icgis.CMT_BIMG_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_BIMG_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_BIMG_D.GLOBALID IS 'GLOBALID';


--시설이미지내역

CREATE TABLE icgis.CMT_IMGE_D(
	FTC				VARCHAR(6)		NOT NULL
	, IDN			INTEGER			NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, NAM			VARCHAR(40)			
	, DSC			VARCHAR(100)		
	, ISPRT			VARCHAR(1)			
	, NOTE			VARCHAR(100)		
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)			
	, GLOBALID		CHAR(38)		NOT NULL
	, IMGE			BYTEA			
);
ALTER TABLE icgis.CMT_IMGE_D ADD CONSTRAINT CMT_IMGE_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_IMGE_D IS '시설이미지내역';
COMMENT ON COLUMN icgis.CMT_IMGE_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.CMT_IMGE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_IMGE_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_IMGE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_IMGE_D.NAM IS '파일명';
COMMENT ON COLUMN icgis.CMT_IMGE_D.DSC IS '설명';
COMMENT ON COLUMN icgis.CMT_IMGE_D.ISPRT IS '출력여부';
COMMENT ON COLUMN icgis.CMT_IMGE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_IMGE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_IMGE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_IMGE_D.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.CMT_IMGE_D.IMGE IS '이미지';


--시설이미지내역_WORK

CREATE TABLE icgis.CMT_IMGE_WORK(
	FTC			VARCHAR(6)		NOT NULL	
	, IDN		INTEGER			NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, NAM		VARCHAR(40)	
	, DSC		VARCHAR(100)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_IMGE_WORK ADD CONSTRAINT CMT_IMGE_WORK_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_IMGE_WORK IS '시설이미지내역_WORK';
COMMENT ON COLUMN icgis.CMT_IMGE_WORK.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.CMT_IMGE_WORK.IDN IS '허가번호';
COMMENT ON COLUMN icgis.CMT_IMGE_WORK.SEQ IS '파일일련번호';
COMMENT ON COLUMN icgis.CMT_IMGE_WORK.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_IMGE_WORK.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.CMT_IMGE_WORK.DSC IS '파일설명';
COMMENT ON COLUMN icgis.CMT_IMGE_WORK.GLOBALID IS 'GLOBALID';


-- 식생경계

CREATE TABLE icgis.GEL_AGRI_A(
	OBJECTID	INTEGER				NOT NULL
	, FTC		VARCHAR(6)	
	, DAZ		VARCHAR(6)	
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_AGRI_A IS '식생경계';
COMMENT ON COLUMN icgis.GEL_AGRI_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_AGRI_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_AGRI_A.DAZ IS '식생경계용도';
COMMENT ON COLUMN icgis.GEL_AGRI_A.SHAPE IS 'SHAPE';


-- 우편

CREATE TABLE icgis.CMT_POST_D(
	ID			VARCHAR(6)		NOT NULL
	, SEQ		VARCHAR(3)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, SIDO		VARCHAR(10)	
	, SGG		VARCHAR(20)	
	, EMD		VARCHAR(20)	
	, RI		VARCHAR(20)	
	, DS		VARCHAR(20)	
	, BUNJI		VARCHAR(20)	
	, BDNAM		VARCHAR(50)	
	, CYMD		VARCHAR(8)		
	, JUSO		VARCHAR(200)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_POST_D ADD CONSTRAINT CMT_POST_D_PK PRIMARY KEY (ID, SEQ);
COMMENT ON TABLE icgis.CMT_POST_D IS '우편';
COMMENT ON COLUMN icgis.CMT_POST_D.ID IS '일련번호';
COMMENT ON COLUMN icgis.CMT_POST_D.SEQ IS '파일일련번호';
COMMENT ON COLUMN icgis.CMT_POST_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_POST_D.SIDO IS '시도';
COMMENT ON COLUMN icgis.CMT_POST_D.SGG IS '시군구';
COMMENT ON COLUMN icgis.CMT_POST_D.EMD IS '읍면동';
COMMENT ON COLUMN icgis.CMT_POST_D.RI IS '리';
COMMENT ON COLUMN icgis.CMT_POST_D.DS IS 'DS';
COMMENT ON COLUMN icgis.CMT_POST_D.BUNJI IS '번지';
COMMENT ON COLUMN icgis.CMT_POST_D.BDNAM IS '빌딩명';
COMMENT ON COLUMN icgis.CMT_POST_D.CYMD IS '협조일_조회일';
COMMENT ON COLUMN icgis.CMT_POST_D.JUSO IS '주소';
COMMENT ON COLUMN icgis.CMT_POST_D.GLOBALID IS 'GLOBALID';


---작업 로그

CREATE TABLE icgis.CMT_WKLG_DT(
	LOG_DTE		VARCHAR(19)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, USR_IDE	VARCHAR(50)		NOT NULL
	, SYS_NAM	VARCHAR(50)		NOT NULL
	, SYS_URL	VARCHAR(100)	NOT NULL
	, WRK_DIV	VARCHAR(2)		NOT NULL
	, WRK_DES	VARCHAR(500)	
	, PMS_HSN	VARCHAR(50)	
);
ALTER TABLE icgis.CMT_WKLG_DT ADD CONSTRAINT CMT_WKLG_DT_PK PRIMARY KEY (LOG_DTE);
COMMENT ON TABLE icgis.CMT_WKLG_DT IS '작업 로그';
COMMENT ON COLUMN icgis.CMT_WKLG_DT.LOG_DTE IS '작업일시';
COMMENT ON COLUMN icgis.CMT_WKLG_DT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_WKLG_DT.USR_IDE IS '사용자ID';
COMMENT ON COLUMN icgis.CMT_WKLG_DT.SYS_NAM IS '시스템명';
COMMENT ON COLUMN icgis.CMT_WKLG_DT.SYS_URL IS '시스템URL';
COMMENT ON COLUMN icgis.CMT_WKLG_DT.WRK_DIV IS '작업구분';
COMMENT ON COLUMN icgis.CMT_WKLG_DT.WRK_DES IS '작업상세';
COMMENT ON COLUMN icgis.CMT_WKLG_DT.PMS_HSN IS '작업아이피_호스트명';


-- 접속 로그

CREATE TABLE icgis.CMT_CNLG_DT(
	REGNO		VARCHAR(13)		NOT NULL
	, LOG_DTE	VARCHAR(19)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, SYS_NAM	VARCHAR(50)		NOT NULL
	, SYS_URL	VARCHAR(100)	NOT NULL
	, PMS_HSN	VARCHAR(50)	
);
ALTER TABLE icgis.CMT_CNLG_DT ADD CONSTRAINT CMT_CNLG_DT_PK PRIMARY KEY (REGNO, LOG_DTE);
COMMENT ON TABLE icgis.CMT_CNLG_DT IS '접속 로그';
COMMENT ON COLUMN icgis.CMT_CNLG_DT.REGNO IS '사용자ID';
COMMENT ON COLUMN icgis.CMT_CNLG_DT.LOG_DTE IS '접속일시';
COMMENT ON COLUMN icgis.CMT_CNLG_DT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNLG_DT.SYS_NAM IS '시스템명';
COMMENT ON COLUMN icgis.CMT_CNLG_DT.SYS_URL IS '시스템URL';
COMMENT ON COLUMN icgis.CMT_CNLG_DT.PMS_HSN IS '접속아이피_호스트명';


---접속 실패 로그

CREATE TABLE icgis.CMT_CFLG_DT(
	LOG_DTE		VARCHAR(19)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, USR_IDE	VARCHAR(50)		NOT NULL
	, SYS_NAM	VARCHAR(50)		NOT NULL
	, SYS_URL	VARCHAR(100)	NOT NULL
	, ERR_DES	VARCHAR(500)
	, PMS_HSN	VARCHAR(50)
);
ALTER TABLE icgis.CMT_CFLG_DT ADD CONSTRAINT CMT_CFLG_DT_PK PRIMARY KEY (LOG_DTE);
COMMENT ON TABLE icgis.CMT_CFLG_DT IS '접속 실패 로그';
COMMENT ON COLUMN icgis.CMT_CFLG_DT.LOG_DTE IS '접속일시';
COMMENT ON COLUMN icgis.CMT_CFLG_DT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CFLG_DT.USR_IDE IS '사용자ID';
COMMENT ON COLUMN icgis.CMT_CFLG_DT.SYS_NAM IS '시스템명';
COMMENT ON COLUMN icgis.CMT_CFLG_DT.SYS_URL IS '시스템URL';
COMMENT ON COLUMN icgis.CMT_CFLG_DT.ERR_DES IS '에러상세';
COMMENT ON COLUMN icgis.CMT_CFLG_DT.PMS_HSN IS '접근아이피_호스트명';


--제방

CREATE TABLE icgis.GEL_BANK_A(
	FTC				VARCHAR(6)			NOT NULL
	, IDN			INTEGER				NOT NULL
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, MNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.GEL_BANK_A ADD CONSTRAINT GEL_BANK_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GEL_BANK_A IS '제방';
COMMENT ON COLUMN icgis.GEL_BANK_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_BANK_A.IDN IS '허가번호';
COMMENT ON COLUMN icgis.GEL_BANK_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_BANK_A.RIDN IS '허가신청번호';
COMMENT ON COLUMN icgis.GEL_BANK_A.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.GEL_BANK_A.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.GEL_BANK_A.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.GEL_BANK_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GEL_BANK_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GEL_BANK_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GEL_BANK_A.SHAPE IS 'SHAPE';


--주제도서비스정의

CREATE TABLE icgis.CMT_THEMATIC_D(
	GUB			VARCHAR(20)		NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, SNAME		VARCHAR(20)		NOT NULL
	, NOTE		VARCHAR(100)	
	, SEQ		NUMERIC(5)		
	, GLOBALID	CHAR(38)		NOT NULL

);
ALTER TABLE icgis.CMT_THEMATIC_D ADD CONSTRAINT CMT_THEMATIC_D_PK PRIMARY KEY (GUB);
COMMENT ON TABLE icgis.CMT_THEMATIC_D IS '주제도서비스정의';
COMMENT ON COLUMN icgis.CMT_THEMATIC_D.GUB IS '주제도구분';
COMMENT ON COLUMN icgis.CMT_THEMATIC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_THEMATIC_D.SNAME IS '서비스명';
COMMENT ON COLUMN icgis.CMT_THEMATIC_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_THEMATIC_D.SEQ IS '순번';
COMMENT ON COLUMN icgis.CMT_THEMATIC_D.GLOBALID IS 'GLOBALID';


--준공검사내역

CREATE TABLE icgis.CMT_CNEM_D(
	MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(12)		NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, ETYPE			VARCHAR(7)	
	, YMD			DATE		
	, STATE			VARCHAR(20)
	, NAM			VARCHAR(20)
	, PRESENCE		VARCHAR(20)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CNEM_D ADD CONSTRAINT CMT_CNEM_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CNEM_D IS '준공검사내역';
COMMENT ON COLUMN icgis.CMT_CNEM_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.CMT_CNEM_D.IDN IS '계약번호';
COMMENT ON COLUMN icgis.CMT_CNEM_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CNEM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNEM_D.ETYPE IS '검사구분';
COMMENT ON COLUMN icgis.CMT_CNEM_D.YMD IS '검사일';
COMMENT ON COLUMN icgis.CMT_CNEM_D.STATE IS '검사자_직명';
COMMENT ON COLUMN icgis.CMT_CNEM_D.NAM IS '검사자_성명';
COMMENT ON COLUMN icgis.CMT_CNEM_D.PRESENCE IS '입회자';
COMMENT ON COLUMN icgis.CMT_CNEM_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNEM_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNEM_D.GLOBALID IS 'GLOBALID';


--지리정보 복제_출력대장

CREATE TABLE icgis.CMT_GISCP_D(
	IDN				INTEGER			NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, TITLE			VARCHAR(100)	
	, DATA_GUBUN	VARCHAR(5)		
	, DATA_TYPE		VARCHAR(5)		
	, SHEET_CNT		NUMERIC(38,8)	
	, PRICE			INTEGER			
	, REC_CLASS		VARCHAR(50)	
	, REC_USER		VARCHAR(50)	
	, REG_DATE		DATE			
	, YEGO			VARCHAR(1000)	
	, SAYU			VARCHAR(1000)	
	, BIGO			VARCHAR(1000)	
	, PUBYN			VARCHAR(1)		
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, SHEET_UNIT	VARCHAR(5)		
	, FNS_DATE		DATE			
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_GISCP_D ADD CONSTRAINT CMT_GISCP_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.CMT_GISCP_D IS '지리정보 복제_출력대장';
COMMENT ON COLUMN icgis.CMT_GISCP_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_GISCP_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_GISCP_D.TITLE IS '제목';
COMMENT ON COLUMN icgis.CMT_GISCP_D.DATA_GUBUN IS '자료구분';
COMMENT ON COLUMN icgis.CMT_GISCP_D.DATA_TYPE IS '자료유형';
COMMENT ON COLUMN icgis.CMT_GISCP_D.SHEET_CNT IS '건수_매수';
COMMENT ON COLUMN icgis.CMT_GISCP_D.PRICE IS '단가';
COMMENT ON COLUMN icgis.CMT_GISCP_D.REC_CLASS IS '열람수령자_소속';
COMMENT ON COLUMN icgis.CMT_GISCP_D.REC_USER IS '열람수령자_성명';
COMMENT ON COLUMN icgis.CMT_GISCP_D.REG_DATE IS '일자';
COMMENT ON COLUMN icgis.CMT_GISCP_D.YEGO IS '예고문';
COMMENT ON COLUMN icgis.CMT_GISCP_D.SAYU IS '사유';
COMMENT ON COLUMN icgis.CMT_GISCP_D.BIGO IS '비고';
COMMENT ON COLUMN icgis.CMT_GISCP_D.PUBYN IS '공개구분';
COMMENT ON COLUMN icgis.CMT_GISCP_D.UPDATE_YMD IS '최종수정일';
COMMENT ON COLUMN icgis.CMT_GISCP_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_GISCP_D.SHEET_UNIT IS '시트단위';
COMMENT ON COLUMN icgis.CMT_GISCP_D.FNS_DATE IS '파기일자';
COMMENT ON COLUMN icgis.CMT_GISCP_D.GLOBALID IS 'GLOBALID';


--지리정보 사용

CREATE TABLE icgis.CMT_GISU_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, APLNAME		VARCHAR(50)		NOT NULL
	, APLDEPT		VARCHAR(100)	NOT NULL
	, APLTEL		VARCHAR(15)		NOT NULL
	, APLFAX		VARCHAR(15)	
	, APLEMAIL		VARCHAR(50)	
	, USENAME		VARCHAR(50)	
	, USEREGNO		VARCHAR(20)	
	, USEADDR		VARCHAR(100)	
	, USETEL		VARCHAR(15)	
	, USEEMAIL		VARCHAR(50)	
	, USEOBJ		VARCHAR(300)	NOT NULL
	, APLTYP		VARCHAR(6)		NOT NULL
	, APTCD			VARCHAR(6)		NOT NULL
	, APTETC		VARCHAR(50)	
	, APLSHT		VARCHAR(300)	NOT NULL
	, APLYMD		DATE			NOT NULL
	, RECYMD		DATE			
	, TAKCONT		VARCHAR(200)	
	, REJYMD		DATE			
	, REJCONT		VARCHAR(200)	
	, TRSYMD		DATE			
	, TRSCD			VARCHAR(6)		NOT NULL
	, NOTE			VARCHAR(500)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_GISU_D ADD CONSTRAINT CMT_GISU_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.CMT_GISU_D IS '지리정보 사용';
COMMENT ON COLUMN icgis.CMT_GISU_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_GISU_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_GISU_D.APLNAME IS '신청자_성명';
COMMENT ON COLUMN icgis.CMT_GISU_D.APLDEPT IS '신청자 부서';
COMMENT ON COLUMN icgis.CMT_GISU_D.APLTEL IS '신청자_전화번호';
COMMENT ON COLUMN icgis.CMT_GISU_D.APLFAX IS '신청자_팩스번호';
COMMENT ON COLUMN icgis.CMT_GISU_D.APLEMAIL IS '신청자_전자우편';
COMMENT ON COLUMN icgis.CMT_GISU_D.USENAME IS '사용자_성명';
COMMENT ON COLUMN icgis.CMT_GISU_D.USEREGNO IS '사용자_주민등록번호';
COMMENT ON COLUMN icgis.CMT_GISU_D.USEADDR IS '사용자 주소';
COMMENT ON COLUMN icgis.CMT_GISU_D.USETEL IS '사용자_전화번호';
COMMENT ON COLUMN icgis.CMT_GISU_D.USEEMAIL IS '사용자 전자우편';
COMMENT ON COLUMN icgis.CMT_GISU_D.USEOBJ IS '사용용도';
COMMENT ON COLUMN icgis.CMT_GISU_D.APLTYP IS '지리정보종류';
COMMENT ON COLUMN icgis.CMT_GISU_D.APTCD IS '제공방법_구분';
COMMENT ON COLUMN icgis.CMT_GISU_D.APTETC IS '제공방법_기타';
COMMENT ON COLUMN icgis.CMT_GISU_D.APLSHT IS '신청지역';
COMMENT ON COLUMN icgis.CMT_GISU_D.APLYMD IS '신청일';
COMMENT ON COLUMN icgis.CMT_GISU_D.RECYMD IS '접수처리일';
COMMENT ON COLUMN icgis.CMT_GISU_D.TAKCONT IS '인수관련사항';
COMMENT ON COLUMN icgis.CMT_GISU_D.REJYMD IS '반려_반려일';
COMMENT ON COLUMN icgis.CMT_GISU_D.REJCONT IS '반려_반려사유';
COMMENT ON COLUMN icgis.CMT_GISU_D.TRSYMD IS '처리완료일';
COMMENT ON COLUMN icgis.CMT_GISU_D.TRSCD IS '처리상태';
COMMENT ON COLUMN icgis.CMT_GISU_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_GISU_D.UPDATE_YMD IS '최종수정일';
COMMENT ON COLUMN icgis.CMT_GISU_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_GISU_D.GLOBALID IS 'GLOBALID';


--지리정보 사진내역

CREATE TABLE icgis.CMT_GISI_D(
	TYPE		NUMERIC(5)		NOT NULL	
	, IDN		INTEGER			NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, GUBUN		VARCHAR(1)		
	, NOTE		VARCHAR(100)	
	, FILENAME	VARCHAR(100)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_GISI_D ADD CONSTRAINT CMT_GISI_D_PK PRIMARY KEY (TYPE, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_GISI_D IS '지리정보 사진내역';
COMMENT ON COLUMN icgis.CMT_GISI_D.TYPE IS '테이블구분';
COMMENT ON COLUMN icgis.CMT_GISI_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_GISI_D.SEQ IS '순번';
COMMENT ON COLUMN icgis.CMT_GISI_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_GISI_D.GUBUN IS '구분';
COMMENT ON COLUMN icgis.CMT_GISI_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_GISI_D.FILENAME IS '파일명';
COMMENT ON COLUMN icgis.CMT_GISI_D.GLOBALID IS 'GLOBALID';


---지리정보자료 변동통보

CREATE TABLE icgis.CMT_GISE_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, TRSCD			VARCHAR(6)		NOT NULL
	, BSNCD			VARCHAR(6)		NOT NULL
	, BSNNAME		VARCHAR(100)	NOT NULL
	, BSNLOC		VARCHAR(100)	
	, BSNSCL		VARCHAR(300)	
	, BSNAMT		NUMERIC(38,8)	
	, BEGYMD		DATE			
	, ENDYMD		DATE			
	, BSNDPT		VARCHAR(80)		NOT NULL
	, USERNAME		VARCHAR(20)		NOT NULL
	, BSCNAME		VARCHAR(50)	
	, NOTE			VARCHAR(400)	
	, BEJYMD		DATE			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_GISE_D ADD CONSTRAINT CMT_GISE_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.CMT_GISE_D IS '지리정보자료 변동통보';
COMMENT ON COLUMN icgis.CMT_GISE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_GISE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_GISE_D.TRSCD IS '처리상태';
COMMENT ON COLUMN icgis.CMT_GISE_D.BSNCD IS '사업구분';
COMMENT ON COLUMN icgis.CMT_GISE_D.BSNNAME IS '사업명';
COMMENT ON COLUMN icgis.CMT_GISE_D.BSNLOC IS '사업위치';
COMMENT ON COLUMN icgis.CMT_GISE_D.BSNSCL IS '사업량';
COMMENT ON COLUMN icgis.CMT_GISE_D.BSNAMT IS '사업비';
COMMENT ON COLUMN icgis.CMT_GISE_D.BEGYMD IS '사업시작일';
COMMENT ON COLUMN icgis.CMT_GISE_D.ENDYMD IS '사업종료일';
COMMENT ON COLUMN icgis.CMT_GISE_D.BSNDPT IS '사업부서';
COMMENT ON COLUMN icgis.CMT_GISE_D.USERNAME IS '업무담당자';
COMMENT ON COLUMN icgis.CMT_GISE_D.BSCNAME IS '사업시공자';
COMMENT ON COLUMN icgis.CMT_GISE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_GISE_D.BEJYMD IS '작업시작일';
COMMENT ON COLUMN icgis.CMT_GISE_D.UPDATE_YMD IS '최종수정일';
COMMENT ON COLUMN icgis.CMT_GISE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_GISE_D.GLOBALID IS 'GLOBALID';


--지하철노선

CREATE TABLE icgis.GEL_SUB_L(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, NAM		VARCHAR(20)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.GEL_SUB_L IS '지하철노선';
COMMENT ON COLUMN icgis.GEL_SUB_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_SUB_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_SUB_L.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.GEL_SUB_L.SHAPE IS 'SHAPE';


--지하철역사

CREATE TABLE icgis.GEL_SUB_A(
	STATION		VARCHAR(20)			NOT NULL
	, OBJECTID	INTEGER				NOT NULL
	, SHAPE		public.geometry
);
ALTER TABLE icgis.GEL_SUB_A ADD CONSTRAINT GEL_SUB_A_PK PRIMARY KEY (STATION);
COMMENT ON TABLE icgis.GEL_SUB_A IS '지하철역사';
COMMENT ON COLUMN icgis.GEL_SUB_A.STATION IS '역';
COMMENT ON COLUMN icgis.GEL_SUB_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_SUB_A.SHAPE IS 'SHAPE';


--지형지번

CREATE TABLE icgis.GEL_PARC_A(
	OBJECTID	INTEGER				NOT NULL
	, FTC		VARCHAR(6)			NOT NULL
	, HJD_CDE	VARCHAR(10)			NOT NULL
	, BJD_CDE	VARCHAR(10)			NOT NULL
	, SAN_CHK	VARCHAR(2)	
	, FAC_NUM	VARCHAR(4)	
	, FAD_NUM	VARCHAR(4)	
	, NRD_NAM	VARCHAR(100)
	, NFC_NUM	VARCHAR(4)	
	, NFD_NUM	VARCHAR(4)	
	, PAR_LBL	VARCHAR(50)
	, FAE_CDE	VARCHAR(6)			NOT NULL
	, SGG_CDE	VARCHAR(5)			NOT NULL
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_PARC_A IS '지형지번';
COMMENT ON COLUMN icgis.GEL_PARC_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_PARC_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_PARC_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.GEL_PARC_A.BJD_CDE IS '법정읍면동코드';
COMMENT ON COLUMN icgis.GEL_PARC_A.SAN_CHK IS '지번_산구분';
COMMENT ON COLUMN icgis.GEL_PARC_A.FAC_NUM IS '지번_본번';
COMMENT ON COLUMN icgis.GEL_PARC_A.FAD_NUM IS '지번_부번';
COMMENT ON COLUMN icgis.GEL_PARC_A.NRD_NAM IS '새주소_도로명';
COMMENT ON COLUMN icgis.GEL_PARC_A.NFC_NUM IS '새주소_본번';
COMMENT ON COLUMN icgis.GEL_PARC_A.NFD_NUM IS '새주소_부번';
COMMENT ON COLUMN icgis.GEL_PARC_A.PAR_LBL IS '지번라벨';
COMMENT ON COLUMN icgis.GEL_PARC_A.FAE_CDE IS '지목코드';
COMMENT ON COLUMN icgis.GEL_PARC_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.GEL_PARC_A.SHAPE IS 'SHAPE';


--철도

CREATE TABLE icgis.GEL_RAIL_L(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)	
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_RAIL_L IS '철도';
COMMENT ON COLUMN icgis.GEL_RAIL_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_RAIL_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_RAIL_L.SHAPE IS 'SHAPE';


--코드내역

CREATE TABLE icgis.CMT_CODE_DT(
	LIST_ID			NUMERIC(5)		NOT NULL
	, CODE			VARCHAR(12)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, NAME			VARCHAR(200)	NOT NULL
	, DESCRIPTION	VARCHAR(511)	
	, SHORT_WORD	VARCHAR(127)	
	, SORT			NUMERIC(5)		
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CODE_DT ADD CONSTRAINT CMT_CODE_DT_PK PRIMARY KEY (LIST_ID, CODE);
COMMENT ON TABLE icgis.CMT_CODE_DT IS '코드내역';
COMMENT ON COLUMN icgis.CMT_CODE_DT.LIST_ID IS 'ID';
COMMENT ON COLUMN icgis.CMT_CODE_DT.CODE IS '코드';
COMMENT ON COLUMN icgis.CMT_CODE_DT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CODE_DT.NAME IS '이름';
COMMENT ON COLUMN icgis.CMT_CODE_DT.DESCRIPTION IS '설명';
COMMENT ON COLUMN icgis.CMT_CODE_DT.SHORT_WORD IS '약어';
COMMENT ON COLUMN icgis.CMT_CODE_DT.SORT IS '정렬';
COMMENT ON COLUMN icgis.CMT_CODE_DT.GLOBALID IS 'GLOBALID';


---코드리스트

CREATE TABLE icgis.CMT_CODE_LT(
	ID				NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, NAME			VARCHAR(127)	NOT NULL
	, DESCRIPTION		VARCHAR(255)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CODE_LT ADD CONSTRAINT CMT_CODE_LT_PK PRIMARY KEY (ID);
COMMENT ON TABLE icgis.CMT_CODE_LT IS '코드리스트';
COMMENT ON COLUMN icgis.CMT_CODE_LT.ID IS 'ID';
COMMENT ON COLUMN icgis.CMT_CODE_LT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CODE_LT.NAME IS '이름';
COMMENT ON COLUMN icgis.CMT_CODE_LT.DESCRIPTION IS '설명';
COMMENT ON COLUMN icgis.CMT_CODE_LT.GLOBALID IS 'GLOBALID';


--코드사용내용

CREATE TABLE icgis.CMT_CODE_TB(
	LIST_ID			NUMERIC(5)		NOT NULL
	, TABLE_NAME	VARCHAR(30)		NOT NULL
	, COLUMN_NAME	VARCHAR(30)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.CMT_CODE_TB ADD CONSTRAINT CMT_CODE_TB_PK PRIMARY KEY (LIST_ID, TABLE_NAME, COLUMN_NAME);
COMMENT ON TABLE icgis.CMT_CODE_TB IS '코드사용내용';
COMMENT ON COLUMN icgis.CMT_CODE_TB.LIST_ID IS 'ID';
COMMENT ON COLUMN icgis.CMT_CODE_TB.TABLE_NAME IS '테이블이름';
COMMENT ON COLUMN icgis.CMT_CODE_TB.COLUMN_NAME IS '컬럼이름';
COMMENT ON COLUMN icgis.CMT_CODE_TB.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CODE_TB.GLOBALID IS 'GLOBALID';


-- 통계서비스정의

CREATE TABLE icgis.CMT_STAT_D(
	IDN			INTEGER			NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, GUB1		VARCHAR(1)		NOT NULL
	, GUB2		VARCHAR(20)		NOT NULL
	, GUB3		VARCHAR(20)		NOT NULL
	, GUB4		VARCHAR(4)		NOT NULL
	, TNAME		VARCHAR(20)		NOT NULL
	, STYPE		VARCHAR(1)		NOT NULL
	, GLOBALID	CHAR(38)		NOT NULL
);	
ALTER TABLE icgis.CMT_STAT_D ADD CONSTRAINT CMT_STAT_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.CMT_STAT_D IS '통계서비스정의';
COMMENT ON COLUMN icgis.CMT_STAT_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.CMT_STAT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_STAT_D.GUB1 IS 'GUB1';
COMMENT ON COLUMN icgis.CMT_STAT_D.GUB2 IS 'GUB2';
COMMENT ON COLUMN icgis.CMT_STAT_D.GUB3 IS 'GUB3';
COMMENT ON COLUMN icgis.CMT_STAT_D.GUB4 IS 'GUB4';
COMMENT ON COLUMN icgis.CMT_STAT_D.TNAME IS 'TNAME';
COMMENT ON COLUMN icgis.CMT_STAT_D.STYPE IS '소분류유형';
COMMENT ON COLUMN icgis.CMT_STAT_D.GLOBALID IS 'GLOBALID';


--통계서비스정의

CREATE TABLE icgis.CMT_STATISTIC_D(
	IDN			INTEGER			NOT NULL
	, OBJECTID	INTEGER			NOT NULL
	, GUBUN1	VARCHAR(20)
	, GUBUN2	VARCHAR(20)
	, SCOPE		VARCHAR(1)	
	, YEAR		VARCHAR(4)	
	, SNAME		VARCHAR(20)
	, LNAME		VARCHAR(40)
	, SQL		VARCHAR(200)
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_STATISTIC_D ADD CONSTRAINT CMT_STATISTIC_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.CMT_STATISTIC_D IS '통계서비스정의';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.IDN IS '번호';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.GUBUN1 IS '항목분류';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.GUBUN2 IS '세부항목분류';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.SCOPE IS '범위';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.YEAR IS '년도';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.SNAME IS '서비스명';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.LNAME IS '레이어명';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.SQL IS '쿼리문';
COMMENT ON COLUMN icgis.CMT_STATISTIC_D.GLOBALID IS 'GLOBALID';


--통계서비스필드정의

CREATE TABLE icgis.CMT_STATF_D(
	IDN				INTEGER			NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, FNAME			VARCHAR(20)		NOT NULL
	, FANAME		VARCHAR(20)		NOT NULL
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_STATF_D ADD CONSTRAINT CMT_STATF_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.CMT_STATF_D IS '통계서비스필드정의';
COMMENT ON COLUMN icgis.CMT_STATF_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.CMT_STATF_D.SEQ IS '파일일련번호';
COMMENT ON COLUMN icgis.CMT_STATF_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_STATF_D.FNAME IS '파일명';
COMMENT ON COLUMN icgis.CMT_STATF_D.FANAME IS 'FANAME';
COMMENT ON COLUMN icgis.CMT_STATF_D.GLOBALID IS 'GLOBALID';


--편집로그

CREATE TABLE icgis.CMT_EDIT_LOG(
	LAYER_ID		VARCHAR(50)		NOT NULL
	, MNGT			VARCHAR(7)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, UPDATE_YMD	DATE			NOT NULL
	, UPDATE_NAM	VARCHAR(50)
	, LAYER_NAM		VARCHAR(50)		NOT NULL
	, EDIT_TYPE		VARCHAR(10)
);
ALTER TABLE icgis.CMT_EDIT_LOG ADD CONSTRAINT CMT_EDIT_LOG_PK PRIMARY KEY (LAYER_ID, MNGT);
COMMENT ON TABLE icgis.CMT_EDIT_LOG IS '편집로그';
COMMENT ON COLUMN icgis.CMT_EDIT_LOG.LAYER_ID IS '레이어ID';
COMMENT ON COLUMN icgis.CMT_EDIT_LOG.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.CMT_EDIT_LOG.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_EDIT_LOG.UPDATE_YMD IS '변경일';
COMMENT ON COLUMN icgis.CMT_EDIT_LOG.UPDATE_NAM IS '변경자명';
COMMENT ON COLUMN icgis.CMT_EDIT_LOG.LAYER_NAM IS '레이어명';
COMMENT ON COLUMN icgis.CMT_EDIT_LOG.EDIT_TYPE IS '편집유형';


--표고점

CREATE TABLE icgis.GEL_PYOGO_P(
	OBJECTID	INTEGER				NOT NULL
	, FTC		VARCHAR(6)	
	, HSL		NUMERIC(38,8)
	, SHAPE		public.geometry
);
COMMENT ON TABLE icgis.GEL_PYOGO_P IS '표고점';
COMMENT ON COLUMN icgis.GEL_PYOGO_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_PYOGO_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_PYOGO_P.HSL IS '고도값';
COMMENT ON COLUMN icgis.GEL_PYOGO_P.SHAPE IS 'SHAPE';


-- 하자검사내역

CREATE TABLE icgis.CMT_CNHJ_D(
	MNGT			VARCHAR(6)		NOT NULL
	, IDN			VARCHAR(12)		NOT NULL
	, SEQ			NUMERIC(5)		NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, HTYPE			VARCHAR(7)		
	, STATE			VARCHAR(20)	
	, NAM			VARCHAR(20)	
	, YMD			DATE			
	, CONT			VARCHAR(1000)	
	, BFYMD			DATE			
	, GTYMD			DATE			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
	
);
ALTER TABLE icgis.CMT_CNHJ_D ADD CONSTRAINT CMT_CNHJ_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.CMT_CNHJ_D IS '하자검사내역';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.IDN IS '계약번호';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.HTYPE IS '검사구분';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.STATE IS '검사자_직명';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.NAM IS '검사자_성명';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.YMD IS '검사일';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.CONT IS '하자내용';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.BFYMD IS '보수지시일';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.GTYMD IS '보수완료일';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CNHJ_D.GLOBALID IS 'GLOBALID';


--하천 (예약어 LELEFTFT 컬럼 有 실행 불가. 주석처리)

CREATE TABLE icgis.GEL_SRIVER_A(
	IDN				INTEGER			NOT NULL
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, NAM			VARCHAR(20)	
	, RNAM			VARCHAR(20)	
	, MNGT			VARCHAR(6)		
	, RGUB			VARCHAR(6)		
	, LENG			INTEGER			
	, SRIVER		VARCHAR(60)	
	, ERIVER		VARCHAR(60)	
	, ARA			INTEGER			
	, PLAMT			NUMERIC(38,8)	
	, SLOPE			INTEGER			
	, PWIDTH		NUMERIC(38,8)	
	, CWIDTH		NUMERIC(38,8)	
	, AGARA			NUMERIC(38,8)	
	, BUILD			INTEGER			
	, GLENG			INTEGER			
	, COST			INTEGER			
	, HEIGHT		NUMERIC(38,8)	
	, DWIDTH		NUMERIC(38,8)	
	, SSLOPE		NUMERIC(38,8)	
	, HLENG			INTEGER			
	, HTYPE			VARCHAR(10)	
	, YMD			DATE			
--	, LEFT			INTEGER			
--	, RIGHT			INTEGER			
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, SHAPE			public.geometry
);
ALTER TABLE icgis.GEL_SRIVER_A ADD CONSTRAINT GEL_SRIVER_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.GEL_SRIVER_A IS '하천';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.IDN IS '허가번호';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.RNAM IS '신고인_성명';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.RGUB IS '하천구분';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.LENG IS '연장';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.SRIVER IS '하천기점';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.ERIVER IS '하천종점';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.ARA IS '총면적';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.PLAMT IS '계획홍수량';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.SLOPE IS '하상구배';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.PWIDTH IS '계획하폭';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.CWIDTH IS '현하폭';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.AGARA IS '농지';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.BUILD IS '건물';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.GLENG IS '개수연장';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.COST IS '침수피해액';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.HEIGHT IS '표고';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.DWIDTH IS '득마루폭';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.SSLOPE IS '비탈구배';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.HLENG IS '호안연장';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.HTYPE IS '검사구분';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.YMD IS '침수시작일자';
--COMMENT ON COLUMN icgis.GEL_SRIVER_A.LEFT IS '미개수좌안';
--COMMENT ON COLUMN icgis.GEL_SRIVER_A.RIGHT IS '미개수우안';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.GEL_SRIVER_A.SHAPE IS 'SHAPE';


---행정구역코드

CREATE TABLE icgis.CMT_HJADMCD_D(
	GUNGU_CODE		VARCHAR(5)		NOT NULL	
	, DONG_CODE		VARCHAR(10)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUNGU_NAME	VARCHAR(20)		NOT NULL
	, DONG_NAME		VARCHAR(20)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_HJADMCD_D ADD CONSTRAINT CMT_HJADMCD_D_PK PRIMARY KEY (GUNGU_CODE);
COMMENT ON TABLE icgis.CMT_HJADMCD_D IS '행정구역코드';
COMMENT ON COLUMN icgis.CMT_HJADMCD_D.GUNGU_CODE IS '군구코드';
COMMENT ON COLUMN icgis.CMT_HJADMCD_D.DONG_CODE IS '읍면동코드';
COMMENT ON COLUMN icgis.CMT_HJADMCD_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_HJADMCD_D.GUNGU_NAME IS '군구명';
COMMENT ON COLUMN icgis.CMT_HJADMCD_D.DONG_NAME IS '읍면동명';
COMMENT ON COLUMN icgis.CMT_HJADMCD_D.GLOBALID IS 'GLOBALID';


---현장순찰내역

CREATE TABLE icgis.CMT_OBSV_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, TITLE			VARCHAR(50)		NOT NULL
	, BGUB			VARCHAR(6)		
	, JCONT			VARCHAR(200)	NOT NULL
	, JYMD			DATE			NOT NULL
	, LOC			VARCHAR(100)	
	, JDPCD			VARCHAR(20)	
	, JDPNM			VARCHAR(80)	
	, JID			VARCHAR(13)	
	, JNAM			VARCHAR(20)	
	, JTEL			VARCHAR(15)	
	, JGUB			VARCHAR(6)		
	, TDPCD			VARCHAR(20)	
	, TDPNM			VARCHAR(80)	
	, TYMD			DATE			
	, CDPCD			VARCHAR(20)	
	, CDPNM			VARCHAR(80)	
	, CID			VARCHAR(13)	
	, CNAM			VARCHAR(20)	
	, TCONT			VARCHAR(300)	
	, TRSLT			VARCHAR(6)		NOT NULL
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, DRYMD			DATE			
	, DRCONT		VARCHAR(100)	
	, TRYMD			DATE			
	, TRCONT		VARCHAR(100)	
	, FYMD			DATE			
	, DPYMD			DATE			
	, OIDN			INTEGER			
	, DEL			VARCHAR(1)		
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_OBSV_D ADD CONSTRAINT CMT_OBSV_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.CMT_OBSV_D IS '현장순찰내역';
COMMENT ON COLUMN icgis.CMT_OBSV_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.CMT_OBSV_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_OBSV_D.TITLE IS '제보제목';
COMMENT ON COLUMN icgis.CMT_OBSV_D.BGUB IS '보고구분';
COMMENT ON COLUMN icgis.CMT_OBSV_D.JCONT IS '제보내역';
COMMENT ON COLUMN icgis.CMT_OBSV_D.JYMD IS '제보일자';
COMMENT ON COLUMN icgis.CMT_OBSV_D.LOC IS '위치';
COMMENT ON COLUMN icgis.CMT_OBSV_D.JDPCD IS '제보자_부서코드';
COMMENT ON COLUMN icgis.CMT_OBSV_D.JDPNM IS '제보자_부서명';
COMMENT ON COLUMN icgis.CMT_OBSV_D.JID IS '제보자_ID';
COMMENT ON COLUMN icgis.CMT_OBSV_D.JNAM IS '제보자_성명';
COMMENT ON COLUMN icgis.CMT_OBSV_D.JTEL IS '제보자_전화번호';
COMMENT ON COLUMN icgis.CMT_OBSV_D.JGUB IS '제보분야';
COMMENT ON COLUMN icgis.CMT_OBSV_D.TDPCD IS '처리부서지정_부서코드';
COMMENT ON COLUMN icgis.CMT_OBSV_D.TDPNM IS '처리부서지정_부서명';
COMMENT ON COLUMN icgis.CMT_OBSV_D.TYMD IS '조치일자';
COMMENT ON COLUMN icgis.CMT_OBSV_D.CDPCD IS '조치자_부서코드';
COMMENT ON COLUMN icgis.CMT_OBSV_D.CDPNM IS '조치자_부서명';
COMMENT ON COLUMN icgis.CMT_OBSV_D.CID IS '조치자_ID';
COMMENT ON COLUMN icgis.CMT_OBSV_D.CNAM IS '조치자_성명';
COMMENT ON COLUMN icgis.CMT_OBSV_D.TCONT IS '조치내역';
COMMENT ON COLUMN icgis.CMT_OBSV_D.TRSLT IS '처리상태';
COMMENT ON COLUMN icgis.CMT_OBSV_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_OBSV_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_OBSV_D.DRYMD IS '조치부서반려일';
COMMENT ON COLUMN icgis.CMT_OBSV_D.DRCONT IS '조치부서반려사유';
COMMENT ON COLUMN icgis.CMT_OBSV_D.TRYMD IS '조치반려일';
COMMENT ON COLUMN icgis.CMT_OBSV_D.TRCONT IS '조치반려사유';
COMMENT ON COLUMN icgis.CMT_OBSV_D.FYMD IS '처리완료일';
COMMENT ON COLUMN icgis.CMT_OBSV_D.DPYMD IS '처리부서지정일';
COMMENT ON COLUMN icgis.CMT_OBSV_D.OIDN IS '외부개별번호';
COMMENT ON COLUMN icgis.CMT_OBSV_D.DEL IS '삭제FLAG';
COMMENT ON COLUMN icgis.CMT_OBSV_D.GLOBALID IS 'GLOBALID';


-------------------------------------------------------------------------
---// ## 녹지 DDL
--------------------------------------------------------------------------


--GRT_PFACIL_D

CREATE TABLE icgis.GRT_PFACIL_D(
	IDN			VARCHAR(8)		NOT NULL	
	, FTC		VARCHAR(6)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, PIDN		VARCHAR(8)		
	, USG		VARCHAR(6)		
	, FUND		VARCHAR(6)		
	, CDYMD		DATE			
	, AGYMD		DATE			
	, POYMD		DATE			
	, DRGYMD	DATE			
	, RGYMD		DATE			
	, REGNO		VARCHAR(10)	
	, EMCH		VARCHAR(100)	
	, DGMNG		VARCHAR(100)	
	, NOTE		VARCHAR(50)	
	, WSYMD		DATE			
	, WEYMD		DATE			
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PFACIL_D ADD CONSTRAINT GRT_PFACIL_D_PK PRIMARY KEY (IDN, FTC);
COMMENT ON TABLE icgis.GRT_PFACIL_D IS 'GRT_PFACIL_D';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.FTC IS '허가번호';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.PIDN IS '펌프장_개별번호';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.USG IS '용도';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.FUND IS 'FUND';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.CDYMD IS 'CDYMD';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.AGYMD IS '연혁_시행허가일';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.POYMD IS '연혁_공용개시일';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.DRGYMD IS '가옥대장등재일';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.RGYMD IS '지적고시_고시일자';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.REGNO IS '작성자ID';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.EMCH IS '기타시설내역_전동기계시설';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.DGMNG IS '기타시설내역_위험시설관리방법';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRT_PFACIL_D.GLOBALID IS 'GLOBALID';


--GRT_PMBLD_D

CREATE TABLE icgis.GRT_PMBLD_D(
	FTC			VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(8)		NOT NULL	
	, NUM		VARCHAR(3)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, USG		VARCHAR(6)	
	, STR		VARCHAR(20)
	, TCNT		INTEGER		
	, BCNT		INTEGER		
	, TARA		NUMERIC(38,8)
	, LARA		NUMERIC(38,8)
	, NOTE		VARCHAR(50)
	, GLOBALID	CHAR(38)		NOT NULL
	
);
ALTER TABLE icgis.GRT_PMBLD_D ADD CONSTRAINT GRT_PMBLD_D_PK PRIMARY KEY (FTC, IDN, NUM);
COMMENT ON TABLE icgis.GRT_PMBLD_D IS 'GRT_PMBLD_D';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.NUM IS '지정번호';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.USG IS '용도';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.STR IS 'STR';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.TCNT IS 'TCNT';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.BCNT IS '변경사항_변경전';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.TARA IS '부지면적';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.LARA IS '조경시설등';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PMBLD_D.GLOBALID IS 'GLOBALID';


---GRT_PMCNST_D

CREATE TABLE icgis.GRT_PMCNST_D(
	FTC			VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(8)		NOT NULL	
	, NUM		VARCHAR(3)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, USG		VARCHAR(6)		
	, STR		VARCHAR(20)	
	, BARA		NUMERIC(38,8)	
	, LARA		NUMERIC(38,8)	
	, NOTE		VARCHAR(100)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PMCNST_D ADD CONSTRAINT GRT_PMCNST_D_PK PRIMARY KEY (FTC, IDN, NUM);
COMMENT ON TABLE icgis.GRT_PMCNST_D IS 'GRT_PMCNST_D';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.NUM IS '지정번호';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.USG IS '용도';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.STR IS 'STR';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.BARA IS '인근지부설_면적';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.LARA IS '조경시설등';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PMCNST_D.GLOBALID IS 'GLOBALID';


--GRT_PMINCDET_D

CREATE TABLE icgis.GRT_PMINCDET_D(
	IDN			VARCHAR(8)		NOT NULL	
	, FTC		VARCHAR(6)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, NUM		VARCHAR(3)		
	, YMD		DATE			
	, COST		NUMERIC(38,8)	
	, INCDT		VARCHAR(20)
	, DECDT		VARCHAR(20)
	, NOTE		VARCHAR(50)
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PMINCDET_D ADD CONSTRAINT GRT_PMINCDET_D_PK PRIMARY KEY (IDN, FTC);
COMMENT ON TABLE icgis.CMT_BIMG_D IS 'GRT_PMINCDET_D';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.FTC IS '허가번호';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.NUM IS '지정번호';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.COST IS '침수피해액';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.INCDT IS '증내역';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.DECDT IS '감내역';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PMINCDET_D.GLOBALID IS 'GLOBALID';


---가로수 변동사항

CREATE TABLE icgis.GRT_TRCHG_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, SYMD			DATE			
	, EYMD			DATE			
	, DTCD			VARCHAR(6)		
	, AMT			INTEGER			
	, CHGCD			VARCHAR(6)		
	, FACILCD		VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
	
);
ALTER TABLE icgis.GRT_TRCHG_D ADD CONSTRAINT GRT_TRCHG_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.GRT_TRCHG_D IS '가로수 변동사항';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.SYMD IS '시작 년월일';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.EYMD IS '종료 년월일';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.DTCD IS '내역_변동사항코드';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.AMT IS '내역_수량_설치량';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.CHGCD IS '내역_수종코드';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.FACILCD IS '내역_시설코드';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_TRCHG_D.GLOBALID IS 'GLOBALID';


---가로화단 및 녹지

CREATE TABLE icgis.GRL_GZ_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)			
	, DCD			VARCHAR(10)		
	, MNGT			VARCHAR(6)			
	, NAM			VARCHAR(40)		
	, MNGNUM		VARCHAR(9)			
	, ADDR			VARCHAR(50)		
	, ARA			NUMERIC(38,8)		
	, WID			NUMERIC(38,8)		
	, LENG			NUMERIC(38,8)		
	, YMD			DATE				
	, OWR			VARCHAR(6)			
	, ETYPE			VARCHAR(6)			
	, LWARA			NUMERIC(38,8)		
	, NOTE			VARCHAR(100)		
	, WSYMD			DATE				
	, WEYMD			DATE				
	, CIDN			VARCHAR(10)		
	, CMNGT			VARCHAR(6)			
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.GRL_GZ_A ADD CONSTRAINT GRL_GZ_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_GZ_A IS '가로화단 및 녹지';
COMMENT ON COLUMN icgis.GRL_GZ_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_GZ_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_GZ_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_GZ_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_GZ_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_GZ_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_GZ_A.NAM IS '명칭';
COMMENT ON COLUMN icgis.GRL_GZ_A.MNGNUM IS '대장관리번호';
COMMENT ON COLUMN icgis.GRL_GZ_A.ADDR IS '위치';
COMMENT ON COLUMN icgis.GRL_GZ_A.ARA IS '면적';
COMMENT ON COLUMN icgis.GRL_GZ_A.WID IS '폭';
COMMENT ON COLUMN icgis.GRL_GZ_A.LENG IS '연장';
COMMENT ON COLUMN icgis.GRL_GZ_A.YMD IS '조성년도';
COMMENT ON COLUMN icgis.GRL_GZ_A.OWR IS '토지소유구분';
COMMENT ON COLUMN icgis.GRL_GZ_A.ETYPE IS '토지유형';
COMMENT ON COLUMN icgis.GRL_GZ_A.LWARA IS '잔디식재면적';
COMMENT ON COLUMN icgis.GRL_GZ_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_GZ_A.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRL_GZ_A.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRL_GZ_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_GZ_A.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_GZ_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_GZ_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_GZ_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_GZ_A.SHAPE IS 'SHAPE';


---공원

CREATE TABLE icgis.GRL_PARK_A(
	FTC				VARCHAR(6)				NOT NULL		
	, IDN			INTEGER					NOT NULL		
	, OBJECTID		INTEGER					NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, MNGNUM		VARCHAR(9)		
	, NAM			VARCHAR(40)	
	, KND			VARCHAR(6)		
	, ADDR			VARCHAR(70)	
	, BDARA			NUMERIC(38,8)	
	, CRTO			NUMERIC(38,8)	
	, PKARA			NUMERIC(38,8)	
	, FRTO			NUMERIC(38,8)	
	, LWARA			NUMERIC(38,8)	
	, DARA			NUMERIC(38,8)	
	, UARA			NUMERIC(38,8)	
	, HIST			VARCHAR(254)	
	, PPLAN			VARCHAR(40)	
	, PYMD			DATE			
	, PARA			NUMERIC(38,8)	
	, MPLAN			VARCHAR(40)	
	, MYMD			DATE			
	, MARA			NUMERIC(38,8)	
	, REG			VARCHAR(40)	
	, RGYMD			DATE			
	, RGARA			NUMERIC(38,8)	
	, PLYMD			DATE			
	, AGYMD			DATE			
	, SYMD			DATE			
	, EYMD			DATE			
	, POYMD			DATE			
	, ETCYMD		DATE			
	, ETC			VARCHAR(50)	
	, EMCH			VARCHAR(100)	
	, DGMNG			VARCHAR(100)	
	, WSYMD			DATE			
	, WEYMD			DATE			
	, NOTE			VARCHAR(100)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)				NOT NULL
	, SHAPE			public.geometry			
);
ALTER TABLE icgis.GRL_PARK_A ADD CONSTRAINT GRL_PARK_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_PARK_A IS '공원';
COMMENT ON COLUMN icgis.GRL_PARK_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_PARK_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_PARK_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_PARK_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_PARK_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_PARK_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_PARK_A.MNGNUM IS '공원관리번호';
COMMENT ON COLUMN icgis.GRL_PARK_A.NAM IS '공원명';
COMMENT ON COLUMN icgis.GRL_PARK_A.KND IS '공원종류';
COMMENT ON COLUMN icgis.GRL_PARK_A.ADDR IS '소재지';
COMMENT ON COLUMN icgis.GRL_PARK_A.BDARA IS '건평';
COMMENT ON COLUMN icgis.GRL_PARK_A.CRTO IS '건폐율';
COMMENT ON COLUMN icgis.GRL_PARK_A.PKARA IS '시설면적';
COMMENT ON COLUMN icgis.GRL_PARK_A.FRTO IS '부지면적대시설부지비율';
COMMENT ON COLUMN icgis.GRL_PARK_A.LWARA IS '잔디 조경면적';
COMMENT ON COLUMN icgis.GRL_PARK_A.DARA IS '조성면적';
COMMENT ON COLUMN icgis.GRL_PARK_A.UARA IS '미조성면적';
COMMENT ON COLUMN icgis.GRL_PARK_A.HIST IS '조성유래';
COMMENT ON COLUMN icgis.GRL_PARK_A.PPLAN IS '도시계획_결정고시';
COMMENT ON COLUMN icgis.GRL_PARK_A.PYMD IS '도시계획_결정고시일자';
COMMENT ON COLUMN icgis.GRL_PARK_A.PARA IS '도시계획_결정고시면적';
COMMENT ON COLUMN icgis.GRL_PARK_A.MPLAN IS '조성계획_결정고시';
COMMENT ON COLUMN icgis.GRL_PARK_A.MYMD IS '조성계획_결정고시일';
COMMENT ON COLUMN icgis.GRL_PARK_A.MARA IS '조성계획_결정고시면적';
COMMENT ON COLUMN icgis.GRL_PARK_A.REG IS '지적고시_고시명';
COMMENT ON COLUMN icgis.GRL_PARK_A.RGYMD IS '지적고시_고시일자';
COMMENT ON COLUMN icgis.GRL_PARK_A.RGARA IS '지적고시_고시면적';
COMMENT ON COLUMN icgis.GRL_PARK_A.PLYMD IS '연혁';
COMMENT ON COLUMN icgis.GRL_PARK_A.AGYMD IS '연혁_시행허가일';
COMMENT ON COLUMN icgis.GRL_PARK_A.SYMD IS '연혁_사업착수일';
COMMENT ON COLUMN icgis.GRL_PARK_A.EYMD IS '연혁_사업준공일';
COMMENT ON COLUMN icgis.GRL_PARK_A.POYMD IS '연혁_공용개시일';
COMMENT ON COLUMN icgis.GRL_PARK_A.ETCYMD IS '연혁_기타일자';
COMMENT ON COLUMN icgis.GRL_PARK_A.ETC IS '연혁_기타';
COMMENT ON COLUMN icgis.GRL_PARK_A.EMCH IS '기타시설내역_전동기계시설';
COMMENT ON COLUMN icgis.GRL_PARK_A.DGMNG IS '기타시설내역_위험시설관리방법';
COMMENT ON COLUMN icgis.GRL_PARK_A.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRL_PARK_A.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRL_PARK_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_PARK_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_PARK_A.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_PARK_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_PARK_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_PARK_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_PARK_A.SHAPE IS 'SHAPE';


---공원 제어함
--예약어 ARRAY 사용으로 주석 처리 

CREATE TABLE icgis.GRL_BEJN_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CTLNO			VARCHAR(30)	
	, KEPCO			VARCHAR(30)	
	, ECON			VARCHAR(6)		
	, BOLSP			VARCHAR(30)	
	, SPPWST		VARCHAR(30)	
	, SPPWCD		VARCHAR(6)		
	, RECE			VARCHAR(6)		
	, PWSR			VARCHAR(10)	
	, SWCT			INTEGER			
	, EYONG			INTEGER			
	, SOOWAY		VARCHAR(30)	
	, WFRM			VARCHAR(10)	
	, CCNT			NUMERIC(5)		
	, SPAN			NUMERIC(5)		
	, YMD			DATE			
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
--	, ARRAY			VARCHAR(6)		
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry	
	, PFTC			VARCHAR(6)		NOT NULL
	, PIDN			INTEGER			NOT NULL
	
);

ALTER TABLE icgis.GRL_BEJN_P ADD CONSTRAINT GRL_BEJN_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_BEJN_P IS '공원 제어함';
COMMENT ON COLUMN icgis.GRL_BEJN_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_BEJN_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_BEJN_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_BEJN_P.CTLNO IS '관리번호';
COMMENT ON COLUMN icgis.GRL_BEJN_P.KEPCO IS '한전고객번호';
COMMENT ON COLUMN icgis.GRL_BEJN_P.ECON IS '절전기';
COMMENT ON COLUMN icgis.GRL_BEJN_P.BOLSP IS '계량기번호';
COMMENT ON COLUMN icgis.GRL_BEJN_P.SPPWST IS '제어함규격';
COMMENT ON COLUMN icgis.GRL_BEJN_P.SPPWCD IS '계약종별';
COMMENT ON COLUMN icgis.GRL_BEJN_P.RECE IS '수신기';
COMMENT ON COLUMN icgis.GRL_BEJN_P.PWSR IS '전압';
COMMENT ON COLUMN icgis.GRL_BEJN_P.SWCT IS '누전기차단수량';
COMMENT ON COLUMN icgis.GRL_BEJN_P.EYONG IS '계약용량';
COMMENT ON COLUMN icgis.GRL_BEJN_P.SOOWAY IS '수전방식';
COMMENT ON COLUMN icgis.GRL_BEJN_P.WFRM IS '배선방식';
COMMENT ON COLUMN icgis.GRL_BEJN_P.CCNT IS '회로수';
COMMENT ON COLUMN icgis.GRL_BEJN_P.SPAN IS '등주평균경간';
COMMENT ON COLUMN icgis.GRL_BEJN_P.YMD IS '설치일';
COMMENT ON COLUMN icgis.GRL_BEJN_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_BEJN_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_BEJN_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_BEJN_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_BEJN_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_BEJN_P.UPDATE_NAM IS '최종수정자명';
--COMMENT ON COLUMN icgis.GRL_BEJN_P.ARRAY IS '가로등배열방법';
COMMENT ON COLUMN icgis.GRL_BEJN_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_BEJN_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.GRL_BEJN_P.PFTC IS '공원_지형지물부호';
COMMENT ON COLUMN icgis.GRL_BEJN_P.PIDN IS '공원_개별번호';


--공원관리허가내역

CREATE TABLE icgis.GRT_PMLCN_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, LCNNUM		VARCHAR(10)
	, LYMD			DATE		
	, LPRD			VARCHAR(20)
	, YCHG			NUMERIC(38,8)
	, LDADDR		VARCHAR(60)
	, LDNAM			VARCHAR(40)
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
	
);
ALTER TABLE icgis.GRT_PMLCN_D ADD CONSTRAINT GRT_PMLCN_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.GRT_PMLCN_D IS '공원관리허가내역';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.LCNNUM IS '허가번호';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.LYMD IS '허가년월일';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.LPRD IS '허가기간';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.YCHG IS '연간사용료';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.LDADDR IS '수허가자 주소';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.LDNAM IS '수허가자 성명';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PMLCN_D.GLOBALID IS 'GLOBALID';


---공원등주

CREATE TABLE icgis.GRL_LGHT_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, CTLNO			VARCHAR(30)		
	, YMD			DATE				
	, SLG			VARCHAR(6)			
	, SST			VARCHAR(20)		
	, POLESH		VARCHAR(6)			
	, JOOHEI		NUMERIC(38,8)		
	, POLETY		VARCHAR(6)			
	, POLEMA		VARCHAR(6)			
	, ARMST			VARCHAR(6)			
	, ARMLEN		NUMERIC(38,8)		
	, ARMMA			VARCHAR(6)			
	, EDGES			NUMERIC(5)			
	, BALLS			NUMERIC(5)			
	, POLEKD		VARCHAR(6)			
	, LSPAN			NUMERIC(5)			
	, RSPAN			NUMERIC(5)			
	, IBRT			NUMERIC(5)			
	, IART			NUMERIC(5)			
	, GBRT			NUMERIC(5)			
	, GART			NUMERIC(5)			
	, GVOLT			NUMERIC(5)			
	, RECE			VARCHAR(6)			
	, PLSH			VARCHAR(6)			
	, PLCD			VARCHAR(6)			
	, PLCA			NUMERIC(5)			
	, PLPW			VARCHAR(6)			
	, MNGT			VARCHAR(6)			
	, NOTE			VARCHAR(50)		
	, CIDN			VARCHAR(10)		
	, CMNGT			VARCHAR(6)			
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, LGUB			VARCHAR(6)			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry			
	, HFTC			VARCHAR(6)			NOT NULL
	, HIDN			INTEGER				NOT NULL
	, PFTC			VARCHAR(6)			NOT NULL
	, PIDN			INTEGER				NOT NULL
	, JFTC			VARCHAR(6)			NOT NULL
	, JIDN			INTEGER				NOT NULL
	
);
ALTER TABLE icgis.GRL_LGHT_P ADD CONSTRAINT GRL_LGHT_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_LGHT_P IS '공원등주';
COMMENT ON COLUMN icgis.GRL_LGHT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_LGHT_P.CTLNO IS '관리번호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.GRL_LGHT_P.SLG IS '선로종류';
COMMENT ON COLUMN icgis.GRL_LGHT_P.SST IS '선로규격';
COMMENT ON COLUMN icgis.GRL_LGHT_P.POLESH IS '등주규격';
COMMENT ON COLUMN icgis.GRL_LGHT_P.JOOHEI IS '등주높이';
COMMENT ON COLUMN icgis.GRL_LGHT_P.POLETY IS '등주형식';
COMMENT ON COLUMN icgis.GRL_LGHT_P.POLEMA IS '등주재질';
COMMENT ON COLUMN icgis.GRL_LGHT_P.ARMST IS 'ARM규격';
COMMENT ON COLUMN icgis.GRL_LGHT_P.ARMLEN IS 'ARM길이';
COMMENT ON COLUMN icgis.GRL_LGHT_P.ARMMA IS 'ARM재질';
COMMENT ON COLUMN icgis.GRL_LGHT_P.EDGES IS '등주수량';
COMMENT ON COLUMN icgis.GRL_LGHT_P.BALLS IS '등기구수량';
COMMENT ON COLUMN icgis.GRL_LGHT_P.POLEKD IS '등주종류';
COMMENT ON COLUMN icgis.GRL_LGHT_P.LSPAN IS '경간 좌';
COMMENT ON COLUMN icgis.GRL_LGHT_P.RSPAN IS '경간 우';
COMMENT ON COLUMN icgis.GRL_LGHT_P.IBRT IS '절연저항 전';
COMMENT ON COLUMN icgis.GRL_LGHT_P.IART IS '절연저항 후';
COMMENT ON COLUMN icgis.GRL_LGHT_P.GBRT IS '접지저항 전';
COMMENT ON COLUMN icgis.GRL_LGHT_P.GART IS '접지저항 후';
COMMENT ON COLUMN icgis.GRL_LGHT_P.GVOLT IS '대지전압';
COMMENT ON COLUMN icgis.GRL_LGHT_P.RECE IS '수신기';
COMMENT ON COLUMN icgis.GRL_LGHT_P.PLSH IS '등기구모형';
COMMENT ON COLUMN icgis.GRL_LGHT_P.PLCD IS '등광원종류';
COMMENT ON COLUMN icgis.GRL_LGHT_P.PLCA IS '등광원용량';
COMMENT ON COLUMN icgis.GRL_LGHT_P.PLPW IS '등광원전원';
COMMENT ON COLUMN icgis.GRL_LGHT_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_LGHT_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_LGHT_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_LGHT_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_LGHT_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_LGHT_P.LGUB IS '등종류';
COMMENT ON COLUMN icgis.GRL_LGHT_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_LGHT_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.GRL_LGHT_P.HFTC IS '회로_지형지물부호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.HIDN IS '회로_개별번호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.PFTC IS '공원_지형지물부호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.PIDN IS '공원_개별번호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.JFTC IS '제어함_지형지물부호';
COMMENT ON COLUMN icgis.GRL_LGHT_P.JIDN IS '제어함_개별번호';


---공원배경

CREATE TABLE icgis.GRL_PARKBG_L(
	OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, MNGT			VARCHAR(6)			
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
COMMENT ON TABLE icgis.GRL_PARKBG_L IS '공원배경';
COMMENT ON COLUMN icgis.GRL_PARKBG_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_PARKBG_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_PARKBG_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_PARKBG_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_PARKBG_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_PARKBG_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_PARKBG_L.SHAPE IS 'SHAPE';


---공원회로
--- 예약어 ARRAY 사용 주석처리

CREATE TABLE icgis.GRL_CCUT_L(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, CTLNO			VARCHAR(30)		
	, SLG			VARCHAR(6)			
	, YMD			DATE				
	, IBRT			NUMERIC(5)			
	, IART			NUMERIC(5)			
	, GBRT			NUMERIC(5)			
	, GART			NUMERIC(5)			
	, LOAD1CV		NUMERIC(5)			
	, LOAD1EV		NUMERIC(5)			
	, LOAD1TH		NUMERIC(5)			
	, LOAD2CV		NUMERIC(5)			
	, LOAD2EV		NUMERIC(5)			
	, LOAD2TH		NUMERIC(5)			
	, LENG			NUMERIC(38,8)		
	, MNGT			VARCHAR(6)			
	, NOTE			VARCHAR(50)		
	, CIDN			VARCHAR(10)		
	, CMNGT			VARCHAR(6)			
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
--	, ARRAY			VARCHAR(6)			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
	, JFTC			VARCHAR(6)			NOT NULL
	, JIDN			INTEGER				NOT NULL
	, PFTC			VARCHAR(6)			NOT NULL
	, PIDN			INTEGER				NOT NULL
	
);

ALTER TABLE icgis.GRL_CCUT_L ADD CONSTRAINT GRL_CCUT_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_CCUT_L IS '공원회로';
COMMENT ON COLUMN icgis.GRL_CCUT_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_CCUT_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_CCUT_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_CCUT_L.CTLNO IS '관리번호';
COMMENT ON COLUMN icgis.GRL_CCUT_L.SLG IS '선로종류';
COMMENT ON COLUMN icgis.GRL_CCUT_L.YMD IS '설치일';
COMMENT ON COLUMN icgis.GRL_CCUT_L.IBRT IS '절연저항 전';
COMMENT ON COLUMN icgis.GRL_CCUT_L.IART IS '절연저항 후';
COMMENT ON COLUMN icgis.GRL_CCUT_L.GBRT IS '접지저항 전';
COMMENT ON COLUMN icgis.GRL_CCUT_L.GART IS '접지저항 후';
COMMENT ON COLUMN icgis.GRL_CCUT_L.LOAD1CV IS '부하1차 CV';
COMMENT ON COLUMN icgis.GRL_CCUT_L.LOAD1EV IS '부하1차 EV';
COMMENT ON COLUMN icgis.GRL_CCUT_L.LOAD1TH IS '부하1차 굵기';
COMMENT ON COLUMN icgis.GRL_CCUT_L.LOAD2CV IS '부하2차 CV';
COMMENT ON COLUMN icgis.GRL_CCUT_L.LOAD2EV IS '부하2차 EV';
COMMENT ON COLUMN icgis.GRL_CCUT_L.LOAD2TH IS '부하2차 굵기';
COMMENT ON COLUMN icgis.GRL_CCUT_L.LENG IS '연장';
COMMENT ON COLUMN icgis.GRL_CCUT_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_CCUT_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_CCUT_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_CCUT_L.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_CCUT_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_CCUT_L.UPDATE_NAM IS '최종수정자명';
--COMMENT ON COLUMN icgis.GRL_CCUT_L.ARRAY IS '가로등배열방법';
COMMENT ON COLUMN icgis.GRL_CCUT_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_CCUT_L.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.GRL_CCUT_L.JFTC IS '제어함_지형지물부호';
COMMENT ON COLUMN icgis.GRL_CCUT_L.JIDN IS '제어함_개별번호';
COMMENT ON COLUMN icgis.GRL_CCUT_L.PFTC IS '공원_지형지물부호';
COMMENT ON COLUMN icgis.GRL_CCUT_L.PIDN IS '공원_개별번호';



--관리시설 변동사항

CREATE TABLE icgis.GRT_TRFAC_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			NOT NULL
	, TFC			VARCHAR(6)		
	, AMT			INTEGER			
	, ADDAMT		INTEGER			
	, DELAMT		INTEGER			
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_TRFAC_D ADD CONSTRAINT GRT_TRFAC_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.GRT_TRFAC_D IS '관리시설 변동사항';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.YMD IS '연월일';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.TFC IS '관리시설';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.AMT IS '수량';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.ADDAMT IS '설치수량';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.DELAMT IS '제거수량';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_TRFAC_D.GLOBALID IS 'GLOBALID';


----규모내역

CREATE TABLE icgis.GRT_GFACIL_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, USG			VARCHAR(6)	
	, SEED			VARCHAR(6)	
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, CNT			INTEGER		
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_GFACIL_D ADD CONSTRAINT GRT_GFACIL_D_PK PRIMARY KEY (FTC,IDN,SEQ);
COMMENT ON TABLE icgis.GRT_GFACIL_D IS '규모내역';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.USG IS '시설종류';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.SEED IS '수종';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.CNT IS '시설개수_수목개수';
COMMENT ON COLUMN icgis.GRT_GFACIL_D.GLOBALID IS 'GLOBALID';


----규모내역

CREATE TABLE icgis.GRT_GPFACIL_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, USG			VARCHAR(6)		
	, SEED			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, CNT			INTEGER			
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_GPFACIL_D ADD CONSTRAINT GRT_GPFACIL_D_PK PRIMARY KEY (FTC,IDN,SEQ);
COMMENT ON TABLE icgis.GRT_GPFACIL_D IS '규모내역';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.USG IS '시설종류';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.SEED IS '수종';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.CNT IS '시설개수_수목개수';
COMMENT ON COLUMN icgis.GRT_GPFACIL_D.GLOBALID IS 'GLOBALID';


---노선별 가로수대장

CREATE TABLE icgis.GRT_TREE_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNGT			VARCHAR(6)		
	, PATH			VARCHAR(50)	
	, CNAM			VARCHAR(50)	
	, CSYN			VARCHAR(500)	
	, CYMD			DATE			
	, CNSTR			VARCHAR(30)	
	, MNGNUM		VARCHAR(9)		
	, NOTE			VARCHAR(50)	
	, WSYMD			DATE			
	, WEYMD			DATE			
	, SPATH			VARCHAR(50)	
	, EPATH			VARCHAR(50)	
	, ROL			VARCHAR(6)		
	, CST			NUMERIC(38,8)	
	, NIDN			INTEGER			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_TREE_D ADD CONSTRAINT GRT_TREE_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.GRT_TREE_D IS '노선별 가로수대장';
COMMENT ON COLUMN icgis.GRT_TREE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_TREE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_TREE_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRT_TREE_D.PATH IS '구간';
COMMENT ON COLUMN icgis.GRT_TREE_D.CNAM IS '공사명';
COMMENT ON COLUMN icgis.GRT_TREE_D.CSYN IS '공사개요';
COMMENT ON COLUMN icgis.GRT_TREE_D.CYMD IS '준공일자';
COMMENT ON COLUMN icgis.GRT_TREE_D.CNSTR IS '시공자';
COMMENT ON COLUMN icgis.GRT_TREE_D.MNGNUM IS '가로수대장관리번호';
COMMENT ON COLUMN icgis.GRT_TREE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_TREE_D.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRT_TREE_D.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRT_TREE_D.SPATH IS '구간시점';
COMMENT ON COLUMN icgis.GRT_TREE_D.EPATH IS '구간종점';
COMMENT ON COLUMN icgis.GRT_TREE_D.ROL IS '위치';
COMMENT ON COLUMN icgis.GRT_TREE_D.CST IS '사업비';
COMMENT ON COLUMN icgis.GRT_TREE_D.NIDN IS '도로노선번호';
COMMENT ON COLUMN icgis.GRT_TREE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_TREE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_TREE_D.GLOBALID IS 'GLOBALID';


---녹지점용시설

CREATE TABLE icgis.GRL_PARKUSE_A(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL	
	, FTC			VARCHAR(6)			NOT NULL	
	, MNGT			VARCHAR(6)					
	, JIDN			INTEGER				NOT NULL	
	, PFTC			VARCHAR(5)					
	, PIDN			INTEGER						
	, UPDATE_YMD	DATE						
	, UPDATE_NAM	VARCHAR(50)				
	, GLOBALID		CHAR(38)			NOT NULL	
	, SHAPE			public.geometry				

);
ALTER TABLE icgis.GRL_PARKUSE_A ADD CONSTRAINT GRL_PARKUSE_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.GRL_PARKUSE_A IS '녹지점용시설';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.JIDN IS '점용허가번호';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.PFTC IS '관련시설_지형지물부호';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.PIDN IS '관련시설_개별번호';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_PARKUSE_A.SHAPE IS 'SHAPE';


--독립수

CREATE TABLE icgis.GRL_SEPTREE_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL	
	, GUCD			VARCHAR(5)				
	, DCD			VARCHAR(10)			
	, MNGT			VARCHAR(6)				
	, SDE			VARCHAR(15)			
	, YMD			DATE					
	, AGYMD			DATE					
	, POYMD			DATE					
	, DRGYMD		DATE					
	, RGYMD			DATE					
	, REGNO			VARCHAR(10)			
	, FARA			NUMERIC(38,8)			
	, ARA			NUMERIC(38,8)			
	, NOTE			VARCHAR(20)			
	, CIDN			VARCHAR(10)			
	, CMNGT			VARCHAR(6)				
	, UPDATE_YMD	DATE					
	, UPDATE_NAM	VARCHAR(50)			
	, SEED			VARCHAR(6)				
	, GLOBALID		CHAR(38)			NOT NULL	
	, SHAPE			public.geometry		
	, PFTC			VARCHAR(6)			NOT NULL	
	, PIDN			INTEGER				NOT NULL		
);
ALTER TABLE icgis.GRL_SEPTREE_P ADD CONSTRAINT GRL_SEPTREE_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_SEPTREE_P IS '독립수';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.SDE IS '규격';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.YMD IS '설치일';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.AGYMD IS '기부채납일';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.POYMD IS '공용개시일';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.DRGYMD IS '가옥대장등재일';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.RGYMD IS '등기일';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.REGNO IS '등기번호';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.FARA IS '시설면적_연면적';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.ARA IS '부지면적';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.SEED IS '피해수종';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.PFTC IS '공원_쉼터_지형지물부호';
COMMENT ON COLUMN icgis.GRL_SEPTREE_P.PIDN IS '공원_쉼터_개별번호';


--미조성공원

CREATE TABLE icgis.GRL_PREPARK_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)			
	, DCD			VARCHAR(10)		
	, MNGT			VARCHAR(6)			
	, NAM			VARCHAR(40)		
	, STATUS		VARCHAR(6)			
	, PPLAN			VARCHAR(40)		
	, PYMD			DATE				
	, PARA			NUMERIC(38,8)		
	, MPLAN			VARCHAR(40)		
	, MYMD			DATE				
	, MARA			NUMERIC(38,8)		
	, KND			VARCHAR(6)			
	, NOTE			VARCHAR(100)		
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.GRL_PREPARK_A ADD CONSTRAINT GRL_PREPARK_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_PREPARK_A IS '미조성공원';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.NAM IS '공원명';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.STATUS IS '조성상태';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.PPLAN IS '도시계획결정고시';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.PYMD IS '도시계획결정고시일';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.PARA IS '도시계획결정고시면적';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.MPLAN IS '조성계획결정고시';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.MYMD IS '조성계획결정고시일';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.MARA IS '조성계획결정고시면적';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.KND IS '공원종류';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_PREPARK_A.SHAPE IS 'SHAPE';


---변경고시근거

CREATE TABLE icgis.GRT_PNOTICE_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, NTC			VARCHAR(40)	
	, NYMD			DATE			
	, ODARA			NUMERIC(38,8)	
	, NWARA			NUMERIC(38,8)	
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
	
);
ALTER TABLE icgis.GRT_PNOTICE_D ADD CONSTRAINT GRT_PNOTICE_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.GRT_PNOTICE_D IS '변경고시근거';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.NTC IS '고시근거';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.NYMD IS '고시일';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.ODARA IS '기존면적';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.NWARA IS '변경면적';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PNOTICE_D.GLOBALID IS 'GLOBALID';


---병충해 피해수종

CREATE TABLE icgis.GRT_TRINSTR_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, SEED			VARCHAR(6)		NOT NULL
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_TRINSTR_D ADD CONSTRAINT GRT_TRINSTR_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.GRT_TRINSTR_D IS '병충해 피해수종';
COMMENT ON COLUMN icgis.GRT_TRINSTR_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_TRINSTR_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_TRINSTR_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_TRINSTR_D.SEED IS '피해수종';
COMMENT ON COLUMN icgis.GRT_TRINSTR_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_TRINSTR_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_TRINSTR_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_TRINSTR_D.GLOBALID IS 'GLOBALID';


----병충해방제

CREATE TABLE icgis.GRT_TRINSEC_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, NAM			VARCHAR(40)	NOT NULL
	, PERIOD		VARCHAR(100)	
	, METHOD		VARCHAR(200)	
	, NOTE			VARCHAR(50)	
	, FNAME			VARCHAR(40)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_TRINSEC_D ADD CONSTRAINT GRT_TRINSEC_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.GRT_TRINSEC_D IS '병충해방제';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.NAM IS '병충해명';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.PERIOD IS '방제시기';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.METHOD IS '방제법';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.FNAME IS '파일명';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_TRINSEC_D.GLOBALID IS 'GLOBALID';


---보호수

CREATE TABLE icgis.GRL_BOHOTREE_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)			
	, DCD			VARCHAR(10)		
	, MNGT			VARCHAR(6)			
	, PUM			VARCHAR(20)		
	, NUM			VARCHAR(10)		
	, YMD			DATE				
	, GUB			VARCHAR(6)			
	, SEED			VARCHAR(6)			
	, BON			NUMERIC(5)			
	, KWA			VARCHAR(30)		
	, HM			VARCHAR(40)		
	, ADDR			VARCHAR(40)		
	, JM			VARCHAR(6)			
	, ARA			NUMERIC(38,8)		
	, YEAR			NUMERIC(5)			
	, HEIGHT		NUMERIC(38,8)		
	, CIRCUM		NUMERIC(38,8)		
	, DIA			NUMERIC(38,8)		
	, KADDR			VARCHAR(40)		
	, KNAM			VARCHAR(40)		
	, KDUTY			VARCHAR(40)		
	, REASON		TEXT				
	, PECUL			TEXT				
	, HIST			TEXT				
	, WSYMD			DATE				
	, WEYMD			DATE				
	, NOTE			TEXT				
	, CIDN			VARCHAR(10)		
	, CMNGT			VARCHAR(6)			
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
	
);
ALTER TABLE icgis.GRL_BOHOTREE_P ADD CONSTRAINT GRL_BOHOTREE_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_BOHOTREE_P IS '보호수';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.PUM IS '지정품격';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.NUM IS '지정번호';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.YMD IS '지정년월일';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.GUB IS '구분';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.SEED IS '수종';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.BON IS '본수';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.KWA IS '과명';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.HM IS '학명';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.ADDR IS '소재지';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.JM IS '지목';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.ARA IS '면적';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.YEAR IS '수령';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.HEIGHT IS '수고';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.CIRCUM IS '흉고나무둘레';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.DIA IS '수관직경';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.KADDR IS '관리인주소';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.KNAM IS '관리인이름';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.KDUTY IS '관리책임자';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.REASON IS '지정사유';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.PECUL IS '나무의특징';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.HIST IS '연혁및전설';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.NOTE IS '기타_해제사유';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_BOHOTREE_P.SHAPE IS 'SHAPE';


---비오톱

CREATE TABLE icgis.GRL_BIOTOPE_A(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, NAME			VARCHAR(30)		
	, STYPE			VARCHAR(100)		
	, SLEGEND		VARCHAR(100)		
	, SCODE			VARCHAR(5)			
	, MTYPE			VARCHAR(100)		
	, MLEGEND		VARCHAR(100)		
	, MCODE			VARCHAR(5)			
	, ULEGEND		VARCHAR(100)		
	, UTYPE			VARCHAR(100)		
	, USIGN			VARCHAR(5)			
	, TTYPE			VARCHAR(100)		
	, FLOOR			VARCHAR(20)		
	, WIDTH			VARCHAR(50)		
	, CLEGEND		VARCHAR(100)		
	, CTYPE			VARCHAR(100)		
	, CSIGN			VARCHAR(5)			
	, BLAND			NUMERIC(5)			
	, BUTU			NUMERIC(5)			
	, TU			NUMERIC(5)			
	, BANTU			NUMERIC(5)			
	, TTU			NUMERIC(5)			
	, GREEN			NUMERIC(5)			
	, WATER			NUMERIC(5)			
	, CSUM			NUMERIC(5)			
	, BTRATIO		VARCHAR(20)		
	, BTCOVER		NUMERIC(5)			
	, GSUM			NUMERIC(5)			
	, GRATIO		VARCHAR(20)		
	, NLEGEND		VARCHAR(100)		
	, NTYPE			VARCHAR(100)		
	, NSIGN			VARCHAR(5)			
	, NSIGN1		VARCHAR(5)			
	, TR			VARCHAR(30)		
	, TRATIO		NUMERIC(5)			
	, TR2			VARCHAR(30)		
	, T2RATIO		NUMERIC(5)			
	, TR3			VARCHAR(30)		
	, T3RATIO		NUMERIC(5)			
	, TRH			NUMERIC(5)			
	, TRDBH			NUMERIC(5)			
	, TRCRATIO		NUMERIC(5)			
	, ATR			VARCHAR(30)		
	, ATR2			VARCHAR(30)		
	, F45			VARCHAR(30)		
	, ATRH			NUMERIC(5)			
	, ATRDBH		NUMERIC(5)			
	, ATRCRATIO		NUMERIC(5)			
	, GTR			VARCHAR(30)		
	, GTR2			VARCHAR(30)		
	, THEIGHT		VARCHAR(20)		
	, GTRRATIO		NUMERIC(5)			
	, CBON			VARCHAR(30)		
	, CBON2			VARCHAR(30)		
	, CJANG			NUMERIC(38,8)		
	, CBRATIO		NUMERIC(5)			
	, PICNUM		VARCHAR(20)		
	, ETC			VARCHAR(250)		
	, REST			NUMERIC(5)			
	, BIO			NUMERIC(5)			
	, URBAN			NUMERIC(5)			
	, ADDSUM		NUMERIC(5)			
	, MPAR			VARCHAR(5)			
	, SPAR			VARCHAR(5)			
	, PARSUM		VARCHAR(5)			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.GRL_BIOTOPE_A ADD CONSTRAINT GRL_BIOTOPE_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.GRL_BIOTOPE_A IS '비오톱';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.IDN IS '허가번호';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.NAME IS '기능명';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.STYPE IS '소분류유형';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.SLEGEND IS '소분류범례';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.SCODE IS '소분류코드';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.MTYPE IS '중분류유형';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.MLEGEND IS '중분류범례';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.MCODE IS '중분류코드';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.ULEGEND IS '이용범례';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.UTYPE IS '이용유형';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.USIGN IS '이용기호';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TTYPE IS '토지유형';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.FLOOR IS '층수';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.WIDTH IS '폭원';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.CLEGEND IS '피복범례';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.CTYPE IS '카메라유형';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.CSIGN IS '피복기호';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.BLAND IS '건폐지';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.BUTU IS '불투수';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TU IS '투수';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.BANTU IS '반투수';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TTU IS '틈새투수';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.GREEN IS '녹지';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.WATER IS '수공간';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.CSUM IS '설계금액_총공사비';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.BTRATIO IS '불투수율';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.BTCOVER IS '불투피복';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.GSUM IS '녹지율_합';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.GRATIO IS '녹지율';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.NLEGEND IS '현존범례';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.NTYPE IS '현존유형';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.NSIGN IS '현존기호';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.NSIGN1 IS '현존기호1';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TR IS '교목1';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TRATIO IS '교목1_비율';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TR2 IS '교목2';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.T2RATIO IS '교목2_비율';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TR3 IS '교목3';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.T3RATIO IS '교목3_비율';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TRH IS '교목H';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TRDBH IS '교목DBH';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.TRCRATIO IS '교목피도';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.ATR IS '아교목1';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.ATR2 IS '아교목2';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.F45 IS 'F45';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.ATRH IS '아교목H';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.ATRDBH IS '아교목DBH';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.ATRCRATIO IS '아교목피도';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.GTR IS '관목1';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.GTR2 IS '관목2';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.THEIGHT IS '수고';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.GTRRATIO IS '관목피도';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.CBON IS '초본1';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.CBON2 IS '초본2';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.CJANG IS '초장';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.CBRATIO IS '초본피도';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.PICNUM IS '사진번호';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.REST IS '휴양가치';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.BIO IS '생물가치';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.URBAN IS '도시개선';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.ADDSUM IS '가중치종합';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.MPAR IS '중분류평가';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.SPAR IS '소분류평가';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.PARSUM IS '평가종합';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_BIOTOPE_A.SHAPE IS 'SHAPE';


---수목내역

CREATE TABLE icgis.GRT_RTREE_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, SEED			VARCHAR(6)		
	, CNT			NUMERIC(38,8)	
	, ARA			NUMERIC(38,8)	
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_RTREE_D ADD CONSTRAINT GRT_RTREE_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.GRT_RTREE_D IS '수목내역';
COMMENT ON COLUMN icgis.GRT_RTREE_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_RTREE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_RTREE_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_RTREE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_RTREE_D.SEED IS '수목종류';
COMMENT ON COLUMN icgis.GRT_RTREE_D.CNT IS '수량';
COMMENT ON COLUMN icgis.GRT_RTREE_D.ARA IS '면적';
COMMENT ON COLUMN icgis.GRT_RTREE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_RTREE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_RTREE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_RTREE_D.GLOBALID IS 'GLOBALID';


---수목현황

CREATE TABLE icgis.GRT_PTREE_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, SEED			VARCHAR(6)		
	, CNT			NUMERIC(38,8)	
	, ARA			NUMERIC(38,8)	
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PTREE_D ADD CONSTRAINT GRT_PTREE_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.GRT_PTREE_D IS '수목현황';
COMMENT ON COLUMN icgis.GRT_PTREE_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PTREE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_PTREE_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_PTREE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PTREE_D.SEED IS '수목종류';
COMMENT ON COLUMN icgis.GRT_PTREE_D.CNT IS '수량';
COMMENT ON COLUMN icgis.GRT_PTREE_D.ARA IS '면적';
COMMENT ON COLUMN icgis.GRT_PTREE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PTREE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PTREE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PTREE_D.GLOBALID IS 'GLOBALID';


---수벽

CREATE TABLE icgis.GRL_WALL_L(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, NAM			VARCHAR(40)	
	, MNGNUM		VARCHAR(9)		
	, ADDR			VARCHAR(50)	
	, ARA			NUMERIC(38,8)	
	, WID			NUMERIC(38,8)	
	, LENG			NUMERIC(38,8)	
	, YMD			DATE			
	, OWR			VARCHAR(6)		
	, ETYPE			VARCHAR(6)		
	, LWARA			NUMERIC(38,8)	
	, NOTE			VARCHAR(100)	
	, WSYMD			DATE			
	, WEYMD			DATE			
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.GRL_WALL_L ADD CONSTRAINT GRL_WALL_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_WALL_L IS '수벽';
COMMENT ON COLUMN icgis.GRL_WALL_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_WALL_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_WALL_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_WALL_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_WALL_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_WALL_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_WALL_L.NAM IS '명칭';
COMMENT ON COLUMN icgis.GRL_WALL_L.MNGNUM IS '대장관리번호';
COMMENT ON COLUMN icgis.GRL_WALL_L.ADDR IS '위치';
COMMENT ON COLUMN icgis.GRL_WALL_L.ARA IS '면적';
COMMENT ON COLUMN icgis.GRL_WALL_L.WID IS '폭';
COMMENT ON COLUMN icgis.GRL_WALL_L.LENG IS '연장';
COMMENT ON COLUMN icgis.GRL_WALL_L.YMD IS '조성년도';
COMMENT ON COLUMN icgis.GRL_WALL_L.OWR IS '토지소유구분';
COMMENT ON COLUMN icgis.GRL_WALL_L.ETYPE IS '토지유형';
COMMENT ON COLUMN icgis.GRL_WALL_L.LWARA IS '잔디식재면적';
COMMENT ON COLUMN icgis.GRL_WALL_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_WALL_L.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRL_WALL_L.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRL_WALL_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_WALL_L.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_WALL_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_WALL_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_WALL_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_WALL_L.SHAPE IS 'SHAPE';


---쉼터

CREATE TABLE icgis.GRL_REST_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)	
	, DCD			VARCHAR(10)
	, MNGT			VARCHAR(6)	
	, MNGNUM		VARCHAR(9)	
	, NAM			VARCHAR(40)
	, PRGN			VARCHAR(20)
	, ADDR			VARCHAR(60)
	, OOWR			VARCHAR(20)
	, NOWR			VARCHAR(20)
	, CNSCST		NUMERIC(38,8)
	, CMPCST		NUMERIC(38,8)
	, TARA			NUMERIC(38,8)
	, GZARA			NUMERIC(38,8)
	, BLDKND		NUMERIC(5)	
	, BLDCNT		NUMERIC(5)	
	, DSGNR			VARCHAR(20)
	, CNSTR			VARCHAR(20)
	, DSYMD			DATE		
	, CSYMD			DATE		
	, DEYMD			DATE		
	, CEYMD			DATE		
	, LNARA			NUMERIC(38,8)
	, NOTE			VARCHAR(50)
	, WSYMD			DATE		
	, WEYMD			DATE		
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.GRL_REST_A ADD CONSTRAINT GRL_REST_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_REST_A IS '쉼터';
COMMENT ON COLUMN icgis.GRL_REST_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_REST_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_REST_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_REST_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_REST_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_REST_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_REST_A.MNGNUM IS '쉼터관리번호';
COMMENT ON COLUMN icgis.GRL_REST_A.NAM IS '명칭';
COMMENT ON COLUMN icgis.GRL_REST_A.PRGN IS '용도지역';
COMMENT ON COLUMN icgis.GRL_REST_A.ADDR IS '소재지';
COMMENT ON COLUMN icgis.GRL_REST_A.OOWR IS '조성전소유자';
COMMENT ON COLUMN icgis.GRL_REST_A.NOWR IS '조성후소유자';
COMMENT ON COLUMN icgis.GRL_REST_A.CNSCST IS '조성_총액';
COMMENT ON COLUMN icgis.GRL_REST_A.CMPCST IS '사업비_보상비';
COMMENT ON COLUMN icgis.GRL_REST_A.TARA IS '부지면적';
COMMENT ON COLUMN icgis.GRL_REST_A.GZARA IS '녹지면적';
COMMENT ON COLUMN icgis.GRL_REST_A.BLDKND IS '건축물종수';
COMMENT ON COLUMN icgis.GRL_REST_A.BLDCNT IS '건축물개수';
COMMENT ON COLUMN icgis.GRL_REST_A.DSGNR IS '설계자';
COMMENT ON COLUMN icgis.GRL_REST_A.CNSTR IS '시공자';
COMMENT ON COLUMN icgis.GRL_REST_A.DSYMD IS '설계착공일';
COMMENT ON COLUMN icgis.GRL_REST_A.CSYMD IS '시공착공일';
COMMENT ON COLUMN icgis.GRL_REST_A.DEYMD IS '설계준공일';
COMMENT ON COLUMN icgis.GRL_REST_A.CEYMD IS '시공준공일';
COMMENT ON COLUMN icgis.GRL_REST_A.LNARA IS '잔디식재면적';
COMMENT ON COLUMN icgis.GRL_REST_A.NOTE IS '기타';
COMMENT ON COLUMN icgis.GRL_REST_A.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRL_REST_A.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRL_REST_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_REST_A.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_REST_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_REST_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_REST_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_REST_A.SHAPE IS 'SHAPE';



---시설기본계획조사내역

CREATE TABLE icgis.GRT_PLAN_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, NAM			VARCHAR(100)	NOT NULL
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PLAN_D ADD CONSTRAINT GRT_PLAN_D_PK PRIMARY KEY (FTC, IDN, SEQ, OBJECTID);
COMMENT ON TABLE icgis.GRT_PLAN_D IS '시설기본계획조사내역';
COMMENT ON COLUMN icgis.GRT_PLAN_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PLAN_D.IDN IS '시설물번호';
COMMENT ON COLUMN icgis.GRT_PLAN_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_PLAN_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PLAN_D.NAM IS '계획조서파일명';
COMMENT ON COLUMN icgis.GRT_PLAN_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PLAN_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PLAN_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PLAN_D.GLOBALID IS 'GLOBALID';


----시설녹지

CREATE TABLE icgis.GRL_SGZ_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)	
	, DCD			VARCHAR(10)
	, MNGT			VARCHAR(6)	
	, NAM			VARCHAR(40)
	, KIND			VARCHAR(6)	
	, MNGNUM		VARCHAR(9)	
	, ADDR			VARCHAR(50)
	, ARA			NUMERIC(38,8)
	, WID			NUMERIC(38,8)
	, LENG			NUMERIC(38,8)
	, YMD			DATE
	, OWR			VARCHAR(6)	
	, ETYPE			VARCHAR(6)	
	, LWARA			NUMERIC(38,8)
	, NOTE			VARCHAR(100)
	, WSYMD			DATE
	, WEYMD			DATE
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.GRL_SGZ_A ADD CONSTRAINT GRL_SGZ_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_SGZ_A IS '시설녹지';
COMMENT ON COLUMN icgis.GRL_SGZ_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_SGZ_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_SGZ_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_SGZ_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_SGZ_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_SGZ_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_SGZ_A.NAM IS '명칭';
COMMENT ON COLUMN icgis.GRL_SGZ_A.KIND IS '종류';
COMMENT ON COLUMN icgis.GRL_SGZ_A.MNGNUM IS '대장관리번호';
COMMENT ON COLUMN icgis.GRL_SGZ_A.ADDR IS '위치';
COMMENT ON COLUMN icgis.GRL_SGZ_A.ARA IS '면적';
COMMENT ON COLUMN icgis.GRL_SGZ_A.WID IS '폭';
COMMENT ON COLUMN icgis.GRL_SGZ_A.LENG IS '연장';
COMMENT ON COLUMN icgis.GRL_SGZ_A.YMD IS '조성년도';
COMMENT ON COLUMN icgis.GRL_SGZ_A.OWR IS '토지소유구분';
COMMENT ON COLUMN icgis.GRL_SGZ_A.ETYPE IS '토지유형';
COMMENT ON COLUMN icgis.GRL_SGZ_A.LWARA IS '잔디식재면적';
COMMENT ON COLUMN icgis.GRL_SGZ_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_SGZ_A.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRL_SGZ_A.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRL_SGZ_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_SGZ_A.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_SGZ_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_SGZ_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_SGZ_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_SGZ_A.SHAPE IS 'SHAPE';


---시설물_면형

CREATE TABLE icgis.GRL_FACIL_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)	
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, USG			VARCHAR(6)		
	, SDE			VARCHAR(15)	
	, YMD			DATE		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, AGYMD			DATE	
	, POYMD			DATE	
	, DRGYMD		DATE	
	, RGYMD			DATE	
	, REGNO			VARCHAR(10)	
	, FARA			NUMERIC(38,8)	
	, ARA			NUMERIC(38,8)	
	, NOTE			VARCHAR(20)	
	, UPDATE_YMD	DATE	
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
	, PFTC			VARCHAR(6)
	, PIDN			INTEGER
);
ALTER TABLE icgis.GRL_FACIL_A ADD CONSTRAINT GRL_FACIL_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_FACIL_A IS '시설물_면형';
COMMENT ON COLUMN icgis.GRL_FACIL_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_FACIL_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_FACIL_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_FACIL_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_FACIL_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_FACIL_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_FACIL_A.USG IS '용도';
COMMENT ON COLUMN icgis.GRL_FACIL_A.SDE IS '규격';
COMMENT ON COLUMN icgis.GRL_FACIL_A.YMD IS '설치일';
COMMENT ON COLUMN icgis.GRL_FACIL_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_FACIL_A.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_FACIL_A.AGYMD IS '기부채납일';
COMMENT ON COLUMN icgis.GRL_FACIL_A.POYMD IS '공용개시일';
COMMENT ON COLUMN icgis.GRL_FACIL_A.DRGYMD IS '가옥대장등재일';
COMMENT ON COLUMN icgis.GRL_FACIL_A.RGYMD IS '등기일';
COMMENT ON COLUMN icgis.GRL_FACIL_A.REGNO IS '등기번호';
COMMENT ON COLUMN icgis.GRL_FACIL_A.FARA IS '시설면적_연면적';
COMMENT ON COLUMN icgis.GRL_FACIL_A.ARA IS '부지면적';
COMMENT ON COLUMN icgis.GRL_FACIL_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_FACIL_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_FACIL_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_FACIL_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_FACIL_A.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.GRL_FACIL_A.PFTC IS '공원_쉼터_지형지물부호';
COMMENT ON COLUMN icgis.GRL_FACIL_A.PIDN IS '공원_쉼터_개별번호';


---시설물_선형

CREATE TABLE icgis.GRL_FACIL_L(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, PFTC			VARCHAR(6)		
	, PIDN			INTEGER			
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)
	, MNGT			VARCHAR(6)		
	, USG			VARCHAR(6)		
	, SDE			VARCHAR(15)	
	, YMD			DATE	
	, AGYMD			DATE	
	, POYMD			DATE	
	, DRGYMD		DATE	
	, RGYMD			DATE	
	, REGNO			VARCHAR(10)
	, FARA			NUMERIC(38,8)
	, ARA			NUMERIC(38,8)
	, NOTE			VARCHAR(20)
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, UPDATE_YMD	DATE
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.GRL_FACIL_L ADD CONSTRAINT GRL_FACIL_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_FACIL_L IS '시설물_선형';
COMMENT ON COLUMN icgis.GRL_FACIL_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_FACIL_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_FACIL_L.PFTC IS '공원_쉼터_지형지물부호';
COMMENT ON COLUMN icgis.GRL_FACIL_L.PIDN IS '공원_쉼터_개별번호';
COMMENT ON COLUMN icgis.GRL_FACIL_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_FACIL_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_FACIL_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_FACIL_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_FACIL_L.USG IS '용도';
COMMENT ON COLUMN icgis.GRL_FACIL_L.SDE IS '규격';
COMMENT ON COLUMN icgis.GRL_FACIL_L.YMD IS '설치일';
COMMENT ON COLUMN icgis.GRL_FACIL_L.AGYMD IS '기부채납일';
COMMENT ON COLUMN icgis.GRL_FACIL_L.POYMD IS '공용개시일';
COMMENT ON COLUMN icgis.GRL_FACIL_L.DRGYMD IS '가옥대장등재일';
COMMENT ON COLUMN icgis.GRL_FACIL_L.RGYMD IS '등기일';
COMMENT ON COLUMN icgis.GRL_FACIL_L.REGNO IS '등기번호';
COMMENT ON COLUMN icgis.GRL_FACIL_L.FARA IS '시설면적_연면적';
COMMENT ON COLUMN icgis.GRL_FACIL_L.ARA IS '부지면적';
COMMENT ON COLUMN icgis.GRL_FACIL_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_FACIL_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_FACIL_L.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_FACIL_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_FACIL_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_FACIL_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_FACIL_L.SHAPE IS 'SHAPE';


----시설물_점형

CREATE TABLE icgis.GRL_FACIL_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)	
	, DCD			VARCHAR(10)
	, MNGT			VARCHAR(6)	
	, USG			VARCHAR(6)	
	, SDE			VARCHAR(15)
	, YMD			DATE
	, AGYMD			DATE
	, POYMD			DATE
	, DRGYMD		DATE
	, RGYMD			DATE
	, REGNO			VARCHAR(10)
	, FARA			NUMERIC(38,8)
	, ARA			NUMERIC(38,8)
	, NOTE			VARCHAR(20)
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry	
	, PFTC			VARCHAR(6)		NOT NULL
	, PIDN			INTEGER			NOT NULL
);
ALTER TABLE icgis.GRL_FACIL_P ADD CONSTRAINT GRL_FACIL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRL_FACIL_P IS '시설물_점형';
COMMENT ON COLUMN icgis.GRL_FACIL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_FACIL_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRL_FACIL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_FACIL_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GRL_FACIL_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.GRL_FACIL_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.GRL_FACIL_P.USG IS '용도';
COMMENT ON COLUMN icgis.GRL_FACIL_P.SDE IS '규격';
COMMENT ON COLUMN icgis.GRL_FACIL_P.YMD IS '설치일';
COMMENT ON COLUMN icgis.GRL_FACIL_P.AGYMD IS '기부채납일';
COMMENT ON COLUMN icgis.GRL_FACIL_P.POYMD IS '공용개시일';
COMMENT ON COLUMN icgis.GRL_FACIL_P.DRGYMD IS '가옥대장등재일';
COMMENT ON COLUMN icgis.GRL_FACIL_P.RGYMD IS '등기일';
COMMENT ON COLUMN icgis.GRL_FACIL_P.REGNO IS '등기번호';
COMMENT ON COLUMN icgis.GRL_FACIL_P.FARA IS '시설면적_연면적';
COMMENT ON COLUMN icgis.GRL_FACIL_P.ARA IS '부지면적';
COMMENT ON COLUMN icgis.GRL_FACIL_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRL_FACIL_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRL_FACIL_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRL_FACIL_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRL_FACIL_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRL_FACIL_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_FACIL_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.GRL_FACIL_P.PFTC IS '공원,쉼터_지형지물부호';
COMMENT ON COLUMN icgis.GRL_FACIL_P.PIDN IS '공원,쉼터_개별번호';


--시설보수내역_녹지

CREATE TABLE icgis.GRT_BOSU_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, YMD			DATE			NOT NULL
	, CMNGT			VARCHAR(6)		
	, CAUSE			VARCHAR(100)	
	, RCONT			VARCHAR(100)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, OBJECTID		INTEGER			NOT NULL
	, CIDN			VARCHAR(10)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_BOSU_D ADD CONSTRAINT GRT_BOSU_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.GRT_BOSU_D IS '시설보수내역_녹지';
COMMENT ON COLUMN icgis.GRT_BOSU_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_BOSU_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_BOSU_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_BOSU_D.YMD IS '보수일자';
COMMENT ON COLUMN icgis.GRT_BOSU_D.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.GRT_BOSU_D.CAUSE IS '공사원인';
COMMENT ON COLUMN icgis.GRT_BOSU_D.RCONT IS '보수내역';
COMMENT ON COLUMN icgis.GRT_BOSU_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_BOSU_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_BOSU_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_BOSU_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_BOSU_D.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.GRT_BOSU_D.GLOBALID IS 'GLOBALID';


---시설증감내역

CREATE TABLE icgis.GRT_PINCDET_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CYMD			DATE			
	, COST			NUMERIC(38,8)	
	, INCDT			VARCHAR(50)	
	, DECDT			VARCHAR(50)	
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PINCDET_D ADD CONSTRAINT GRT_PINCDET_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.GRT_PINCDET_D IS '시설증감내역';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.CYMD IS '년월일';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.COST IS '금액';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.INCDT IS '증내역';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.DECDT IS '감내역';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PINCDET_D.GLOBALID IS 'GLOBALID';


---식수대

CREATE TABLE icgis.GRL_TBRD_A(
	FTC				VARCHAR(6)			NOT NULL	
	, FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, SEC_IDN		INTEGER				
	, HJD_CDE		VARCHAR(10)		
	, BJD_CDE		VARCHAR(10)		
	, SHT_NUM		VARCHAR(10)		
	, MNG_CDE		VARCHAR(7)			
	, CNT_NUM		VARCHAR(50)				
	, TRB_LEN		NUMERIC(38,8)		
	, TRB_WID		NUMERIC(38,8)		
	, TRB_ARA		NUMERIC(38,8)		
	, WAT_DES		VARCHAR(500)		
	, SYS_CHK		VARCHAR(1)			
	, SGG_CDE		VARCHAR(5)			NOT NULL
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.GRL_TBRD_A ADD CONSTRAINT GRL_TBRD_A_PK PRIMARY KEY (FTC, FTR_IDN);
COMMENT ON TABLE icgis.GRL_TBRD_A IS '식수대';
COMMENT ON COLUMN icgis.GRL_TBRD_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRL_TBRD_A.FTR_IDN IS '기준점ID';
COMMENT ON COLUMN icgis.GRL_TBRD_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRL_TBRD_A.SEC_IDN IS '도로구간번호';
COMMENT ON COLUMN icgis.GRL_TBRD_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.GRL_TBRD_A.BJD_CDE IS '법정읍면동코드';
COMMENT ON COLUMN icgis.GRL_TBRD_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.GRL_TBRD_A.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.GRL_TBRD_A.CNT_NUM IS '공사번호';
COMMENT ON COLUMN icgis.GRL_TBRD_A.TRB_LEN IS '식수대연장';
COMMENT ON COLUMN icgis.GRL_TBRD_A.TRB_WID IS '식수대폭';
COMMENT ON COLUMN icgis.GRL_TBRD_A.TRB_ARA IS '식수대면적';
COMMENT ON COLUMN icgis.GRL_TBRD_A.WAT_DES IS '식수대비고';
COMMENT ON COLUMN icgis.GRL_TBRD_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.GRL_TBRD_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.GRL_TBRD_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.GRL_TBRD_A.SHAPE IS 'SHAPE';


---연별 가로수이력

CREATE TABLE icgis.GRT_YTREE_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE		
	, SEED			VARCHAR(6)	
	, AMT			INTEGER		
	, NOTE			VARCHAR(50)
	, HIT			NUMERIC(38,8)
	, TDIA			INTEGER		
	, RDIA			INTEGER		
	, TWID			INTEGER		
	, TAGE			NUMERIC(5)	
	, TLOC			VARCHAR(50)
	, TDIS			NUMERIC(38,8)
	, TINT			NUMERIC(38,8)
	, TTY			VARCHAR(6)	
	, STY			VARCHAR(6)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_YTREE_D ADD CONSTRAINT GRT_YTREE_D_PK PRIMARY KEY (IDN,SEQ);
COMMENT ON TABLE icgis.GRT_YTREE_D IS '연별 가로수이력'; 
COMMENT ON COLUMN icgis.GRT_YTREE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_YTREE_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_YTREE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_YTREE_D.YMD IS '년월일';
COMMENT ON COLUMN icgis.GRT_YTREE_D.SEED IS '수종';
COMMENT ON COLUMN icgis.GRT_YTREE_D.AMT IS '식재본수';
COMMENT ON COLUMN icgis.GRT_YTREE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_YTREE_D.HIT IS '수고';
COMMENT ON COLUMN icgis.GRT_YTREE_D.TDIA IS '흉고직경';
COMMENT ON COLUMN icgis.GRT_YTREE_D.RDIA IS '근원직경';
COMMENT ON COLUMN icgis.GRT_YTREE_D.TWID IS '수관폭';
COMMENT ON COLUMN icgis.GRT_YTREE_D.TAGE IS '수령';
COMMENT ON COLUMN icgis.GRT_YTREE_D.TLOC IS '식재위치';
COMMENT ON COLUMN icgis.GRT_YTREE_D.TDIS IS '식재거리';
COMMENT ON COLUMN icgis.GRT_YTREE_D.TINT IS '식재간격';
COMMENT ON COLUMN icgis.GRT_YTREE_D.TTY IS '식재유형';
COMMENT ON COLUMN icgis.GRT_YTREE_D.STY IS '보호틀유형';
COMMENT ON COLUMN icgis.GRT_YTREE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_YTREE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_YTREE_D.GLOBALID IS 'GLOBALID';


---재산대장

CREATE TABLE icgis.GRT_PROPTY_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, PTYNUM		VARCHAR(30)
	, ACNT			VARCHAR(6)	
	, MNGT			VARCHAR(6)	
	, PMNGT			VARCHAR(6)	
	, PTY			VARCHAR(6)	
	, ADDR			VARCHAR(30)
	, MNGNAM		VARCHAR(6)	
	, RYMD			DATE		
	, RNO			VARCHAR(14)
	, RPLC			VARCHAR(20)
	, WSYMD			DATE		
	, WEYMD			DATE		
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PROPTY_D ADD CONSTRAINT GRT_PROPTY_D_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GRT_PROPTY_D is '재산대장';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.PTYNUM IS '재산대장번호';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.ACNT IS '회계구분';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.MNGT IS '관리청';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.PMNGT IS '재산관리관';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.PTY IS '재산구분';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.ADDR IS '소재지';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.MNGNAM IS '기관명';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.RYMD IS '등기 년월일';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.RNO IS '등기 번호';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.RPLC IS '등기소';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PROPTY_D.GLOBALID IS 'GLOBALID';


--재산상세내역

CREATE TABLE icgis.GRT_PTYDTL_D(
	SEQ				NUMERIC(5)		NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, ADDR			VARCHAR(30)
	, JMCD			VARCHAR(6)	
	, ARA			NUMERIC(38,8)
	, COST			NUMERIC(38,8)
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PTYDTL_D ADD CONSTRAINT GRT_PTYDTL_D_PK PRIMARY KEY (SEQ, FTC, IDN);
COMMENT ON TABLE icgis.GRT_PTYDTL_D IS '재산상세내역';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.SEQ IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.FTC IS '개별번호';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.IDN IS '일련번호';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.ADDR IS '소재지';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.JMCD IS '지목';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.ARA IS '면적';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.COST IS '대장가격';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PTYDTL_D.GLOBALID IS 'GLOBALID';


--재산취득

CREATE TABLE icgis.GRT_PTYGET_D(
	SEQ				NUMERIC(5)		NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			NOT NULL
	, METHOD		VARCHAR(120)
	, COST			NUMERIC(38,8)
	, OWR			VARCHAR(20)
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PTYGET_D ADD CONSTRAINT GRT_PTYGET_D_PK PRIMARY KEY (SEQ, FTC, IDN);
COMMENT ON TABLE icgis.GRT_PTYGET_D IS '재산취득';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.SEQ IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.FTC IS '개별번호';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.IDN IS '일련번호';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.YMD IS '취득년월일';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.METHOD IS '취득방법';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.COST IS '취득금액';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.OWR IS '전소유자';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PTYGET_D.GLOBALID IS 'GLOBALID';


---점용대장

CREATE TABLE icgis.GRT_PARKUSE_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, PULNO			VARCHAR(20)	
	, LYMD			DATE			NOT NULL
	, PNAM			VARCHAR(40)	
	, PADDR			VARCHAR(50)	
	, PSSN			VARCHAR(14)	
	, UCONS			VARCHAR(50)	
	, LOC			VARCHAR(50)	
	, ARA			NUMERIC(38,8)	
	, AMT			VARCHAR(100)	
	, SYMD			DATE			
	, EYMD			DATE			
	, FNF			VARCHAR(1)		
	, NOTE			VARCHAR(100)	
	, WSYMD			DATE			
	, WEYMD			DATE			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, PFTC			VARCHAR(5)		
	, PIDN			INTEGER			
	, MNGT			VARCHAR(6)		NOT NULL
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PARKUSE_D ADD CONSTRAINT GRT_PARKUSE_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.GRT_PARKUSE_D IS '점용대장';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.IDN IS '점용허가번호';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.PULNO IS '점용허가관리번호';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.LYMD IS '점용허가일';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.PNAM IS '점용자_성명';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.PADDR IS '점용자_주소';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.PSSN IS '점용자_주민번호';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.UCONS IS '점용구조물';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.LOC IS '점용위치';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.ARA IS '점용면적';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.AMT IS '시설규모';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.SYMD IS '점용시작일시';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.EYMD IS '점용종료일시';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.FNF IS '점용료유상여부';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.PFTC IS '관련시설_지형지물부호';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.PIDN IS '관련시설_개별번호';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.MNGT IS '점용허가기관';
COMMENT ON COLUMN icgis.GRT_PARKUSE_D.GLOBALID IS 'GLOBALID';


--지목

CREATE TABLE icgis.GRT_PPJM_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, JMCD			VARCHAR(6)	
	, NOTE			VARCHAR(20)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_PPJM_D ADD CONSTRAINT GRT_PPJM_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.GRT_PPJM_D IS '지목';
COMMENT ON COLUMN icgis.GRT_PPJM_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_PPJM_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_PPJM_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_PPJM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_PPJM_D.JMCD IS '미조성공원지목';
COMMENT ON COLUMN icgis.GRT_PPJM_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_PPJM_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_PPJM_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_PPJM_D.GLOBALID IS 'GLOBALID';


---토지소유자

CREATE TABLE icgis.GRT_POWNER_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DCD			VARCHAR(10)
	, JB			VARCHAR(10)
	, JMCD			VARCHAR(6)	
	, ARA			NUMERIC(38,8)
	, ADDR			VARCHAR(70)
	, NAM			VARCHAR(40)
	, OTHER			VARCHAR(50)
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GRT_POWNER_D ADD CONSTRAINT GRT_POWNER_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.GRT_POWNER_D IS '토지소유자';
COMMENT ON COLUMN icgis.GRT_POWNER_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GRT_POWNER_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.GRT_POWNER_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.GRT_POWNER_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GRT_POWNER_D.DCD IS '구코드';
COMMENT ON COLUMN icgis.GRT_POWNER_D.JB IS '소재지지번';
COMMENT ON COLUMN icgis.GRT_POWNER_D.JMCD IS '지목';
COMMENT ON COLUMN icgis.GRT_POWNER_D.ARA IS '면적';
COMMENT ON COLUMN icgis.GRT_POWNER_D.ADDR IS '소유자주소';
COMMENT ON COLUMN icgis.GRT_POWNER_D.NAM IS '소유자성명';
COMMENT ON COLUMN icgis.GRT_POWNER_D.OTHER IS '소유권이외권리';
COMMENT ON COLUMN icgis.GRT_POWNER_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.GRT_POWNER_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GRT_POWNER_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GRT_POWNER_D.GLOBALID IS 'GLOBALID';



--------------------------------------------------------------------------
--##도로
--------------------------------------------------------------------------


--CCTV

CREATE TABLE icgis.RDL_CCTV_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, MNGT			VARCHAR(6)			NOT NULL
	, MNNM			VARCHAR(20)	
	, USG			VARCHAR(6)		
	, NET			VARCHAR(6)		
	, CTYPE			VARCHAR(6)		
	, MODEL			VARCHAR(30)	
	, RESOL			VARCHAR(20)	
	, GPSXY			VARCHAR(30)	
	, RDTYPE		VARCHAR(20)	
	, IPADD			VARCHAR(16)	
	, EMBELL		VARCHAR(10)	
	, POLETYPE		VARCHAR(6)		
	, POLENUM		VARCHAR(10)	
	, LOC			VARCHAR(80)	
	, YMD			DATE			
	, ETC			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, SEC_IDN		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, SGG_CDE		VARCHAR(5)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.RDL_CCTV_P ADD CONSTRAINT RDL_CCTV_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_CCTV_P IS 'CCTV';
COMMENT ON COLUMN icgis.RDL_CCTV_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_CCTV_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_CCTV_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_CCTV_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_CCTV_P.MNNM IS '관리명';
COMMENT ON COLUMN icgis.RDL_CCTV_P.USG IS 'CCTV용도';
COMMENT ON COLUMN icgis.RDL_CCTV_P.NET IS '자가망';
COMMENT ON COLUMN icgis.RDL_CCTV_P.CTYPE IS '카메라유형';
COMMENT ON COLUMN icgis.RDL_CCTV_P.MODEL IS '모델명';
COMMENT ON COLUMN icgis.RDL_CCTV_P.RESOL IS '해상도';
COMMENT ON COLUMN icgis.RDL_CCTV_P.GPSXY IS 'GPS좌표';
COMMENT ON COLUMN icgis.RDL_CCTV_P.RDTYPE IS '지역유형';
COMMENT ON COLUMN icgis.RDL_CCTV_P.IPADD IS 'IP주소';
COMMENT ON COLUMN icgis.RDL_CCTV_P.EMBELL IS '비상벨';
COMMENT ON COLUMN icgis.RDL_CCTV_P.POLETYPE IS 'POLE형태';
COMMENT ON COLUMN icgis.RDL_CCTV_P.POLENUM IS 'POLE번호';
COMMENT ON COLUMN icgis.RDL_CCTV_P.LOC IS '설치위치';
COMMENT ON COLUMN icgis.RDL_CCTV_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_CCTV_P.ETC IS '비고';
COMMENT ON COLUMN icgis.RDL_CCTV_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_CCTV_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_CCTV_P.CMNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDL_CCTV_P.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.RDL_CCTV_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_CCTV_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_CCTV_P.SEC_IDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_CCTV_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_CCTV_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_CCTV_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_CCTV_P.SHAPE IS 'SHAPE';


---RDT_BJNS_D

CREATE TABLE icgis.RDT_BJNS_D(
	FTC			VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(8)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, INO		VARCHAR(6)	
	, NAM		VARCHAR(50)
	, STDR		VARCHAR(50)
	, NUM		NUMERIC(5)	
	, UNIT		VARCHAR(4)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_BJNS_D ADD CONSTRAINT RDT_BJNS_D_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDT_BJNS_D IS 'RDT_BJNS_D';
COMMENT ON COLUMN icgis.RDT_BJNS_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_BJNS_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDT_BJNS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_BJNS_D.INO IS '지급회수';
COMMENT ON COLUMN icgis.RDT_BJNS_D.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.RDT_BJNS_D.STDR IS '규격';
COMMENT ON COLUMN icgis.RDT_BJNS_D.NUM IS '지정번호';
COMMENT ON COLUMN icgis.RDT_BJNS_D.UNIT IS '단위';
COMMENT ON COLUMN icgis.RDT_BJNS_D.GLOBALID IS 'GLOBALID';



---RDT_BONS_D

CREATE TABLE icgis.RDT_BONS_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, INO			VARCHAR(6)	
	, NAM			VARCHAR(50)
	, STDR			VARCHAR(50)
	, NUM			NUMERIC(5)	
	, UNIT			VARCHAR(4)	
	, TIDN			INTEGER		
	, SEQ			NUMERIC(5)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_BONS_D ADD CONSTRAINT RDT_BONS_D_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDT_BONS_D IS 'RDT_BONS_D';
COMMENT ON COLUMN icgis.RDT_BONS_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_BONS_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDT_BONS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_BONS_D.INO IS '지급회수';
COMMENT ON COLUMN icgis.RDT_BONS_D.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.RDT_BONS_D.STDR IS '규격';
COMMENT ON COLUMN icgis.RDT_BONS_D.NUM IS '지정번호';
COMMENT ON COLUMN icgis.RDT_BONS_D.UNIT IS '단위';
COMMENT ON COLUMN icgis.RDT_BONS_D.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.RDT_BONS_D.SEQ IS '파일일련번호';
COMMENT ON COLUMN icgis.RDT_BONS_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_BONS_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_BONS_D.GLOBALID IS 'GLOBALID';



--RDT_LGTS_D

CREATE TABLE icgis.RDT_LGTS_D(
	FTC					VARCHAR(6)		NOT NULL	
	, IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID			INTEGER			NOT NULL
	, INO				VARCHAR(6)	
	, NAM				VARCHAR(50)
	, STDR				VARCHAR(50)
	, NUM				NUMERIC(5)	
	, UNIT				VARCHAR(4)	
	, TIDN				INTEGER		
	, SEQ				NUMERIC(5)	
	, UPDATE_YMD		DATE		
	, UPDATE_NAM		VARCHAR(50)
	, GDB_ARCHIVE_OID	INTEGER			NOT NULL
	, GLOBALID			CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_LGTS_D ADD CONSTRAINT RDT_LGTS_D_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDT_LGTS_D IS 'RDT_LGTS_D';
COMMENT ON COLUMN icgis.RDT_LGTS_D.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDT_LGTS_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_LGTS_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDT_LGTS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_LGTS_D.INO IS '지급회수';
COMMENT ON COLUMN icgis.RDT_LGTS_D.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.RDT_LGTS_D.STDR IS '규격';
COMMENT ON COLUMN icgis.RDT_LGTS_D.NUM IS '지정번호';
COMMENT ON COLUMN icgis.RDT_LGTS_D.UNIT IS '단위';
COMMENT ON COLUMN icgis.RDT_LGTS_D.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.RDT_LGTS_D.SEQ IS '파일일련번호';
COMMENT ON COLUMN icgis.RDT_LGTS_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_LGTS_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_LGTS_D.GDB_ARCHIVE_OID IS 'GDB_ARCHIVE_OID';
COMMENT ON COLUMN icgis.RDT_LGTS_D.GLOBALID IS 'GLOBALID';



---RDT_SINC_D

CREATE TABLE icgis.RDT_SINC_D(
	IDN				INTEGER			NOT NULL	
	, YEAR			VARCHAR(4)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, UPJGCD		VARCHAR(6)		
	, HGUB			VARCHAR(6)		
	, RYMD			DATE			
	, PYMD			DATE			
	, HEOCHI		VARCHAR(6)		
	, CANNEO		DATE			
	, HUGANO		VARCHAR(12)	
	, STPCD			VARCHAR(6)		
	, JUMGRA		NUMERIC(38,8)	
	, CONAM			VARCHAR(20)	
	, REPNAM		VARCHAR(30)	
	, REPSSN		VARCHAR(13)	
	, TEL			VARCHAR(15)	
	, POST			VARCHAR(9)		
	, ADDR			VARCHAR(50)	
	, HUSAYU		VARCHAR(100)	
	, INNO			VARCHAR(20)	
	, BASADDR		VARCHAR(40)	
	, BASNAM		VARCHAR(30)	
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(200)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_SINC_D ADD CONSTRAINT RDT_SINC_D_PK PRIMARY KEY (IDN, YEAR);
COMMENT ON TABLE icgis.RDT_SINC_D IS 'RDT_SINC_D';
COMMENT ON COLUMN icgis.RDT_SINC_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDT_SINC_D.YEAR IS '측정년도';
COMMENT ON COLUMN icgis.RDT_SINC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_SINC_D.UPJGCD IS '업종';
COMMENT ON COLUMN icgis.RDT_SINC_D.HGUB IS '점용허가구분';
COMMENT ON COLUMN icgis.RDT_SINC_D.RYMD IS '회신일';
COMMENT ON COLUMN icgis.RDT_SINC_D.PYMD IS '도시계획결정고시일';
COMMENT ON COLUMN icgis.RDT_SINC_D.HEOCHI IS 'HEOCHI';
COMMENT ON COLUMN icgis.RDT_SINC_D.CANNEO IS 'CANNEO';
COMMENT ON COLUMN icgis.RDT_SINC_D.HUGANO IS 'HUGANO';
COMMENT ON COLUMN icgis.RDT_SINC_D.STPCD IS 'STPCD';
COMMENT ON COLUMN icgis.RDT_SINC_D.JUMGRA IS '감면율';
COMMENT ON COLUMN icgis.RDT_SINC_D.CONAM IS 'CONAM';
COMMENT ON COLUMN icgis.RDT_SINC_D.REPNAM IS 'REPNAM';
COMMENT ON COLUMN icgis.RDT_SINC_D.REPSSN IS 'REPSSN';
COMMENT ON COLUMN icgis.RDT_SINC_D.TEL IS '책임자';
COMMENT ON COLUMN icgis.RDT_SINC_D.POST IS '우편번호';
COMMENT ON COLUMN icgis.RDT_SINC_D.ADDR IS '주소';
COMMENT ON COLUMN icgis.RDT_SINC_D.HUSAYU IS 'HUSAYU';
COMMENT ON COLUMN icgis.RDT_SINC_D.INNO IS 'INNO';
COMMENT ON COLUMN icgis.RDT_SINC_D.BASADDR IS 'BASADDR';
COMMENT ON COLUMN icgis.RDT_SINC_D.BASNAM IS 'BASNAM';
COMMENT ON COLUMN icgis.RDT_SINC_D.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.RDT_SINC_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_SINC_D.GLOBALID IS 'GLOBALID';



--가로등_등주

CREATE TABLE icgis.RDL_LGHT_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, CTLNO			VARCHAR(30)	
	, YMD			DATE			
	, LGUB			VARCHAR(6)		
	, SLG			VARCHAR(6)		
	, SST			VARCHAR(20)	
	, HFTC			VARCHAR(5)		
	, HIDN			INTEGER			
	, POLESH		VARCHAR(6)		
	, JOOHEI		NUMERIC(38,8)	
	, POLETY		VARCHAR(6)		
	, POLEMA		VARCHAR(6)		
	, ARMST			VARCHAR(6)		
	, ARMLEN		NUMERIC(38,8)
	, ARMMA			VARCHAR(6)	
	, FXFLNU		NUMERIC(5)	
	, EDGES			NUMERIC(5)	
	, BALLS			NUMERIC(5)	
	, POLEKD		VARCHAR(6)	
	, LSPAN			NUMERIC(5)	
	, RSPAN			NUMERIC(5)	
	, IBRT			NUMERIC(5)	
	, IART			NUMERIC(5)	
	, GBRT			NUMERIC(5)	
	, GART			NUMERIC(5)	
	, GVOLT			NUMERIC(5)	
	, RECE			VARCHAR(6)	
	, CRPLSH		VARCHAR(6)	
	, CRPLCD		VARCHAR(6)	
	, CRPLCA		NUMERIC(5)	
	, CRPLPW		VARCHAR(6)	
	, PRPLSH		VARCHAR(6)	
	, PRPLCD		VARCHAR(6)	
	, PRPLCA		NUMERIC(5)	
	, PRPLPW		VARCHAR(6)	
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, MNGT			VARCHAR(6)	
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, HJD_CDE		VARCHAR(10)
	, SHT_NUM		VARCHAR(10)
	, MNG_IDN		NUMERIC(38,8)
	, SYS_CHK		VARCHAR(1)	
	, SGG_CDE		VARCHAR(5)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
	, JFTC			VARCHAR(6)			NOT NULL
	, JIDN			VARCHAR(10)	
);
ALTER TABLE icgis.RDL_LGHT_P ADD CONSTRAINT RDL_LGHT_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_LGHT_P IS '가로등_등주';
COMMENT ON COLUMN icgis.RDL_LGHT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_LGHT_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.CTLNO IS '관리번호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_LGHT_P.LGUB IS '등구분';
COMMENT ON COLUMN icgis.RDL_LGHT_P.SLG IS '선로종류';
COMMENT ON COLUMN icgis.RDL_LGHT_P.SST IS '선로규격';
COMMENT ON COLUMN icgis.RDL_LGHT_P.HFTC IS '회로_지형지물부호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.HIDN IS '회로_개별번호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.POLESH IS '등주규격';
COMMENT ON COLUMN icgis.RDL_LGHT_P.JOOHEI IS '등주높이';
COMMENT ON COLUMN icgis.RDL_LGHT_P.POLETY IS '등주형식';
COMMENT ON COLUMN icgis.RDL_LGHT_P.POLEMA IS '등주재질';
COMMENT ON COLUMN icgis.RDL_LGHT_P.ARMST IS 'ARM규격';
COMMENT ON COLUMN icgis.RDL_LGHT_P.ARMLEN IS 'ARM길이';
COMMENT ON COLUMN icgis.RDL_LGHT_P.ARMMA IS 'ARM재질';
COMMENT ON COLUMN icgis.RDL_LGHT_P.FXFLNU IS '기꽂이수';
COMMENT ON COLUMN icgis.RDL_LGHT_P.EDGES IS '가로등등주수량';
COMMENT ON COLUMN icgis.RDL_LGHT_P.BALLS IS '등기구수량';
COMMENT ON COLUMN icgis.RDL_LGHT_P.POLEKD IS '등주종류';
COMMENT ON COLUMN icgis.RDL_LGHT_P.LSPAN IS '경간 좌';
COMMENT ON COLUMN icgis.RDL_LGHT_P.RSPAN IS '경간 우';
COMMENT ON COLUMN icgis.RDL_LGHT_P.IBRT IS '절연저항 전';
COMMENT ON COLUMN icgis.RDL_LGHT_P.IART IS '절연저항 후';
COMMENT ON COLUMN icgis.RDL_LGHT_P.GBRT IS '접지저항 전';
COMMENT ON COLUMN icgis.RDL_LGHT_P.GART IS '접지저항 후';
COMMENT ON COLUMN icgis.RDL_LGHT_P.GVOLT IS '대지전압';
COMMENT ON COLUMN icgis.RDL_LGHT_P.RECE IS '수신기';
COMMENT ON COLUMN icgis.RDL_LGHT_P.CRPLSH IS '가로등기구모형';
COMMENT ON COLUMN icgis.RDL_LGHT_P.CRPLCD IS '가로등광원종류';
COMMENT ON COLUMN icgis.RDL_LGHT_P.CRPLCA IS '가로등광원용량';
COMMENT ON COLUMN icgis.RDL_LGHT_P.CRPLPW IS '가로등광원전원';
COMMENT ON COLUMN icgis.RDL_LGHT_P.PRPLSH IS '보행등기구모형';
COMMENT ON COLUMN icgis.RDL_LGHT_P.PRPLCD IS '보행등광원종류';
COMMENT ON COLUMN icgis.RDL_LGHT_P.PRPLCA IS '보행등광원용량';
COMMENT ON COLUMN icgis.RDL_LGHT_P.PRPLPW IS '보행등광원전원';
COMMENT ON COLUMN icgis.RDL_LGHT_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_LGHT_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_LGHT_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_LGHT_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_LGHT_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_LGHT_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_LGHT_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.MNG_IDN IS '가로등제어기관리번호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_LGHT_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_LGHT_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_LGHT_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.RDL_LGHT_P.JFTC IS '제어함_지형지물부호';
COMMENT ON COLUMN icgis.RDL_LGHT_P.JIDN IS '제어함_개별번호';


---가로수

CREATE TABLE icgis.RDL_TREE_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)	
	, DCD			VARCHAR(10)
	, MNGT			VARCHAR(6)	
	, SEED			VARCHAR(6)	
	, YMD			DATE		
	, DIA			NUMERIC(5)	
	, RIDN			INTEGER		
	, TKD			VARCHAR(6)	
	, NOTE			VARCHAR(50)
	, SHTRYN		VARCHAR(1)	
	, CVRYN			VARCHAR(1)	
	, SPTYN			VARCHAR(1)	
	, FMTP			VARCHAR(6)	
	, FMMT			VARCHAR(6)	
	, TMNAM			VARCHAR(30)
	, RDNAME		VARCHAR(20)
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, SHT_NUM		VARCHAR(10)
	, SYS_CHK		VARCHAR(1)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_TREE_P ADD CONSTRAINT RDL_TREE_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_TREE_P IS '가로수';
COMMENT ON COLUMN icgis.RDL_TREE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_TREE_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDL_TREE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_TREE_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_TREE_P.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.RDL_TREE_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_TREE_P.SEED IS '피해수종';
COMMENT ON COLUMN icgis.RDL_TREE_P.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.RDL_TREE_P.DIA IS '수관직경';
COMMENT ON COLUMN icgis.RDL_TREE_P.RIDN IS '허가신청번호';
COMMENT ON COLUMN icgis.RDL_TREE_P.TKD IS '가로수구분';
COMMENT ON COLUMN icgis.RDL_TREE_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_TREE_P.SHTRYN IS '수목보호대유무';
COMMENT ON COLUMN icgis.RDL_TREE_P.CVRYN IS '수목덮개유무';
COMMENT ON COLUMN icgis.RDL_TREE_P.SPTYN IS '수목지주대유무';
COMMENT ON COLUMN icgis.RDL_TREE_P.FMTP IS '수목보호틀형태';
COMMENT ON COLUMN icgis.RDL_TREE_P.FMMT IS '수목보호판재질';
COMMENT ON COLUMN icgis.RDL_TREE_P.TMNAM IS '실명제명';
COMMENT ON COLUMN icgis.RDL_TREE_P.RDNAME IS '도로명';
COMMENT ON COLUMN icgis.RDL_TREE_P.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.RDL_TREE_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_TREE_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_TREE_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_TREE_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_TREE_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_TREE_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_TREE_P.SHAPE IS 'SHAPE';


--감시 카메라 맨홀

CREATE TABLE icgis.RDL_MANHOL_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, MNGT			VARCHAR(6)		
	, MNNM			VARCHAR(20)	
	, GPSXY			VARCHAR(30)	
	, MHOWN			VARCHAR(6)		
	, MHNUM			VARCHAR(10)	
	, LOC			VARCHAR(8)		
	, YMD			DATE			
	, ETC			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_MANHOL_P ADD CONSTRAINT RDL_MANHOL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_MANHOL_P IS '감시 카메라 맨홀';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.MNNM IS '관리명';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.GPSXY IS 'GPS좌표';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.MHOWN IS 'MANHOLE소유자';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.MHNUM IS 'MANHOLE번호';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.LOC IS '침수지역';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_MANHOL_P.SHAPE IS 'SHAPE';


---감시 카메라 케이블

CREATE TABLE icgis.RDL_CABLE_L(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNGT			VARCHAR(6)		NOT NULL
	, MNNM			VARCHAR(20)	
	, SLOC			VARCHAR(80)	
	, ELOC			VARCHAR(80)	
	, SGPSXY		VARCHAR(30)	
	, EGPSXY		VARCHAR(30)	
	, BPIPE			VARCHAR(6)		
	, BPIPEOWN		VARCHAR(6)		
	, CBUSG			VARCHAR(6)		
	, CBTYPE		VARCHAR(10)	
	, YMD			DATE			
	, ETC			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.RDL_CABLE_L ADD CONSTRAINT RDL_CABLE_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_CABLE_L IS '감시 카메라 케이블';
COMMENT ON COLUMN icgis.RDL_CABLE_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_CABLE_L.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDL_CABLE_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_CABLE_L.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.RDL_CABLE_L.MNNM IS '관리명';
COMMENT ON COLUMN icgis.RDL_CABLE_L.SLOC IS '설치위치_시작';
COMMENT ON COLUMN icgis.RDL_CABLE_L.ELOC IS '설치위치_끝';
COMMENT ON COLUMN icgis.RDL_CABLE_L.SGPSXY IS 'GPS좌표_시작';
COMMENT ON COLUMN icgis.RDL_CABLE_L.EGPSXY IS 'GPS좌표_끝';
COMMENT ON COLUMN icgis.RDL_CABLE_L.BPIPE IS '배관유형';
COMMENT ON COLUMN icgis.RDL_CABLE_L.BPIPEOWN IS '배관소유자';
COMMENT ON COLUMN icgis.RDL_CABLE_L.CBUSG IS '케이블용도';
COMMENT ON COLUMN icgis.RDL_CABLE_L.CBTYPE IS '케이블유형';
COMMENT ON COLUMN icgis.RDL_CABLE_L.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.RDL_CABLE_L.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.RDL_CABLE_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_CABLE_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_CABLE_L.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.RDL_CABLE_L.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.RDL_CABLE_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_CABLE_L.SHAPE IS 'SHAPE';


--감시카메라전주

CREATE TABLE icgis.RDL_POLE_P(
	FTC			VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, MNGT		VARCHAR(6)		NOT NULL
	, MNNM		VARCHAR(20)
	, GPSXY		VARCHAR(30)
	, POLEOWN		VARCHAR(6)	
	, POLETYPE	VARCHAR(6)	
	, POLENUM		VARCHAR(10)
	, LOC			VARCHAR(80)
	, YMD			DATE		
	, ETC			VARCHAR(100)
	, UPDATE_YMD	DATE			NOT NULL
	, UPDATE_NAM	VARCHAR(50)	
	, CIDN		VARCHAR(10)	
	, CMNGT		VARCHAR(6)		
	, GLOBALID	CHAR(38)		NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.RDL_POLE_P ADD CONSTRAINT RDL_POLE_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_POLE_P IS '감시카메라전주';
COMMENT ON COLUMN icgis.RDL_POLE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_POLE_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDL_POLE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_POLE_P.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.RDL_POLE_P.MNNM IS '관리명';
COMMENT ON COLUMN icgis.RDL_POLE_P.GPSXY IS 'GPS좌표';
COMMENT ON COLUMN icgis.RDL_POLE_P.POLEOWN IS 'POLE소유자';
COMMENT ON COLUMN icgis.RDL_POLE_P.POLETYPE IS 'POLE형태';
COMMENT ON COLUMN icgis.RDL_POLE_P.POLENUM IS 'POLE번호';
COMMENT ON COLUMN icgis.RDL_POLE_P.LOC IS '침수지역';
COMMENT ON COLUMN icgis.RDL_POLE_P.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.RDL_POLE_P.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.RDL_POLE_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_POLE_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_POLE_P.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.RDL_POLE_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.RDL_POLE_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_POLE_P.SHAPE IS 'SHAPE';


---개별등

CREATE TABLE icgis.RDL_LBAL_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, HIDN			INTEGER				NOT NULL
	, LFTC			VARCHAR(6)			NOT NULL
	, LIDN			INTEGER				NOT NULL
	, OBJECTID		INTEGER				NOT NULL
	, CTLNO			VARCHAR(30)		
	, YMD			DATE				
	, LGUB			VARCHAR(6)			
	, ILLUM			NUMERIC(5)			
	, IBRT			NUMERIC(5)			
	, IART			NUMERIC(5)			
	, GBRT			NUMERIC(5)			
	, GART			NUMERIC(5)			
	, BHEIT			NUMERIC(38,8)		
	, FPOS			VARCHAR(50)		
	, CIDN			VARCHAR(10)		
	, CMNGT			VARCHAR(6)			
	, MNGT			VARCHAR(6)			
	, HFTC			VARCHAR(6)			NOT NULL
	, NOTE			VARCHAR(50)
	, SYS			VARCHAR(1)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.RDL_LBAL_P ADD CONSTRAINT RDL_LBAL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_LBAL_P IS '개별등';
COMMENT ON COLUMN icgis.RDL_LBAL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_LBAL_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_LBAL_P.HIDN IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_LBAL_P.LFTC IS '관리번호';
COMMENT ON COLUMN icgis.RDL_LBAL_P.LIDN IS '가로등_지형지물부호';
COMMENT ON COLUMN icgis.RDL_LBAL_P.OBJECTID IS '가로등_개별번호';
COMMENT ON COLUMN icgis.RDL_LBAL_P.CTLNO IS '설치일';
COMMENT ON COLUMN icgis.RDL_LBAL_P.YMD IS '등종류';
COMMENT ON COLUMN icgis.RDL_LBAL_P.LGUB IS '조도';
COMMENT ON COLUMN icgis.RDL_LBAL_P.ILLUM IS '절연저항 전';
COMMENT ON COLUMN icgis.RDL_LBAL_P.IBRT IS '절연저항 후';
COMMENT ON COLUMN icgis.RDL_LBAL_P.IART IS '접지저항 전';
COMMENT ON COLUMN icgis.RDL_LBAL_P.GBRT IS '접지저항 후';
COMMENT ON COLUMN icgis.RDL_LBAL_P.GART IS '안정기높이';
COMMENT ON COLUMN icgis.RDL_LBAL_P.BHEIT IS '점멸기조작위치';
COMMENT ON COLUMN icgis.RDL_LBAL_P.FPOS IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_LBAL_P.CIDN IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_LBAL_P.CMNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_LBAL_P.MNGT IS '회로_지형지물부호';
COMMENT ON COLUMN icgis.RDL_LBAL_P.HFTC IS '회로_개별번호';
COMMENT ON COLUMN icgis.RDL_LBAL_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_LBAL_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.RDL_LBAL_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_LBAL_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_LBAL_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_LBAL_P.SHAPE IS 'SHAPE';


---개요변경내역

CREATE TABLE icgis.RDT_CNSZ_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(10)	NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, INO			VARCHAR(1)		
	, CONT			VARCHAR(1000)	
	, PSIZE			VARCHAR(1000)	
	, NOTE			VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_CNSZ_D ADD CONSTRAINT RDT_CNSZ_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_CNSZ_D IS '개요변경내역';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.INO IS '변경회수';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.CONT IS '변경내용';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.PSIZE IS '변경규모';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_CNSZ_D.GLOBALID IS 'GLOBALID';


---검사실시이력

CREATE TABLE icgis.RDT_PKMH_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			
	, CONT			VARCHAR(200)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKMH_D ADD CONSTRAINT RDT_PKMH_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.RDT_PKMH_D IS '검사실시이력';
COMMENT ON COLUMN icgis.RDT_PKMH_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKMH_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_PKMH_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKMH_D.YMD IS '검사일';
COMMENT ON COLUMN icgis.RDT_PKMH_D.CONT IS '검사결과';
COMMENT ON COLUMN icgis.RDT_PKMH_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_PKMH_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKMH_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKMH_D.GLOBALID IS 'GLOBALID';


---고가도로_차로

CREATE TABLE icgis.RDL_ELBR_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, RIDN			INTEGER		
	, NAM			VARCHAR(40)
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, MAN			VARCHAR(30)
	, GRADE			VARCHAR(1)	
	, FACICS		VARCHAR(6)	
	, YMD			DATE		
	, ADDR			VARCHAR(50)
	, AEA			VARCHAR(6)	
	, MINSCD		VARCHAR(6)	
	, HSTNAM		VARCHAR(30)
	, HSTADR		VARCHAR(50)
	, PAYCD			VARCHAR(6)	
	, SPYMD			DATE		
	, EPYMD			DATE		
	, BJL			VARCHAR(6)	
	, DUNG			VARCHAR(1)	
	, LINE			NUMERIC(5)	
	, DWEI			VARCHAR(6)	
	, LENTH			INTEGER		
	, DISLEN		INTEGER		
	, DISEA			NUMERIC(5)	
	, ALWID			NUMERIC(38,8)
	, RWID			NUMERIC(38,8)
	, RARA			NUMERIC(38,8)
	, MAXCOL		INTEGER		
	, MINCOL		INTEGER		
	, BHEIT			NUMERIC(38,8)
	, LGTEA			NUMERIC(5)	
	, LJONG			VARCHAR(6)	
	, JGUBE			NUMERIC(38,8)
	, HGUBE			NUMERIC(38,8)
	, UPTYPE		VARCHAR(6)	
	, DNTYPE		VARCHAR(6)	
	, UPGAN			INTEGER		
	, UPJHEI		NUMERIC(38,8)
	, UPJJONG		VARCHAR(6)	
	, UPBON			VARCHAR(40)
	, UPRD			VARCHAR(40)
	, UPBD			VARCHAR(40)
	, URTH			NUMERIC(38,8)
	, UBTH			NUMERIC(38,8)
	, URWID			NUMERIC(38,8)
	, UBWID			NUMERIC(38,8)
	, UPSMA			VARCHAR(6)	
	, URSMA			VARCHAR(6)	
	, UBSMA			VARCHAR(6)	
	, UNHEI			NUMERIC(38,8)
	, UNWID			NUMERIC(38,8)
	, MFACIL		VARCHAR(6)	
	, UNLEN			INTEGER		
	, NMATE			VARCHAR(6)	
	, FIXTY			VARCHAR(6)	
	, RUNTY			VARCHAR(40)
	, UPEA			NUMERIC(5)	
	, KMTYPE		VARCHAR(6)	
	, GFIXTY		VARCHAR(6)	
	, GRUNTY		VARCHAR(6)	
	, MUNG			NUMERIC(5)	
	, KYOJA			VARCHAR(40)
	, YEONSE		VARCHAR(40)
	, KKTYPE		VARCHAR(6)	
	, KKEA			NUMERIC(5)	
	, KCHISU		VARCHAR(20)
	, KKDEP			NUMERIC(38,8)
	, KKICHO		VARCHAR(6)	
	, KKHEI			NUMERIC(38,8)
	, KDTYPE		VARCHAR(6)	
	, STWH			INTEGER
	, KDDEP			NUMERIC(38,8)
	, KDHEI			NUMERIC(38,8)
	, KDBASE		VARCHAR(6)	
	, NLTYPE		VARCHAR(20)
	, KNARA			NUMERIC(38,8)
	, KNHEI			NUMERIC(38,8)
	, KDEA			NUMERIC(5)	
	, OBWID			NUMERIC(38,8)
	, OBLEN			NUMERIC(38,8)
	, LAMP			NUMERIC(5)	
	, LAMWID		NUMERIC(38,8)
	, LAMLEN		INTEGER		
	, LAMARA		NUMERIC(38,8)
	, UPNO			VARCHAR(20)
	, LIMHEI		NUMERIC(38,8)
	, LIMWEI		NUMERIC(38,8)
	, UPWT			VARCHAR(30)
	, TELE			VARCHAR(30)
	, ELEC			VARCHAR(30)
	, GAS			VARCHAR(30)
	, ETC			VARCHAR(30)
	, EMERG			NUMERIC(5)	
	, MNGT			VARCHAR(6)	
	, YEAR			VARCHAR(4)	
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, HJD_CDE		VARCHAR(10)
	, SHT_NUM		VARCHAR(10)
	, GRD_CDE		VARCHAR(6)	
	, TOT_LEN		NUMERIC(38,8)
	, FXT_CNT		NUMERIC(38,8)
	, LCD_EXP		VARCHAR(50)
	, LCD_CNT		NUMERIC(38,8)
	, STD_LBL		VARCHAR(50)
	, SYS_CHK		VARCHAR(1)	
	, SGG_CDE		VARCHAR(5)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_ELBR_A ADD CONSTRAINT RDL_ELBR_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_ELBR_A IS '고가도로_차로';
COMMENT ON COLUMN icgis.RDL_ELBR_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_ELBR_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_ELBR_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_ELBR_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_ELBR_A.NAM IS '고가도로_차도명';
COMMENT ON COLUMN icgis.RDL_ELBR_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_ELBR_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_ELBR_A.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDL_ELBR_A.GRADE IS '관리급수';
COMMENT ON COLUMN icgis.RDL_ELBR_A.FACICS IS '종별';
COMMENT ON COLUMN icgis.RDL_ELBR_A.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDL_ELBR_A.ADDR IS '소재지';
COMMENT ON COLUMN icgis.RDL_ELBR_A.AEA IS '교량형태';
COMMENT ON COLUMN icgis.RDL_ELBR_A.MINSCD IS '민자여부';
COMMENT ON COLUMN icgis.RDL_ELBR_A.HSTNAM IS '민자사업자명';
COMMENT ON COLUMN icgis.RDL_ELBR_A.HSTADR IS '민자사업자주소';
COMMENT ON COLUMN icgis.RDL_ELBR_A.PAYCD IS '유료여부';
COMMENT ON COLUMN icgis.RDL_ELBR_A.SPYMD IS '유료시작일';
COMMENT ON COLUMN icgis.RDL_ELBR_A.EPYMD IS '유료종료일';
COMMENT ON COLUMN icgis.RDL_ELBR_A.BJL IS '교량종류';
COMMENT ON COLUMN icgis.RDL_ELBR_A.DUNG IS '교량등급';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LINE IS '왕복차로수';
COMMENT ON COLUMN icgis.RDL_ELBR_A.DWEI IS '설계하중';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LENTH IS '일반제원_교장';
COMMENT ON COLUMN icgis.RDL_ELBR_A.DISLEN IS '일반제원_경간장';
COMMENT ON COLUMN icgis.RDL_ELBR_A.DISEA IS '일반제원_경간수';
COMMENT ON COLUMN icgis.RDL_ELBR_A.ALWID IS '일반제원_총폭원';
COMMENT ON COLUMN icgis.RDL_ELBR_A.RWID IS '일반제원_유효폭';
COMMENT ON COLUMN icgis.RDL_ELBR_A.RARA IS '일반제원_상당면적';
COMMENT ON COLUMN icgis.RDL_ELBR_A.MAXCOL IS '일반제원_최대경간';
COMMENT ON COLUMN icgis.RDL_ELBR_A.MINCOL IS '일반제원_최소경간';
COMMENT ON COLUMN icgis.RDL_ELBR_A.BHEIT IS '일반제원_교고';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LGTEA IS '일반제원_조명수량';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LJONG IS '일반제원_조명종류';
COMMENT ON COLUMN icgis.RDL_ELBR_A.JGUBE IS '일반제원_종단구배';
COMMENT ON COLUMN icgis.RDL_ELBR_A.HGUBE IS '일반제원_횡단구배';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPTYPE IS '상부구조형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.DNTYPE IS '하부구조형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPGAN IS '상부공-주형간격';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPJHEI IS '상부공-주형높이';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPJJONG IS '상부공-주형형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPBON IS '상부공-주형본류';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPRD IS '상부공-상판차도형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPBD IS '상부공-상판보도형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.URTH IS '상부공-상판차도두께';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UBTH IS '상부공-상판보도두께';
COMMENT ON COLUMN icgis.RDL_ELBR_A.URWID IS '상부공-차도폭';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UBWID IS '상부공-보도폭';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPSMA IS '상부공-상판재료';
COMMENT ON COLUMN icgis.RDL_ELBR_A.URSMA IS '상부공-차도재료';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UBSMA IS '상부공-보도재료';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UNHEI IS '상부공-난간높이';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UNWID IS '상부공-난간폭';
COMMENT ON COLUMN icgis.RDL_ELBR_A.MFACIL IS '횡단시설명';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UNLEN IS '상부공-난간총연장';
COMMENT ON COLUMN icgis.RDL_ELBR_A.NMATE IS '상부공-상부난간재료';
COMMENT ON COLUMN icgis.RDL_ELBR_A.FIXTY IS '상부공-이음장치고정형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.RUNTY IS '상부공-이음장치가동형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPEA IS '상부공-상부슈';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KMTYPE IS '상부공-교명주형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.GFIXTY IS '상부공-지승고정형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.GRUNTY IS '상부공-지승가동형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.MUNG IS '상부공-명암동수';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KYOJA IS '상부공-교좌장치';
COMMENT ON COLUMN icgis.RDL_ELBR_A.YEONSE IS '상부공-연석';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KKTYPE IS '하부공_교각형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KKEA IS '하부공_교각수';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KCHISU IS '하부공_교각치수';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KKDEP IS '하부공_교각매립깊이';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KKICHO IS '하부공_교각기초';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KKHEI IS '하부공_교각총높이';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KDTYPE IS '하부공_교대형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.STWH IS '하부공_교대평수위상고';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KDDEP IS '하부공_교대매립깊이';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KDHEI IS '하부공_교대총높이';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KDBASE IS '하부공_교대기초형식';
COMMENT ON COLUMN icgis.RDL_ELBR_A.NLTYPE IS '하부공_교대날개벽종류';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KNARA IS '하부공_교대날개벽총면적';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KNHEI IS '하부공_교대날개벽높이';
COMMENT ON COLUMN icgis.RDL_ELBR_A.KDEA IS '하부공_교대수';
COMMENT ON COLUMN icgis.RDL_ELBR_A.OBWID IS '옹벽_폭원';
COMMENT ON COLUMN icgis.RDL_ELBR_A.OBLEN IS '옹벽_연장';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LAMP IS '램프_개소수';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LAMWID IS '램프_폭원';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LAMLEN IS '램프_연장';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LAMARA IS '램프_면적';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPNO IS '고시번호';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LIMHEI IS '통과제한높이';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LIMWEI IS '통과제한하중';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPWT IS '부착시설관리기관_상수도';
COMMENT ON COLUMN icgis.RDL_ELBR_A.TELE IS '부착시설관리기관_통신관로';
COMMENT ON COLUMN icgis.RDL_ELBR_A.ELEC IS '부착시설관리기관_전기관로';
COMMENT ON COLUMN icgis.RDL_ELBR_A.GAS IS '부착시설관리기관_가스';
COMMENT ON COLUMN icgis.RDL_ELBR_A.ETC IS '부착시설관리기관_기타';
COMMENT ON COLUMN icgis.RDL_ELBR_A.EMERG IS '긴급전화';
COMMENT ON COLUMN icgis.RDL_ELBR_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_ELBR_A.YEAR IS '준공년도';
COMMENT ON COLUMN icgis.RDL_ELBR_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_ELBR_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_ELBR_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_ELBR_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_ELBR_A.GRD_CDE IS '기준점등급';
COMMENT ON COLUMN icgis.RDL_ELBR_A.TOT_LEN IS '총연장';
COMMENT ON COLUMN icgis.RDL_ELBR_A.FXT_CNT IS '상부공_이음장치수량';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LCD_EXP IS '조명시설_종류';
COMMENT ON COLUMN icgis.RDL_ELBR_A.LCD_CNT IS '조명시설_수량';
COMMENT ON COLUMN icgis.RDL_ELBR_A.STD_LBL IS '라벨';
COMMENT ON COLUMN icgis.RDL_ELBR_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_ELBR_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_ELBR_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_ELBR_A.SHAPE IS 'SHAPE';


---공동구

CREATE TABLE icgis.RDL_COPI_A(
	FTC			VARCHAR(6)		NOT NULL	
	, IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, RIDN		INTEGER			
	, CIDN		VARCHAR(10)	
	, CMNGT		VARCHAR(6)		
	, MAN		VARCHAR(30)	
	, GRADE		VARCHAR(1)		
	, FACICS	VARCHAR(6)		
	, NAM		VARCHAR(30)	
	, YMD		DATE			
	, ADDR		VARCHAR(40)	
	, TOTLEN	NUMERIC(38,8)	
	, BOXGU		VARCHAR(30)	
	, WIDTH		NUMERIC(38,8)	
	, HEIGHT	NUMERIC(38,8)	
	, LENTH		NUMERIC(38,8)	
	, ARA		NUMERIC(38,8)	
	, PATLEN	NUMERIC(38,8)	
	, WATR		VARCHAR(40)	
	, ELEC		VARCHAR(40)	
	, TELE		VARCHAR(40)	
	, WARM		VARCHAR(40)	
	, SOOPWR	VARCHAR(40)	
	, SOOWAY	VARCHAR(40)	
	, SOOJJ		VARCHAR(40)	
	, SOOBBS	VARCHAR(40)	
	, EYONG		VARCHAR(40)	
	, LIGHT		VARCHAR(40)	
	, DRAIN		VARCHAR(40)	
	, JIBSOO	VARCHAR(40)	
	, BALQTY	VARCHAR(40)	
	, SOWHA		VARCHAR(40)	
	, HWAN		VARCHAR(40)	
	, FAN		VARCHAR(40)	
	, JABGU		VARCHAR(40)	
	, MNGTPO	VARCHAR(40)	
	, TEL		VARCHAR(15)	
	, GUARD		VARCHAR(1)		
	, MNGT		VARCHAR(6)		
	, NOTE		VARCHAR(50)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, HJD_CDE		VARCHAR(10)
	, SHT_NUM		VARCHAR(10)
	, IST_YMD		VARCHAR(8)	
	, SYS_CHK		VARCHAR(1)	
	, SGG_CDE		VARCHAR(5)	
	, GLOBALID		CHAR(38)	NOT NULL
	, SHAPE			public.geometry	NULL
);
ALTER TABLE icgis.RDL_COPI_A ADD CONSTRAINT RDL_COPI_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_COPI_A IS '공동구';
COMMENT ON COLUMN icgis.RDL_COPI_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_COPI_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_COPI_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_COPI_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_COPI_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_COPI_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_COPI_A.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDL_COPI_A.GRADE IS '관리급수';
COMMENT ON COLUMN icgis.RDL_COPI_A.FACICS IS '종별';
COMMENT ON COLUMN icgis.RDL_COPI_A.NAM IS '공동구명';
COMMENT ON COLUMN icgis.RDL_COPI_A.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDL_COPI_A.ADDR IS '소재지_지번';
COMMENT ON COLUMN icgis.RDL_COPI_A.TOTLEN IS '총연장';
COMMENT ON COLUMN icgis.RDL_COPI_A.BOXGU IS 'BOX규격';
COMMENT ON COLUMN icgis.RDL_COPI_A.WIDTH IS '폭';
COMMENT ON COLUMN icgis.RDL_COPI_A.HEIGHT IS '높이';
COMMENT ON COLUMN icgis.RDL_COPI_A.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_COPI_A.ARA IS '면적';
COMMENT ON COLUMN icgis.RDL_COPI_A.PATLEN IS '순찰연장';
COMMENT ON COLUMN icgis.RDL_COPI_A.WATR IS '상수도';
COMMENT ON COLUMN icgis.RDL_COPI_A.ELEC IS '전기';
COMMENT ON COLUMN icgis.RDL_COPI_A.TELE IS '통신';
COMMENT ON COLUMN icgis.RDL_COPI_A.WARM IS '난방';
COMMENT ON COLUMN icgis.RDL_COPI_A.SOOPWR IS '수전전압';
COMMENT ON COLUMN icgis.RDL_COPI_A.SOOWAY IS '수전방식';
COMMENT ON COLUMN icgis.RDL_COPI_A.SOOJJ IS '수전지점';
COMMENT ON COLUMN icgis.RDL_COPI_A.SOOBBS IS '수배전반수';
COMMENT ON COLUMN icgis.RDL_COPI_A.EYONG IS '계약용량';
COMMENT ON COLUMN icgis.RDL_COPI_A.LIGHT IS '조명시설';
COMMENT ON COLUMN icgis.RDL_COPI_A.DRAIN IS '배수설비';
COMMENT ON COLUMN icgis.RDL_COPI_A.JIBSOO IS '집수정';
COMMENT ON COLUMN icgis.RDL_COPI_A.BALQTY IS '발전기용량';
COMMENT ON COLUMN icgis.RDL_COPI_A.SOWHA IS '소화기';
COMMENT ON COLUMN icgis.RDL_COPI_A.HWAN IS '환기구';
COMMENT ON COLUMN icgis.RDL_COPI_A.FAN IS '환기방식';
COMMENT ON COLUMN icgis.RDL_COPI_A.JABGU IS '작업구';
COMMENT ON COLUMN icgis.RDL_COPI_A.MNGTPO IS '관리실위치';
COMMENT ON COLUMN icgis.RDL_COPI_A.TEL IS '전화번호';
COMMENT ON COLUMN icgis.RDL_COPI_A.GUARD IS '관리인상주여부';
COMMENT ON COLUMN icgis.RDL_COPI_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_COPI_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_COPI_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_COPI_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_COPI_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_COPI_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_COPI_A.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_COPI_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_COPI_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_COPI_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_COPI_A.SHAPE IS 'SHAPE';


--공사대장

CREATE TABLE icgis.RDT_CNST_D(
	MNGT					VARCHAR(6)		NOT NULL	
	, IDN					VARCHAR(10)		NOT NULL	
	, OBJECTID				INTEGER			NOT NULL
	, WORKCD				VARCHAR(6)		
	, WORKCS				VARCHAR(6)		
	, BUDGCS				VARCHAR(6)		
	, BUDGJA				VARCHAR(10)	
	, BUDGGA				VARCHAR(20)	
	, BUDGHA				VARCHAR(16)	
	, BUDGSE				VARCHAR(16)	
	, KUMO					VARCHAR(300)	
	, NOTE					VARCHAR(100)	
	, BUDGSS				VARCHAR(20)	
	, BUDGMO				VARCHAR(30)	
	, WCD					VARCHAR(6)		
	, NGUB					VARCHAR(6)		
	, WORKCB				VARCHAR(6)		
	, SLOCA					VARCHAR(32)	
	, ELOCA					VARCHAR(32)	
	, CSYMD					DATE			
	, CEYMD					DATE			
	, TOTCST				NUMERIC(38,8)	
	, CTYCST				NUMERIC(38,8)	
	, DSTCST				NUMERIC(38,8)	
	, CTIDN					VARCHAR(8)		
	, SPTTL					VARCHAR(20)	
	, SPNAM					VARCHAR(20)	
	, CMCYMD				DATE			
	, CMCTTL				VARCHAR(20)	
	, CMCNAM				VARCHAR(20)	
	, NAM					VARCHAR(60)	
	, PLIDN					INTEGER
	, NIDN					INTEGER
	, GLOBALID				CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_CNST_D ADD CONSTRAINT RDT_CNST_D_PK PRIMARY KEY (MNGT, IDN);
COMMENT ON TABLE icgis.RDT_CNST_D IS '공사대장';
COMMENT ON COLUMN icgis.RDT_CNST_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDT_CNST_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.RDT_CNST_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNST_D.WORKCD IS '공사분류';
COMMENT ON COLUMN icgis.RDT_CNST_D.WORKCS IS '공사소종목';
COMMENT ON COLUMN icgis.RDT_CNST_D.BUDGCS IS '예산구분';
COMMENT ON COLUMN icgis.RDT_CNST_D.BUDGJA IS '예산과목_장';
COMMENT ON COLUMN icgis.RDT_CNST_D.BUDGGA IS '예산과목_관';
COMMENT ON COLUMN icgis.RDT_CNST_D.BUDGHA IS '예산과목_항';
COMMENT ON COLUMN icgis.RDT_CNST_D.BUDGSE IS '예산과목_세항';
COMMENT ON COLUMN icgis.RDT_CNST_D.KUMO IS '규모';
COMMENT ON COLUMN icgis.RDT_CNST_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_CNST_D.BUDGSS IS '예산과목_세세항';
COMMENT ON COLUMN icgis.RDT_CNST_D.BUDGMO IS '예산과목_목';
COMMENT ON COLUMN icgis.RDT_CNST_D.WCD IS '공사구분';
COMMENT ON COLUMN icgis.RDT_CNST_D.NGUB IS '노선구분';
COMMENT ON COLUMN icgis.RDT_CNST_D.WORKCB IS '공사대종목';
COMMENT ON COLUMN icgis.RDT_CNST_D.SLOCA IS '시점';
COMMENT ON COLUMN icgis.RDT_CNST_D.ELOCA IS '종점';
COMMENT ON COLUMN icgis.RDT_CNST_D.CSYMD IS '착공일';
COMMENT ON COLUMN icgis.RDT_CNST_D.CEYMD IS '준공일';
COMMENT ON COLUMN icgis.RDT_CNST_D.TOTCST IS '총사업비';
COMMENT ON COLUMN icgis.RDT_CNST_D.CTYCST IS '시기금';
COMMENT ON COLUMN icgis.RDT_CNST_D.DSTCST IS '구기금';
COMMENT ON COLUMN icgis.RDT_CNST_D.CTIDN IS '도급자';
COMMENT ON COLUMN icgis.RDT_CNST_D.SPTTL IS '공사감독_직명';
COMMENT ON COLUMN icgis.RDT_CNST_D.SPNAM IS '공사감독_이름';
COMMENT ON COLUMN icgis.RDT_CNST_D.CMCYMD IS '공사감독_변경일';
COMMENT ON COLUMN icgis.RDT_CNST_D.CMCTTL IS '공사감독_변경감독직명';
COMMENT ON COLUMN icgis.RDT_CNST_D.CMCNAM IS '공사감독_변경감독이름';
COMMENT ON COLUMN icgis.RDT_CNST_D.NAM IS '공사명';
COMMENT ON COLUMN icgis.RDT_CNST_D.PLIDN IS '시설계획번호';
COMMENT ON COLUMN icgis.RDT_CNST_D.NIDN IS '노선번호';
COMMENT ON COLUMN icgis.RDT_CNST_D.GLOBALID IS 'GLOBALID';


--공사업체

CREATE TABLE icgis.RDT_CNCM_D(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, UPJGCD		VARCHAR(6)	
	, JUMGRA		NUMERIC(38,8)
	, NAM			VARCHAR(30)
	, DAEPYO		VARCHAR(10)
	, SSN			VARCHAR(13)
	, ADDR			VARCHAR(50)
	, POST			VARCHAR(10)
	, TELE			VARCHAR(14)
	, NOTE			VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_CNCM_D ADD CONSTRAINT RDT_CNCM_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDT_CNCM_D IS '공사업체';
COMMENT ON COLUMN icgis.RDT_CNCM_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_CNCM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNCM_D.UPJGCD IS '업종';
COMMENT ON COLUMN icgis.RDT_CNCM_D.JUMGRA IS '감면율';
COMMENT ON COLUMN icgis.RDT_CNCM_D.NAM IS '기관명';
COMMENT ON COLUMN icgis.RDT_CNCM_D.DAEPYO IS '대표';
COMMENT ON COLUMN icgis.RDT_CNCM_D.SSN IS '주민등록번호';
COMMENT ON COLUMN icgis.RDT_CNCM_D.ADDR IS '주소';
COMMENT ON COLUMN icgis.RDT_CNCM_D.POST IS '우편번호';
COMMENT ON COLUMN icgis.RDT_CNCM_D.TELE IS '전화번호';
COMMENT ON COLUMN icgis.RDT_CNCM_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_CNCM_D.GLOBALID IS 'GLOBALID';


---과속방지시설

CREATE TABLE icgis.RDL_CARE_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER				
	, GUCD			VARCHAR(5)			
	, DCD			VARCHAR(10)
	, GIBUN			VARCHAR(20)
	, LENTH			NUMERIC(38,8)
	, WIDTH			NUMERIC(38,8)
	, DYMD			DATE		
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, MNGT			VARCHAR(6)	
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, SHT_NUM		VARCHAR(10)
	, SYS_CHK		VARCHAR(1)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.RDL_CARE_A ADD CONSTRAINT RDL_CARE_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_CARE_A IS '과속방지시설';
COMMENT ON COLUMN icgis.RDL_CARE_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_CARE_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_CARE_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_CARE_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_CARE_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_CARE_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.RDL_CARE_A.GIBUN IS '지번';
COMMENT ON COLUMN icgis.RDL_CARE_A.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_CARE_A.WIDTH IS '폭';
COMMENT ON COLUMN icgis.RDL_CARE_A.DYMD IS '도색일';
COMMENT ON COLUMN icgis.RDL_CARE_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_CARE_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_CARE_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_CARE_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_CARE_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_CARE_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_CARE_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_CARE_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_CARE_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_CARE_A.SHAPE IS 'SHAPE';


---관급자재변경내역

CREATE TABLE icgis.RDT_CNME_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(10)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, SNO			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, PSIZE			VARCHAR(100)	
	, QTY			NUMERIC(38,8)	
	, UNIT			VARCHAR(10)	
	, DDANGA		INTEGER			
	, DAMT			INTEGER			
	, RESYMD		DATE			
	, SDANGA		INTEGER			
	, SAMT			INTEGER			
	, SYMD			DATE			
	, COMPANY		VARCHAR(40)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_CNME_D ADD CONSTRAINT RDT_CNME_D_PK PRIMARY KEY (MNGT, IDN, SEQ, SNO);
COMMENT ON TABLE icgis.RDT_CNME_D IS '관급자재변경내역';
COMMENT ON COLUMN icgis.RDT_CNME_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDT_CNME_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.RDT_CNME_D.SEQ IS '설계변경일련번호';
COMMENT ON COLUMN icgis.RDT_CNME_D.SNO IS '일련번호';
COMMENT ON COLUMN icgis.RDT_CNME_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNME_D.PSIZE IS '관급자재';
COMMENT ON COLUMN icgis.RDT_CNME_D.QTY IS '수량';
COMMENT ON COLUMN icgis.RDT_CNME_D.UNIT IS '단위';
COMMENT ON COLUMN icgis.RDT_CNME_D.DDANGA IS '설계단가';
COMMENT ON COLUMN icgis.RDT_CNME_D.DAMT IS '설계금액';
COMMENT ON COLUMN icgis.RDT_CNME_D.RESYMD IS '원인행위일자';
COMMENT ON COLUMN icgis.RDT_CNME_D.SDANGA IS '구입단가';
COMMENT ON COLUMN icgis.RDT_CNME_D.SAMT IS '구입금액';
COMMENT ON COLUMN icgis.RDT_CNME_D.SYMD IS '납품지시일자';
COMMENT ON COLUMN icgis.RDT_CNME_D.COMPANY IS '납품자';
COMMENT ON COLUMN icgis.RDT_CNME_D.GLOBALID IS 'GLOBALID';


---교량

CREATE TABLE icgis.RDL_BRDG_A(
	IDN				INTEGER			NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, RIDN			INTEGER			
	, AEA			VARCHAR(6)	
	, BJL			VARCHAR(6)	
	, NAM			VARCHAR(30)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)	
	, MAN			VARCHAR(30)	
	, GRADE			VARCHAR(1)	
	, FACICS		VARCHAR(6)	
	, YMD			DATE	
	, ADDR			VARCHAR(50)
	, MFACIL		VARCHAR(6)	
	, MINSCD		VARCHAR(6)	
	, HSTNAM		VARCHAR(30)
	, HSTADR		VARCHAR(50)
	, PAYCD			VARCHAR(6)	
	, SPYMD			DATE	
	, EPYMD			DATE	
	, DUNG			VARCHAR(1)	
	, LINE			NUMERIC(5)	
	, DWEI			VARCHAR(6)	
	, LENTH			NUMERIC(5)	
	, DISLEN		NUMERIC(5)	
	, DISEA			NUMERIC(5)	
	, ALWID			NUMERIC(38,8)
	, RWID			NUMERIC(38,8)
	, MAXCOL		NUMERIC(5)	
	, MINCOL		NUMERIC(5)	
	, BHEIT			NUMERIC(38,8)
	, LGTEA			NUMERIC(5)	
	, LJONG			VARCHAR(6)	
	, JGUBE			NUMERIC(38,8)
	, HGUBE			NUMERIC(38,8)
	, UPTYPE		VARCHAR(6)	
	, DNTYPE		VARCHAR(6)	
	, UPGAN			VARCHAR(5)	
	, UPJHEI		NUMERIC(38,8)
	, UPJJONG		VARCHAR(6)	
	, UPON			VARCHAR(40)
	, UPRD			VARCHAR(40)
	, UPBD			VARCHAR(40)
	, URTH			NUMERIC(38,8)
	, UBTH			NUMERIC(38,8)
	, URWID			NUMERIC(38,8)
	, UBWID			NUMERIC(38,8)
	, UPSMA			VARCHAR(6)	
	, URSMA			VARCHAR(6)	
	, UBSMA			VARCHAR(6)	
	, UNHEI			NUMERIC(38,8)
	, UNWID			NUMERIC(38,8)
	, UNLEN			NUMERIC(5)	
	, NMATE			VARCHAR(6)	
	, FIXTY			VARCHAR(6)	
	, RUNTY			VARCHAR(40)
	, UPEA			NUMERIC(5)	
	, KMTYPE		VARCHAR(6)	
	, GFIXTY		VARCHAR(6)	
	, GRUNTY		VARCHAR(6)	
	, MUNG			NUMERIC(5)	
	, KYOJA			VARCHAR(40)
	, YEONSE		VARCHAR(40)
	, KKTYPE		VARCHAR(6)	
	, KKEA			NUMERIC(5)	
	, KCHISU		VARCHAR(20)
	, KKDEP			NUMERIC(38,8)
	, KKICHO		VARCHAR(6)	
	, KKHEI			NUMERIC(38,8)
	, KDTYPE		VARCHAR(6)	
	, STWH			NUMERIC(5)	
	, KDDEP			NUMERIC(38,8)
	, KDHEI			NUMERIC(38,8)
	, KDBASE		VARCHAR(6)	
	, NLTYPE		VARCHAR(20)
	, KNARA			NUMERIC(38,8)
	, KNHEI			NUMERIC(38,8)
	, KDEA			NUMERIC(5)	
	, LIMHEI		NUMERIC(38,8)
	, LIMWEI		NUMERIC(38,8)
	, UPWT			VARCHAR(30)
	, TELE			VARCHAR(30)
	, ELEC			VARCHAR(30)
	, GAS			VARCHAR(30)
	, ETC			VARCHAR(30)
	, EMERG			NUMERIC(5)	
	, WTLVL			NUMERIC(38,8)
	, MNGT			VARCHAR(6)	
	, NOTE			VARCHAR(50)
	, YEAR			VARCHAR(4)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, HJD_CDE		VARCHAR(10)
	, SHT_NUM		VARCHAR(10)
	, GRD_CDE		VARCHAR(6)	
	, TOT_LEN		NUMERIC(38,8)
	, HDR_CDE		VARCHAR(6)	
	, FXT_CNT		NUMERIC(38,8)
	, STD_LBL		VARCHAR(50)
	, SYS_CHK		VARCHAR(1)	
	, SGG_CDE		VARCHAR(5)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_BRDG_A ADD CONSTRAINT RDL_BRDG_A_PK PRIMARY KEY (IDN, FTC);
COMMENT ON TABLE icgis.RDL_BRDG_A IS '교량';
COMMENT ON COLUMN icgis.RDL_BRDG_A.IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_BRDG_A.FTC IS '개별번호';
COMMENT ON COLUMN icgis.RDL_BRDG_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_BRDG_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_BRDG_A.AEA IS '교량형태';
COMMENT ON COLUMN icgis.RDL_BRDG_A.BJL IS '교량종류';
COMMENT ON COLUMN icgis.RDL_BRDG_A.NAM IS '교량명';
COMMENT ON COLUMN icgis.RDL_BRDG_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_BRDG_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_BRDG_A.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDL_BRDG_A.GRADE IS '관리급수';
COMMENT ON COLUMN icgis.RDL_BRDG_A.FACICS IS '종별';
COMMENT ON COLUMN icgis.RDL_BRDG_A.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDL_BRDG_A.ADDR IS '소재지';
COMMENT ON COLUMN icgis.RDL_BRDG_A.MFACIL IS '횡단시설명';
COMMENT ON COLUMN icgis.RDL_BRDG_A.MINSCD IS '민자여부';
COMMENT ON COLUMN icgis.RDL_BRDG_A.HSTNAM IS '민자사업자명';
COMMENT ON COLUMN icgis.RDL_BRDG_A.HSTADR IS '민자사업자주소';
COMMENT ON COLUMN icgis.RDL_BRDG_A.PAYCD IS '유료여부';
COMMENT ON COLUMN icgis.RDL_BRDG_A.SPYMD IS '유료시작일';
COMMENT ON COLUMN icgis.RDL_BRDG_A.EPYMD IS '유료종료일';
COMMENT ON COLUMN icgis.RDL_BRDG_A.DUNG IS '교량등급';
COMMENT ON COLUMN icgis.RDL_BRDG_A.LINE IS '왕복차로수';
COMMENT ON COLUMN icgis.RDL_BRDG_A.DWEI IS '설계하중';
COMMENT ON COLUMN icgis.RDL_BRDG_A.LENTH IS '일반제원_교장';
COMMENT ON COLUMN icgis.RDL_BRDG_A.DISLEN IS '일반제원_경간장';
COMMENT ON COLUMN icgis.RDL_BRDG_A.DISEA IS '일반제원_경간수';
COMMENT ON COLUMN icgis.RDL_BRDG_A.ALWID IS '일반제원_총폭원';
COMMENT ON COLUMN icgis.RDL_BRDG_A.RWID IS '일반제원_유효폭';
COMMENT ON COLUMN icgis.RDL_BRDG_A.MAXCOL IS '일반제원_최대경간';
COMMENT ON COLUMN icgis.RDL_BRDG_A.MINCOL IS '일반제원_최소경간';
COMMENT ON COLUMN icgis.RDL_BRDG_A.BHEIT IS '일반제원_교고';
COMMENT ON COLUMN icgis.RDL_BRDG_A.LGTEA IS '일반제원_조명수량';
COMMENT ON COLUMN icgis.RDL_BRDG_A.LJONG IS '일반제원_조명종류';
COMMENT ON COLUMN icgis.RDL_BRDG_A.JGUBE IS '일반제원_종단구배';
COMMENT ON COLUMN icgis.RDL_BRDG_A.HGUBE IS '일반제원_횡단구배';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPTYPE IS '상부구조형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.DNTYPE IS '하부구조형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPGAN IS '상부공_주형간격';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPJHEI IS '상부공_주형높이';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPJJONG IS '상부공_주형형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPON IS '상부공_주형본류';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPRD IS '상부공_상판차도형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPBD IS '상부공_상판보도형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.URTH IS '상부공_상판차도두께';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UBTH IS '상부공_상판보도두께';
COMMENT ON COLUMN icgis.RDL_BRDG_A.URWID IS '상부공_차도폭';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UBWID IS '상부공_보도폭';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPSMA IS '상부공_상판재료';
COMMENT ON COLUMN icgis.RDL_BRDG_A.URSMA IS '상부공_차도재료';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UBSMA IS '상부공_보도재료';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UNHEI IS '상부공_난간높이';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UNWID IS '상부공_난간폭';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UNLEN IS '상부공_난간총연장';
COMMENT ON COLUMN icgis.RDL_BRDG_A.NMATE IS '상부공_상부난간재료';
COMMENT ON COLUMN icgis.RDL_BRDG_A.FIXTY IS '상부공_이음장치고정형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.RUNTY IS '상부공_이음장치가동형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPEA IS '상부공_상부슈';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KMTYPE IS '상부공_교명주형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.GFIXTY IS '상부공_지승고정형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.GRUNTY IS '상부공_지승가동형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.MUNG IS '상부공_명암동수';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KYOJA IS '상부공_교좌장치';
COMMENT ON COLUMN icgis.RDL_BRDG_A.YEONSE IS '상부공_연석';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KKTYPE IS '하부공_교각형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KKEA IS '하부공_교각수';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KCHISU IS '하부공_교각치수';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KKDEP IS '하부공_교각매립깊이';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KKICHO IS '하부공_교각기초';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KKHEI IS '하부공_교각총높이';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KDTYPE IS '하부공_교대형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.STWH IS '하부공_교대평수위상고';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KDDEP IS '하부공_교대매립깊이';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KDHEI IS '하부공_교대총높이';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KDBASE IS '하부공_교대기초형식';
COMMENT ON COLUMN icgis.RDL_BRDG_A.NLTYPE IS '하부공_교대날개벽종류';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KNARA IS '하부공_교대날개벽총면적';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KNHEI IS '하부공_교대날개벽높이';
COMMENT ON COLUMN icgis.RDL_BRDG_A.KDEA IS '하부공_교대수';
COMMENT ON COLUMN icgis.RDL_BRDG_A.LIMHEI IS '통과제한높이';
COMMENT ON COLUMN icgis.RDL_BRDG_A.LIMWEI IS '통과제한하중';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPWT IS '부착시설관리기관_상수도';
COMMENT ON COLUMN icgis.RDL_BRDG_A.TELE IS '부착시설관리기관_통신';
COMMENT ON COLUMN icgis.RDL_BRDG_A.ELEC IS '부착시설관리기관_전기';
COMMENT ON COLUMN icgis.RDL_BRDG_A.GAS IS '부착시설관리기관_가스';
COMMENT ON COLUMN icgis.RDL_BRDG_A.ETC IS '부착시설관리기관_기타';
COMMENT ON COLUMN icgis.RDL_BRDG_A.EMERG IS '긴급전화';
COMMENT ON COLUMN icgis.RDL_BRDG_A.WTLVL IS '홍수위';
COMMENT ON COLUMN icgis.RDL_BRDG_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_BRDG_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_BRDG_A.YEAR IS '준공년도';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_BRDG_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_BRDG_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_BRDG_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_BRDG_A.GRD_CDE IS '기준점등급';
COMMENT ON COLUMN icgis.RDL_BRDG_A.TOT_LEN IS '총연장';
COMMENT ON COLUMN icgis.RDL_BRDG_A.HDR_CDE IS '난간_재질';
COMMENT ON COLUMN icgis.RDL_BRDG_A.FXT_CNT IS '상부공_이음장치수량';
COMMENT ON COLUMN icgis.RDL_BRDG_A.STD_LBL IS '라벨';
COMMENT ON COLUMN icgis.RDL_BRDG_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_BRDG_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_BRDG_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_BRDG_A.SHAPE IS 'SHAPE';


---교차로

CREATE TABLE icgis.RDL_RTRY_P(
	IDN				INTEGER			NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, RIDN			INTEGER		
	, NAM			VARCHAR(50)
	, MNGT			VARCHAR(6)	
	, MROAD			VARCHAR(40)
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, HJD_CDE		VARCHAR(10)
	, SHT_NUM		VARCHAR(10)
	, RTY_EXP		VARCHAR(50)
	, RTR_LEN		NUMERIC(38,8)
	, RTR_WID		NUMERIC(38,8)
	, RTR_HIT		NUMERIC(38,8)
	, RTR_SLP		NUMERIC(38,8)
	, RTR_CNT		NUMERIC(38,8)
	, RTR_CDE		VARCHAR(6)
	, SYS_CHK		VARCHAR(1)
	, SGG_CDE		VARCHAR(5)
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_RTRY_P ADD CONSTRAINT RDL_RTRY_P_PK PRIMARY KEY (IDN, FTC);
COMMENT ON TABLE icgis.RDL_RTRY_P IS '교차로';
COMMENT ON COLUMN icgis.RDL_RTRY_P.IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_RTRY_P.FTC IS '개별번호';
COMMENT ON COLUMN icgis.RDL_RTRY_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_RTRY_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_RTRY_P.NAM IS '교차로명';
COMMENT ON COLUMN icgis.RDL_RTRY_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_RTRY_P.MROAD IS '접속도로명';
COMMENT ON COLUMN icgis.RDL_RTRY_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_RTRY_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_RTRY_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_RTRY_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_RTRY_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_RTRY_P.RTY_EXP IS '교차시설명';
COMMENT ON COLUMN icgis.RDL_RTRY_P.RTR_LEN IS '교차연장';
COMMENT ON COLUMN icgis.RDL_RTRY_P.RTR_WID IS '교차시설폭원';
COMMENT ON COLUMN icgis.RDL_RTRY_P.RTR_HIT IS '유효고';
COMMENT ON COLUMN icgis.RDL_RTRY_P.RTR_SLP IS '교차각도';
COMMENT ON COLUMN icgis.RDL_RTRY_P.RTR_CNT IS '교차로수';
COMMENT ON COLUMN icgis.RDL_RTRY_P.RTR_CDE IS '교차방식';
COMMENT ON COLUMN icgis.RDL_RTRY_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_RTRY_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_RTRY_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_RTRY_P.SHAPE IS 'SHAPE';


--교통약자보호구역

CREATE TABLE icgis.RDL_SCHO_A(
	FTC				VARCHAR(6)			NOT NULL
	, IDN			INTEGER				NOT NULL
	, OBJECTID		INTEGER				NOT NULL
	, HJD_CDE		VARCHAR(10)			
	, SHT_NUM		VARCHAR(10)			
	, MNGT			VARCHAR(7)		
	, SCH_NAM		VARCHAR(100)		
	, BAS_LOC		VARCHAR(50)		
	, PRI_NAM		VARCHAR(100)		
	, SYS_CHK		VARCHAR(1)		
	, GUCD			VARCHAR(5)		
	, RIDN			NUMERIC(38,0)			
	, CIDN			VARCHAR(50)		
	, CMNGT			VARCHAR(7)		
	, UPDATE_NAM	VARCHAR(50)		
	, UPDATE_YMD	DATE					
	, GLOBALID		CHAR(38)		NOT NULL	
	, SCH_YMD		DATE				
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_SCHO_A ADD CONSTRAINT RDL_SCHO_A_PK PRIMARY KEY (FTC, IDN	);
COMMENT ON TABLE icgis.RDL_SCHO_A IS '교통약자보호구역';
COMMENT ON COLUMN icgis.RDL_SCHO_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_SCHO_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_SCHO_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_SCHO_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_SCHO_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_SCHO_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_SCHO_A.SCH_NAM IS '학교유치원명';
COMMENT ON COLUMN icgis.RDL_SCHO_A.BAS_LOC IS '소재지';
COMMENT ON COLUMN icgis.RDL_SCHO_A.PRI_NAM IS '학교유치원장명';
COMMENT ON COLUMN icgis.RDL_SCHO_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_SCHO_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_SCHO_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_SCHO_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_SCHO_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_SCHO_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_SCHO_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_SCHO_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_SCHO_A.SCH_YMD IS '보호구역지정일자';
COMMENT ON COLUMN icgis.RDL_SCHO_A.SHAPE IS 'SHAPE';


--교통표지판

CREATE TABLE icgis.RDL_TFSN_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, RIDN			INTEGER			
	, CIDN			VARCHAR(50)	
	, CMNGT			VARCHAR(7)		
	, IST_YMD		Date			
	, DRT_CDE		VARCHAR(6)		
	, PKND			VARCHAR(6)		
	, IPG_CDE		VARCHAR(6)		
	, HEIGHT		NUMERIC(38,8)	
	, STDR			VARCHAR(50)	
	, PCON			VARCHAR(100)	
	, SYS_CHK		VARCHAR(1)		
	, GUCD			VARCHAR(5)		
	, NOTE			VARCHAR(50)	
	, UPDATE_NAM	VARCHAR(50)	
	, UPDATE_YMD	Date			
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.RDL_TFSN_P ADD CONSTRAINT RDL_TFSN_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_TFSN_P IS '교통표지판';
COMMENT ON COLUMN icgis.RDL_TFSN_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_TFSN_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_TFSN_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_TFSN_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_TFSN_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_TFSN_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_TFSN_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_TFSN_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_TFSN_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_TFSN_P.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_TFSN_P.DRT_CDE IS '위치구분';
COMMENT ON COLUMN icgis.RDL_TFSN_P.PKND IS '표지판종류';
COMMENT ON COLUMN icgis.RDL_TFSN_P.IPG_CDE IS '지주형식';
COMMENT ON COLUMN icgis.RDL_TFSN_P.HEIGHT IS '높이';
COMMENT ON COLUMN icgis.RDL_TFSN_P.STDR IS '규격';
COMMENT ON COLUMN icgis.RDL_TFSN_P.PCON IS '표지판내용';
COMMENT ON COLUMN icgis.RDL_TFSN_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_TFSN_P.GUCD IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_TFSN_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_TFSN_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_TFSN_P.UPDATE_YMD IS '최정수정일시';
COMMENT ON COLUMN icgis.RDL_TFSN_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_TFSN_P.SHAPE IS 'SHAPE';


--기계식주차장치검사내역

CREATE TABLE icgis.RDT_PKME_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, RNAM			VARCHAR(50)	
	, BGU			VARCHAR(5)		
	, BDNG			VARCHAR(10)	
	, BDAR			VARCHAR(50)	
	, BNAM			VARCHAR(50)	
	, BCNO			VARCHAR(20)	
	, BKND			VARCHAR(6)		
	, BTYP			VARCHAR(50)	
	, TMUN			INTEGER			
	, TMNM			INTEGER			
	, UYMD			DATE			
	, VYMD			DATE			
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKME_D ADD CONSTRAINT RDT_PKME_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDT_PKME_D IS '기계식주차장치검사내역';
COMMENT ON COLUMN icgis.RDT_PKME_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKME_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKME_D.RNAM IS '신고인 성명';
COMMENT ON COLUMN icgis.RDT_PKME_D.BGU IS '주소_구';
COMMENT ON COLUMN icgis.RDT_PKME_D.BDNG IS '주소_동';
COMMENT ON COLUMN icgis.RDT_PKME_D.BDAR IS '주소_리_번지';
COMMENT ON COLUMN icgis.RDT_PKME_D.BNAM IS '건물명';
COMMENT ON COLUMN icgis.RDT_PKME_D.BCNO IS '인정번호';
COMMENT ON COLUMN icgis.RDT_PKME_D.BKND IS '종류';
COMMENT ON COLUMN icgis.RDT_PKME_D.BTYP IS '방식';
COMMENT ON COLUMN icgis.RDT_PKME_D.TMUN IS '총면수';
COMMENT ON COLUMN icgis.RDT_PKME_D.TMNM IS '설치기수';
COMMENT ON COLUMN icgis.RDT_PKME_D.UYMD IS '사용검사일';
COMMENT ON COLUMN icgis.RDT_PKME_D.VYMD IS '검사유효일';
COMMENT ON COLUMN icgis.RDT_PKME_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_PKME_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKME_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKME_D.GLOBALID IS 'GLOBALID';


--기계식주차장치안전도인정내역

CREATE TABLE icgis.RDT_PKMC_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			NOT NULL
	, RNAM			VARCHAR(20)	
	, RSSN			VARCHAR(14)	
	, RADR			VARCHAR(50)	
	, RTEL			VARCHAR(15)	
	, BADR			VARCHAR(50)	
	, BTEL			VARCHAR(15)	
	, BCNO			VARCHAR(20)	
	, BKND			VARCHAR(6)		
	, BNAM			VARCHAR(50)	
	, BCNT			VARCHAR(100)	
	, ACNT			VARCHAR(100)	
	, UPDATE_YMD	DATE	
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKMC_D ADD CONSTRAINT RDT_PKMC_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDT_PKMC_D IS '기계식주차장치안전도인정내역';
COMMENT ON COLUMN icgis.RDT_PKMC_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKMC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKMC_D.YMD IS '인정일';
COMMENT ON COLUMN icgis.RDT_PKMC_D.RNAM IS '신고인_성명';
COMMENT ON COLUMN icgis.RDT_PKMC_D.RSSN IS '신고인_주민번호';
COMMENT ON COLUMN icgis.RDT_PKMC_D.RADR IS '신고인_주소';
COMMENT ON COLUMN icgis.RDT_PKMC_D.RTEL IS '신고인_전화번호';
COMMENT ON COLUMN icgis.RDT_PKMC_D.BADR IS '사업장';
COMMENT ON COLUMN icgis.RDT_PKMC_D.BTEL IS '사업장_전화번호';
COMMENT ON COLUMN icgis.RDT_PKMC_D.BCNO IS '사업장_인정번호';
COMMENT ON COLUMN icgis.RDT_PKMC_D.BKND IS '사업장_종류_방식';
COMMENT ON COLUMN icgis.RDT_PKMC_D.BNAM IS '사업장_명칭';
COMMENT ON COLUMN icgis.RDT_PKMC_D.BCNT IS '변경사항_변경 전';
COMMENT ON COLUMN icgis.RDT_PKMC_D.ACNT IS '변경사항_변경 후';
COMMENT ON COLUMN icgis.RDT_PKMC_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKMC_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKMC_D.GLOBALID IS 'GLOBALID';


--기타광장

CREATE TABLE icgis.RDL_SKWN_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, RIDN			INTEGER			
	, NAM			VARCHAR(20)	
	, UPNO			VARCHAR(20)	
	, LENTH			NUMERIC(38,8)	
	, ARA			NUMERIC(38,8)	
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, CNR_NAM		VARCHAR(100)	
	, SYS_CHK		VARCHAR(1)		
	, SGG_CDE		VARCHAR(5)		
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry	

);
ALTER TABLE icgis.RDL_SKWN_A ADD CONSTRAINT RDL_SKWN_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_SKWN_A IS '기타광장';
COMMENT ON COLUMN icgis.RDL_SKWN_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_SKWN_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_SKWN_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_SKWN_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_SKWN_A.NAM IS '광장명';
COMMENT ON COLUMN icgis.RDL_SKWN_A.UPNO IS '고시번호';
COMMENT ON COLUMN icgis.RDL_SKWN_A.LENTH IS '광장연장';
COMMENT ON COLUMN icgis.RDL_SKWN_A.ARA IS '광장면적';
COMMENT ON COLUMN icgis.RDL_SKWN_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_SKWN_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_SKWN_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_SKWN_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_SKWN_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_SKWN_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_SKWN_A.CNR_NAM IS '접속도로명';
COMMENT ON COLUMN icgis.RDL_SKWN_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_SKWN_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_SKWN_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_SKWN_A.SHAPE IS 'SHAPE';


--기타시설_면

CREATE TABLE icgis.RDL_ETCA_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, RIDN			INTEGER		
	, MNGT			VARCHAR(6)	
	, CMNGT			VARCHAR(6)	
	, CIDN			VARCHAR(10)
	, NOTE			VARCHAR(50)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, HJD_CDE		VARCHAR(10)
	, SHT_NUM		VARCHAR(10)
	, SYS_CHK		VARCHAR(1)	
	, SGG_CDE		VARCHAR(5)	
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.RDL_ETCA_A ADD CONSTRAINT RDL_ETCA_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_ETCA_A IS '기타시설_면';
COMMENT ON COLUMN icgis.RDL_ETCA_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_ETCA_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_ETCA_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_ETCA_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_ETCA_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_ETCA_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_ETCA_A.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.RDL_ETCA_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_ETCA_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_ETCA_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_ETCA_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_ETCA_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_ETCA_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_ETCA_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_ETCA_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_ETCA_A.SHAPE IS 'SHAPE';


---기타시설_선

CREATE TABLE icgis.RDL_ETCT_L(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, RIDN			INTEGER			
	, SYS_CHK		VARCHAR(1)		
	, GUCD			VARCHAR(5)		
	, CMNGT			VARCHAR(7)		
	, CIDN			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.RDL_ETCT_L ADD CONSTRAINT RDL_ETCT_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_ETCT_L IS '기타시설_선';
COMMENT ON COLUMN icgis.RDL_ETCT_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_ETCT_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_ETCT_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_ETCT_L.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_ETCT_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_ETCT_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_ETCT_L.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_ETCT_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_ETCT_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_ETCT_L.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_ETCT_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_ETCT_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_ETCT_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_ETCT_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_ETCT_L.SHAPE IS 'SHAPE';


---기타시설_점

CREATE TABLE icgis.RDL_ETCP_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, MNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, SYS_CHK		VARCHAR(1)		
	, SGG_CDE		VARCHAR(5)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_ETCP_P ADD CONSTRAINT RDL_ETCP_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_ETCP_P IS '기타시설_점';
COMMENT ON COLUMN icgis.RDL_ETCP_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_ETCP_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_ETCP_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_ETCP_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_ETCP_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_ETCP_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_ETCP_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_ETCP_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_ETCP_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_ETCP_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_ETCP_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_ETCP_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_ETCP_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_ETCP_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_ETCP_P.SHAPE IS 'SHAPE';


--노상주차면

CREATE TABLE icgis.RDL_PKIR_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, BIDN			VARCHAR(5)		
	, MNGT			VARCHAR(6)		
	, MNUM			VARCHAR(15)	
	, MKND			VARCHAR(6)		
	, JPKR			VARCHAR(6)		
	, RNAM			VARCHAR(30)	
	, RWID			NUMERIC(38,8)	
	, PSSY			VARCHAR(6)		
	, NFCL			VARCHAR(100)	
	, PTYP			VARCHAR(6)		
	, YMD			DATE			
	, BJNG			VARCHAR(1)		
	, ALBJ			VARCHAR(1)		
	, DYBJ			VARCHAR(1)		
	, NGBJ			VARCHAR(1)		
	, SYMD			DATE			
	, FYMD			DATE			
	, NOTE			VARCHAR(100)	
	, PFTC			VARCHAR(5)		
	, PIDN			INTEGER			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.RDL_PKIR_A ADD CONSTRAINT RDL_PKIR_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_PKIR_A IS '노상주차면';
COMMENT ON COLUMN icgis.RDL_PKIR_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_PKIR_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_PKIR_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_PKIR_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_PKIR_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.RDL_PKIR_A.BIDN IS '블록번호';
COMMENT ON COLUMN icgis.RDL_PKIR_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_PKIR_A.MNUM IS '관리구획번호';
COMMENT ON COLUMN icgis.RDL_PKIR_A.MKND IS '관리형태';
COMMENT ON COLUMN icgis.RDL_PKIR_A.JPKR IS '장애인주차면여부';
COMMENT ON COLUMN icgis.RDL_PKIR_A.RNAM IS '도로명';
COMMENT ON COLUMN icgis.RDL_PKIR_A.RWID IS '도로폭';
COMMENT ON COLUMN icgis.RDL_PKIR_A.PSSY IS '통행체계';
COMMENT ON COLUMN icgis.RDL_PKIR_A.NFCL IS '인접시설';
COMMENT ON COLUMN icgis.RDL_PKIR_A.PTYP IS '주차형태';
COMMENT ON COLUMN icgis.RDL_PKIR_A.YMD IS '설치일';
COMMENT ON COLUMN icgis.RDL_PKIR_A.BJNG IS '배정여부';
COMMENT ON COLUMN icgis.RDL_PKIR_A.ALBJ IS '배정구분_전일';
COMMENT ON COLUMN icgis.RDL_PKIR_A.DYBJ IS '배정구분_주간';
COMMENT ON COLUMN icgis.RDL_PKIR_A.NGBJ IS '배정구분_야간';
COMMENT ON COLUMN icgis.RDL_PKIR_A.SYMD IS '배정기간_시작';
COMMENT ON COLUMN icgis.RDL_PKIR_A.FYMD IS '배정기간_종료';
COMMENT ON COLUMN icgis.RDL_PKIR_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_PKIR_A.PFTC IS '주차장_지형지물부호';
COMMENT ON COLUMN icgis.RDL_PKIR_A.PIDN IS '주차장_개별번호';
COMMENT ON COLUMN icgis.RDL_PKIR_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_PKIR_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_PKIR_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_PKIR_A.SHAPE IS 'SHAPE';


--노선관련 파일내역

CREATE TABLE icgis.RDT_NFLE_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, NAM			VARCHAR(40)	
	, DSC			VARCHAR(100)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
	, IMGE			BYTEA			
);
ALTER TABLE icgis.RDT_NFLE_D ADD CONSTRAINT RDT_NFLE_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.RDT_NFLE_D IS '노선관련 파일내역';
COMMENT ON COLUMN icgis.RDT_NFLE_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_NFLE_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_NFLE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_NFLE_D.NAM IS '파일명';
COMMENT ON COLUMN icgis.RDT_NFLE_D.DSC IS '설명';
COMMENT ON COLUMN icgis.RDT_NFLE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_NFLE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_NFLE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_NFLE_D.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDT_NFLE_D.IMGE IS '이미지';


--노선관리

CREATE TABLE icgis.RDT_NOSN_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUB			VARCHAR(6)		NOT NULL
	, NAM			VARCHAR(30)	
	, YMD			DATE			
	, MAN			VARCHAR(30)	
	, UPNO			VARCHAR(20)	
	, SLOCA			VARCHAR(50)	
	, ELOCA			VARCHAR(50)	
	, MLOCA			VARCHAR(50)	
	, MAPT			VARCHAR(50)	
	, ADA			VARCHAR(6)		
	, FUNCCD		VARCHAR(6)		
	, STATCD		VARCHAR(6)		
	, LENTH			NUMERIC(38,8)	
	, WID			NUMERIC(38,8)	
	, ARA			NUMERIC(38,8)	
	, MINSCD		VARCHAR(6)		
	, HSTNAM		VARCHAR(30)	
	, HSTADR		VARCHAR(50)	
	, PAYCD			VARCHAR(6)		
	, SPYMD			DATE			
	, EPYMD			DATE			
	, FEELEN		NUMERIC(38,8)	
	, FEEARA		NUMERIC(38,8)	
	, FEECD			VARCHAR(40)	
	, FEENAM		VARCHAR(20)	
	, FEEAD			VARCHAR(40)	
	, SCYMD			DATE			
	, ECYMD			DATE			
	, SMYMD			DATE			
	, EMYMD			DATE			
	, MINWID		NUMERIC(38,8)	
	, MINEA			INTEGER			
	, MAXWID		NUMERIC(38,8)	
	, MAXEA			INTEGER			
	, GUBE1			INTEGER			
	, GUBE2			INTEGER			
	, GUBE3			INTEGER			
	, RXCEA			INTEGER			
	, DOSPEA		INTEGER			
	, DOSLEN		NUMERIC(38,8)	
	, DOSEA			INTEGER			
	, DOSDS			NUMERIC(38,8)	
	, ETCKD			VARCHAR(20)	
	, ETCNUM		INTEGER			
	, JUMKD			VARCHAR(20)	
	, JUMNUM		INTEGER			
	, MINR1			INTEGER			
	, MINR2			INTEGER			
	, MINR3			INTEGER			
	, MINR4			INTEGER			
	, DSPEED		INTEGER			
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, NOTYMD		DATE			
	, PCNOTE		VARCHAR(60)	
	, PCYMD			DATE			
	, GUCD			VARCHAR(5)		
	, MNGT			VARCHAR(6)		
	, NOTE			TEXT			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_NOSN_D ADD CONSTRAINT RDT_NOSN_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDT_NOSN_D IS '노선관리';
COMMENT ON COLUMN icgis.RDT_NOSN_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_NOSN_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_NOSN_D.GUB IS '구분';
COMMENT ON COLUMN icgis.RDT_NOSN_D.NAM IS '노선명';
COMMENT ON COLUMN icgis.RDT_NOSN_D.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDT_NOSN_D.UPNO IS '결정고시번호';
COMMENT ON COLUMN icgis.RDT_NOSN_D.SLOCA IS '시점';
COMMENT ON COLUMN icgis.RDT_NOSN_D.ELOCA IS '종점';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MLOCA IS '주요경과지';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MAPT IS '주요시설';
COMMENT ON COLUMN icgis.RDT_NOSN_D.ADA IS '도로종류';
COMMENT ON COLUMN icgis.RDT_NOSN_D.FUNCCD IS '도로기능';
COMMENT ON COLUMN icgis.RDT_NOSN_D.STATCD IS '도로상태';
COMMENT ON COLUMN icgis.RDT_NOSN_D.LENTH IS '총연장';
COMMENT ON COLUMN icgis.RDT_NOSN_D.WID IS '도로폭';
COMMENT ON COLUMN icgis.RDT_NOSN_D.ARA IS '총면적';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MINSCD IS '민자여부';
COMMENT ON COLUMN icgis.RDT_NOSN_D.HSTNAM IS '민자사업자명';
COMMENT ON COLUMN icgis.RDT_NOSN_D.HSTADR IS '민자사업자주소';
COMMENT ON COLUMN icgis.RDT_NOSN_D.PAYCD IS '유료여부';
COMMENT ON COLUMN icgis.RDT_NOSN_D.SPYMD IS '유료시작일';
COMMENT ON COLUMN icgis.RDT_NOSN_D.EPYMD IS '유료종료일';
COMMENT ON COLUMN icgis.RDT_NOSN_D.FEELEN IS '유료연장길이';
COMMENT ON COLUMN icgis.RDT_NOSN_D.FEEARA IS '유료연장면적';
COMMENT ON COLUMN icgis.RDT_NOSN_D.FEECD IS '유료근거조항';
COMMENT ON COLUMN icgis.RDT_NOSN_D.FEENAM IS '유료소유자명';
COMMENT ON COLUMN icgis.RDT_NOSN_D.FEEAD IS '유료구간';
COMMENT ON COLUMN icgis.RDT_NOSN_D.SCYMD IS '자동차전용도로개시일';
COMMENT ON COLUMN icgis.RDT_NOSN_D.ECYMD IS '자동차전용도로해제일';
COMMENT ON COLUMN icgis.RDT_NOSN_D.SMYMD IS '보행자전용도로개시일';
COMMENT ON COLUMN icgis.RDT_NOSN_D.EMYMD IS '보행자전용도로해제일';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MINWID IS '최소차도폭원';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MINEA IS '최소차도폭원개소';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MAXWID IS '최대차도폭원';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MAXEA IS '최대차도폭원개소';
COMMENT ON COLUMN icgis.RDT_NOSN_D.GUBE1 IS '종단구배 6-7%';
COMMENT ON COLUMN icgis.RDT_NOSN_D.GUBE2 IS '종단구배 8-9%';
COMMENT ON COLUMN icgis.RDT_NOSN_D.GUBE3 IS '종단구배 10%';
COMMENT ON COLUMN icgis.RDT_NOSN_D.RXCEA IS '도로교차차도개소';
COMMENT ON COLUMN icgis.RDT_NOSN_D.DOSPEA IS '도선장개소수';
COMMENT ON COLUMN icgis.RDT_NOSN_D.DOSLEN IS '도선장연장';
COMMENT ON COLUMN icgis.RDT_NOSN_D.DOSEA IS '도선척수';
COMMENT ON COLUMN icgis.RDT_NOSN_D.DOSDS IS '도선운항거리';
COMMENT ON COLUMN icgis.RDT_NOSN_D.ETCKD IS '타공작물종류';
COMMENT ON COLUMN icgis.RDT_NOSN_D.ETCNUM IS '타공작물수';
COMMENT ON COLUMN icgis.RDT_NOSN_D.JUMKD IS '궤도및중요점용물종류';
COMMENT ON COLUMN icgis.RDT_NOSN_D.JUMNUM IS '궤도및중요점용물수';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MINR1 IS '최소곡선반경15M';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MINR2 IS '최소곡선반경20M';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MINR3 IS '최소곡선반경30M';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MINR4 IS '최소곡선반경50M';
COMMENT ON COLUMN icgis.RDT_NOSN_D.DSPEED IS '설계속도';
COMMENT ON COLUMN icgis.RDT_NOSN_D.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDT_NOSN_D.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDT_NOSN_D.NOTYMD IS '고시일자';
COMMENT ON COLUMN icgis.RDT_NOSN_D.PCNOTE IS '지적승인내역';
COMMENT ON COLUMN icgis.RDT_NOSN_D.PCYMD IS '지적승인일자';
COMMENT ON COLUMN icgis.RDT_NOSN_D.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDT_NOSN_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDT_NOSN_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_NOSN_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_NOSN_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_NOSN_D.GLOBALID IS 'GLOBALID';


--노선구간

CREATE TABLE icgis.RDL_ROUT_L(
	FTC			VARCHAR(6)			NOT NULL	
	, RUT_IDN	VARCHAR(10)		NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, MNG_CDE	VARCHAR(7)			NOT NULL
	, MNG_NAM	VARCHAR(100)		
	, RUT_NAM	VARCHAR(100)		
	, ADA_CDE	VARCHAR(6)			NOT NULL
	, FNC_CDE	VARCHAR(6)			NOT NULL
	, SIZ_CDE	VARCHAR(6)			NOT NULL
	, RUT_CDE	VARCHAR(6)			NOT NULL	
	, SRT_PNT	VARCHAR(50)	
	, END_PNT	VARCHAR(50)	
	, IMP_LOC	VARCHAR(100)	
	, RUT_LEN	NUMERIC(38,8)	
	, RUS_LEN	NUMERIC(38,8)	
	, RUJ_LEN	NUMERIC(38,8)	
	, TOT_ARA	NUMERIC(38,8)	
	, MIC_WID	NUMERIC(38,8)	
	, MAC_WID	NUMERIC(38,8)	
	, MIB_WID	NUMERIC(38,8)	
	, MAB_WID	NUMERIC(38,8)	
	, MIR_WID	NUMERIC(38,8)	
	, MAR_WID	NUMERIC(38,8)	
	, FNM_LEN	NUMERIC(38,8)	
	, SNM_LEN	NUMERIC(38,8)	
	, TNM_LEN	NUMERIC(38,8)	
	, UNM_LEN	NUMERIC(38,8)	
	, FGB_CNT	NUMERIC(38,8)	
	, SGB_CNT	NUMERIC(38,8)	
	, TGB_CNT	NUMERIC(38,8)	
	, UGB_CNT	NUMERIC(38,8)	
	, FMN_CNT	NUMERIC(38,8)	
	, SMN_CNT	NUMERIC(38,8)	
	, TMN_CNT	NUMERIC(38,8)	
	, UMN_CNT	NUMERIC(38,8)	
	, BRG_CNT	NUMERIC(38,8)	
	, BRG_LEN	NUMERIC(38,8)	
	, TRN_CNT	NUMERIC(38,8)	
	, TRN_LEN	NUMERIC(38,8)	
	, PDS_CNT	NUMERIC(38,8)	
	, SMA_CNT	NUMERIC(38,8)	
	, RDG_CNT	NUMERIC(38,8)	
	, RDG_LEN	NUMERIC(38,8)	
	, SYS_CHK	VARCHAR(1)			NOT NULL
	, GLOBALID	CHAR(38)			NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.RDL_ROUT_L ADD CONSTRAINT RDL_ROUT_L_PK PRIMARY KEY (FTC, RUT_IDN);
COMMENT ON TABLE icgis.RDL_ROUT_L IS '노선구간';
COMMENT ON COLUMN icgis.RDL_ROUT_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_ROUT_L.RUT_IDN IS '노선번호';
COMMENT ON COLUMN icgis.RDL_ROUT_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_ROUT_L.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.RDL_ROUT_L.MNG_NAM IS '관리자명';
COMMENT ON COLUMN icgis.RDL_ROUT_L.RUT_NAM IS '노선명';
COMMENT ON COLUMN icgis.RDL_ROUT_L.ADA_CDE IS '도로종류';
COMMENT ON COLUMN icgis.RDL_ROUT_L.FNC_CDE IS '도로기능';
COMMENT ON COLUMN icgis.RDL_ROUT_L.SIZ_CDE IS '도로규모';
COMMENT ON COLUMN icgis.RDL_ROUT_L.RUT_CDE IS '노선구분';
COMMENT ON COLUMN icgis.RDL_ROUT_L.SRT_PNT IS '시점';
COMMENT ON COLUMN icgis.RDL_ROUT_L.END_PNT IS '종점';
COMMENT ON COLUMN icgis.RDL_ROUT_L.IMP_LOC IS '주요경과지';
COMMENT ON COLUMN icgis.RDL_ROUT_L.RUT_LEN IS '노선연장';
COMMENT ON COLUMN icgis.RDL_ROUT_L.RUS_LEN IS '전용연장';
COMMENT ON COLUMN icgis.RDL_ROUT_L.RUJ_LEN IS '중용연장';
COMMENT ON COLUMN icgis.RDL_ROUT_L.TOT_ARA IS '총면적';
COMMENT ON COLUMN icgis.RDL_ROUT_L.MIC_WID IS '최소차도폭원';
COMMENT ON COLUMN icgis.RDL_ROUT_L.MAC_WID IS '최대차도폭원';
COMMENT ON COLUMN icgis.RDL_ROUT_L.MIB_WID IS '최소보도폭원';
COMMENT ON COLUMN icgis.RDL_ROUT_L.MAB_WID IS '최대보도폭원';
COMMENT ON COLUMN icgis.RDL_ROUT_L.MIR_WID IS '최소도로폭원';
COMMENT ON COLUMN icgis.RDL_ROUT_L.MAR_WID IS '최대도로폭원';
COMMENT ON COLUMN icgis.RDL_ROUT_L.FNM_LEN IS '차로수_2차로미만';
COMMENT ON COLUMN icgis.RDL_ROUT_L.SNM_LEN IS '차로수_2_4차로';
COMMENT ON COLUMN icgis.RDL_ROUT_L.TNM_LEN IS '차로수_4_6차로';
COMMENT ON COLUMN icgis.RDL_ROUT_L.UNM_LEN IS '차로수_6차로_이상';
COMMENT ON COLUMN icgis.RDL_ROUT_L.FGB_CNT IS '종단구배_3%미만';
COMMENT ON COLUMN icgis.RDL_ROUT_L.SGB_CNT IS '종단구배_3_5%';
COMMENT ON COLUMN icgis.RDL_ROUT_L.TGB_CNT IS '종단구배_5_10%';
COMMENT ON COLUMN icgis.RDL_ROUT_L.UGB_CNT IS '종단구배_10%이상';
COMMENT ON COLUMN icgis.RDL_ROUT_L.FMN_CNT IS '최소곡선반경100미만';
COMMENT ON COLUMN icgis.RDL_ROUT_L.SMN_CNT IS '최소곡선반경100_ 150';
COMMENT ON COLUMN icgis.RDL_ROUT_L.TMN_CNT IS '최소곡선반경150_ 200';
COMMENT ON COLUMN icgis.RDL_ROUT_L.UMN_CNT IS '최소곡선반경200이상';
COMMENT ON COLUMN icgis.RDL_ROUT_L.BRG_CNT IS '노선교량개소';
COMMENT ON COLUMN icgis.RDL_ROUT_L.BRG_LEN IS '교량연장';
COMMENT ON COLUMN icgis.RDL_ROUT_L.TRN_CNT IS '터널개소';
COMMENT ON COLUMN icgis.RDL_ROUT_L.TRN_LEN IS '터널연장';
COMMENT ON COLUMN icgis.RDL_ROUT_L.PDS_CNT IS '교차육교개소';
COMMENT ON COLUMN icgis.RDL_ROUT_L.SMA_CNT IS '교차지하도개소';
COMMENT ON COLUMN icgis.RDL_ROUT_L.RDG_CNT IS '중앙분리대개소';
COMMENT ON COLUMN icgis.RDL_ROUT_L.RDG_LEN IS '중앙분리대연장';
COMMENT ON COLUMN icgis.RDL_ROUT_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_ROUT_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_ROUT_L.SHAPE IS 'SHAPE';


--노선연결

CREATE TABLE icgis.RDT_NORD_D(
	RIDN			INTEGER			NOT NULL	
	, NIDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_NORD_D ADD CONSTRAINT RDT_NORD_D_PK PRIMARY KEY (RIDN, NIDN);
COMMENT ON TABLE icgis.RDT_NORD_D IS '노선연결';
COMMENT ON COLUMN icgis.RDT_NORD_D.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDT_NORD_D.NIDN IS '노선번호';
COMMENT ON COLUMN icgis.RDT_NORD_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_NORD_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_NORD_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_NORD_D.GLOBALID IS 'GLOBALID';


--도로경계선

CREATE TABLE icgis.RDL_RDLN_L(
	OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, MNGT			VARCHAR(6)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GUCD			VARCHAR(5)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
COMMENT ON TABLE icgis.RDL_RDLN_L IS '도로경계선';
COMMENT ON COLUMN icgis.RDL_RDLN_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_RDLN_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_RDLN_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_RDLN_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_RDLN_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_RDLN_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_RDLN_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_RDLN_L.SHAPE IS 'SHAPE';


--도로굴착 예정지

CREATE TABLE icgis.RDL_EXPL_AS(
	FTR_CDE		VARCHAR(5)		NOT NULL	
	, ID		NUMERIC(6)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, DIP_IDN	VARCHAR(18)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.RDL_EXPL_AS ADD CONSTRAINT RDL_EXPL_AS_PK PRIMARY KEY (FTR_CDE, ID);
COMMENT ON TABLE icgis.RDL_EXPL_AS IS '도로굴착 예정지';
COMMENT ON COLUMN icgis.RDL_EXPL_AS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_EXPL_AS.ID IS '일련번호';
COMMENT ON COLUMN icgis.RDL_EXPL_AS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_EXPL_AS.DIP_IDN IS '굴착위치관리번호';
COMMENT ON COLUMN icgis.RDL_EXPL_AS.SHAPE IS 'SHAPE';


--도로굴착_사업예정지

CREATE TABLE icgis.RDL_EXBN_AS(
	FTR_CDE		VARCHAR(5)			NOT NULL	
	, ID		NUMERIC(6)			NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, DIP_IDN	VARCHAR(18)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.RDL_EXBN_AS ADD CONSTRAINT RDL_EXBN_AS_PK PRIMARY KEY (FTR_CDE, ID);
COMMENT ON TABLE icgis.RDL_EXBN_AS IS '도로굴착_사업예정지';
COMMENT ON COLUMN icgis.RDL_EXBN_AS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_EXBN_AS.ID IS '일련번호';
COMMENT ON COLUMN icgis.RDL_EXBN_AS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_EXBN_AS.DIP_IDN IS '굴착위치관리번호';
COMMENT ON COLUMN icgis.RDL_EXBN_AS.SHAPE IS 'SHAPE';


--도로면

CREATE TABLE icgis.RDL_RDSR_A(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		NOT NULL
	, GGUB			VARCHAR(6)		
	, RIDN			INTEGER			
	, NSNAM			VARCHAR(40)	
	, NIDN			INTEGER			
	, ADA			VARCHAR(6)		
	, FUNCCD		VARCHAR(6)		
	, SIZECD		VARCHAR(6)		
	, LINE			NUMERIC(5)		
	, MNGT			VARCHAR(6)		
	, CMOP			VARCHAR(6)		
	, MAN			VARCHAR(30)	
	, GRADE			VARCHAR(1)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, BWID			NUMERIC(38,8)	
	, BLEN			NUMERIC(38,8)	
	, BARA			NUMERIC(38,8)	
	, TUKSU			NUMERIC(5)		
	, HTUKSU		NUMERIC(5)		
	, JTUKSU		NUMERIC(5)		
	, BYLEN			NUMERIC(38,8)	
	, BYWID			NUMERIC(38,8)	
	, BYARA			NUMERIC(38,8)	
	, BYSMA			VARCHAR(6)		
	, BDSMA			VARCHAR(6)		
	, BDLEN			NUMERIC(38,8)	
	, BLCD			VARCHAR(6)		
	, BCLEN			NUMERIC(38,8)	
	, BCARA			NUMERIC(38,8)	
	, BYMD			DATE			
	, BMOP			VARCHAR(6)		
	, UPNO			VARCHAR(20)	
	, KNAM			VARCHAR(20)	
	, KLEN			NUMERIC(38,8)	
	, KARA			NUMERIC(38,8)	
	, MROAD			VARCHAR(40)	
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, EXAM_YN		VARCHAR(1)		
	, RDA_IDN		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.RDL_RDSR_A ADD CONSTRAINT RDL_RDSR_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDL_RDSR_A IS '도로면';
COMMENT ON COLUMN icgis.RDL_RDSR_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_RDSR_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_RDSR_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_RDSR_A.GGUB IS '구간구분';
COMMENT ON COLUMN icgis.RDL_RDSR_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_RDSR_A.NSNAM IS '노선명';
COMMENT ON COLUMN icgis.RDL_RDSR_A.NIDN IS '노선번호';
COMMENT ON COLUMN icgis.RDL_RDSR_A.ADA IS '도로종류';
COMMENT ON COLUMN icgis.RDL_RDSR_A.FUNCCD IS '도로기능';
COMMENT ON COLUMN icgis.RDL_RDSR_A.SIZECD IS '도로규모';
COMMENT ON COLUMN icgis.RDL_RDSR_A.LINE IS '왕복차로수';
COMMENT ON COLUMN icgis.RDL_RDSR_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_RDSR_A.CMOP IS '차도재질';
COMMENT ON COLUMN icgis.RDL_RDSR_A.MAN IS '보도관리자';
COMMENT ON COLUMN icgis.RDL_RDSR_A.GRADE IS '보도유지관리등급';
COMMENT ON COLUMN icgis.RDL_RDSR_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_RDSR_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BWID IS '보도폭';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BLEN IS '보도연장';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BARA IS '보도면적';
COMMENT ON COLUMN icgis.RDL_RDSR_A.TUKSU IS '보도턱_총갯수';
COMMENT ON COLUMN icgis.RDL_RDSR_A.HTUKSU IS '보도턱_횡단보도낮추기';
COMMENT ON COLUMN icgis.RDL_RDSR_A.JTUKSU IS '보도턱_보도진입부낮추기';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BYLEN IS '자전거전용도로_연장';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BYWID IS '자전거전용도로_폭';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BYARA IS '자전거전용도로_면적';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BYSMA IS '자전거전용도로_재질';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BDSMA IS '보도경계석_재질';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BDLEN IS '보도경계석_연장';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BLCD IS '유도블록_종류';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BCLEN IS '유도블록_연장';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BCARA IS '유도블록_면적';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BYMD IS '보도설치일';
COMMENT ON COLUMN icgis.RDL_RDSR_A.BMOP IS '보도재질';
COMMENT ON COLUMN icgis.RDL_RDSR_A.UPNO IS '고시번호';
COMMENT ON COLUMN icgis.RDL_RDSR_A.KNAM IS '광장명';
COMMENT ON COLUMN icgis.RDL_RDSR_A.KLEN IS '광장연장';
COMMENT ON COLUMN icgis.RDL_RDSR_A.KARA IS '광장면적';
COMMENT ON COLUMN icgis.RDL_RDSR_A.MROAD IS '접속도로명';
COMMENT ON COLUMN icgis.RDL_RDSR_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_RDSR_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_RDSR_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_RDSR_A.EXAM_YN IS '성과심사여부';
COMMENT ON COLUMN icgis.RDL_RDSR_A.RDA_IDN IS '도로면관리번호';
COMMENT ON COLUMN icgis.RDL_RDSR_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_RDSR_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_RDSR_A.SHAPE IS 'SHAPE';


--도로보수

CREATE TABLE icgis.RDL_BOSU_P(
	FTC			VARCHAR(6)			NOT NULL	
	, IDN		INTEGER				NOT NULL	
	, NIDN		INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, GUBUN		VARCHAR(10)	
	, PRESTAT	VARCHAR(10)	
	, METHOD	VARCHAR(10)	
	, RDLEN		NUMERIC(38,8)	
	, RDARA		NUMERIC(38,8)	
	, RDWID		NUMERIC(38,8)	
	, MNGT		VARCHAR(6)		
	, CARRD		VARCHAR(10)	
	, STRD		VARCHAR(10)	
	, NOTE		VARCHAR(50)	
	, STYMD		DATE			
	, EDYMD		DATE			
	, GLOBALID	CHAR(38)			NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.RDL_BOSU_P ADD CONSTRAINT RDL_BOSU_P_PK PRIMARY KEY (FTC, IDN, NIDN);
COMMENT ON TABLE icgis.RDL_BOSU_P IS '도로보수';
COMMENT ON COLUMN icgis.RDL_BOSU_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_BOSU_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_BOSU_P.NIDN IS '노선번호';
COMMENT ON COLUMN icgis.RDL_BOSU_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_BOSU_P.GUBUN IS '구분';
COMMENT ON COLUMN icgis.RDL_BOSU_P.PRESTAT IS '보수전상태';
COMMENT ON COLUMN icgis.RDL_BOSU_P.METHOD IS '보수방법';
COMMENT ON COLUMN icgis.RDL_BOSU_P.RDLEN IS '연장';
COMMENT ON COLUMN icgis.RDL_BOSU_P.RDARA IS '면적';
COMMENT ON COLUMN icgis.RDL_BOSU_P.RDWID IS '폭원';
COMMENT ON COLUMN icgis.RDL_BOSU_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_BOSU_P.CARRD IS '보수제_차도';
COMMENT ON COLUMN icgis.RDL_BOSU_P.STRD IS '보수제_보도';
COMMENT ON COLUMN icgis.RDL_BOSU_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_BOSU_P.STYMD IS '시작일';
COMMENT ON COLUMN icgis.RDL_BOSU_P.EDYMD IS '종료일';
COMMENT ON COLUMN icgis.RDL_BOSU_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_BOSU_P.SHAPE IS 'SHAPE';


--도로분리녹지대

CREATE TABLE icgis.RDL_RDGR_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, NAM			VARCHAR(40)	
	, MNGNUM		VARCHAR(9)		
	, ADDR			VARCHAR(50)	
	, ARA			NUMERIC(38,8)	
	, YMD			DATE			
	, OWR			VARCHAR(6)		
	, ETYPE			VARCHAR(6)		
	, LWARA			NUMERIC(38,8)	
	, NOTE			VARCHAR(100)	
	, WSYMD			DATE			
	, WEYMD			DATE			
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, SHT_NUM		VARCHAR(10)	
	, STD_HIT		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, RIDN			INTEGER			
	, MIDTYPE		VARCHAR(6)		
	, LENTH			NUMERIC(5)		
	, WIDTH			NUMERIC(38,8)	
	, HJD_CDE		VARCHAR(10)	
	, SGG_CDE		VARCHAR(5)		
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_RDGR_A ADD CONSTRAINT RDL_RDGR_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_RDGR_A IS '도로분리녹지대';
COMMENT ON COLUMN icgis.RDL_RDGR_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_RDGR_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_RDGR_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_RDGR_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_RDGR_A.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.RDL_RDGR_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_RDGR_A.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.RDL_RDGR_A.MNGNUM IS '쉼터관리번호';
COMMENT ON COLUMN icgis.RDL_RDGR_A.ADDR IS '주소';
COMMENT ON COLUMN icgis.RDL_RDGR_A.ARA IS '총면적';
COMMENT ON COLUMN icgis.RDL_RDGR_A.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.RDL_RDGR_A.OWR IS '토지소유구분';
COMMENT ON COLUMN icgis.RDL_RDGR_A.ETYPE IS '토지유형';
COMMENT ON COLUMN icgis.RDL_RDGR_A.LWARA IS '잔디식재면적';
COMMENT ON COLUMN icgis.RDL_RDGR_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_RDGR_A.WSYMD IS '최초입력일';
COMMENT ON COLUMN icgis.RDL_RDGR_A.WEYMD IS '최종수정일';
COMMENT ON COLUMN icgis.RDL_RDGR_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_RDGR_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_RDGR_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_RDGR_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_RDGR_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_RDGR_A.STD_HIT IS '높이';
COMMENT ON COLUMN icgis.RDL_RDGR_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_RDGR_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_RDGR_A.MIDTYPE IS '종류';
COMMENT ON COLUMN icgis.RDL_RDGR_A.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_RDGR_A.WIDTH IS '폭';
COMMENT ON COLUMN icgis.RDL_RDGR_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_RDGR_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_RDGR_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_RDGR_A.SHAPE IS 'SHAPE';


--도로일상보수

CREATE TABLE icgis.RDT_RDBS_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, ADDR			VARCHAR(50)	
	, SYMD			DATE			
	, EYMD			DATE			
	, CPSMA			VARCHAR(6)		
	, CPWID			NUMERIC(38,8)	
	, CPLEN			NUMERIC(38,8)	
	, CPARA			NUMERIC(38,8)	
	, BPSMA			VARCHAR(6)		
	, BWID			NUMERIC(38,8)	
	, BLEN			NUMERIC(38,8)	
	, BARA			NUMERIC(38,8)	
	, BOCHLN		NUMERIC(38,8)	
	, CHLN			NUMERIC(38,8)	
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, NIDN			INTEGER			
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_RDBS_D ADD CONSTRAINT RDT_RDBS_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.RDT_RDBS_D IS '도로일상보수';
COMMENT ON COLUMN icgis.RDT_RDBS_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_RDBS_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_RDBS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_RDBS_D.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDT_RDBS_D.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDT_RDBS_D.ADDR IS '위치';
COMMENT ON COLUMN icgis.RDT_RDBS_D.SYMD IS '보수시작일';
COMMENT ON COLUMN icgis.RDT_RDBS_D.EYMD IS '보수종료일';
COMMENT ON COLUMN icgis.RDT_RDBS_D.CPSMA IS '차도포장재질';
COMMENT ON COLUMN icgis.RDT_RDBS_D.CPWID IS '차도폭';
COMMENT ON COLUMN icgis.RDT_RDBS_D.CPLEN IS '차도연장';
COMMENT ON COLUMN icgis.RDT_RDBS_D.CPARA IS '차도면적';
COMMENT ON COLUMN icgis.RDT_RDBS_D.BPSMA IS '보도포장재질';
COMMENT ON COLUMN icgis.RDT_RDBS_D.BWID IS '보도폭';
COMMENT ON COLUMN icgis.RDT_RDBS_D.BLEN IS '보도연장';
COMMENT ON COLUMN icgis.RDT_RDBS_D.BARA IS '보도면적';
COMMENT ON COLUMN icgis.RDT_RDBS_D.BOCHLN IS '경블보차도경계';
COMMENT ON COLUMN icgis.RDT_RDBS_D.CHLN IS '경블도로경계';
COMMENT ON COLUMN icgis.RDT_RDBS_D.MNGT IS '시행기관';
COMMENT ON COLUMN icgis.RDT_RDBS_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_RDBS_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_RDBS_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_RDBS_D.NIDN IS '도시계획노선-노선번호';
COMMENT ON COLUMN icgis.RDT_RDBS_D.GLOBALID IS 'GLOBALID';


--도로절개지

CREATE TABLE icgis.RDL_RDCT_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, LENTH			NUMERIC(38,8)	
	, WIDTH			NUMERIC(38,8)	
	, HEIGHT		NUMERIC(38,8)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_RDCT_A ADD CONSTRAINT RDL_RDCT_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_RDCT_A IS '도로절개지';
COMMENT ON COLUMN icgis.RDL_RDCT_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_RDCT_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_RDCT_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_RDCT_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_RDCT_A.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_RDCT_A.WIDTH IS '폭';
COMMENT ON COLUMN icgis.RDL_RDCT_A.HEIGHT IS '높이';
COMMENT ON COLUMN icgis.RDL_RDCT_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_RDCT_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_RDCT_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_RDCT_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_RDCT_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_RDCT_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_RDCT_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_RDCT_A.SHAPE IS 'SHAPE';


--도로점용인접지번내역

CREATE TABLE icgis.RDT_JPMN_D(
	IDN				VARCHAR(14)	NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, OBJ_REGN		VARCHAR(10)	NOT NULL
	, OBJ_SAN		VARCHAR(2)		
	, OBJ_BUNJI		VARCHAR(4)		
	, OBJ_HO		VARCHAR(4)		
	, LAND_YEAR		VARCHAR(4)		
	, LAND_AMT		VARCHAR(15)	
	, REL_GBN		VARCHAR(2)		
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_JPMN_D ADD CONSTRAINT RDT_JPMN_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.RDT_JPMN_D IS '도로점용인접지번내역';
COMMENT ON COLUMN icgis.RDT_JPMN_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDT_JPMN_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_JPMN_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JPMN_D.OBJ_REGN IS '법정동';
COMMENT ON COLUMN icgis.RDT_JPMN_D.OBJ_SAN IS '산구분';
COMMENT ON COLUMN icgis.RDT_JPMN_D.OBJ_BUNJI IS '번지_본번';
COMMENT ON COLUMN icgis.RDT_JPMN_D.OBJ_HO IS '호_부번';
COMMENT ON COLUMN icgis.RDT_JPMN_D.LAND_YEAR IS '공시지가년도';
COMMENT ON COLUMN icgis.RDT_JPMN_D.LAND_AMT IS '공시지가';
COMMENT ON COLUMN icgis.RDT_JPMN_D.REL_GBN IS '처리구분';
COMMENT ON COLUMN icgis.RDT_JPMN_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_JPMN_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_JPMN_D.GLOBALID IS 'GLOBALID';


--도로점용허가

CREATE TABLE icgis.RDT_JPML_D(
	IDN				VARCHAR(14)	NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNGT			VARCHAR(6)		NOT NULL
	, PIDN			VARCHAR(14)	
	, PKND			VARCHAR(6)		
	, DEP_CODE		VARCHAR(11)	NOT NULL
	, ACC_YEAR		VARCHAR(4)		NOT NULL
	, ACC_GBN		VARCHAR(2)		NOT NULL
	, SEMOK_CODE	VARCHAR(30)	NOT NULL
	, PER_GBN		VARCHAR(2)		NOT NULL
	, PER_NM		VARCHAR(50)	
	, PER_PID		VARCHAR(13)	
	, PER_POST		VARCHAR(6)		
	, PER_HENG		VARCHAR(10)	
	, PER_REGN		VARCHAR(10)	
	, PER_SAN		VARCHAR(2)		
	, PER_BUNJI		VARCHAR(4)		
	, PER_HO		VARCHAR(4)		
	, PER_SPEC_ADDR	VARCHAR(60)	
	, PER_SPEC_DONG	VARCHAR(20)	
	, PER_SPEC_HO	VARCHAR(10)	
	, PER_TONG		VARCHAR(3)		
	, PER_BAN		VARCHAR(3)		
	, PER_TEL		VARCHAR(15)	
	, PER_CELL		VARCHAR(15)	
	, PER_EMAIL		VARCHAR(30)	
	, USE_DAYS		VARCHAR(4)		
	, LAND_YEAR		VARCHAR(4)		
	, LAND_AMT		VARCHAR(15)	
	, ALW_YMD		DATE			NOT NULL
	, USE_STDT		DATE			
	, USE_ENDDT		DATE			
	, ALW_GBN		VARCHAR(6)		
	, USE_AIM		VARCHAR(4)		
	, JOBJ			VARCHAR(100)	
	, USE_AIM2		VARCHAR(6)		
	, USE_KIND		VARCHAR(2)		
	, DC_SAYU		VARCHAR(2)		
	, USE_AREA		VARCHAR(12)	
	, USE_QTY		VARCHAR(5)		
	, DC_RATE		VARCHAR(5)		
	, OBJ_NM		VARCHAR(50)	
	, OBJ_REGN		VARCHAR(10)	
	, OBJ_SAN		VARCHAR(2)		
	, OBJ_BUNJI		VARCHAR(4)		
	, OBJ_HO		VARCHAR(4)		
	, OBJ_POST		VARCHAR(6)		
	, OBJ_REGN2		VARCHAR(10)	
	, OBJ_HENG		VARCHAR(10)	
	, OBJ_SAN2		VARCHAR(2)		
	, OBJ_BUNJI2	VARCHAR(4)		
	, OBJ_HO2		VARCHAR(4)		
	, OBJ_SPEC_ADDR	VARCHAR(60)	
	, OBJ_SPEC_DONG	VARCHAR(20)	
	, OBJ_SPEC_HO	VARCHAR(10)	
	, OBJ_TONG		VARCHAR(3)		
	, OBJ_BAN		VARCHAR(3)		
	, RADIUS		VARCHAR(10)	
	, LENGTH		VARCHAR(8)		
	, RTYPE			VARCHAR(6)		
	, RNAM			VARCHAR(30)	
	, PCDS			VARCHAR(2000)	
	, PTDS			VARCHAR(2000)	
	, CNAM			VARCHAR(30)	
	, DNAM			VARCHAR(30)	
	, SPYMD			DATE			
	, FPYMD			DATE			
	, SSYMD			DATE			
	, STYMD			DATE			
	, FSYMD			DATE			
	, FEYMD			DATE			
	, EXNAM			VARCHAR(30)	
	, EXCNT			VARCHAR(2000)	
	, FNYMD			DATE			
	, FREE_DAY		DATE			
	, FREE_SAYU		VARCHAR(100)	
	, REL_GBN		VARCHAR(2)		
	, TFCHK			VARCHAR(1)		
	, TFYMD			DATE			
	, NOTE			VARCHAR(200)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, BKNO			VARCHAR(20)	
	, CHARGE_ID		VARCHAR(20)	
	, GLOBALID		CHAR(38)	NOT NULL
);
ALTER TABLE icgis.RDT_JPML_D ADD CONSTRAINT RDT_JPML_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDT_JPML_D IS '도로점용허가';
COMMENT ON COLUMN icgis.RDT_JPML_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JPML_D.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.RDT_JPML_D.PIDN IS '이전허가번호';
COMMENT ON COLUMN icgis.RDT_JPML_D.PKND IS '허가종류';
COMMENT ON COLUMN icgis.RDT_JPML_D.DEP_CODE IS '부서코드';
COMMENT ON COLUMN icgis.RDT_JPML_D.ACC_YEAR IS '회계연도';
COMMENT ON COLUMN icgis.RDT_JPML_D.ACC_GBN IS '회계구분';
COMMENT ON COLUMN icgis.RDT_JPML_D.SEMOK_CODE IS '세목코드';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_GBN IS '점용자_구분';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_NM IS '점용자_성명';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_PID IS '점용자_주민등록번호';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_POST IS '점용자_우편번호';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_HENG IS '점용자_행정동';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_REGN IS '점용자_지역코드';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_SAN IS '점용자_산';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_BUNJI IS '점용자_번지';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_HO IS '점용자_호';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_SPEC_ADDR IS '점용자_특수주소';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_SPEC_DONG IS '점용자_특수지동';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_SPEC_HO IS '점용자_특수지호';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_TONG IS '점용자_통';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_BAN IS '점용자_반';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_TEL IS '점용자_전화번호';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_CELL IS '점용자_휴대폰';
COMMENT ON COLUMN icgis.RDT_JPML_D.PER_EMAIL IS '점용자_이메일';
COMMENT ON COLUMN icgis.RDT_JPML_D.USE_DAYS IS '점용일수';
COMMENT ON COLUMN icgis.RDT_JPML_D.LAND_YEAR IS '공시지가년도';
COMMENT ON COLUMN icgis.RDT_JPML_D.LAND_AMT IS '공시지가';
COMMENT ON COLUMN icgis.RDT_JPML_D.ALW_YMD IS '허가일자';
COMMENT ON COLUMN icgis.RDT_JPML_D.USE_STDT IS '점용시작일자';
COMMENT ON COLUMN icgis.RDT_JPML_D.USE_ENDDT IS '점용종료일자';
COMMENT ON COLUMN icgis.RDT_JPML_D.ALW_GBN IS '허가구분';
COMMENT ON COLUMN icgis.RDT_JPML_D.USE_AIM IS '점용목적';
COMMENT ON COLUMN icgis.RDT_JPML_D.JOBJ IS '점용상세목적';
COMMENT ON COLUMN icgis.RDT_JPML_D.USE_AIM2 IS '점용용도';
COMMENT ON COLUMN icgis.RDT_JPML_D.USE_KIND IS '점용종류';
COMMENT ON COLUMN icgis.RDT_JPML_D.DC_SAYU IS '감액사유';
COMMENT ON COLUMN icgis.RDT_JPML_D.USE_AREA IS '점용면적';
COMMENT ON COLUMN icgis.RDT_JPML_D.USE_QTY IS '점용수량';
COMMENT ON COLUMN icgis.RDT_JPML_D.DC_RATE IS '감면요율';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_NM IS '물건명';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_REGN IS '물건지역번호';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_SAN IS '물건산';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_BUNJI IS '물건번지';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_HO IS '물건호';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_POST IS '물건지우편번호';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_REGN2 IS '물건지법정동코드';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_HENG IS '물건지행정동코드';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_SAN2 IS '물건지산구분';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_BUNJI2 IS '물건지번지';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_HO2 IS '물건지호';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_SPEC_ADDR IS '물건지특수주소';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_SPEC_DONG IS '물건지특수지동';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_SPEC_HO IS '물건지특수지호';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_TONG IS '물건지통';
COMMENT ON COLUMN icgis.RDT_JPML_D.OBJ_BAN IS '물건지반';
COMMENT ON COLUMN icgis.RDT_JPML_D.RADIUS IS '지름';
COMMENT ON COLUMN icgis.RDT_JPML_D.LENGTH IS '길이';
COMMENT ON COLUMN icgis.RDT_JPML_D.RTYPE IS '도로종류';
COMMENT ON COLUMN icgis.RDT_JPML_D.RNAM IS '노선명';
COMMENT ON COLUMN icgis.RDT_JPML_D.PCDS IS '허가조건';
COMMENT ON COLUMN icgis.RDT_JPML_D.PTDS IS '교통소통대책';
COMMENT ON COLUMN icgis.RDT_JPML_D.CNAM IS '확인자';
COMMENT ON COLUMN icgis.RDT_JPML_D.DNAM IS '감독자';
COMMENT ON COLUMN icgis.RDT_JPML_D.SPYMD IS '착공예정일';
COMMENT ON COLUMN icgis.RDT_JPML_D.FPYMD IS '준공예정일';
COMMENT ON COLUMN icgis.RDT_JPML_D.SSYMD IS '착공계제출일';
COMMENT ON COLUMN icgis.RDT_JPML_D.STYMD IS '착공일';
COMMENT ON COLUMN icgis.RDT_JPML_D.FSYMD IS '준공계제출일';
COMMENT ON COLUMN icgis.RDT_JPML_D.FEYMD IS '준공검사일';
COMMENT ON COLUMN icgis.RDT_JPML_D.EXNAM IS '준공조사자';
COMMENT ON COLUMN icgis.RDT_JPML_D.EXCNT IS '준공조사내역';
COMMENT ON COLUMN icgis.RDT_JPML_D.FNYMD IS '준공일';
COMMENT ON COLUMN icgis.RDT_JPML_D.FREE_DAY IS '해지일자';
COMMENT ON COLUMN icgis.RDT_JPML_D.FREE_SAYU IS '해지사유';
COMMENT ON COLUMN icgis.RDT_JPML_D.REL_GBN IS '처리구분';
COMMENT ON COLUMN icgis.RDT_JPML_D.TFCHK IS '데이터전송여부';
COMMENT ON COLUMN icgis.RDT_JPML_D.TFYMD IS '데이터전송일';
COMMENT ON COLUMN icgis.RDT_JPML_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_JPML_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_JPML_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_JPML_D.BKNO IS '연계대장번호';
COMMENT ON COLUMN icgis.RDT_JPML_D.CHARGE_ID IS '변경자ID';
COMMENT ON COLUMN icgis.RDT_JPML_D.GLOBALID IS 'GLOBALID';


--도로중심선

CREATE TABLE icgis.RDL_RDCT_L(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, GGUB			VARCHAR(6)			
	, GTYPE			VARCHAR(6)			
	, ADA			VARCHAR(6)			
	, FUNCCD		VARCHAR(6)			
	, SIZECD		VARCHAR(6)			
	, LINE			NUMERIC(5)			
	, REPOLY		INTEGER				
	, JUNYONG		VARCHAR(6)			
	, RDLEN			NUMERIC(38,8)		
	, RDARA			NUMERIC(38,8)		
	, RDWID			NUMERIC(38,8)		
	, MOP			VARCHAR(6)			
	, SIDN			INTEGER				
	, GUCD			VARCHAR(5)			
	, DCD			VARCHAR(10)		
	, MNGT			VARCHAR(6)			
	, LKEY			INTEGER				
	, NOTE			VARCHAR(50)		
	, FFTC			VARCHAR(5)			
	, FIDN			INTEGER				
	, SYMD			DATE				
	, NIDN			INTEGER				
	, NNAM			VARCHAR(30)		
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, EXAM_YN		VARCHAR(1)			
	, SHT_NUM		VARCHAR(10)		
	, SEC_NUM		NUMERIC(38,8)		
	, CLB_IDN		NUMERIC(38,8)		
	, ROU_IDN		NUMERIC(38,8)		
	, SYS_CHK		VARCHAR(1)			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.RDL_RDCT_L ADD CONSTRAINT RDL_RDCT_L_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDL_RDCT_L IS '도로중심선';
COMMENT ON COLUMN icgis.RDL_RDCT_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_RDCT_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.GGUB IS '구간구분';
COMMENT ON COLUMN icgis.RDL_RDCT_L.GTYPE IS '구간형태';
COMMENT ON COLUMN icgis.RDL_RDCT_L.ADA IS '도로종류';
COMMENT ON COLUMN icgis.RDL_RDCT_L.FUNCCD IS '도로기능';
COMMENT ON COLUMN icgis.RDL_RDCT_L.SIZECD IS '도로규모';
COMMENT ON COLUMN icgis.RDL_RDCT_L.LINE IS '왕복차로수';
COMMENT ON COLUMN icgis.RDL_RDCT_L.REPOLY IS '도로면_개별번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.JUNYONG IS '중용여부';
COMMENT ON COLUMN icgis.RDL_RDCT_L.RDLEN IS '도로_연장';
COMMENT ON COLUMN icgis.RDL_RDCT_L.RDARA IS '도로_면적';
COMMENT ON COLUMN icgis.RDL_RDCT_L.RDWID IS '도로_폭원';
COMMENT ON COLUMN icgis.RDL_RDCT_L.MOP IS '차도재질';
COMMENT ON COLUMN icgis.RDL_RDCT_L.SIDN IS '도로중심선정보부속_개별번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_RDCT_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.RDL_RDCT_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_RDCT_L.LKEY IS '도로중심선_개별번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_RDCT_L.FFTC IS '교차시설_지형지물부호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.FIDN IS '교차시설_개별번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.SYMD IS '차도개통일';
COMMENT ON COLUMN icgis.RDL_RDCT_L.NIDN IS '도시계획노선_노선번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.NNAM IS '도시계획노선_노선명';
COMMENT ON COLUMN icgis.RDL_RDCT_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_RDCT_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_RDCT_L.EXAM_YN IS '성과심사여부';
COMMENT ON COLUMN icgis.RDL_RDCT_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.SEC_NUM IS '구간연결';
COMMENT ON COLUMN icgis.RDL_RDCT_L.CLB_IDN IS '오르막차로관리번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.ROU_IDN IS '우회도로관리번호';
COMMENT ON COLUMN icgis.RDL_RDCT_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_RDCT_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_RDCT_L.SHAPE IS 'SHAPE';


--도로중심선교점

