CREATE TABLE icgis.RDT_GYPD_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, POK			NUMERIC(38,8)
	, IA1DO			INTEGER		
	, IA1BUN		INTEGER		
	, IA1CHO		INTEGER		
	, HALF			INTEGER		
	, DUPLEN		INTEGER		
	, GOKLEN		INTEGER		
	, MID			INTEGER		
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_GYPD_D ADD CONSTRAINT RDT_GYPD_D_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDT_GYPD_D IS '도로중심선교점';
COMMENT ON COLUMN icgis.RDT_GYPD_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_GYPD_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_GYPD_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_GYPD_D.POK IS '확폭';
COMMENT ON COLUMN icgis.RDT_GYPD_D.IA1DO IS '교각IA1도';
COMMENT ON COLUMN icgis.RDT_GYPD_D.IA1BUN IS '교각IA1분';
COMMENT ON COLUMN icgis.RDT_GYPD_D.IA1CHO IS '교각IA1초';
COMMENT ON COLUMN icgis.RDT_GYPD_D.HALF IS '곡선반경';
COMMENT ON COLUMN icgis.RDT_GYPD_D.DUPLEN IS '접선장';
COMMENT ON COLUMN icgis.RDT_GYPD_D.GOKLEN IS '곡선장';
COMMENT ON COLUMN icgis.RDT_GYPD_D.MID IS '중앙종거';
COMMENT ON COLUMN icgis.RDT_GYPD_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_GYPD_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_GYPD_D.GLOBALID IS 'GLOBALID';


--도로중심선정보부속

CREATE TABLE icgis.RDT_RDCT_D(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MAN			VARCHAR(30)	
	, CGRADE		VARCHAR(1)		
	, SYMD			DATE			
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NTARA			NUMERIC(38,8)	
	, CTARA			NUMERIC(38,8)	
	, PSARA			NUMERIC(38,8)	
	, RDBL			NUMERIC(38,8)	
	, RDBARA		NUMERIC(38,8)	
	, CARNL			NUMERIC(38,8)	
	, CARNA			NUMERIC(38,8)	
	, DLENTH		NUMERIC(38,8)	
	, DARA			NUMERIC(38,8)	
	, NOKRL			NUMERIC(38,8)	
	, NOKRA			NUMERIC(38,8)	
	, NOKRWID		NUMERIC(38,8)	
	, NOKLL			NUMERIC(38,8)	
	, NOKLA			NUMERIC(38,8)	
	, NOKLWID		NUMERIC(38,8)	
	, LRLMA			VARCHAR(6)		
	, LRLLEN		NUMERIC(38,8)	
	, RRLMA			VARCHAR(6)		
	, RRLLEN		NUMERIC(38,8)	
	, CONRD			VARCHAR(40)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_RDCT_D ADD CONSTRAINT RDT_RDCT_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDT_RDCT_D IS '도로중심선정보부속';
COMMENT ON COLUMN icgis.RDT_RDCT_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_RDCT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_RDCT_D.MAN IS '차도관리자';
COMMENT ON COLUMN icgis.RDT_RDCT_D.CGRADE IS '차도유지관리등급';
COMMENT ON COLUMN icgis.RDT_RDCT_D.SYMD IS '차도개통일';
COMMENT ON COLUMN icgis.RDT_RDCT_D.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDT_RDCT_D.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDT_RDCT_D.NTARA IS '국유지면적';
COMMENT ON COLUMN icgis.RDT_RDCT_D.CTARA IS '시유지면적';
COMMENT ON COLUMN icgis.RDT_RDCT_D.PSARA IS '사유지면적';
COMMENT ON COLUMN icgis.RDT_RDCT_D.RDBL IS '도로법면연장';
COMMENT ON COLUMN icgis.RDT_RDCT_D.RDBARA IS '도로법면면적';
COMMENT ON COLUMN icgis.RDT_RDCT_D.CARNL IS '자동차교통불능구간연장';
COMMENT ON COLUMN icgis.RDT_RDCT_D.CARNA IS '자동차교통불능구간면적';
COMMENT ON COLUMN icgis.RDT_RDCT_D.DLENTH IS '중용연장';
COMMENT ON COLUMN icgis.RDT_RDCT_D.DARA IS '중용면적';
COMMENT ON COLUMN icgis.RDT_RDCT_D.NOKRL IS '노견_우연장';
COMMENT ON COLUMN icgis.RDT_RDCT_D.NOKRA IS '노견_우면적';
COMMENT ON COLUMN icgis.RDT_RDCT_D.NOKRWID IS '노견_우폭';
COMMENT ON COLUMN icgis.RDT_RDCT_D.NOKLL IS '노견_좌연장';
COMMENT ON COLUMN icgis.RDT_RDCT_D.NOKLA IS '노견_좌면적';
COMMENT ON COLUMN icgis.RDT_RDCT_D.NOKLWID IS '노견_좌폭';
COMMENT ON COLUMN icgis.RDT_RDCT_D.LRLMA IS '도로경계석_좌재질';
COMMENT ON COLUMN icgis.RDT_RDCT_D.LRLLEN IS '도로경계석_좌연장';
COMMENT ON COLUMN icgis.RDT_RDCT_D.RRLMA IS '도로경계석_우재질';
COMMENT ON COLUMN icgis.RDT_RDCT_D.RRLLEN IS '도로경계석_우연장';
COMMENT ON COLUMN icgis.RDT_RDCT_D.CONRD IS '접속도로명';
COMMENT ON COLUMN icgis.RDT_RDCT_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_RDCT_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_RDCT_D.GLOBALID IS 'GLOBALID';


--도로표지판

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


--도시계획 도로계획선

CREATE TABLE icgis.RDL_UPRL_L(
	OBJECTID	INTEGER			NOT NULL
	,FTC		VARCHAR(6)		NOT NULL
	,GLOBALID	CHAR(38)		NOT NULL
	,SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.RDL_UPRL_L IS '도시계획 도로계획선';
COMMENT ON COLUMN icgis.RDL_UPRL_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_UPRL_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_UPRL_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_UPRL_L.SHAPE IS 'SHAPE';


--맨홀

CREATE TABLE icgis.RDL_MNHL_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, AZB			VARCHAR(6)		
	, SMA			VARCHAR(6)		
	, GUC			VARCHAR(6)		
	, DIA			NUMERIC(5)		
	, LENTH			NUMERIC(5)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, THICK			NUMERIC(5)		
	, 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_MNHL_P ADD CONSTRAINT RDL_MNHL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_MNHL_P IS '맨홀';
COMMENT ON COLUMN icgis.RDL_MNHL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_MNHL_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_MNHL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_MNHL_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_MNHL_P.AZB IS '맨홀종류';
COMMENT ON COLUMN icgis.RDL_MNHL_P.SMA IS '맨홀재질';
COMMENT ON COLUMN icgis.RDL_MNHL_P.GUC IS '뚜껑종류';
COMMENT ON COLUMN icgis.RDL_MNHL_P.DIA IS '뚜껑가로길이';
COMMENT ON COLUMN icgis.RDL_MNHL_P.LENTH IS '뚜껑세로길이';
COMMENT ON COLUMN icgis.RDL_MNHL_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_MNHL_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_MNHL_P.THICK IS '뚜껑두께';
COMMENT ON COLUMN icgis.RDL_MNHL_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_MNHL_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_MNHL_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_MNHL_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_MNHL_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_MNHL_P.SHAPE IS 'SHAPE';


--미끄럼 방지시설

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


--방호울타리

CREATE TABLE icgis.RDL_WOOL_L(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER				
	, AED			VARCHAR(6)			
	, CIDN			VARCHAR(10)		
	, CMNGT			VARCHAR(6)			
	, YMD			DATE				
	, SMA			VARCHAR(6)			
	, LENTH			NUMERIC(38,8)		
	, HEIGHT		NUMERIC(38,8)		
	, MNGT			VARCHAR(6)			
	, 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_WOOL_L ADD CONSTRAINT RDL_WOOL_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_WOOL_L IS '방호울타리';
COMMENT ON COLUMN icgis.RDL_WOOL_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_WOOL_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_WOOL_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_WOOL_L.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_WOOL_L.AED IS '방호울타리종류';
COMMENT ON COLUMN icgis.RDL_WOOL_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_WOOL_L.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_WOOL_L.YMD IS '준공일';
COMMENT ON COLUMN icgis.RDL_WOOL_L.SMA IS '재질';
COMMENT ON COLUMN icgis.RDL_WOOL_L.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_WOOL_L.HEIGHT IS '높이';
COMMENT ON COLUMN icgis.RDL_WOOL_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_WOOL_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_WOOL_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_WOOL_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_WOOL_L.HJD_CDE IS '신호기제식';
COMMENT ON COLUMN icgis.RDL_WOOL_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_WOOL_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_WOOL_L.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_WOOL_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_WOOL_L.SHAPE IS 'SHAPE';


--보도육교

CREATE TABLE icgis.RDL_OVPS_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, PART			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, MAN			VARCHAR(30)	
	, GRADE			VARCHAR(1)		
	, NAM			VARCHAR(20)	
	, ADDR			VARCHAR(40)	
	, YMD			DATE			
	, FACICS		VARCHAR(6)		
	, GUWID			NUMERIC(38,8)	
	, GULEN			NUMERIC(38,8)	
	, GUARA			NUMERIC(38,8)	
	, LIMHEI		NUMERIC(38,8)	
	, UPSANG		VARCHAR(6)		
	, DNDHY			VARCHAR(6)		
	, STRLEN		INTEGER			
	, STREA			NUMERIC(5)		
	, STRWID		NUMERIC(38,8)	
	, STRARA		NUMERIC(38,8)	
	, DWEI			VARCHAR(6)		
	, NANSMA		VARCHAR(6)		
	, NANLEN		INTEGER			
	, NANHEI		NUMERIC(38,8)	
	, REHEI			NUMERIC(38,8)	
	, CORB			VARCHAR(6)		
	, HOS			VARCHAR(6)		
	, ANG			NUMERIC(5)		
	, MFACIL		VARCHAR(6)		
	, MNGT			VARCHAR(6)		
	, 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)	
	, HDR_ARA		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_OVPS_A ADD CONSTRAINT RDL_OVPS_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_OVPS_A IS '보도육교';
COMMENT ON COLUMN icgis.RDL_OVPS_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_OVPS_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_OVPS_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_OVPS_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_OVPS_A.PART IS '보도육교종류';
COMMENT ON COLUMN icgis.RDL_OVPS_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_OVPS_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_OVPS_A.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDL_OVPS_A.GRADE IS '관리급수';
COMMENT ON COLUMN icgis.RDL_OVPS_A.NAM IS '보도육교명';
COMMENT ON COLUMN icgis.RDL_OVPS_A.ADDR IS '소재지';
COMMENT ON COLUMN icgis.RDL_OVPS_A.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDL_OVPS_A.FACICS IS '종별';
COMMENT ON COLUMN icgis.RDL_OVPS_A.GUWID IS '구체폭원';
COMMENT ON COLUMN icgis.RDL_OVPS_A.GULEN IS '구체연장';
COMMENT ON COLUMN icgis.RDL_OVPS_A.GUARA IS '구체면적';
COMMENT ON COLUMN icgis.RDL_OVPS_A.LIMHEI IS '통과제한높이';
COMMENT ON COLUMN icgis.RDL_OVPS_A.UPSANG IS '구체상부';
COMMENT ON COLUMN icgis.RDL_OVPS_A.DNDHY IS '구체하부';
COMMENT ON COLUMN icgis.RDL_OVPS_A.STRLEN IS '계단연장';
COMMENT ON COLUMN icgis.RDL_OVPS_A.STREA IS '계단개소';
COMMENT ON COLUMN icgis.RDL_OVPS_A.STRWID IS '계단폭';
COMMENT ON COLUMN icgis.RDL_OVPS_A.STRARA IS '계단면적';
COMMENT ON COLUMN icgis.RDL_OVPS_A.DWEI IS '설계하중';
COMMENT ON COLUMN icgis.RDL_OVPS_A.NANSMA IS '난간재질';
COMMENT ON COLUMN icgis.RDL_OVPS_A.NANLEN IS '난간연장';
COMMENT ON COLUMN icgis.RDL_OVPS_A.NANHEI IS '난간높이';
COMMENT ON COLUMN icgis.RDL_OVPS_A.REHEI IS '실측높이';
COMMENT ON COLUMN icgis.RDL_OVPS_A.CORB IS '보도육교구분';
COMMENT ON COLUMN icgis.RDL_OVPS_A.HOS IS '장애자통과여부';
COMMENT ON COLUMN icgis.RDL_OVPS_A.ANG IS '장애자램프경사도';
COMMENT ON COLUMN icgis.RDL_OVPS_A.MFACIL IS '횡단시설명';
COMMENT ON COLUMN icgis.RDL_OVPS_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_OVPS_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_OVPS_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_OVPS_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_OVPS_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_OVPS_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_OVPS_A.GRD_CDE IS '기준점등급';
COMMENT ON COLUMN icgis.RDL_OVPS_A.TOT_LEN IS '총연장';
COMMENT ON COLUMN icgis.RDL_OVPS_A.HDR_ARA IS '계단_면적';
COMMENT ON COLUMN icgis.RDL_OVPS_A.STD_LBL IS '라벨';
COMMENT ON COLUMN icgis.RDL_OVPS_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_OVPS_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_OVPS_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_OVPS_A.SHAPE IS 'SHAPE';


--보안등

CREATE TABLE icgis.RDL_BOAN_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, RIDN			INTEGER			
	, CTLNO			VARCHAR(30)	
	, YMD			DATE			
	, SST			VARCHAR(20)	
	, PRPLSH		VARCHAR(6)		
	, PRPLCD		VARCHAR(6)		
	, PRPLCA		NUMERIC(5)		
	, PRPLPW		VARCHAR(6)		
	, LGUB			VARCHAR(20)	
	, SWGUB			VARCHAR(20)	
	, 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)	
	, 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_BOAN_P ADD CONSTRAINT RDL_BOAN_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_BOAN_P IS '보안등';
COMMENT ON COLUMN icgis.RDL_BOAN_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_BOAN_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_BOAN_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_BOAN_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_BOAN_P.CTLNO IS '관리번호';
COMMENT ON COLUMN icgis.RDL_BOAN_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_BOAN_P.SST IS '선로규격';
COMMENT ON COLUMN icgis.RDL_BOAN_P.PRPLSH IS '보안등기구모형';
COMMENT ON COLUMN icgis.RDL_BOAN_P.PRPLCD IS '보안등광원종류';
COMMENT ON COLUMN icgis.RDL_BOAN_P.PRPLCA IS '보안등광원용량';
COMMENT ON COLUMN icgis.RDL_BOAN_P.PRPLPW IS '보안등광원전원';
COMMENT ON COLUMN icgis.RDL_BOAN_P.LGUB IS '등종류';
COMMENT ON COLUMN icgis.RDL_BOAN_P.SWGUB IS '스위치종류';
COMMENT ON COLUMN icgis.RDL_BOAN_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_BOAN_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_BOAN_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_BOAN_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_BOAN_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_BOAN_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_BOAN_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_BOAN_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_BOAN_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_BOAN_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_BOAN_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_BOAN_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.RDL_BOAN_P.JFTC IS '제어함_지형지물부호';
COMMENT ON COLUMN icgis.RDL_BOAN_P.JIDN IS '제어함_개별번호';


--부대시설

CREATE TABLE icgis.RDT_PKFC_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, KND			VARCHAR(20)		NOT NULL
	, STRC			VARCHAR(50)	
	, QLT			INTEGER			
	, TYPE			VARCHAR(50)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKFC_D ADD CONSTRAINT RDT_PKFC_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_PKFC_D IS '부대시설';
COMMENT ON COLUMN icgis.RDT_PKFC_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_PKFC_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKFC_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_PKFC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKFC_D.KND IS '종류';
COMMENT ON COLUMN icgis.RDT_PKFC_D.STRC IS '구조';
COMMENT ON COLUMN icgis.RDT_PKFC_D.QLT IS '수량';
COMMENT ON COLUMN icgis.RDT_PKFC_D.TYPE IS '형식';
COMMENT ON COLUMN icgis.RDT_PKFC_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_PKFC_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKFC_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKFC_D.GLOBALID IS 'GLOBALID';


--비용지출내역

CREATE TABLE icgis.RDT_PKCT_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, KND			VARCHAR(6)		
	, YMD			DATE			
	, CONT			VARCHAR(100)	
	, COST			INTEGER			
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKCT_D ADD CONSTRAINT RDT_PKCT_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_PKCT_D IS '비용지출내역';
COMMENT ON COLUMN icgis.RDT_PKCT_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_PKCT_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKCT_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_PKCT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKCT_D.KND IS '구분';
COMMENT ON COLUMN icgis.RDT_PKCT_D.YMD IS '일자';
COMMENT ON COLUMN icgis.RDT_PKCT_D.CONT IS '내용';
COMMENT ON COLUMN icgis.RDT_PKCT_D.COST IS '비용';
COMMENT ON COLUMN icgis.RDT_PKCT_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_PKCT_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKCT_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKCT_D.GLOBALID IS 'GLOBALID';


--사업감리내역

CREATE TABLE icgis.RDT_CNOS_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(10)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, TENDCD		VARCHAR(6)		
	, OSEECO		VARCHAR(20)	
	, OSEECST		NUMERIC(38,8)	
	, CONTCST		NUMERIC(38,8)	
	, RATE			NUMERIC(38,8)	
	, ASSUCO		VARCHAR(20)	
	, SYMD			DATE			
	, EYMD			DATE			
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_CNOS_D ADD CONSTRAINT RDT_CNOS_D_PK PRIMARY KEY (MNGT, IDN);
COMMENT ON TABLE icgis.RDT_CNOS_D IS '사업감리내역';
COMMENT ON COLUMN icgis.RDT_CNOS_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDT_CNOS_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.RDT_CNOS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNOS_D.TENDCD IS '감리입찰방식';
COMMENT ON COLUMN icgis.RDT_CNOS_D.OSEECO IS '감리사';
COMMENT ON COLUMN icgis.RDT_CNOS_D.OSEECST IS '감리비';
COMMENT ON COLUMN icgis.RDT_CNOS_D.CONTCST IS '감리계약금액';
COMMENT ON COLUMN icgis.RDT_CNOS_D.RATE IS '낙찰률';
COMMENT ON COLUMN icgis.RDT_CNOS_D.ASSUCO IS '감리보증사';
COMMENT ON COLUMN icgis.RDT_CNOS_D.SYMD IS '감리시작일';
COMMENT ON COLUMN icgis.RDT_CNOS_D.EYMD IS '감리종료일';
COMMENT ON COLUMN icgis.RDT_CNOS_D.GLOBALID IS 'GLOBALID';


--사업계약내역

CREATE TABLE icgis.RDT_CNCT_D(
	MNGT			VARCHAR(6)		NOT NULL	
	,IDN			VARCHAR(10)		NOT NULL	
	,OBJECTID		INTEGER			NOT NULL	
	,TENDCD			VARCHAR(6)		
	,CONTCD			VARCHAR(6)		
	,DSGCST			NUMERIC(38,8)	
	,PCNSTCST		NUMERIC(38,8)	
	,PETCCST		NUMERIC(38,8)	
	,PVAT			NUMERIC(38,8)	
	,CONTCST		NUMERIC(38,8)	
	,ORGAMT			NUMERIC(38,8)	
	,RATE			NUMERIC(38,8)	
	,ASSUCO			VARCHAR(20)	
	,DESGNM			VARCHAR(20)	
	,IPHEA			VARCHAR(20)	
	,IPYMD			DATE			
	,CSYMD			DATE			
	,SYMD			DATE			
	,WODECO			VARCHAR(20)	
	,BCYMD			DATE			
	,JIYMD			DATE			
	,JIWAY			VARCHAR(6)		
	,JIQTY			NUMERIC(5)		
	,GONGWAY		VARCHAR(6)		
	,GONGYMD		DATE			
	,GONGPAPER		VARCHAR(40)	
	,GONGSYMD		DATE			
	,GONGEYMD		DATE			
	,PUMYMD			DATE			
	,INFOIN			INTEGER			
	,IPREG			INTEGER			
	,IPJOIN			INTEGER			
	,IPUNDER		INTEGER			
	,TOSSYMD		DATE			
	,TOSSAMT		NUMERIC(38,8)	
	,TOSSMAN		VARCHAR(30)	
	,GRAPMAN		VARCHAR(30)	
	,GRAPAMT		NUMERIC(38,8)	
	,GRAPRES		VARCHAR(40)	
	,GRAPIGN		VARCHAR(40)	
	,ENDGIGAN		VARCHAR(16)	
	,ENDYMD			DATE			
	,ENDILSU		NUMERIC(5)		
	,ENDAMT			NUMERIC(38,8)	
	,GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_CNCT_D ADD CONSTRAINT RDT_CNCT_D_PK PRIMARY KEY (MNGT,IDN);
COMMENT ON TABLE icgis.RDT_CNCT_D IS '사업계약내역';
COMMENT ON COLUMN icgis.RDT_CNCT_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDT_CNCT_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.RDT_CNCT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNCT_D.TENDCD IS '입찰방식';
COMMENT ON COLUMN icgis.RDT_CNCT_D.CONTCD IS '계약방법';
COMMENT ON COLUMN icgis.RDT_CNCT_D.DSGCST IS '설계/발주금액';
COMMENT ON COLUMN icgis.RDT_CNCT_D.PCNSTCST IS '예정가격_공사비';
COMMENT ON COLUMN icgis.RDT_CNCT_D.PETCCST IS '예정가격_잡비';
COMMENT ON COLUMN icgis.RDT_CNCT_D.PVAT IS '예정가격_부가세';
COMMENT ON COLUMN icgis.RDT_CNCT_D.CONTCST IS '계약금액';
COMMENT ON COLUMN icgis.RDT_CNCT_D.ORGAMT IS '계약공급가액';
COMMENT ON COLUMN icgis.RDT_CNCT_D.RATE IS '낙찰률';
COMMENT ON COLUMN icgis.RDT_CNCT_D.ASSUCO IS '보증사';
COMMENT ON COLUMN icgis.RDT_CNCT_D.DESGNM IS '설계자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.IPHEA IS '입회자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.IPYMD IS '입찰일자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.CSYMD IS '계약일';
COMMENT ON COLUMN icgis.RDT_CNCT_D.SYMD IS '착공/착수일';
COMMENT ON COLUMN icgis.RDT_CNCT_D.WODECO IS '설계용역사';
COMMENT ON COLUMN icgis.RDT_CNCT_D.BCYMD IS '발주전심의일자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.JIYMD IS '업자지명일자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.JIWAY IS '업자지명방법';
COMMENT ON COLUMN icgis.RDT_CNCT_D.JIQTY IS '지명자수';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GONGWAY IS '공급방법';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GONGYMD IS '공고일자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GONGPAPER IS '공고신문';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GONGSYMD IS '공고기간시작일';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GONGEYMD IS '공고기간종료일';
COMMENT ON COLUMN icgis.RDT_CNCT_D.PUMYMD IS '사용품의일자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.INFOIN IS '현장설명참가자수';
COMMENT ON COLUMN icgis.RDT_CNCT_D.IPREG IS '입찰등록자수';
COMMENT ON COLUMN icgis.RDT_CNCT_D.IPJOIN IS '입찰참가자수';
COMMENT ON COLUMN icgis.RDT_CNCT_D.IPUNDER IS '예정가격이하입찰자수';
COMMENT ON COLUMN icgis.RDT_CNCT_D.TOSSYMD IS '채권양도승인일자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.TOSSAMT IS '채권양도승인금액';
COMMENT ON COLUMN icgis.RDT_CNCT_D.TOSSMAN IS '채권양수인';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GRAPMAN IS '채권압류자';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GRAPAMT IS '채권압류액';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GRAPRES IS '채권압류사유';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GRAPIGN IS '채권압류해제';
COMMENT ON COLUMN icgis.RDT_CNCT_D.ENDGIGAN IS '지체준공기간';
COMMENT ON COLUMN icgis.RDT_CNCT_D.ENDYMD IS '지체준공월일';
COMMENT ON COLUMN icgis.RDT_CNCT_D.ENDILSU IS '지체일수';
COMMENT ON COLUMN icgis.RDT_CNCT_D.ENDAMT IS '지체상금징수액';
COMMENT ON COLUMN icgis.RDT_CNCT_D.GLOBALID IS 'GLOBALID';


--사업준공내역

CREATE TABLE icgis.RDT_CNFS_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(10)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, INO			VARCHAR(1)		
	, PLYMD			DATE			
	, CMYMD			DATE			
	, COMPCST		NUMERIC(38,8)	
	, INSYMD		DATE			
	, INSPNM1		VARCHAR(30)	
	, INSPNM2		VARCHAR(30)	
	, WITHNM1		VARCHAR(30)	
	, WITHNM2		VARCHAR(30)	
	, CERTIL		VARCHAR(30)	
	, CERTCO		VARCHAR(20)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_CNFS_D ADD CONSTRAINT RDT_CNFS_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_CNFS_D IS '사업준공내역';
COMMENT ON COLUMN icgis.RDT_CNFS_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDT_CNFS_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.RDT_CNFS_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_CNFS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNFS_D.INO IS '준공차수';
COMMENT ON COLUMN icgis.RDT_CNFS_D.PLYMD IS '준공예정일';
COMMENT ON COLUMN icgis.RDT_CNFS_D.CMYMD IS '준공일';
COMMENT ON COLUMN icgis.RDT_CNFS_D.COMPCST IS '준공금액';
COMMENT ON COLUMN icgis.RDT_CNFS_D.INSYMD IS '준공검사일';
COMMENT ON COLUMN icgis.RDT_CNFS_D.INSPNM1 IS '준공검사자1';
COMMENT ON COLUMN icgis.RDT_CNFS_D.INSPNM2 IS '준공검사자2';
COMMENT ON COLUMN icgis.RDT_CNFS_D.WITHNM1 IS '입회자1';
COMMENT ON COLUMN icgis.RDT_CNFS_D.WITHNM2 IS '입회자2';
COMMENT ON COLUMN icgis.RDT_CNFS_D.CERTIL IS '하자보증기한';
COMMENT ON COLUMN icgis.RDT_CNFS_D.CERTCO IS '하자보증사';
COMMENT ON COLUMN icgis.RDT_CNFS_D.GLOBALID IS 'GLOBALID';


--석축_옹벽

CREATE TABLE icgis.RDL_FENC_L(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER				
	, YMD			DATE				
	, ADARA			NUMERIC(38,8)		
	, RSARA			NUMERIC(38,8)		
	, PEARA			NUMERIC(38,8)		
	, SMA			VARCHAR(6)			
	, STRU			VARCHAR(30)		
	, LENTH			INTEGER				
	, MAXHEI		NUMERIC(38,8)		
	, MINHEI		NUMERIC(38,8)		
	, 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)		
	, BYC_WID		NUMERIC(38,8)		
	, SYS_CHK		VARCHAR(1)			
	, SGG_CDE		VARCHAR(5)			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_FENC_L ADD CONSTRAINT RDL_FENC_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_FENC_L IS '석축_옹벽';
COMMENT ON COLUMN icgis.RDL_FENC_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_FENC_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_FENC_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_FENC_L.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_FENC_L.YMD IS '준공일';
COMMENT ON COLUMN icgis.RDL_FENC_L.ADARA IS '도로부지저촉면적';
COMMENT ON COLUMN icgis.RDL_FENC_L.RSARA IS '도로부지잔여면적';
COMMENT ON COLUMN icgis.RDL_FENC_L.PEARA IS '사유지면적';
COMMENT ON COLUMN icgis.RDL_FENC_L.SMA IS '재질';
COMMENT ON COLUMN icgis.RDL_FENC_L.STRU IS '구조';
COMMENT ON COLUMN icgis.RDL_FENC_L.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_FENC_L.MAXHEI IS '높이최대';
COMMENT ON COLUMN icgis.RDL_FENC_L.MINHEI IS '높이최소';
COMMENT ON COLUMN icgis.RDL_FENC_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_FENC_L.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_FENC_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_FENC_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_FENC_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_FENC_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_FENC_L.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_FENC_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_FENC_L.BYC_WID IS '폭원';
COMMENT ON COLUMN icgis.RDL_FENC_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_FENC_L.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_FENC_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_FENC_L.SHAPE IS 'SHAPE';


--설계변경내역

CREATE TABLE icgis.RDT_CNCH_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(10)	NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, INO		VARCHAR(1)		
	, CYMD		DATE			
	, CNTCST	NUMERIC(38,8)	
	, CNTPVT	NUMERIC(38,8)	
	, CVCST		NUMERIC(38,8)	
	, MCST		NUMERIC(38,8)	
	, XMATCST	NUMERIC(38,8)	
	, PYMD		DATE			
	, SYMD		DATE			
	, EYMD		DATE			
	, CCONT		VARCHAR(150)	
	, NOTE		VARCHAR(50)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_CNCH_D ADD CONSTRAINT RDT_CNCH_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_CNCH_D IS '설계변경내역';
COMMENT ON COLUMN icgis.RDT_CNCH_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDT_CNCH_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_CNCH_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_CNCH_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNCH_D.INO IS '변경회수';
COMMENT ON COLUMN icgis.RDT_CNCH_D.CYMD IS '변경일자';
COMMENT ON COLUMN icgis.RDT_CNCH_D.CNTCST IS '도급비_공급가액';
COMMENT ON COLUMN icgis.RDT_CNCH_D.CNTPVT IS '도급비_부과세';
COMMENT ON COLUMN icgis.RDT_CNCH_D.CVCST IS '관급비';
COMMENT ON COLUMN icgis.RDT_CNCH_D.MCST IS '이전비';
COMMENT ON COLUMN icgis.RDT_CNCH_D.XMATCST IS '폐자재';
COMMENT ON COLUMN icgis.RDT_CNCH_D.PYMD IS '계약일';
COMMENT ON COLUMN icgis.RDT_CNCH_D.SYMD IS '착공일';
COMMENT ON COLUMN icgis.RDT_CNCH_D.EYMD IS '준공일';
COMMENT ON COLUMN icgis.RDT_CNCH_D.CCONT IS '변경사유';
COMMENT ON COLUMN icgis.RDT_CNCH_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_CNCH_D.GLOBALID IS 'GLOBALID';


--시설보수내역_도로

CREATE TABLE icgis.RDT_SIBS_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, SYMD			DATE			
	, EYMD			DATE			
	, PART			VARCHAR(50)	
	, DIRE			VARCHAR(200)	
	, CONTEN		VARCHAR(200)	
	, RESBAN		VARCHAR(50)	
	, RESSYMD		DATE			
	, RESEYMD		DATE			
	, RESORG		VARCHAR(50)	
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_SIBS_D ADD CONSTRAINT RDT_SIBS_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_SIBS_D IS '시설보수내역_도로';
COMMENT ON COLUMN icgis.RDT_SIBS_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_SIBS_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_SIBS_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_SIBS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_SIBS_D.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDT_SIBS_D.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDT_SIBS_D.SYMD IS '보수시작일';
COMMENT ON COLUMN icgis.RDT_SIBS_D.EYMD IS '보수종료일';
COMMENT ON COLUMN icgis.RDT_SIBS_D.PART IS '부위';
COMMENT ON COLUMN icgis.RDT_SIBS_D.DIRE IS '지적사항';
COMMENT ON COLUMN icgis.RDT_SIBS_D.CONTEN IS '보수정비내역';
COMMENT ON COLUMN icgis.RDT_SIBS_D.RESBAN IS '사용제한방법';
COMMENT ON COLUMN icgis.RDT_SIBS_D.RESSYMD IS '사용제한시작일';
COMMENT ON COLUMN icgis.RDT_SIBS_D.RESEYMD IS '사용제한종료일';
COMMENT ON COLUMN icgis.RDT_SIBS_D.RESORG IS '사용제한사유';
COMMENT ON COLUMN icgis.RDT_SIBS_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDT_SIBS_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_SIBS_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_SIBS_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_SIBS_D.GLOBALID IS 'GLOBALID';


--시설점검내역

CREATE TABLE icgis.RDT_SIIP_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, INSPCS		VARCHAR(6)		
	, SYMD			DATE			
	, EYMD			DATE			
	, ORGZ			VARCHAR(50)	
	, COST			INTEGER			
	, CONTEN		VARCHAR(200)	
	, ACTION		VARCHAR(200)	
	, RANK			VARCHAR(1)		
	, INSPNM		VARCHAR(30)	
	, CONFNM		VARCHAR(30)	
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_SIIP_D ADD CONSTRAINT RDT_SIIP_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_SIIP_D IS '시설점검내역';
COMMENT ON COLUMN icgis.RDT_SIIP_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_SIIP_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_SIIP_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_SIIP_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_SIIP_D.INSPCS IS '점검종류';
COMMENT ON COLUMN icgis.RDT_SIIP_D.SYMD IS '점검시작일';
COMMENT ON COLUMN icgis.RDT_SIIP_D.EYMD IS '점검종료일';
COMMENT ON COLUMN icgis.RDT_SIIP_D.ORGZ IS '점검기관';
COMMENT ON COLUMN icgis.RDT_SIIP_D.COST IS '소요예산';
COMMENT ON COLUMN icgis.RDT_SIIP_D.CONTEN IS '점검내용';
COMMENT ON COLUMN icgis.RDT_SIIP_D.ACTION IS '조치사항';
COMMENT ON COLUMN icgis.RDT_SIIP_D.RANK IS '상태등급';
COMMENT ON COLUMN icgis.RDT_SIIP_D.INSPNM IS '점검자';
COMMENT ON COLUMN icgis.RDT_SIIP_D.CONFNM IS '확인자';
COMMENT ON COLUMN icgis.RDT_SIIP_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDT_SIIP_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_SIIP_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_SIIP_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_SIIP_D.GLOBALID IS 'GLOBALID';


--신호등

CREATE TABLE icgis.RDL_TRSN_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, TRF_NUM		INTEGER			
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, RIDN			INTEGER
	, CIDN			VARCHAR(50)
	, IST_YMD		VARCHAR(8)	
	, TRL_CDE		VARCHAR(6)	
	, LFT_CDE		VARCHAR(6)	
	, SLT_CDE		VARCHAR(6)	
	, TRF_CDE		VARCHAR(6)	
	, SYS_CHK		VARCHAR(1)	
	, TRM_CDE		VARCHAR(6)	
	, TSN_CDE		VARCHAR(6)	
--	, 신호등제식		VARCHAR(6)
	, SGN_EXP		VARCHAR(30)
	, SGN_CNT		VARCHAR(2)	
	, GUCD			VARCHAR(5)	
	, CMNGT			VARCHAR(7)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_TRSN_P ADD CONSTRAINT RDL_TRSN_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_TRSN_P IS '신호등';
COMMENT ON COLUMN icgis.RDL_TRSN_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_TRSN_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_TRSN_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_TRSN_P.TRF_NUM IS '신호등제어기일련번호';
COMMENT ON COLUMN icgis.RDL_TRSN_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_TRSN_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_TRSN_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_TRSN_P.RIDN IS '허가신청번호';
COMMENT ON COLUMN icgis.RDL_TRSN_P.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.RDL_TRSN_P.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_TRSN_P.TRL_CDE IS '지주규격';
COMMENT ON COLUMN icgis.RDL_TRSN_P.LFT_CDE IS '잔여시간표시기유무';
COMMENT ON COLUMN icgis.RDL_TRSN_P.SLT_CDE IS '음향신호기존재유무';
COMMENT ON COLUMN icgis.RDL_TRSN_P.TRF_CDE IS '교통안전표지유무';
COMMENT ON COLUMN icgis.RDL_TRSN_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_TRSN_P.TRM_CDE IS '신호등재질';
COMMENT ON COLUMN icgis.RDL_TRSN_P.TSN_CDE IS '신호등종류';
--COMMENT ON COLUMN icgis.RDL_TRSN_P.? IS '신호등제식';
COMMENT ON COLUMN icgis.RDL_TRSN_P.SGN_EXP IS '신호등규격';
COMMENT ON COLUMN icgis.RDL_TRSN_P.SGN_CNT IS '신호등수';
COMMENT ON COLUMN icgis.RDL_TRSN_P.GUCD IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_TRSN_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_TRSN_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_TRSN_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_TRSN_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_TRSN_P.SHAPE IS 'SHAPE';


--신호등제어기

CREATE TABLE icgis.RDL_TSCT_P(
	FTC			VARCHAR(6)		NOT NULL	
	, FTR_IDN	INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, SHT_NUM	VARCHAR(10)	
	, SEC_IDN	INTEGER			
	, CNT_NUM	VARCHAR(50)	
	, MNG_CDE	VARCHAR(7)		
	, RDL_NAM	VARCHAR(100)	
	, TSC_NUM	VARCHAR(50)	
	, IST_YMD	VARCHAR(8)		
	, CRT_LOC	VARCHAR(50)	
	, CTR_CDE	VARCHAR(6)		
	, CRD_CDE	VARCHAR(6)		
	, SGT_CDE	VARCHAR(6)		
	, EWR_CDE	VARCHAR(6)		
	, TSC_CDE	VARCHAR(6)		
	, TSC_NAM	VARCHAR(100)	
	, CTR_NAM	VARCHAR(100)	
	, ENG_NAM	VARCHAR(100)	
	, PAY_AMT	INTEGER			
	, CM1_CDE	VARCHAR(6)		
	, CT1_CDE	VARCHAR(6)		
	, CA1_CNT	NUMERIC(38,8)	
	, CM2_CDE	VARCHAR(6)		
	, CT2_CDE	VARCHAR(6)		
	, CA2_CNT	NUMERIC(38,8)	
	, CM3_CDE	VARCHAR(6)		
	, CT3_CDE	VARCHAR(6)		
	, CA3_CNT	NUMERIC(38,8)	
	, WM1_CDE	VARCHAR(6)		
	, WT1_CDE	VARCHAR(6)		
	, WA1_CNT	NUMERIC(38,8)	
	, WM2_CDE	VARCHAR(6)		
	, WT2_CDE	VARCHAR(6)		
	, WA2_CNT	NUMERIC(38,8)	
	, WM3_CDE	VARCHAR(6)		
	, WT3_CDE	VARCHAR(6)		
	, WA3_CNT	NUMERIC(38,8)	
	, VM1_CDE	VARCHAR(6)		
	, VT1_CDE	VARCHAR(6)		
	, VA1_CNT	NUMERIC(38,8)	
	, VM2_CDE	VARCHAR(6)		
	, VT2_CDE	VARCHAR(6)		
	, VA2_CNT	NUMERIC(38,8)	
	, VM3_CDE	VARCHAR(6)		
	, VT3_CDE	VARCHAR(6)		
	, VA3_CNT	NUMERIC(38,8)	
	, PM1_CDE	VARCHAR(6)		
	, PT1_CDE	VARCHAR(6)		
	, PA1_CNT	NUMERIC(38,8)	
	, PM2_CDE	VARCHAR(6)		
	, PT2_CDE	VARCHAR(6)		
	, PA2_CNT	NUMERIC(38,8)	
	, PM3_CDE	VARCHAR(6)		
	, PT3_CDE	VARCHAR(6)		
	, PA3_CNT	NUMERIC(38,8)	
	, CS1_CDE	VARCHAR(6)		
	, CS1_CNT	NUMERIC(38,8)	
	, CS2_CDE	VARCHAR(6)		
	, CS2_CNT	NUMERIC(38,8)	
	, CS3_CDE	VARCHAR(6)		
	, CS3_CNT	NUMERIC(38,8)	
	, CS4_CDE	VARCHAR(6)		
	, CS4_CNT	NUMERIC(38,8)	
	, PS1_CDE	VARCHAR(6)		
	, PS1_CNT	NUMERIC(38,8)	
	, PS2_CDE	VARCHAR(6)		
	, PS2_CNT	NUMERIC(38,8)	
	, A11_CNT	NUMERIC(38,8)	
	, A09_CNT	NUMERIC(38,8)	
	, A07_CNT	NUMERIC(38,8)	
	, A05_CNT	NUMERIC(38,8)	
	, A03_CNT	NUMERIC(38,8)	
	, ET1_NAM	VARCHAR(100)	
	, ET2_NAM	VARCHAR(100)	
	, SYS_CHK	VARCHAR(1)		
	, HJD_CDE	VARCHAR(10)			NOT NULL
	, SGG_CDE	VARCHAR(5)			NOT NULL
	, GLOBALID	CHAR(38)			NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.RDL_TSCT_P ADD CONSTRAINT RDL_TSCT_P_PK PRIMARY KEY (FTC, FTR_IDN);
COMMENT ON TABLE icgis.RDL_TSCT_P IS '신호등제어기';
COMMENT ON COLUMN icgis.RDL_TSCT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_TSCT_P.FTR_IDN IS '기준점ID';
COMMENT ON COLUMN icgis.RDL_TSCT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_TSCT_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_TSCT_P.SEC_IDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CNT_NUM IS '공사번호';
COMMENT ON COLUMN icgis.RDL_TSCT_P.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.RDL_TSCT_P.RDL_NAM IS '도로노선명';
COMMENT ON COLUMN icgis.RDL_TSCT_P.TSC_NUM IS '신호기등번호';
COMMENT ON COLUMN icgis.RDL_TSCT_P.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CRT_LOC IS '설치위치';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CTR_CDE IS '신호등구분_제어방식';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CRD_CDE IS '신호등구분_도로';
COMMENT ON COLUMN icgis.RDL_TSCT_P.SGT_CDE IS '신호기제식';
COMMENT ON COLUMN icgis.RDL_TSCT_P.EWR_CDE IS '배선';
COMMENT ON COLUMN icgis.RDL_TSCT_P.TSC_CDE IS '전원';
COMMENT ON COLUMN icgis.RDL_TSCT_P.TSC_NAM IS '시공자_신호등';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CTR_NAM IS '시공자_제어기';
COMMENT ON COLUMN icgis.RDL_TSCT_P.ENG_NAM IS '시공자_토목';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PAY_AMT IS '지급금액';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CM1_CDE IS '차량신호등재질1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CT1_CDE IS '차량신호등종류1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CA1_CNT IS '차량신호등수량1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CM2_CDE IS '차량신호등재질2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CT2_CDE IS '차량신호등종류2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CA2_CNT IS '차량신호등수량2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CM3_CDE IS '차량신호등재질3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CT3_CDE IS '차량신호등종류3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CA3_CNT IS '차량신호등수량3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WM1_CDE IS '차량경보등재질1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WT1_CDE IS '차량경보등종류1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WA1_CNT IS '차량경보등수량1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WM2_CDE IS '차량경보등재질2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WT2_CDE IS '차량경보등종류2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WA2_CNT IS '차량경보등수량2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WM3_CDE IS '차량경보등재질3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WT3_CDE IS '차량경보등종류3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.WA3_CNT IS '차량경보등수량3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VM1_CDE IS '차량가변등재질1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VT1_CDE IS '차량가변등종류1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VA1_CNT IS '차량가변등수량1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VM2_CDE IS '차량가변등재질2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VT2_CDE IS '차량가변등종류2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VA2_CNT IS '차량가변등수량2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VM3_CDE IS '차량가변등재질3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VT3_CDE IS '차량가변등종류3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.VA3_CNT IS '차량가변등수량3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PM1_CDE IS '보행등자전거재질1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PT1_CDE IS '보행등자전거종류1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PA1_CNT IS '보행등자전거수량1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PM2_CDE IS '보행등자전거재질2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PT2_CDE IS '보행등자전거종류2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PA2_CNT IS '보행등자전거수량2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PM3_CDE IS '보행등자전거재질3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PT3_CDE IS '보행등자전거종류3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PA3_CNT IS '보행등자전거수량3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CS1_CDE IS '차량등지주규격1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CS1_CNT IS '차량등지주규격1_개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CS2_CDE IS '차량등지주규격2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CS2_CNT IS '차량등지주규격2_개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CS3_CDE IS '차량등지주규격3';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CS3_CNT IS '차량등지주규격3_개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CS4_CDE IS '차량등지주규격4';
COMMENT ON COLUMN icgis.RDL_TSCT_P.CS4_CNT IS '차량등지주규격4_개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PS1_CDE IS '보행등지주규격1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PS1_CNT IS '보행등지주규격1_개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PS2_CDE IS '보행등지주규격2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.PS2_CNT IS '보행등지주규격2_개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.A11_CNT IS '신호등부착물11M개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.A09_CNT IS '신호등부착물9M개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.A07_CNT IS '신호등부착물7M개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.A05_CNT IS '신호등부착물5M개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.A03_CNT IS '신호등부착물3M개수';
COMMENT ON COLUMN icgis.RDL_TSCT_P.ET1_NAM IS '기타부착물1';
COMMENT ON COLUMN icgis.RDL_TSCT_P.ET2_NAM IS '기타부착물2';
COMMENT ON COLUMN icgis.RDL_TSCT_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_TSCT_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_TSCT_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_TSCT_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_TSCT_P.SHAPE IS 'SHAPE';


--연혁변경내역

CREATE TABLE icgis.RDT_PKHS_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			NOT NULL
	, CONT			VARCHAR(100)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKHS_D ADD CONSTRAINT RDT_PKHS_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_PKHS_D IS '연혁변경내역';
COMMENT ON COLUMN icgis.RDT_PKHS_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_PKHS_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKHS_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_PKHS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKHS_D.YMD IS '일자';
COMMENT ON COLUMN icgis.RDT_PKHS_D.CONT IS '내용';
COMMENT ON COLUMN icgis.RDT_PKHS_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_PKHS_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKHS_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKHS_D.GLOBALID IS 'GLOBALID';


--운영시간

CREATE TABLE icgis.RDT_PKTM_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, SKND			VARCHAR(6)		
	, WKND			VARCHAR(6)		
	, OTIM			VARCHAR(4)		
	, CTIM			VARCHAR(4)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKTM_D ADD CONSTRAINT RDT_PKTM_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_PKTM_D IS '운영시간';
COMMENT ON COLUMN icgis.RDT_PKTM_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_PKTM_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKTM_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_PKTM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKTM_D.SKND IS '계절구분';
COMMENT ON COLUMN icgis.RDT_PKTM_D.WKND IS '요일구분';
COMMENT ON COLUMN icgis.RDT_PKTM_D.OTIM IS '개장시간';
COMMENT ON COLUMN icgis.RDT_PKTM_D.CTIM IS '폐장시간';
COMMENT ON COLUMN icgis.RDT_PKTM_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_PKTM_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKTM_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKTM_D.GLOBALID IS 'GLOBALID';


--월운용구분

CREATE TABLE icgis.RDT_PKMG_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, UYMD			DATE			NOT NULL
	, MPNO			INTEGER			
	, DYNO			INTEGER			
	, USTM			INTEGER			
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKMG_D ADD CONSTRAINT RDT_PKMG_D_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDT_PKMG_D IS '월운용구분';
COMMENT ON COLUMN icgis.RDT_PKMG_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_PKMG_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKMG_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_PKMG_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKMG_D.UYMD IS '갱신일자';
COMMENT ON COLUMN icgis.RDT_PKMG_D.MPNO IS '월정대수';
COMMENT ON COLUMN icgis.RDT_PKMG_D.DYNO IS '운영일수';
COMMENT ON COLUMN icgis.RDT_PKMG_D.USTM IS '이용시간';
COMMENT ON COLUMN icgis.RDT_PKMG_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_PKMG_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKMG_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKMG_D.GLOBALID IS 'GLOBALID';


--이용실적

CREATE TABLE icgis.RDT_PKUS_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN				INTEGER			NOT NULL	
	, SEQ				NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, KND				VARCHAR(6)		NOT NULL
	, YMD				DATE			NOT NULL
	, COUT			INTEGER			
	, INCOME			INTEGER			
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD		DATE			
	, UPDATE_NAM		VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_PKUS_D ADD CONSTRAINT RDT_PKUS_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_PKUS_D IS '이용실적';
COMMENT ON COLUMN icgis.RDT_PKUS_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_PKUS_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_PKUS_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_PKUS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_PKUS_D.KND IS '이용구분';
COMMENT ON COLUMN icgis.RDT_PKUS_D.YMD IS '이용일';
COMMENT ON COLUMN icgis.RDT_PKUS_D.COUT IS '이용대수';
COMMENT ON COLUMN icgis.RDT_PKUS_D.INCOME IS '이용수입';
COMMENT ON COLUMN icgis.RDT_PKUS_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_PKUS_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_PKUS_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_PKUS_D.GLOBALID IS 'GLOBALID';


--입체교차로

CREATE TABLE icgis.RDT_SLCR_D(
	IDN				INTEGER			NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, RIDN			INTEGER			
	, TFR			VARCHAR(6)		
	, NAM			VARCHAR(30)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, MAN			VARCHAR(30)	
	, GRADE			VARCHAR(1)		
	, ADDR			VARCHAR(40)	
	, YMD			DATE			
	, FACICS		VARCHAR(6)		
	, DWEI			VARCHAR(6)		
	, RDEA			INTEGER			
	, RWID			NUMERIC(38,8)	
	, RLEN			NUMERIC(38,8)	
	, RARA			NUMERIC(38,8)	
	, BREA			INTEGER			
	, BRWID			NUMERIC(38,8)	
	, BRLEN			NUMERIC(38,8)	
	, BRARA			NUMERIC(38,8)	
	, OBHEI			NUMERIC(38,8)	
	, OBLEN			NUMERIC(38,8)	
	, ALWID			NUMERIC(38,8)	
	, ALLEN			NUMERIC(38,8)	
	, ALARA			NUMERIC(38,8)	
	, DISEA			INTEGER			
	, MAXCOL		INTEGER			
	, UPTYPE		VARCHAR(6)		
	, DNTYPE		VARCHAR(6)		
	, KYOJA			VARCHAR(40)	
	, FIXTY			VARCHAR(6)		
	, RUNTY			VARCHAR(40)	
	, UNHEI			NUMERIC(38,8)	
	, UNWID			NUMERIC(38,8)	
	, UNLEN			INTEGER			
	, NMATE			VARCHAR(6)		
	, YEONSE		VARCHAR(40)	
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_SLCR_D ADD CONSTRAINT RDT_SLCR_D_PK PRIMARY KEY (IDN, FTC);
COMMENT ON TABLE icgis.RDT_SLCR_D IS '입체교차로';
COMMENT ON COLUMN icgis.RDT_SLCR_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_SLCR_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_SLCR_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_SLCR_D.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDT_SLCR_D.TFR IS '입체교차형식';
COMMENT ON COLUMN icgis.RDT_SLCR_D.NAM IS '입체교차도로명';
COMMENT ON COLUMN icgis.RDT_SLCR_D.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDT_SLCR_D.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDT_SLCR_D.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDT_SLCR_D.GRADE IS '관리급수';
COMMENT ON COLUMN icgis.RDT_SLCR_D.ADDR IS '소재지';
COMMENT ON COLUMN icgis.RDT_SLCR_D.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDT_SLCR_D.FACICS IS '종별';
COMMENT ON COLUMN icgis.RDT_SLCR_D.DWEI IS '설계하중';
COMMENT ON COLUMN icgis.RDT_SLCR_D.RDEA IS '도로개소';
COMMENT ON COLUMN icgis.RDT_SLCR_D.RWID IS '도로폭원';
COMMENT ON COLUMN icgis.RDT_SLCR_D.RLEN IS '도로연장';
COMMENT ON COLUMN icgis.RDT_SLCR_D.RARA IS '도로면적';
COMMENT ON COLUMN icgis.RDT_SLCR_D.BREA IS '교량개소';
COMMENT ON COLUMN icgis.RDT_SLCR_D.BRWID IS '교량폭원';
COMMENT ON COLUMN icgis.RDT_SLCR_D.BRLEN IS '교량연장';
COMMENT ON COLUMN icgis.RDT_SLCR_D.BRARA IS '교량면적';
COMMENT ON COLUMN icgis.RDT_SLCR_D.OBHEI IS '옹벽높이';
COMMENT ON COLUMN icgis.RDT_SLCR_D.OBLEN IS '옹벽연장';
COMMENT ON COLUMN icgis.RDT_SLCR_D.ALWID IS '총폭원';
COMMENT ON COLUMN icgis.RDT_SLCR_D.ALLEN IS '총연장';
COMMENT ON COLUMN icgis.RDT_SLCR_D.ALARA IS '총면적';
COMMENT ON COLUMN icgis.RDT_SLCR_D.DISEA IS '경간수';
COMMENT ON COLUMN icgis.RDT_SLCR_D.MAXCOL IS '최대경간';
COMMENT ON COLUMN icgis.RDT_SLCR_D.UPTYPE IS '상부구조형식';
COMMENT ON COLUMN icgis.RDT_SLCR_D.DNTYPE IS '하부구조형식';
COMMENT ON COLUMN icgis.RDT_SLCR_D.KYOJA IS '교좌장치';
COMMENT ON COLUMN icgis.RDT_SLCR_D.FIXTY IS '이음장치고정형식';
COMMENT ON COLUMN icgis.RDT_SLCR_D.RUNTY IS '이음장치가동형식';
COMMENT ON COLUMN icgis.RDT_SLCR_D.UNHEI IS '난간높이';
COMMENT ON COLUMN icgis.RDT_SLCR_D.UNWID IS '난간폭';
COMMENT ON COLUMN icgis.RDT_SLCR_D.UNLEN IS '난간총연장';
COMMENT ON COLUMN icgis.RDT_SLCR_D.NMATE IS '상부난간재료';
COMMENT ON COLUMN icgis.RDT_SLCR_D.YEONSE IS '연석';
COMMENT ON COLUMN icgis.RDT_SLCR_D.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDT_SLCR_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_SLCR_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_SLCR_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_SLCR_D.GLOBALID IS 'GLOBALID';


--자전거도로

CREATE TABLE icgis.RDL_CYCL_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, LENTH			NUMERIC(38,8)	
	, WIDTH			NUMERIC(38,8)	
	, YEAR			VARCHAR(4)		
	, NATION		INTEGER			
	, CITY			INTEGER			
	, GU			INTEGER			
	, ETC			VARCHAR(30)	
	, MANAGE		VARCHAR(6)		
	, USES			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, DWAY			VARCHAR(6)		
	, CGUB			VARCHAR(6)		
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, BYC_NAM		VARCHAR(100)	
	, DRT_CDE		VARCHAR(6)		
	, SMW_CDE		VARCHAR(6)		
	, ETC_AMT		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, SGG_CDE		VARCHAR(5)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.RDL_CYCL_A ADD CONSTRAINT RDL_CYCL_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_CYCL_A IS '자전거도로';
COMMENT ON COLUMN icgis.RDL_CYCL_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_CYCL_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_CYCL_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_CYCL_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_CYCL_A.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_CYCL_A.WIDTH IS '폭';
COMMENT ON COLUMN icgis.RDL_CYCL_A.YEAR IS '설치년도';
COMMENT ON COLUMN icgis.RDL_CYCL_A.NATION IS '국비';
COMMENT ON COLUMN icgis.RDL_CYCL_A.CITY IS '시비';
COMMENT ON COLUMN icgis.RDL_CYCL_A.GU IS '구비';
COMMENT ON COLUMN icgis.RDL_CYCL_A.ETC IS '기타';
COMMENT ON COLUMN icgis.RDL_CYCL_A.MANAGE IS '정비방법';
COMMENT ON COLUMN icgis.RDL_CYCL_A.USES IS '이용로';
COMMENT ON COLUMN icgis.RDL_CYCL_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_CYCL_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_CYCL_A.DWAY IS '경계방법';
COMMENT ON COLUMN icgis.RDL_CYCL_A.CGUB IS '자전거도로구분';
COMMENT ON COLUMN icgis.RDL_CYCL_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_CYCL_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_CYCL_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_CYCL_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_CYCL_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_CYCL_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_CYCL_A.BYC_NAM IS '자전거노선명';
COMMENT ON COLUMN icgis.RDL_CYCL_A.DRT_CDE IS '위치구분';
COMMENT ON COLUMN icgis.RDL_CYCL_A.SMW_CDE IS '자전거도로재질';
COMMENT ON COLUMN icgis.RDL_CYCL_A.ETC_AMT IS '기타금액';
COMMENT ON COLUMN icgis.RDL_CYCL_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_CYCL_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_CYCL_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_CYCL_A.SHAPE IS 'SHAPE';


--자전거보관소

CREATE TABLE icgis.RDL_BYST_P(
	FTC				VARCHAR(6)			NOT NULL	
	, FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, HJD_CDE		VARCHAR(10)			NOT NULL
	, SHT_NUM		VARCHAR(10)			NOT NULL
	, MNG_CDE		VARCHAR(7)			NOT NULL
	, SEC_IDN		INTEGER			
	, CNT_NUM		VARCHAR(50)	
	, STO_CNT		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)			
	, SGG_CDE		VARCHAR(5)			
	, GLOBALID		CHAR(38)			NOT NULL	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.RDL_BYST_P ADD CONSTRAINT RDL_BYST_P_PK PRIMARY KEY (FTC, FTR_IDN);
COMMENT ON TABLE icgis.RDL_BYST_P IS '자전거보관소';
COMMENT ON COLUMN icgis.RDL_BYST_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_BYST_P.FTR_IDN IS '기준점ID';
COMMENT ON COLUMN icgis.RDL_BYST_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_BYST_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_BYST_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_BYST_P.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.RDL_BYST_P.SEC_IDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_BYST_P.CNT_NUM IS '공사번호';
COMMENT ON COLUMN icgis.RDL_BYST_P.STO_CNT IS '보관대수';
COMMENT ON COLUMN icgis.RDL_BYST_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_BYST_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_BYST_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_BYST_P.SHAPE IS 'SHAPE';


--장애인편의시설

CREATE TABLE icgis.RDL_GGPE_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, SIGU			VARCHAR(6)		
	, TUKGU			VARCHAR(6)		
	, JMGU			VARCHAR(6)		
	, TOTGU			VARCHAR(6)		
	, 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)	
	, IST_YMD		VARCHAR(8)		
	, DRT_CDE		VARCHAR(6)		
	, BLC_CDE		VARCHAR(6)		
	, BLC_LEN		NUMERIC(38,8)	
	, BLC_ARA		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, SGG_CDE		VARCHAR(5)		
	, BTK_CDE		VARCHAR(6)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.RDL_GGPE_P ADD CONSTRAINT RDL_GGPE_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_GGPE_P IS '장애인편의시설';
COMMENT ON COLUMN icgis.RDL_GGPE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_GGPE_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_GGPE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_GGPE_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_GGPE_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_GGPE_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_GGPE_P.SIGU IS '시설구분';
COMMENT ON COLUMN icgis.RDL_GGPE_P.TUKGU IS '턱낮추기여부';
COMMENT ON COLUMN icgis.RDL_GGPE_P.JMGU IS '점자블록설치여부';
COMMENT ON COLUMN icgis.RDL_GGPE_P.TOTGU IS '총설치여부';
COMMENT ON COLUMN icgis.RDL_GGPE_P.ARA IS '점자블록면적';
COMMENT ON COLUMN icgis.RDL_GGPE_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_GGPE_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_GGPE_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_GGPE_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_GGPE_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_GGPE_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_GGPE_P.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_GGPE_P.DRT_CDE IS '위치구분';
COMMENT ON COLUMN icgis.RDL_GGPE_P.BLC_CDE IS '유도블럭종류';
COMMENT ON COLUMN icgis.RDL_GGPE_P.BLC_LEN IS '유도블럭연장';
COMMENT ON COLUMN icgis.RDL_GGPE_P.BLC_ARA IS '유도블럭면적';
COMMENT ON COLUMN icgis.RDL_GGPE_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_GGPE_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_GGPE_P.BTK_CDE IS '턱낮추기유무';
COMMENT ON COLUMN icgis.RDL_GGPE_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_GGPE_P.SHAPE IS 'SHAPE';


--점용물관리

CREATE TABLE icgis.RDT_JMYG_D(
	YEAR		VARCHAR(4)			NOT NULL	
	, IDN		VARCHAR(8)			NOT NULL	
	, OBJECTID	INTEGER				NOT NULL	
	, MGTNUM	VARCHAR(20)	
	, JUMYCD	VARCHAR(6)		
	, JGUB		VARCHAR(6)		
	, YMD		DATE			
	, NGUB		VARCHAR(6)		
	, NIDN		VARCHAR(8)		
	, LOCA		VARCHAR(50)	
	, SYMD		DATE			
	, EYMD		DATE			
	, NAM		VARCHAR(40)	
	, PURS		VARCHAR(40)	
	, IDGUB		VARCHAR(6)		
	, SSN		VARCHAR(13)	
	, SNAM		VARCHAR(40)	
	, POST		VARCHAR(7)		
	, ADDR		VARCHAR(50)	
	, TEL		VARCHAR(13)	
	, JCNT		NUMERIC(38,8)	
	, PKND		VARCHAR(6)		
	, OPNUM		VARCHAR(50)	
	, CRDIDN	VARCHAR(10)	
	, USEF		VARCHAR(6)		
	, BJDCD		VARCHAR(20)	
	, DGUB		VARCHAR(6)		
	, FAC		VARCHAR(4)		
	, FAD		VARCHAR(4)		
	, BJDCD1	VARCHAR(20)	
	, DGUB1		VARCHAR(6)		
	, FAC1		VARCHAR(4)		
	, FAD1		VARCHAR(4)		
	, JIGA1		INTEGER			
	, BJDCD2	VARCHAR(20)	
	, DGUB2		VARCHAR(6)		
	, FAC2		VARCHAR(4)		
	, FAD2		VARCHAR(4)		
	, JIGA2		INTEGER			
	, BJDCD3	VARCHAR(20)	
	, DGUB3		VARCHAR(6)		
	, FAC3		VARCHAR(4)		
	, FAD3		VARCHAR(4)		
	, JIGA3		INTEGER			
	, CYMD		DATE			
	, CONT		VARCHAR(50)	
	, PERCN		VARCHAR(50)	
	, FREE		VARCHAR(6)		
	, NPSYMD	DATE			
	, NPEYMD	DATE			
	, NPJIGA1	INTEGER			
	, NPJIGA2	INTEGER			
	, NPJIGA3	INTEGER			
	, NPJIGA4	INTEGER			
	, NPJIGA5	INTEGER			
	, MNGT		VARCHAR(6)		
	, GUCD		VARCHAR(5)		
	, DCD		VARCHAR(10)	
	, NOTE		VARCHAR(50)	
	, TIDN		VARCHAR(14)	
	, TSEQ		NUMERIC(5)		
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.RDT_JMYG_D ADD CONSTRAINT RDT_JMYG_D_PK PRIMARY KEY (YEAR, IDN);
COMMENT ON TABLE icgis.RDT_JMYG_D IS '점용물관리';
COMMENT ON COLUMN icgis.RDT_JMYG_D.YEAR IS '허가번호';
COMMENT ON COLUMN icgis.RDT_JMYG_D.IDN IS '측정년도';
COMMENT ON COLUMN icgis.RDT_JMYG_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JMYG_D.MGTNUM IS 'MGTNUM';
COMMENT ON COLUMN icgis.RDT_JMYG_D.JUMYCD IS '점용물관리코드';
COMMENT ON COLUMN icgis.RDT_JMYG_D.JGUB IS '제보분야';
COMMENT ON COLUMN icgis.RDT_JMYG_D.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NGUB IS '누수_시설구분';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NIDN IS '도시계획노선_노선번호';
COMMENT ON COLUMN icgis.RDT_JMYG_D.LOCA IS 'LOCA';
COMMENT ON COLUMN icgis.RDT_JMYG_D.SYMD IS '침수시기';
COMMENT ON COLUMN icgis.RDT_JMYG_D.EYMD IS '준공일';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.RDT_JMYG_D.PURS IS 'IDGUB';
COMMENT ON COLUMN icgis.RDT_JMYG_D.IDGUB IS '주민등록번호';
COMMENT ON COLUMN icgis.RDT_JMYG_D.SSN IS 'SNAM';
COMMENT ON COLUMN icgis.RDT_JMYG_D.SNAM IS '우편번호';
COMMENT ON COLUMN icgis.RDT_JMYG_D.POST IS '주소';
COMMENT ON COLUMN icgis.RDT_JMYG_D.ADDR IS '책임자';
COMMENT ON COLUMN icgis.RDT_JMYG_D.TEL IS 'PURS';
COMMENT ON COLUMN icgis.RDT_JMYG_D.JCNT IS 'JCNT';
COMMENT ON COLUMN icgis.RDT_JMYG_D.PKND IS '허가종류';
COMMENT ON COLUMN icgis.RDT_JMYG_D.OPNUM IS 'OPNUM';
COMMENT ON COLUMN icgis.RDT_JMYG_D.CRDIDN IS 'CRDIDN';
COMMENT ON COLUMN icgis.RDT_JMYG_D.USEF IS 'USEF';
COMMENT ON COLUMN icgis.RDT_JMYG_D.BJDCD IS 'BJDCD';
COMMENT ON COLUMN icgis.RDT_JMYG_D.DGUB IS 'DGUB';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FAC IS 'FAC';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FAD IS 'FAD';
COMMENT ON COLUMN icgis.RDT_JMYG_D.BJDCD1 IS 'BJDCD1';
COMMENT ON COLUMN icgis.RDT_JMYG_D.DGUB1 IS 'DGUB1';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FAC1 IS 'FAC1';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FAD1 IS 'FAD1';
COMMENT ON COLUMN icgis.RDT_JMYG_D.JIGA1 IS 'JIGA1';
COMMENT ON COLUMN icgis.RDT_JMYG_D.BJDCD2 IS 'BJDCD2';
COMMENT ON COLUMN icgis.RDT_JMYG_D.DGUB2 IS 'DGUB2';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FAC2 IS 'FAC2';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FAD2 IS 'FAD2';
COMMENT ON COLUMN icgis.RDT_JMYG_D.JIGA2 IS 'JIGA2';
COMMENT ON COLUMN icgis.RDT_JMYG_D.BJDCD3 IS 'BJDCD3';
COMMENT ON COLUMN icgis.RDT_JMYG_D.DGUB3 IS 'DGUB3';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FAC3 IS 'FAC3';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FAD3 IS 'FAD3';
COMMENT ON COLUMN icgis.RDT_JMYG_D.JIGA3 IS 'JIGA3';
COMMENT ON COLUMN icgis.RDT_JMYG_D.CYMD IS '협조일_조회일';
COMMENT ON COLUMN icgis.RDT_JMYG_D.CONT IS '하자내용';
COMMENT ON COLUMN icgis.RDT_JMYG_D.PERCN IS 'PERCN';
COMMENT ON COLUMN icgis.RDT_JMYG_D.FREE IS 'FREE';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NPSYMD IS 'NPSYMD';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NPEYMD IS 'NPEYMD';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NPJIGA1 IS 'NPJIGA1';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NPJIGA2 IS 'NPJIGA2';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NPJIGA3 IS 'NPJIGA3';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NPJIGA4 IS 'NPJIGA4';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NPJIGA5 IS 'NPJIGA5';
COMMENT ON COLUMN icgis.RDT_JMYG_D.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.RDT_JMYG_D.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDT_JMYG_D.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.RDT_JMYG_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_JMYG_D.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.RDT_JMYG_D.TSEQ IS 'TSEQ';
COMMENT ON COLUMN icgis.RDT_JMYG_D.GLOBALID IS 'GLOBALID';


--점용시설_면

CREATE TABLE icgis.RDL_JUFC_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, HGUB			VARCHAR(6)		
	, JUMYCD		VARCHAR(6)		
	, BUKANO		VARCHAR(33)	
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, PMS_IDN		NUMERIC(38,8)	
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, CHB_CDE		VARCHAR(6)		
	, SYS_CHK		VARCHAR(1)		
	, SGG_CDE		VARCHAR(5)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
	, JUMID			VARCHAR(14)		NOT NULL
);
ALTER TABLE icgis.RDL_JUFC_A ADD CONSTRAINT RDL_JUFC_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_JUFC_A IS '점용시설_면';
COMMENT ON COLUMN icgis.RDL_JUFC_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_JUFC_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_JUFC_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_JUFC_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_JUFC_A.HGUB IS '점용허가구분';
COMMENT ON COLUMN icgis.RDL_JUFC_A.JUMYCD IS '점용물관리코드';
COMMENT ON COLUMN icgis.RDL_JUFC_A.BUKANO IS '부과번호';
COMMENT ON COLUMN icgis.RDL_JUFC_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_JUFC_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_JUFC_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_JUFC_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_JUFC_A.PMS_IDN IS '허가일련번호';
COMMENT ON COLUMN icgis.RDL_JUFC_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_JUFC_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_JUFC_A.CHB_CDE IS '차도보도구분';
COMMENT ON COLUMN icgis.RDL_JUFC_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_JUFC_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_JUFC_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_JUFC_A.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.RDL_JUFC_A.JUMID IS '점용허가번호';


--점용시설_선

CREATE TABLE icgis.RDL_OCUP_L(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, JUMID			INTEGER			
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, RIDN			INTEGER			
	, CHB_CDE		VARCHAR(6)		
	, JUMYCD		VARCHAR(6)		
	, STD_DIP		NUMERIC(38,8)	
	, STD_LEN		NUMERIC(38,8)	
	, PIP_DEP		NUMERIC(38,8)	
	, GUCD			VARCHAR(5)		
	, BUKANO		VARCHAR(2)		
	, NOTE			VARCHAR(50)	
	, UPDATE_NAM	VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.RDL_OCUP_L ADD CONSTRAINT RDL_OCUP_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_OCUP_L IS '점용시설_선';
COMMENT ON COLUMN icgis.RDL_OCUP_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_OCUP_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_OCUP_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_OCUP_L.JUMID IS '점용허가번호';
COMMENT ON COLUMN icgis.RDL_OCUP_L.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_OCUP_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_OCUP_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_OCUP_L.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_OCUP_L.CHB_CDE IS '차도보도구분';
COMMENT ON COLUMN icgis.RDL_OCUP_L.JUMYCD IS '점용물관리코드';
COMMENT ON COLUMN icgis.RDL_OCUP_L.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.RDL_OCUP_L.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.RDL_OCUP_L.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.RDL_OCUP_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_OCUP_L.BUKANO IS '부과번호';
COMMENT ON COLUMN icgis.RDL_OCUP_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_OCUP_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_OCUP_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_OCUP_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_OCUP_L.SHAPE IS 'SHAPE';


--점용시설_점

CREATE TABLE icgis.RDL_JUFC_P(
 FTC			VARCHAR(6)			NOT NULL	
 , IDN			INTEGER				NOT NULL	
 , OBJECTID		INTEGER				NOT NULL
 , RIDN			INTEGER	
 , JUMYCD		VARCHAR(6)	
 , BORC			VARCHAR(6)	
 , MNGT			VARCHAR(6)	
 , NOTE			VARCHAR(50)
 , UPDATE_YMD	DATE	
 , UPDATE_NAM	VARCHAR(50)
 , PMS_IDN		NUMERIC(38,8)
 , HJD_CDE		VARCHAR(10)
 , SHT_NUM		VARCHAR(10)
 , SYS_CHK		VARCHAR(1)		
 , SGG_CDE		VARCHAR(5)		
 , GLOBALID		CHAR(38)			NOT NULL
 , SHAPE		public.geometry	
 , JUMID		VARCHAR(14)			NOT NULL
);
ALTER TABLE icgis.RDL_JUFC_P ADD CONSTRAINT RDL_JUFC_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_JUFC_P IS '점용시설_점';
COMMENT ON COLUMN icgis.RDL_JUFC_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_JUFC_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_JUFC_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_JUFC_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_JUFC_P.JUMYCD IS '점용물관리코드';
COMMENT ON COLUMN icgis.RDL_JUFC_P.BORC IS '차도보도구분';
COMMENT ON COLUMN icgis.RDL_JUFC_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_JUFC_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_JUFC_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_JUFC_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_JUFC_P.PMS_IDN IS '허가일련번호';
COMMENT ON COLUMN icgis.RDL_JUFC_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_JUFC_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_JUFC_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_JUFC_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_JUFC_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_JUFC_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.RDL_JUFC_P.JUMID IS '점용허가번호';


--점용신청

CREATE TABLE icgis.RDT_JAPL_D(

	IDN				VARCHAR(14)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNGT			VARCHAR(6)		NOT NULL
	, PKND			VARCHAR(6)	
	, PIDN			VARCHAR(14)
	, JYMD			DATE			NOT NULL
	, PER_GBN		VARCHAR(2)		NOT NULL
	, PER_NM		VARCHAR(50)
	, CNAM			VARCHAR(30)
	, PER_PID		VARCHAR(20)
	, 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)
	, JOBJ			VARCHAR(100)
	, JLOC			VARCHAR(100)
	, JARA			NUMERIC(38,8)
	, JPRD			VARCHAR(30)
	, GPRD			VARCHAR(30)
	, JSTR			TEXT		
	, CMTH			VARCHAR(6)		
	, CPRD			VARCHAR(50)	
	, RMTH			VARCHAR(6)		
	, RTYPE			VARCHAR(6)		
	, RNAM			VARCHAR(30)	
	, IYMD			DATE			
	, INAM			VARCHAR(30)	
	, ICONT			TEXT			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL	
);
ALTER TABLE icgis.RDT_JAPL_D ADD CONSTRAINT RDT_JAPL_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDT_JAPL_D IS '점용신청';
COMMENT ON COLUMN icgis.RDT_JAPL_D.IDN IS '신청번호';
COMMENT ON COLUMN icgis.RDT_JAPL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JAPL_D.MNGT IS '신청기관';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PKND IS '허가종류';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PIDN IS '이전허가번호';
COMMENT ON COLUMN icgis.RDT_JAPL_D.JYMD IS '신청일';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_GBN IS '신청인_구분';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_NM IS '신청인_성명';
COMMENT ON COLUMN icgis.RDT_JAPL_D.CNAM IS '신청인_대표자명';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_PID IS '신청인_주민등록번호';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_POST IS '신청인_우편번호';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_HENG IS '신청인_행정동';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_REGN IS '신청인_지역코드';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_SAN IS '신청인_산';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_BUNJI IS '신청인_번지';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_HO IS '신청인_호';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_SPEC_ADDR IS '신청인_특수주소';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_SPEC_DONG IS '신청인_특수지동';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_SPEC_HO IS '신청인_특수지호';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_TONG IS '신청인_통';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_BAN IS '신청인_반';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_TEL IS '신청인_전화번호';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_CELL IS '신청인_휴대폰';
COMMENT ON COLUMN icgis.RDT_JAPL_D.PER_EMAIL IS '신청인_이메일';
COMMENT ON COLUMN icgis.RDT_JAPL_D.JOBJ IS '점용목적';
COMMENT ON COLUMN icgis.RDT_JAPL_D.JLOC IS '점용장소';
COMMENT ON COLUMN icgis.RDT_JAPL_D.JARA IS '점용면적';
COMMENT ON COLUMN icgis.RDT_JAPL_D.JPRD IS '점용기간';
COMMENT ON COLUMN icgis.RDT_JAPL_D.GPRD IS '굴착기간';
COMMENT ON COLUMN icgis.RDT_JAPL_D.JSTR IS '공작물구조';
COMMENT ON COLUMN icgis.RDT_JAPL_D.CMTH IS '공사실시방법';
COMMENT ON COLUMN icgis.RDT_JAPL_D.CPRD IS '공사시기';
COMMENT ON COLUMN icgis.RDT_JAPL_D.RMTH IS '도로복구방법';
COMMENT ON COLUMN icgis.RDT_JAPL_D.RTYPE IS '도로종류';
COMMENT ON COLUMN icgis.RDT_JAPL_D.RNAM IS '노선명';
COMMENT ON COLUMN icgis.RDT_JAPL_D.IYMD IS '현지조사일';
COMMENT ON COLUMN icgis.RDT_JAPL_D.INAM IS '현지조사자';
COMMENT ON COLUMN icgis.RDT_JAPL_D.ICONT IS '현지조사내역';
COMMENT ON COLUMN icgis.RDT_JAPL_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_JAPL_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_JAPL_D.GLOBALID IS 'GLOBALID';


--점용신청파일내역

CREATE TABLE icgis.RDT_JAPF_D(
	IDN				VARCHAR(14)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, NAM			VARCHAR(40)		NOT NULL	
	, DSC			VARCHAR(100)	NOT NULL	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
	, OBJECTID		INTEGER				
);

ALTER TABLE icgis.RDT_JAPF_D ADD CONSTRAINT RDT_JAPF_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.RDT_JAPF_D IS '점용신청파일내역';
COMMENT ON COLUMN icgis.RDT_JAPF_D.IDN IS '신청번호';
COMMENT ON COLUMN icgis.RDT_JAPF_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_JAPF_D.NAM IS '파일명';
COMMENT ON COLUMN icgis.RDT_JAPF_D.DSC IS '파일설명';
COMMENT ON COLUMN icgis.RDT_JAPF_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_JAPF_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_JAPF_D.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDT_JAPF_D.OBJECTID IS 'OBJECTID';


--점용허가계정코드

CREATE TABLE icgis.RDT_JPID_D(
	IDN				VARCHAR(14)		NOT NULL	
	, JP_USER_ID	VARCHAR(30)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNGT			VARCHAR(6)		NOT NULL
	, DEP_CODE		VARCHAR(11)	
	, DEP_NAME		VARCHAR(29)	
	, JP_USER_NAME	VARCHAR(20)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.RDT_JPID_D ADD CONSTRAINT RDT_JPID_D_PK PRIMARY KEY (IDN, JP_USER_ID);
COMMENT ON TABLE icgis.RDT_JPID_D IS '점용허가계정코드';
COMMENT ON COLUMN icgis.RDT_JPID_D.IDN IS '계정코드';
COMMENT ON COLUMN icgis.RDT_JPID_D.JP_USER_ID IS '일련번호';
COMMENT ON COLUMN icgis.RDT_JPID_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JPID_D.MNGT IS '기관코드';
COMMENT ON COLUMN icgis.RDT_JPID_D.DEP_CODE IS '부서코드';
COMMENT ON COLUMN icgis.RDT_JPID_D.DEP_NAME IS '부서명';
COMMENT ON COLUMN icgis.RDT_JPID_D.JP_USER_NAME IS '계정명';
COMMENT ON COLUMN icgis.RDT_JPID_D.GLOBALID IS 'GLOBALID';


--점용허가과세코드

CREATE TABLE icgis.RDT_JPSM_D(
	IDN				VARCHAR(14)		NOT NULL	
	, SEMOK_CODE	VARCHAR(30)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNGT			VARCHAR(6)		NOT NULL
	, DEP_CODE		VARCHAR(11)	
	, ACC_GBN		VARCHAR(2)		
	, SEMOK_NAME	VARCHAR(40)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.RDT_JPSM_D ADD CONSTRAINT RDT_JPSM_D_PK PRIMARY KEY (IDN, SEMOK_CODE);
COMMENT ON TABLE icgis.RDT_JPSM_D IS '점용허가과세코드';
COMMENT ON COLUMN icgis.RDT_JPSM_D.IDN IS '세입과목코드';
COMMENT ON COLUMN icgis.RDT_JPSM_D.SEMOK_CODE IS '일련번호';
COMMENT ON COLUMN icgis.RDT_JPSM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JPSM_D.MNGT IS '기관코드';
COMMENT ON COLUMN icgis.RDT_JPSM_D.DEP_CODE IS '부서코드';
COMMENT ON COLUMN icgis.RDT_JPSM_D.ACC_GBN IS '회계구분';
COMMENT ON COLUMN icgis.RDT_JPSM_D.SEMOK_NAME IS '세입과목명';
COMMENT ON COLUMN icgis.RDT_JPSM_D.GLOBALID IS 'GLOBALID';


--점용허가변동내역

CREATE TABLE icgis.RDT_JPMC_D(
	IDN				VARCHAR(14)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CYMD			DATE			NOT NULL
	, CGUB			VARCHAR(50)	
	, CCNT			VARCHAR(200)	NOT NULL
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL

);

ALTER TABLE icgis.RDT_JPMC_D ADD CONSTRAINT RDT_JPMC_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.RDT_JPMC_D IS '점용허가변동내역';
COMMENT ON COLUMN icgis.RDT_JPMC_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDT_JPMC_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_JPMC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JPMC_D.CYMD IS '변동일';
COMMENT ON COLUMN icgis.RDT_JPMC_D.CGUB IS '구분';
COMMENT ON COLUMN icgis.RDT_JPMC_D.CCNT IS '변동내용';
COMMENT ON COLUMN icgis.RDT_JPMC_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_JPMC_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_JPMC_D.GLOBALID IS 'GLOBALID';


--점용허가파일내역

CREATE TABLE icgis.RDT_JPMF_D(
	IDN				VARCHAR(14)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DSC			VARCHAR(100)	NOT NULL
	, NAM			VARCHAR(40)		NOT NULL
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL

);
ALTER TABLE icgis.RDT_JPMF_D ADD CONSTRAINT RDT_JPMF_D_PK PRIMARY KEY (IDN, SEQ);
COMMENT ON TABLE icgis.RDT_JPMF_D IS '점용허가파일내역';
COMMENT ON COLUMN icgis.RDT_JPMF_D.IDN IS '허가번호';
COMMENT ON COLUMN icgis.RDT_JPMF_D.SEQ IS '파일일련번호';
COMMENT ON COLUMN icgis.RDT_JPMF_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JPMF_D.DSC IS '파일설명';
COMMENT ON COLUMN icgis.RDT_JPMF_D.NAM IS '파일명';
COMMENT ON COLUMN icgis.RDT_JPMF_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_JPMF_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_JPMF_D.GLOBALID IS 'GLOBALID';


--정류장

CREATE TABLE icgis.RDL_STAT_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, MNGT			VARCHAR(7)	
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10 )	
	, RIDN			NUMERIC(38,0)		
	, CIDN			VARCHAR(50)	
	, AEE_CDE		VARCHAR(6)	
	, STT_NAM		VARCHAR(100)	
	, STT_CDE		VARCHAR(6)	
	, SYS_CHK		VARCHAR(1)	
	, GUCD			VARCHAR(5)	
	, CMNGT			VARCHAR(7)	
	, UPDATE_NAM	VARCHAR(50)	
	, UPDATE_YMD	DATE				
	, GLOBALID		CHAR(38)			NOT NULL
	, IST_YMD		DATE				
	, SHAPE		public.geometry		
	
);

ALTER TABLE icgis.RDL_STAT_P ADD CONSTRAINT RDL_STAT_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_STAT_P IS '정류장';
COMMENT ON COLUMN icgis.RDL_STAT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_STAT_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_STAT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_STAT_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_STAT_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_STAT_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_STAT_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_STAT_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_STAT_P.AEE_CDE IS '정류장종류';
COMMENT ON COLUMN icgis.RDL_STAT_P.STT_NAM IS '정류장명';
COMMENT ON COLUMN icgis.RDL_STAT_P.STT_CDE IS '정류장유형';
COMMENT ON COLUMN icgis.RDL_STAT_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_STAT_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_STAT_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_STAT_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_STAT_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_STAT_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_STAT_P.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_STAT_P.SHAPE IS 'SHAPE';


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

CREATE TABLE icgis.RDL_BEJN_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER			
	, CTLNO			VARCHAR(30)	
	, GUB			VARCHAR(6)		
	, RNAM			VARCHAR(30)	
	, BNAM			VARCHAR(50)	
	, LOC			VARCHAR(50)	
	, 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			
--	, ARRAY			VARCHAR(6)		
	, SOOWAY		VARCHAR(30)	
	, CCNT			NUMERIC(5)		
	, SPAN			NUMERIC(5)		
	, YMD			DATE			
	, 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_BEJN_P ADD CONSTRAINT RDL_BEJN_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_BEJN_P IS '제어함';
COMMENT ON COLUMN icgis.RDL_BEJN_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_BEJN_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_BEJN_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_BEJN_P.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_BEJN_P.CTLNO IS '관리번호';
COMMENT ON COLUMN icgis.RDL_BEJN_P.GUB IS '가로등점멸기여부';
COMMENT ON COLUMN icgis.RDL_BEJN_P.RNAM IS '설치도로명';
COMMENT ON COLUMN icgis.RDL_BEJN_P.BNAM IS '설치구간';
COMMENT ON COLUMN icgis.RDL_BEJN_P.LOC IS '설치위치';
COMMENT ON COLUMN icgis.RDL_BEJN_P.KEPCO IS '한전고객번호';
COMMENT ON COLUMN icgis.RDL_BEJN_P.ECON IS '절전기';
COMMENT ON COLUMN icgis.RDL_BEJN_P.BOLSP IS '계량기번호';
COMMENT ON COLUMN icgis.RDL_BEJN_P.SPPWST IS '제어함규격';
COMMENT ON COLUMN icgis.RDL_BEJN_P.SPPWCD IS '계약종별';
COMMENT ON COLUMN icgis.RDL_BEJN_P.RECE IS '수신기';
COMMENT ON COLUMN icgis.RDL_BEJN_P.PWSR IS '전압';
COMMENT ON COLUMN icgis.RDL_BEJN_P.SWCT IS '누전기차단수량';
COMMENT ON COLUMN icgis.RDL_BEJN_P.EYONG IS '계약용량';
--COMMENT ON COLUMN icgis.RDL_BEJN_P.ARRAY IS '가로등배열방법';
COMMENT ON COLUMN icgis.RDL_BEJN_P.SOOWAY IS '수전방식';
COMMENT ON COLUMN icgis.RDL_BEJN_P.CCNT IS '회로수';
COMMENT ON COLUMN icgis.RDL_BEJN_P.SPAN IS '등주평균경간';
COMMENT ON COLUMN icgis.RDL_BEJN_P.YMD IS '설치일';
COMMENT ON COLUMN icgis.RDL_BEJN_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_BEJN_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_BEJN_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_BEJN_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_BEJN_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_BEJN_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_BEJN_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_BEJN_P.SHAPE IS 'SHAPE';


--조명보수이력

CREATE TABLE icgis.RDT_JBSU_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, SYMD			DATE			
	, EYMD			DATE			
	, REPAIT		VARCHAR(6)		
	, REPAPR		VARCHAR(50)	
	, REPAST		VARCHAR(50)	
	, CONTEN		VARCHAR(50)	
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.RDT_JBSU_D ADD CONSTRAINT RDT_JBSU_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_JBSU_D IS '조명보수이력';
COMMENT ON COLUMN icgis.RDT_JBSU_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_JBSU_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDT_JBSU_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_JBSU_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_JBSU_D.MNGT IS '시행기관';
COMMENT ON COLUMN icgis.RDT_JBSU_D.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDT_JBSU_D.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDT_JBSU_D.SYMD IS '보수시작일';
COMMENT ON COLUMN icgis.RDT_JBSU_D.EYMD IS '보수종료일';
COMMENT ON COLUMN icgis.RDT_JBSU_D.REPAIT IS '보수항목';
COMMENT ON COLUMN icgis.RDT_JBSU_D.REPAPR IS '보수품명';
COMMENT ON COLUMN icgis.RDT_JBSU_D.REPAST IS '보수규격';
COMMENT ON COLUMN icgis.RDT_JBSU_D.CONTEN IS '작업내역';
COMMENT ON COLUMN icgis.RDT_JBSU_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_JBSU_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_JBSU_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_JBSU_D.GLOBALID IS 'GLOBALID';


--조명시설정보부속

CREATE TABLE icgis.RDT_LIGT_D(
	IDN				INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, NAM			VARCHAR(50)
	, STDR			VARCHAR(50)
	, NUM			NUMERIC(5)	
	, UNIT			VARCHAR(4)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.RDT_LIGT_D ADD CONSTRAINT RDT_LIGT_D_PK PRIMARY KEY (IDN, SEQ, FTC);
COMMENT ON TABLE icgis.RDT_LIGT_D IS '조명시설정보부속';
COMMENT ON COLUMN icgis.RDT_LIGT_D.IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.RDT_LIGT_D.SEQ IS '개별번호';
COMMENT ON COLUMN icgis.RDT_LIGT_D.FTC IS '일련번호';
COMMENT ON COLUMN icgis.RDT_LIGT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_LIGT_D.NAM IS '부속명';
COMMENT ON COLUMN icgis.RDT_LIGT_D.STDR IS '규격';
COMMENT ON COLUMN icgis.RDT_LIGT_D.NUM IS '수량';
COMMENT ON COLUMN icgis.RDT_LIGT_D.UNIT IS '단위';
COMMENT ON COLUMN icgis.RDT_LIGT_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDT_LIGT_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDT_LIGT_D.GLOBALID IS 'GLOBALID';


--주차금지구역

CREATE TABLE icgis.RDL_PKNO_L(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, GUCD			VARCHAR(5)			
	, DCD			VARCHAR(10)		
	, MNGT			VARCHAR(6)			
	, RNAM			VARCHAR(30)		
	, RWID			NUMERIC(38,8)		
	, PSSY			VARCHAR(6)			
	, YMD			DATE				
	, NOTE			VARCHAR(100)		
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);

ALTER TABLE icgis.RDL_PKNO_L ADD CONSTRAINT RDL_PKNO_L_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDL_PKNO_L IS '주차금지구역';
COMMENT ON COLUMN icgis.RDL_PKNO_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_PKNO_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_PKNO_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_PKNO_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_PKNO_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.RDL_PKNO_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_PKNO_L.RNAM IS '도로명';
COMMENT ON COLUMN icgis.RDL_PKNO_L.RWID IS '도로폭';
COMMENT ON COLUMN icgis.RDL_PKNO_L.PSSY IS '통행체계';
COMMENT ON COLUMN icgis.RDL_PKNO_L.YMD IS '설치일';
COMMENT ON COLUMN icgis.RDL_PKNO_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_PKNO_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_PKNO_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_PKNO_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_PKNO_L.SHAPE IS 'SHAPE';


--주차블록

CREATE TABLE icgis.RDL_PKBL_A(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(5)			NOT NULL
	, GUCD			VARCHAR(5)			
	, DCD			VARCHAR(10)		
	, BLNO			VARCHAR(20)		
	, MNGT			VARCHAR(6)			
	, TLTL			INTEGER				
	, TLGM			INTEGER				
	, TLPR			INTEGER				
	, TLCM			INTEGER				
	, PSTL			INTEGER				
	, PSGM			INTEGER				
	, PSPR			INTEGER				
	, PSCM			INTEGER				
	, BSTL			INTEGER				
	, BSGM			INTEGER				
	, BSPR			INTEGER				
	, BSCM			INTEGER				
	, TKTL			INTEGER				
	, TKGM			INTEGER				
	, TKPR			INTEGER				
	, TKCM			INTEGER				
	, SCTL			INTEGER				
	, SCGM			INTEGER				
	, SCPR			INTEGER				
	, SCCM			INTEGER				
	, TWTL			INTEGER				
	, TWGM			INTEGER				
	, TWPR			INTEGER				
	, TWCM			INTEGER				
	, SATL			INTEGER				
	, SOTL			INTEGER				
	, SIPU			INTEGER				
	, SIPR			INTEGER				
	, SSHU			INTEGER				
	, SSNH			INTEGER				
	, MVAL			INTEGER				
	, PVAL			INTEGER				
	, NOTE			VARCHAR(50)		
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, BLNO_TEMP		VARCHAR(20)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
);

ALTER TABLE icgis.RDL_PKBL_A ADD CONSTRAINT RDL_PKBL_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.RDL_PKBL_A IS '주차블록';
COMMENT ON COLUMN icgis.RDL_PKBL_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_PKBL_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_PKBL_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_PKBL_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_PKBL_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.RDL_PKBL_A.BLNO IS '블록번호';
COMMENT ON COLUMN icgis.RDL_PKBL_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TLTL IS '총계_계';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TLGM IS '총계_관용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TLPR IS '총계_자가용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TLCM IS '총계_영업용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.PSTL IS '승용_계';
COMMENT ON COLUMN icgis.RDL_PKBL_A.PSGM IS '승용_관용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.PSPR IS '승용_자가용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.PSCM IS '승용_영업용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.BSTL IS '승합_계';
COMMENT ON COLUMN icgis.RDL_PKBL_A.BSGM IS '승합_관용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.BSPR IS '승합_자가용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.BSCM IS '승합_영업용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TKTL IS '화물_계';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TKGM IS '화물_관용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TKPR IS '화물_자가용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TKCM IS '화물_영업용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SCTL IS '특수_계';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SCGM IS '특수_관용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SCPR IS '특수_자가용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SCCM IS '특수_영업용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TWTL IS '2륜_계';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TWGM IS '2륜_관용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TWPR IS '2륜_자가용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.TWCM IS '2륜_영업용';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SATL IS '총계';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SOTL IS '노상';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SIPU IS '노외_공영';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SIPR IS '노외_민영';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SSHU IS '부설_주택';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SSNH IS '부설_비주택';
COMMENT ON COLUMN icgis.RDL_PKBL_A.MVAL IS '확보율_차이';
COMMENT ON COLUMN icgis.RDL_PKBL_A.PVAL IS '확보율_확보율';
COMMENT ON COLUMN icgis.RDL_PKBL_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_PKBL_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_PKBL_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_PKBL_A.BLNO_TEMP IS '임시블록번호';
COMMENT ON COLUMN icgis.RDL_PKBL_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_PKBL_A.SHAPE IS 'SHAPE';


--주차장

CREATE TABLE icgis.RDL_PKLT_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, BCD			VARCHAR(10)	
	, JSAN			VARCHAR(1)		
	, JBON			VARCHAR(10)	
	, JBU			VARCHAR(10)	
	, BIDN			INTEGER			
	, MNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NAM			VARCHAR(50)	
	, ARA			NUMERIC(38,8)	
	, TMUN			INTEGER			
	, PAY			VARCHAR(6)		
	, FEEH			INTEGER			
	, FEED			INTEGER			
	, FEEM			INTEGER			
	, WDTH			NUMERIC(38,8)	
	, CYMD			DATE			
	, OMNG			VARCHAR(1)		
	, OYMD			DATE			
	, COST			INTEGER			
	, JWON			VARCHAR(30)	
	, FKND			VARCHAR(6)		
	, PKND			VARCHAR(6)		
	, ALWS			VARCHAR(1)		
	, HNAM			VARCHAR(20)	
	, HADD			VARCHAR(100)	
	, GBFL			INTEGER			
	, BBFL			INTEGER			
	, GPFL			INTEGER			
	, BPFL			INTEGER			
	, PBPR			VARCHAR(6)		
	, PTYP			VARCHAR(6)		
	, PGUB			VARCHAR(6)		
	, SMUN			INTEGER			
	, LMUN			INTEGER			
	, HMUN			INTEGER			
	, JMUN			INTEGER			
	, TKND			VARCHAR(6)		
	, OMDN			VARCHAR(1)		
	, LMDN			VARCHAR(1)		
	, WKND			VARCHAR(50)	
	, GATE			INTEGER			
	, MNBD			INTEGER			
	, MMAN			INTEGER			
	, UPFA			VARCHAR(1)		
	, NYMD			DATE			
	, PNUM			VARCHAR(10)	
	, TYMD			DATE			
	, LDAR			NUMERIC(38,8)	
	, TOAR			NUMERIC(38,8)	
	, BTLR			NUMERIC(38,8)	
	, VOLM			INTEGER			
	, HGHT			INTEGER			
	, OUAR			NUMERIC(38,8)	
	, BDNO			VARCHAR(30)	
	, HYMD			DATE			
	, SYMD			DATE			
	, USE			VARCHAR(6)		
	, FMNO			INTEGER			
	, OPEN			VARCHAR(1)		
	, ISLF			INTEGER			
	, IMCH			INTEGER			
	, IARA			NUMERIC(38,8)	
	, OSLF			INTEGER			
	, OMCH			INTEGER			
	, OARA			NUMERIC(38,8)	
	, BSLF			INTEGER			
	, BMCH			INTEGER			
	, BARA			NUMERIC(38,8)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			VARCHAR(8)		
	, BIGO			VARCHAR(30)	
	, HTEL			VARCHAR(20)	
	, SHT_NUM		VARCHAR(10)	
	, SEC_IDN		NUMERIC(38,8)	
	, MNG_TEL		VARCHAR(30)	
	, IDT_NUM		VARCHAR(15)	
	, OPN_TIM		VARCHAR(5)		
	, CLS_TIM		VARCHAR(5)		
	, PKN_CDE		VARCHAR(6)		
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	

);

ALTER TABLE icgis.RDL_PKLT_A ADD CONSTRAINT RDL_PKLT_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_PKLT_A IS '주차장';
COMMENT ON COLUMN icgis.RDL_PKLT_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_PKLT_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_PKLT_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BCD IS '주소_법정동';
COMMENT ON COLUMN icgis.RDL_PKLT_A.JSAN IS '주소_산';
COMMENT ON COLUMN icgis.RDL_PKLT_A.JBON IS '주소_본번';
COMMENT ON COLUMN icgis.RDL_PKLT_A.JBU IS '주소_부번';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BIDN IS '블록번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_PKLT_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_PKLT_A.NAM IS '주차장명';
COMMENT ON COLUMN icgis.RDL_PKLT_A.ARA IS '시설규모';
COMMENT ON COLUMN icgis.RDL_PKLT_A.TMUN IS '총면수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.PAY IS '유무료구분';
COMMENT ON COLUMN icgis.RDL_PKLT_A.FEEH IS '주차요금_시간';
COMMENT ON COLUMN icgis.RDL_PKLT_A.FEED IS '주차요금_일';
COMMENT ON COLUMN icgis.RDL_PKLT_A.FEEM IS '주차요금_월';
COMMENT ON COLUMN icgis.RDL_PKLT_A.WDTH IS '도로폭';
COMMENT ON COLUMN icgis.RDL_PKLT_A.CYMD IS '준공일';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OMNG IS '위탁관리_여부';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OYMD IS '위탁관리_일자';
COMMENT ON COLUMN icgis.RDL_PKLT_A.COST IS '사업비';
COMMENT ON COLUMN icgis.RDL_PKLT_A.JWON IS '설치재원';
COMMENT ON COLUMN icgis.RDL_PKLT_A.FKND IS '요금급지';
COMMENT ON COLUMN icgis.RDL_PKLT_A.PKND IS '요금징수구분';
COMMENT ON COLUMN icgis.RDL_PKLT_A.ALWS IS '24시간운영여부';
COMMENT ON COLUMN icgis.RDL_PKLT_A.HNAM IS '소유자_성명';
COMMENT ON COLUMN icgis.RDL_PKLT_A.HADD IS '소유자_주소';
COMMENT ON COLUMN icgis.RDL_PKLT_A.GBFL IS '건물층수_지상';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BBFL IS '건물층수_지하';
COMMENT ON COLUMN icgis.RDL_PKLT_A.GPFL IS '주차장층수_지상';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BPFL IS '주차장층수_지하';
COMMENT ON COLUMN icgis.RDL_PKLT_A.PBPR IS '민공영구분';
COMMENT ON COLUMN icgis.RDL_PKLT_A.PTYP IS '주차형태';
COMMENT ON COLUMN icgis.RDL_PKLT_A.PGUB IS '주차장구분';
COMMENT ON COLUMN icgis.RDL_PKLT_A.SMUN IS '면수_소형';
COMMENT ON COLUMN icgis.RDL_PKLT_A.LMUN IS '면수_경형';
COMMENT ON COLUMN icgis.RDL_PKLT_A.HMUN IS '면수_대형';
COMMENT ON COLUMN icgis.RDL_PKLT_A.JMUN IS '면수_장애인';
COMMENT ON COLUMN icgis.RDL_PKLT_A.TKND IS '표발급구분';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OMDN IS '현대화_남은 주차대수 표시여부';
COMMENT ON COLUMN icgis.RDL_PKLT_A.LMDN IS '현대화_위치표시여부';
COMMENT ON COLUMN icgis.RDL_PKLT_A.WKND IS '경계구분';
COMMENT ON COLUMN icgis.RDL_PKLT_A.GATE IS '출입구개수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.MNBD IS '관리소개수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.MMAN IS '관리원수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.UPFA IS '도시계획_시설여부';
COMMENT ON COLUMN icgis.RDL_PKLT_A.NYMD IS '도시계획_고시일';
COMMENT ON COLUMN icgis.RDL_PKLT_A.PNUM IS '도시계획_고시번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.TYMD IS '주차장통보일';
COMMENT ON COLUMN icgis.RDL_PKLT_A.LDAR IS '부지면적';
COMMENT ON COLUMN icgis.RDL_PKLT_A.TOAR IS '연면적';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BTLR IS '건폐율';
COMMENT ON COLUMN icgis.RDL_PKLT_A.VOLM IS '용적율';
COMMENT ON COLUMN icgis.RDL_PKLT_A.HGHT IS '건물높이';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OUAR IS '타용도면적';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BDNO IS '건축물번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.HYMD IS '허가일';
COMMENT ON COLUMN icgis.RDL_PKLT_A.SYMD IS '착공일';
COMMENT ON COLUMN icgis.RDL_PKLT_A.USE IS '주용도';
COMMENT ON COLUMN icgis.RDL_PKLT_A.FMNO IS '세대수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OPEN IS '개방여부';
COMMENT ON COLUMN icgis.RDL_PKLT_A.ISLF IS '옥내_자주식면수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.IMCH IS '옥내_기계식면수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.IARA IS '옥내_면적';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OSLF IS '옥외_자주식면수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OMCH IS '옥외_기계식면수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OARA IS '옥외_면적';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BSLF IS '인근지부설_자주식면수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BMCH IS '인근지부설_기계식면수';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BARA IS '인근지부설_면적';
COMMENT ON COLUMN icgis.RDL_PKLT_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_PKLT_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_PKLT_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_PKLT_A.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.BIGO IS 'BIGO';
COMMENT ON COLUMN icgis.RDL_PKLT_A.HTEL IS '확인요원_전화';
COMMENT ON COLUMN icgis.RDL_PKLT_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.SEC_IDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.MNG_TEL IS '관리자전화번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.IDT_NUM IS '주민_사업자등록번호';
COMMENT ON COLUMN icgis.RDL_PKLT_A.OPN_TIM IS '운영시간_개장시간';
COMMENT ON COLUMN icgis.RDL_PKLT_A.CLS_TIM IS '운영시간_폐장시간';
COMMENT ON COLUMN icgis.RDL_PKLT_A.PKN_CDE IS '주차방향';
COMMENT ON COLUMN icgis.RDL_PKLT_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_PKLT_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_PKLT_A.SHAPE IS 'SHAPE';


--지급내역

CREATE TABLE icgis.RDT_CNPY_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(10)	NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, INO		VARCHAR(2)		
	, YMD		DATE			
	, PAYAMT	NUMERIC(38,8)	
	, RESTS		NUMERIC(38,8)	
	, NOTE		VARCHAR(50)	
	, GLOBALID	CHAR(38)		NOT NULL

);

ALTER TABLE icgis.RDT_CNPY_D ADD CONSTRAINT RDT_CNPY_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.RDT_CNPY_D IS '지급내역';
COMMENT ON COLUMN icgis.RDT_CNPY_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.RDT_CNPY_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.RDT_CNPY_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.RDT_CNPY_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDT_CNPY_D.INO IS '지급회수';
COMMENT ON COLUMN icgis.RDT_CNPY_D.YMD IS '지급일';
COMMENT ON COLUMN icgis.RDT_CNPY_D.PAYAMT IS '지급금액';
COMMENT ON COLUMN icgis.RDT_CNPY_D.RESTS IS '잔액';
COMMENT ON COLUMN icgis.RDT_CNPY_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDT_CNPY_D.GLOBALID IS 'GLOBALID';


--지하도

CREATE TABLE icgis.RDL_SMAN_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, AEF			VARCHAR(6)	
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, MAN			VARCHAR(30)
	, GRADE			VARCHAR(1)	
	, FACICS		VARCHAR(6)	
	, NAM			VARCHAR(30)	
	, YMD			DATE			
	, ADDR			VARCHAR(40)	
	, BOXHEI		NUMERIC(38,8)	
	, BOXWID		NUMERIC(38,8)	
	, BOXLEN		NUMERIC(38,8)	
	, BOXARA		NUMERIC(38,8)	
	, MAINST		VARCHAR(40)	
	, CANOPY		VARCHAR(40)	
	, NANGAN		VARCHAR(30)	
	, CMAK			VARCHAR(30)	
	, BMAK			VARCHAR(30)	
	, BDMAK			VARCHAR(30)	
	, IGMAK			VARCHAR(30)	
	, DRAIN			VARCHAR(30)	
	, JIBSO			VARCHAR(30)	
	, LIGHT			VARCHAR(50)	
	, EYONG			VARCHAR(20)	
	, BANGSO		VARCHAR(40)	
	, BALQTY		VARCHAR(40)	
	, INEA			NUMERIC(5)		
	, INWID			NUMERIC(38,8)	
	, INLEN			NUMERIC(5)		
	, INARA			NUMERIC(38,8)	
	, LGTEA			NUMERIC(5)		
	, MNGT			VARCHAR(6)		
	, MFACIL		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)		
	, TOT_ARA		NUMERIC(38,8)		
	, VNT_EXP		VARCHAR(50)		
	, FXG_EXP		VARCHAR(50)		
	, STD_LBL		VARCHAR(50)		
	, SYS_CHK		VARCHAR(1)			
	, SGG_CDE		VARCHAR(5)			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);

ALTER TABLE icgis.RDL_SMAN_A ADD CONSTRAINT RDL_SMAN_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_SMAN_A IS '지하도';
COMMENT ON COLUMN icgis.RDL_SMAN_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_SMAN_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_SMAN_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_SMAN_A.AEF IS '지하도구분';
COMMENT ON COLUMN icgis.RDL_SMAN_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_SMAN_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_SMAN_A.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDL_SMAN_A.GRADE IS '관리급수';
COMMENT ON COLUMN icgis.RDL_SMAN_A.FACICS IS '종별';
COMMENT ON COLUMN icgis.RDL_SMAN_A.NAM IS '지하도명';
COMMENT ON COLUMN icgis.RDL_SMAN_A.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDL_SMAN_A.ADDR IS '소재지_지번';
COMMENT ON COLUMN icgis.RDL_SMAN_A.BOXHEI IS 'BOX높이';
COMMENT ON COLUMN icgis.RDL_SMAN_A.BOXWID IS 'BOX폭';
COMMENT ON COLUMN icgis.RDL_SMAN_A.BOXLEN IS 'BOX연장';
COMMENT ON COLUMN icgis.RDL_SMAN_A.BOXARA IS 'BOX면적';
COMMENT ON COLUMN icgis.RDL_SMAN_A.MAINST IS '본체구조';
COMMENT ON COLUMN icgis.RDL_SMAN_A.CANOPY IS '캐노피';
COMMENT ON COLUMN icgis.RDL_SMAN_A.NANGAN IS '난간';
COMMENT ON COLUMN icgis.RDL_SMAN_A.CMAK IS '천정마감재';
COMMENT ON COLUMN icgis.RDL_SMAN_A.BMAK IS '벽체마감재';
COMMENT ON COLUMN icgis.RDL_SMAN_A.BDMAK IS '바닥마감재';
COMMENT ON COLUMN icgis.RDL_SMAN_A.IGMAK IS '출입구마감재';
COMMENT ON COLUMN icgis.RDL_SMAN_A.DRAIN IS '배수설비';
COMMENT ON COLUMN icgis.RDL_SMAN_A.JIBSO IS '집수정용량';
COMMENT ON COLUMN icgis.RDL_SMAN_A.LIGHT IS '조명설비';
COMMENT ON COLUMN icgis.RDL_SMAN_A.EYONG IS '계약용량';
COMMENT ON COLUMN icgis.RDL_SMAN_A.BANGSO IS '방송설비';
COMMENT ON COLUMN icgis.RDL_SMAN_A.BALQTY IS '발전기용량';
COMMENT ON COLUMN icgis.RDL_SMAN_A.INEA IS '출입구개소';
COMMENT ON COLUMN icgis.RDL_SMAN_A.INWID IS '출입구폭원';
COMMENT ON COLUMN icgis.RDL_SMAN_A.INLEN IS '출입구연장';
COMMENT ON COLUMN icgis.RDL_SMAN_A.INARA IS '출입구면적';
COMMENT ON COLUMN icgis.RDL_SMAN_A.LGTEA IS '조명등갯수';
COMMENT ON COLUMN icgis.RDL_SMAN_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_SMAN_A.MFACIL IS '횡단시설명';
COMMENT ON COLUMN icgis.RDL_SMAN_A.YEAR IS '준공년도';
COMMENT ON COLUMN icgis.RDL_SMAN_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_SMAN_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_SMAN_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_SMAN_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_SMAN_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_SMAN_A.GRD_CDE IS '기준점등급';
COMMENT ON COLUMN icgis.RDL_SMAN_A.TOT_LEN IS '총연장';
COMMENT ON COLUMN icgis.RDL_SMAN_A.TOT_ARA IS '총면적';
COMMENT ON COLUMN icgis.RDL_SMAN_A.VNT_EXP IS '일반제원_환기방식';
COMMENT ON COLUMN icgis.RDL_SMAN_A.FXG_EXP IS '소화시설_종류';
COMMENT ON COLUMN icgis.RDL_SMAN_A.STD_LBL IS '라벨';
COMMENT ON COLUMN icgis.RDL_SMAN_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_SMAN_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_SMAN_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_SMAN_A.SHAPE IS 'SHAPE';


--지하차도

CREATE TABLE icgis.RDL_SCAR_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, AEF			VARCHAR(6)	
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, MAN			VARCHAR(30)
	, GRADE			VARCHAR(1)	
	, FACICS		VARCHAR(6)	
	, NAM			VARCHAR(30)
	, YMD			DATE	
	, ADDR			VARCHAR(40)
	, RDWID			NUMERIC(38,8)
	, BOWID			NUMERIC(38,8)
	, CDWID			NUMERIC(38,8)
	, LIMHEI		NUMERIC(38,8)
	, REHEI			NUMERIC(38,8)
	, BOXWID		NUMERIC(38,8)
	, BOXLEN		NUMERIC(38,8)
	, BOXARA		NUMERIC(38,8)
	, RDLEN			NUMERIC(38,8)
	, BOLEN			NUMERIC(38,8)
	, TOTLEN		NUMERIC(38,8)
	, TOTARA		NUMERIC(38,8)
	, OBHEI			NUMERIC(38,8)
	, OBLEN			NUMERIC(38,8)
	, MAINST		VARCHAR(40)
	, NANGAN		VARCHAR(30)
	, CMAK			VARCHAR(30)
	, BMAK			VARCHAR(30)
	, DRAIN			VARCHAR(30)
	, JIBSO			VARCHAR(30)
	, LIGHT			VARCHAR(50)
	, EYONG			VARCHAR(20)
	, BANGSO		VARCHAR(40)
	, BALQTY		VARCHAR(40)
	, INEA			NUMERIC(5)	
	, INWID			NUMERIC(38,8)
	, INLEN			NUMERIC(5)	
	, INARA			NUMERIC(38,8)
	, LGTEA			NUMERIC(5)	
	, MFACIL		VARCHAR(6)	
	, MNGT			VARCHAR(6)	
	, GUARD			VARCHAR(1)	
	, 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)	
	, BOX_HIT		NUMERIC(38,8)
	, ESC_CDE		VARCHAR(6)	
	, VNT_EXP		VARCHAR(50)
	, TOT_WID		NUMERIC(38,8)
	, LSW_WID		NUMERIC(38,8)
	, RSW_WID		NUMERIC(38,8)
	, LAN_CNT		NUMERIC(38,8)
	, RVT_ARA		NUMERIC(38,8)
	, FXG_EXP		VARCHAR(50)
	, SUP_EXP		VARCHAR(50)
	, STD_LBL		VARCHAR(50)
	, SYS_CHK		VARCHAR(1)	
	, SGG_CDE		VARCHAR(5)	
	, GLOBALID		CHAR(38)	NOT NULL
	, SHAPE			public.geometry
);

ALTER TABLE icgis.RDL_SCAR_A ADD CONSTRAINT RDL_SCAR_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_SCAR_A IS '지하차도';
COMMENT ON COLUMN icgis.RDL_SCAR_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_SCAR_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_SCAR_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_SCAR_A.AEF IS '지하도구분';
COMMENT ON COLUMN icgis.RDL_SCAR_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_SCAR_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_SCAR_A.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDL_SCAR_A.GRADE IS '관리급수';
COMMENT ON COLUMN icgis.RDL_SCAR_A.FACICS IS '종별';
COMMENT ON COLUMN icgis.RDL_SCAR_A.NAM IS '지하차도명';
COMMENT ON COLUMN icgis.RDL_SCAR_A.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDL_SCAR_A.ADDR IS '소재지_지번';
COMMENT ON COLUMN icgis.RDL_SCAR_A.RDWID IS '도로폭';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BOWID IS '보도폭';
COMMENT ON COLUMN icgis.RDL_SCAR_A.CDWID IS '차도폭';
COMMENT ON COLUMN icgis.RDL_SCAR_A.LIMHEI IS '통과제한높이';
COMMENT ON COLUMN icgis.RDL_SCAR_A.REHEI IS '실측높이';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BOXWID IS 'BOX폭';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BOXLEN IS 'BOX연장';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BOXARA IS 'BOX면적';
COMMENT ON COLUMN icgis.RDL_SCAR_A.RDLEN IS '차도연장';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BOLEN IS '보도연장';
COMMENT ON COLUMN icgis.RDL_SCAR_A.TOTLEN IS '총연장';
COMMENT ON COLUMN icgis.RDL_SCAR_A.TOTARA IS '총면적';
COMMENT ON COLUMN icgis.RDL_SCAR_A.OBHEI IS '옹벽높이';
COMMENT ON COLUMN icgis.RDL_SCAR_A.OBLEN IS '옹벽연장';
COMMENT ON COLUMN icgis.RDL_SCAR_A.MAINST IS '본체구조';
COMMENT ON COLUMN icgis.RDL_SCAR_A.NANGAN IS '난간';
COMMENT ON COLUMN icgis.RDL_SCAR_A.CMAK IS '천정마감재';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BMAK IS '벽체마감재';
COMMENT ON COLUMN icgis.RDL_SCAR_A.DRAIN IS '배수설비';
COMMENT ON COLUMN icgis.RDL_SCAR_A.JIBSO IS '집수정용량';
COMMENT ON COLUMN icgis.RDL_SCAR_A.LIGHT IS '조명설비';
COMMENT ON COLUMN icgis.RDL_SCAR_A.EYONG IS '계약용량';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BANGSO IS '방송설비';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BALQTY IS '발전기용량';
COMMENT ON COLUMN icgis.RDL_SCAR_A.INEA IS '출입구개소';
COMMENT ON COLUMN icgis.RDL_SCAR_A.INWID IS '출입구폭원';
COMMENT ON COLUMN icgis.RDL_SCAR_A.INLEN IS '출입구연장';
COMMENT ON COLUMN icgis.RDL_SCAR_A.INARA IS '출입구면적';
COMMENT ON COLUMN icgis.RDL_SCAR_A.LGTEA IS '조명등갯수';
COMMENT ON COLUMN icgis.RDL_SCAR_A.MFACIL IS '횡단시설명';
COMMENT ON COLUMN icgis.RDL_SCAR_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_SCAR_A.GUARD IS '관리인상주여부';
COMMENT ON COLUMN icgis.RDL_SCAR_A.YEAR IS '준공년도';
COMMENT ON COLUMN icgis.RDL_SCAR_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_SCAR_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_SCAR_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_SCAR_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_SCAR_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_SCAR_A.GRD_CDE IS '기준점등급';
COMMENT ON COLUMN icgis.RDL_SCAR_A.BOX_HIT IS '구체높이';
COMMENT ON COLUMN icgis.RDL_SCAR_A.ESC_CDE IS '일반제원_차량대비시설유무';
COMMENT ON COLUMN icgis.RDL_SCAR_A.VNT_EXP IS '일반제원_환기방식';
COMMENT ON COLUMN icgis.RDL_SCAR_A.TOT_WID IS '폭원_계';
COMMENT ON COLUMN icgis.RDL_SCAR_A.LSW_WID IS '폭원_좌보도';
COMMENT ON COLUMN icgis.RDL_SCAR_A.RSW_WID IS '폭원_우보도';
COMMENT ON COLUMN icgis.RDL_SCAR_A.LAN_CNT IS '왕복차로수';
COMMENT ON COLUMN icgis.RDL_SCAR_A.RVT_ARA IS '옹벽_면적';
COMMENT ON COLUMN icgis.RDL_SCAR_A.FXG_EXP IS '소화시설_종류';
COMMENT ON COLUMN icgis.RDL_SCAR_A.SUP_EXP IS '급수시설종류';
COMMENT ON COLUMN icgis.RDL_SCAR_A.STD_LBL IS '라벨';
COMMENT ON COLUMN icgis.RDL_SCAR_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_SCAR_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_SCAR_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_SCAR_A.SHAPE IS 'SHAPE';


--철도교차

CREATE TABLE icgis.RDL_RNCR_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, RIDN			INTEGER				
	, TFR			VARCHAR(6)			
	, SPEC			VARCHAR(40)		
	, LENTH			NUMERIC(38,8)		
	, WIDTH			NUMERIC(38,8)		
	, ANGLE			NUMERIC(38,8)		
	, ADDR			VARCHAR(40)		
	, SINHO			VARCHAR(6)			
	, REM			VARCHAR(50)		
	, 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_RNCR_A ADD CONSTRAINT RDL_RNCR_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_RNCR_A IS '철도교차';
COMMENT ON COLUMN icgis.RDL_RNCR_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_RNCR_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_RNCR_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_RNCR_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_RNCR_A.TFR IS '고가방식';
COMMENT ON COLUMN icgis.RDL_RNCR_A.SPEC IS '철도또는신설궤도명칭';
COMMENT ON COLUMN icgis.RDL_RNCR_A.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_RNCR_A.WIDTH IS '폭원';
COMMENT ON COLUMN icgis.RDL_RNCR_A.ANGLE IS '유효고또는교차각도';
COMMENT ON COLUMN icgis.RDL_RNCR_A.ADDR IS '소재지';
COMMENT ON COLUMN icgis.RDL_RNCR_A.SINHO IS '신호유무';
COMMENT ON COLUMN icgis.RDL_RNCR_A.REM IS '특기사항';
COMMENT ON COLUMN icgis.RDL_RNCR_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_RNCR_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_RNCR_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_RNCR_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_RNCR_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_RNCR_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_RNCR_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_RNCR_A.SHAPE IS 'SHAPE';


--출입구

CREATE TABLE icgis.RDL_PKGT_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)			
	, DCD			VARCHAR(10)		
	, MNGT			VARCHAR(6)			
	, PFTC			VARCHAR(5)			
	, PIDN			INTEGER				
	, KND			VARCHAR(6)			
	, RNUM			NUMERIC(5)			
	, RWID			NUMERIC(38,8)		
	, DRCT			VARCHAR(100)		
	, MNBD			VARCHAR(1)			
	, PSSY			VARCHAR(6)			
	, NOTE			VARCHAR(100)		
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);

ALTER TABLE icgis.RDL_PKGT_P ADD CONSTRAINT RDL_PKGT_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_PKGT_P IS '출입구';
COMMENT ON COLUMN icgis.RDL_PKGT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_PKGT_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_PKGT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_PKGT_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_PKGT_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.RDL_PKGT_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_PKGT_P.PFTC IS '주차장_지형지물부호';
COMMENT ON COLUMN icgis.RDL_PKGT_P.PIDN IS '주차장_개별번호';
COMMENT ON COLUMN icgis.RDL_PKGT_P.KND IS '구분';
COMMENT ON COLUMN icgis.RDL_PKGT_P.RNUM IS '차로수';
COMMENT ON COLUMN icgis.RDL_PKGT_P.RWID IS '도로폭';
COMMENT ON COLUMN icgis.RDL_PKGT_P.DRCT IS '일방통행방향';
COMMENT ON COLUMN icgis.RDL_PKGT_P.MNBD IS '관리소유무';
COMMENT ON COLUMN icgis.RDL_PKGT_P.PSSY IS '통행체계';
COMMENT ON COLUMN icgis.RDL_PKGT_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_PKGT_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_PKGT_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_PKGT_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_PKGT_P.SHAPE IS 'SHAPE';


--터널

CREATE TABLE icgis.RDL_TRNL_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GNNUM			NUMERIC(5)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, MAN			VARCHAR(30)	
	, GRADE			VARCHAR(1)		
	, MINSCD		VARCHAR(6)		
	, HSTNAM		VARCHAR(30)	
	, HSTADR		VARCHAR(50)	
	, PAYCD			VARCHAR(6)		
	, SPYMD			DATE			
	, EPYMD			DATE			
	, NAM			VARCHAR(20)	
	, YMD			DATE			
	, FACICS		VARCHAR(6)		
	, ADDR			VARCHAR(50)	
	, CWID			NUMERIC(38,8)	
	, MWID			NUMERIC(38,8)	
	, GWID			NUMERIC(38,8)	
	, WID			NUMERIC(38,8)	
	, LINE			NUMERIC(5)		
	, LENTH			NUMERIC(38,8)	
	, HEIGHT		NUMERIC(38,8)	
	, GHEI			NUMERIC(38,8)	
	, CARA			NUMERIC(38,8)	
	, LBARA			NUMERIC(38,8)	
	, RBARA			NUMERIC(38,8)	
	, TEOL			VARCHAR(15)	
	, GONWID		NUMERIC(38,8)	
	, GONSMA		VARCHAR(6)		
	, WHWID			NUMERIC(38,8)	
	, WHSMA			VARCHAR(6)		
	, CHWID			NUMERIC(38,8)	
	, CHSMA			VARCHAR(6)		
	, KLTYPE		VARCHAR(40)	
	, KLEN			NUMERIC(38,8)	
	, GNTYPE		VARCHAR(20)	
	, GNWID			NUMERIC(38,8)	
	, GNHEI			NUMERIC(38,8)	
	, LNSTR			VARCHAR(20)	
	, LNTH			NUMERIC(38,8)	
	, OCSTR			VARCHAR(20)	
	, OCLEN			NUMERIC(38,8)	
	, SOOPWR		VARCHAR(40)	
	, SOOWAY		VARCHAR(40)	
	, BAJEON		VARCHAR(40)	
	, SUPPCA		VARCHAR(40)	
	, SUPPBJ		VARCHAR(40)	
	, LIGHT			VARCHAR(50)	
	, SOS			VARCHAR(50)	
	, BALQTY		VARCHAR(40)	
	, BANGSO		VARCHAR(50)	
	, FAN			VARCHAR(50)	
	, BETYPE		VARCHAR(40)	
	, WKIND			VARCHAR(6)		
	, HYDRA			VARCHAR(40)	
	, EMERG			NUMERIC(5)		
	, UPWT			VARCHAR(30)	
	, TELE			VARCHAR(30)	
	, ELEC			VARCHAR(30)	
	, GAS			VARCHAR(30)	
	, ETC			VARCHAR(30)	
	, MNGT			VARCHAR(6)		
	, LGTEA			NUMERIC(5)		
	, NOTE			VARCHAR(50)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, HJD_CDE		VARCHAR(10)	
	, SHT_NUM		VARCHAR(10)	
	, GRD_CDE		VARCHAR(6)		
	, TOT_ARA		NUMERIC(38,8)	
	, LSW_WID		NUMERIC(38,8)	
	, RSW_WID		NUMERIC(38,8)	
	, LCD_EXP		VARCHAR(50)	
	, LCD_CNT		NUMERIC(38,8)	
	, FXG_EXP		VARCHAR(50)	
	, STD_LBL		VARCHAR(50)	
	, SYS_CHK		VARCHAR(1)		
	, SGG_CDE		VARCHAR(5)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);

ALTER TABLE icgis.RDL_TRNL_A ADD CONSTRAINT RDL_TRNL_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_TRNL_A IS '터널';
COMMENT ON COLUMN icgis.RDL_TRNL_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_TRNL_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_TRNL_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GNNUM IS '갱구수';
COMMENT ON COLUMN icgis.RDL_TRNL_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_TRNL_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_TRNL_A.MAN IS '관리자';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GRADE IS '관리급수';
COMMENT ON COLUMN icgis.RDL_TRNL_A.MINSCD IS '민자여부';
COMMENT ON COLUMN icgis.RDL_TRNL_A.HSTNAM IS '민자사업자명';
COMMENT ON COLUMN icgis.RDL_TRNL_A.HSTADR IS '민자사업자주소';
COMMENT ON COLUMN icgis.RDL_TRNL_A.PAYCD IS '유료여부';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SPYMD IS '유료개시일';
COMMENT ON COLUMN icgis.RDL_TRNL_A.EPYMD IS '유료종료일';
COMMENT ON COLUMN icgis.RDL_TRNL_A.NAM IS '터널명';
COMMENT ON COLUMN icgis.RDL_TRNL_A.YMD IS '관리시작일';
COMMENT ON COLUMN icgis.RDL_TRNL_A.FACICS IS '종별';
COMMENT ON COLUMN icgis.RDL_TRNL_A.ADDR IS '소재지';
COMMENT ON COLUMN icgis.RDL_TRNL_A.CWID IS '차도폭원';
COMMENT ON COLUMN icgis.RDL_TRNL_A.MWID IS '인도폭원';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GWID IS '구거폭원';
COMMENT ON COLUMN icgis.RDL_TRNL_A.WID IS '총폭원';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LINE IS '왕복차로수';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_TRNL_A.HEIGHT IS '터널높이';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GHEI IS '통행높이';
COMMENT ON COLUMN icgis.RDL_TRNL_A.CARA IS '차도면적';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LBARA IS '좌보도면적';
COMMENT ON COLUMN icgis.RDL_TRNL_A.RBARA IS '우보도면적';
COMMENT ON COLUMN icgis.RDL_TRNL_A.TEOL IS '열';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GONWID IS '공_두께';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GONSMA IS '공_재질';
COMMENT ON COLUMN icgis.RDL_TRNL_A.WHWID IS '측벽_두께';
COMMENT ON COLUMN icgis.RDL_TRNL_A.WHSMA IS '측벽_재질';
COMMENT ON COLUMN icgis.RDL_TRNL_A.CHWID IS '천정_두께';
COMMENT ON COLUMN icgis.RDL_TRNL_A.CHSMA IS '천정_재질';
COMMENT ON COLUMN icgis.RDL_TRNL_A.KLTYPE IS '구조형식';
COMMENT ON COLUMN icgis.RDL_TRNL_A.KLEN IS '굴착연장';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GNTYPE IS '갱문_형식';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GNWID IS '갱문_폭';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GNHEI IS '갱문_높이';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LNSTR IS '라이닝_구조';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LNTH IS '라이닝_두께';
COMMENT ON COLUMN icgis.RDL_TRNL_A.OCSTR IS '개착식구조';
COMMENT ON COLUMN icgis.RDL_TRNL_A.OCLEN IS '개착식길이';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SOOPWR IS '수전전압';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SOOWAY IS '수전방식';
COMMENT ON COLUMN icgis.RDL_TRNL_A.BAJEON IS '배전반수';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SUPPCA IS '변압기용량';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SUPPBJ IS '공급변전소';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LIGHT IS '조명설비';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SOS IS '동력설비';
COMMENT ON COLUMN icgis.RDL_TRNL_A.BALQTY IS '발전기용량';
COMMENT ON COLUMN icgis.RDL_TRNL_A.BANGSO IS '방송설비';
COMMENT ON COLUMN icgis.RDL_TRNL_A.FAN IS '환기방식';
COMMENT ON COLUMN icgis.RDL_TRNL_A.BETYPE IS '배수시설종류';
COMMENT ON COLUMN icgis.RDL_TRNL_A.WKIND IS '방수종류';
COMMENT ON COLUMN icgis.RDL_TRNL_A.HYDRA IS '소화설비';
COMMENT ON COLUMN icgis.RDL_TRNL_A.EMERG IS '긴급전화';
COMMENT ON COLUMN icgis.RDL_TRNL_A.UPWT IS '부착시설_상수도기관';
COMMENT ON COLUMN icgis.RDL_TRNL_A.TELE IS '부착시설_통신관로기관';
COMMENT ON COLUMN icgis.RDL_TRNL_A.ELEC IS '부착시설_전기관로기관';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GAS IS '부착시설_가스기관';
COMMENT ON COLUMN icgis.RDL_TRNL_A.ETC IS '부착시설_기타기관';
COMMENT ON COLUMN icgis.RDL_TRNL_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LGTEA IS '조명등수';
COMMENT ON COLUMN icgis.RDL_TRNL_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_TRNL_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_TRNL_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_TRNL_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GRD_CDE IS '기준점등급';
COMMENT ON COLUMN icgis.RDL_TRNL_A.TOT_ARA IS '총면적';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LSW_WID IS '폭원_좌보도';
COMMENT ON COLUMN icgis.RDL_TRNL_A.RSW_WID IS '폭원_우보도';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LCD_EXP IS '조명시설_종류';
COMMENT ON COLUMN icgis.RDL_TRNL_A.LCD_CNT IS '조명시설_수량';
COMMENT ON COLUMN icgis.RDL_TRNL_A.FXG_EXP IS '소화시설_종류';
COMMENT ON COLUMN icgis.RDL_TRNL_A.STD_LBL IS '라벨';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.RDL_TRNL_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_TRNL_A.SHAPE IS 'SHAPE';


--포장

CREATE TABLE icgis.RDL_PAVE_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, NIDN			INTEGER			
	, MENDCD		VARCHAR(6)		
	, MENDCS		VARCHAR(6)		
	, SYMD			DATE			
	, LENTH			NUMERIC(38,8)	
	, ARA			NUMERIC(38,8)	
	, WIDTH			NUMERIC(38,8)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, CPSMA			VARCHAR(6)		
	, BPSMA			VARCHAR(6)		
	, BCPSMA		VARCHAR(6)		
	, BBPSMA		VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, NOTE			VARCHAR(200)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, EYMD			DATE			
	, SHT_NUM		VARCHAR(10)	
	, SEC_IDN		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)		NOT NULL	
	, SHAPE			public.geometry	
);

ALTER TABLE icgis.RDL_PAVE_A ADD CONSTRAINT RDL_PAVE_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_PAVE_A IS '포장';
COMMENT ON COLUMN icgis.RDL_PAVE_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_PAVE_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_PAVE_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_PAVE_A.NIDN IS '노선번호';
COMMENT ON COLUMN icgis.RDL_PAVE_A.MENDCD IS '보수종류';
COMMENT ON COLUMN icgis.RDL_PAVE_A.MENDCS IS '보수공종';
COMMENT ON COLUMN icgis.RDL_PAVE_A.SYMD IS '시작일';
COMMENT ON COLUMN icgis.RDL_PAVE_A.LENTH IS '연장';
COMMENT ON COLUMN icgis.RDL_PAVE_A.ARA IS '면적';
COMMENT ON COLUMN icgis.RDL_PAVE_A.WIDTH IS '폭원';
COMMENT ON COLUMN icgis.RDL_PAVE_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_PAVE_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_PAVE_A.CPSMA IS '차도포장재질';
COMMENT ON COLUMN icgis.RDL_PAVE_A.BPSMA IS '보도포장재질';
COMMENT ON COLUMN icgis.RDL_PAVE_A.BCPSMA IS '이전차도포장재';
COMMENT ON COLUMN icgis.RDL_PAVE_A.BBPSMA IS '이전보도포장재';
COMMENT ON COLUMN icgis.RDL_PAVE_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_PAVE_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.RDL_PAVE_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_PAVE_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.RDL_PAVE_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_PAVE_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_PAVE_A.EYMD IS '종료일';
COMMENT ON COLUMN icgis.RDL_PAVE_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_PAVE_A.SEC_IDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_PAVE_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_PAVE_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_PAVE_A.SHAPE IS 'SHAPE';


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

CREATE TABLE icgis.RDL_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)		
--	, ARRAY			VARCHAR(6)		
	, LENG			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	
	, JFTC			VARCHAR(6)		NOT NULL
	, JIDN			VARCHAR(10)	
);

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


--횡단보도

CREATE TABLE icgis.RDL_PDCR_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)	
	, RIDN			NUMERIC(38,0)		
	, CIDN			VARCHAR(50)	
	, YON_CDE		VARCHAR(6)	
	, BDN_CDE		VARCHAR(6)	
	, HND_CDE		VARCHAR(6)	
	, CRS_WID		NUMERIC(38,8)		
	, CRS_LEN		NUMERIC(38,8)		
	, CRW_CDE		VARCHAR(6)	
	, SYS_CHK		VARCHAR(1)	
	, GUCD			VARCHAR(5)	
	, CMNGT			VARCHAR(7)	
	, UPDATE_NAM	VARCHAR(50)	
	, UPDATE_YMD	DATE				
	, GLOBALID		CHAR(38)			NOT NULL
	, IST_YMD		DATE				
	, SHAPE			public.geometry		
);

ALTER TABLE icgis.RDL_PDCR_A ADD CONSTRAINT RDL_PDCR_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.RDL_PDCR_A IS '횡단보도';
COMMENT ON COLUMN icgis.RDL_PDCR_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.RDL_PDCR_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.RDL_PDCR_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.RDL_PDCR_A.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.RDL_PDCR_A.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.RDL_PDCR_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.RDL_PDCR_A.RIDN IS '도로구간번호';
COMMENT ON COLUMN icgis.RDL_PDCR_A.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.RDL_PDCR_A.YON_CDE IS '교통섬유무';
COMMENT ON COLUMN icgis.RDL_PDCR_A.BDN_CDE IS '보도턱낮춤유무';
COMMENT ON COLUMN icgis.RDL_PDCR_A.HND_CDE IS '장애인시설유무';
COMMENT ON COLUMN icgis.RDL_PDCR_A.CRS_WID IS '횡단보도폭';
COMMENT ON COLUMN icgis.RDL_PDCR_A.CRS_LEN IS '횡단보도길이';
COMMENT ON COLUMN icgis.RDL_PDCR_A.CRW_CDE IS '횡단보도방식';
COMMENT ON COLUMN icgis.RDL_PDCR_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.RDL_PDCR_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.RDL_PDCR_A.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.RDL_PDCR_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.RDL_PDCR_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.RDL_PDCR_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.RDL_PDCR_A.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.RDL_PDCR_A.SHAPE IS 'SHAPE';


--------------------------------------------------------------------------
--//## 하수DDL
--------------------------------------------------------------------------


--SWT_CHDH_D
--예약어 DO 사용 주석 처리

CREATE TABLE icgis.SWT_CHDH_D(
	OBJECTID	INTEGER			NOT NULL
	, MNGT		VARCHAR(6)		
	, CNTNO		VARCHAR(7)		
	, YMD		DATE			
	, DTYPE		VARCHAR(7)		
	, SUM		NUMERIC(38,8)	
--	, DO		NUMERIC(38,8)	
	, KWAN		NUMERIC(38,8)	
	, WAST		NUMERIC(38,8)	
	, GLOBALID	CHAR(38)		NOT NULL
);

COMMENT ON TABLE icgis.SWT_CHDH_D IS 'SWT_CHDH_D';
COMMENT ON COLUMN icgis.SWT_CHDH_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHDH_D.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.SWT_CHDH_D.CNTNO IS 'CNTNO';
COMMENT ON COLUMN icgis.SWT_CHDH_D.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.SWT_CHDH_D.DTYPE IS '변경구분';
COMMENT ON COLUMN icgis.SWT_CHDH_D.SUM IS '총공사비';
--COMMENT ON COLUMN icgis.SWT_CHDH_D.DO IS '도급액';
COMMENT ON COLUMN icgis.SWT_CHDH_D.KWAN IS '지출과목_관';
COMMENT ON COLUMN icgis.SWT_CHDH_D.WAST IS '폐기물';
COMMENT ON COLUMN icgis.SWT_CHDH_D.GLOBALID IS 'GLOBALID';


--SWT_CHPG_D

CREATE TABLE icgis.SWT_CHPG_D(
	OBJECTID	INTEGER		NOT NULL	
	, MNGT		VARCHAR(6)		
	, CNTNO		VARCHAR(7)		
	, PRTYPE	VARCHAR(7)		
	, SYMD		DATE			
	, RYMD		DATE			
	, GLOBALID	CHAR(38)	NOT NULL	
);
COMMENT ON TABLE icgis.SWT_CHPG_D IS 'SWT_CHPG_D';
COMMENT ON COLUMN icgis.SWT_CHPG_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHPG_D.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.SWT_CHPG_D.CNTNO IS 'CNTNO';
COMMENT ON COLUMN icgis.SWT_CHPG_D.PRTYPE IS '공정구분';
COMMENT ON COLUMN icgis.SWT_CHPG_D.SYMD IS '침수시기';
COMMENT ON COLUMN icgis.SWT_CHPG_D.RYMD IS '회신일';
COMMENT ON COLUMN icgis.SWT_CHPG_D.GLOBALID IS 'GLOBALID';


--감액결의내역

CREATE TABLE icgis.SWT_CHARGED_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, YEAR			VARCHAR(4)		NOT NULL	
	, NUM			NUMERIC(5)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DYMD			DATE			
	, DAMT			INTEGER			
	, DCNT			VARCHAR(100)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL	
);

ALTER TABLE icgis.SWT_CHARGED_D ADD CONSTRAINT SWT_CHARGED_D_PK PRIMARY KEY (MNGT, YEAR, NUM, SEQ);
COMMENT ON TABLE icgis.SWT_CHARGED_D IS '감액결의내역';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.MNGT IS '접수기관';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.YEAR IS '접수년도';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.NUM IS '접수번호';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.DYMD IS '결의일';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.DAMT IS '결의금액';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.DCNT IS '결의사유';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHARGED_D.GLOBALID IS 'GLOBALID';


--건물현황

CREATE TABLE icgis.SWT_PUMPB_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CLS			VARCHAR(14)	
	, ARA			NUMERIC(38,8)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_PUMPB_D ADD CONSTRAINT SWT_PUMPB_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_PUMPB_D IS '건물현황';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.CLS IS '분류';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.ARA IS '면적';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_PUMPB_D.GLOBALID IS 'GLOBALID';


--계약공정내역

CREATE TABLE icgis.SWT_CNPG_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(10)		NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, PRTYPE	VARCHAR(7)		
	, SYMD		DATE			
	, RYMD		DATE			
	, GLOBALID	CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_CNPG_D ADD CONSTRAINT SWT_CNPG_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CNPG_D IS '계약공정내역';
COMMENT ON COLUMN icgis.SWT_CNPG_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNPG_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNPG_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CNPG_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNPG_D.PRTYPE IS '공정구분';
COMMENT ON COLUMN icgis.SWT_CNPG_D.SYMD IS '계약상년월일';
COMMENT ON COLUMN icgis.SWT_CNPG_D.RYMD IS '실시년월일';
COMMENT ON COLUMN icgis.SWT_CNPG_D.GLOBALID IS 'GLOBALID';


---계약금액내역
--예약어 DO 주석처리

CREATE TABLE icgis.SWT_CNCT_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(10)	NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, CCTYPE	VARCHAR(7)		
	, SUM		NUMERIC(38,8)	
--	, DO		NUMERIC(38,8)	
	, GONG		NUMERIC(38,8)	
	, BUGA		NUMERIC(38,8)	
	, KWAN		NUMERIC(38,8)	
	, WASTE		NUMERIC(38,8)	
	, ETC		NUMERIC(38,8)	
	, RATIO		NUMERIC(38,8)	
	, GLOBALID	CHAR(38)		NOT NULL
	
);

ALTER TABLE icgis.SWT_CNCT_D ADD CONSTRAINT SWT_CNCT_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CNCT_D IS '계약금액내역';
COMMENT ON COLUMN icgis.SWT_CNCT_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNCT_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNCT_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CNCT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNCT_D.CCTYPE IS '구분';
COMMENT ON COLUMN icgis.SWT_CNCT_D.SUM IS '총공사비';
--COMMENT ON COLUMN icgis.SWT_CNCT_D.DO IS '도급액';
COMMENT ON COLUMN icgis.SWT_CNCT_D.GONG IS '공급가액';
COMMENT ON COLUMN icgis.SWT_CNCT_D.BUGA IS '부가가치세';
COMMENT ON COLUMN icgis.SWT_CNCT_D.KWAN IS '관급액';
COMMENT ON COLUMN icgis.SWT_CNCT_D.WASTE IS '폐기물';
COMMENT ON COLUMN icgis.SWT_CNCT_D.ETC IS '기타';
COMMENT ON COLUMN icgis.SWT_CNCT_D.RATIO IS '낙찰률';
COMMENT ON COLUMN icgis.SWT_CNCT_D.GLOBALID IS 'GLOBALID';


--공사개요

CREATE TABLE icgis.SWT_CNNT_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(10)		NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, GTYPE		VARCHAR(7)		
	, CONST		VARCHAR(1000)	
	, GLOBALID	CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_CNNT_D ADD CONSTRAINT SWT_CNNT_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CNNT_D IS '공사개요';
COMMENT ON COLUMN icgis.SWT_CNNT_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNNT_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNNT_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CNNT_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNNT_D.GTYPE IS '공사구분';
COMMENT ON COLUMN icgis.SWT_CNNT_D.CONST IS '공사내역';
COMMENT ON COLUMN icgis.SWT_CNNT_D.GLOBALID IS 'GLOBALID';


--공사대장

CREATE TABLE icgis.SWT_CNST_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(10)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, NAM		VARCHAR(100)	
	, LOC		VARCHAR(100)	
	, CSUM		NUMERIC(38,8)	
	, CDO		NUMERIC(38,8)	
	, CGONG		NUMERIC(38,8)	
	, CBUGA		NUMERIC(38,8)	
	, CKWAN		NUMERIC(38,8)	
	, CWASTE	NUMERIC(38,8)	
	, CETC		NUMERIC(38,8)	
	, CTYPE		VARCHAR(7)		
	, CONYMD	DATE			
	, PERIOD	NUMERIC(5)		
	, WSTART	DATE			
	, WSTOP		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)	
	, DSTATE	VARCHAR(20)	
	, DNAM		VARCHAR(20)	
	, CYMD		DATE			
	, CSTATE	VARCHAR(20)	
	, CNAM		VARCHAR(20)	
	, NOTE		VARCHAR(200)	
	, STATUS	VARCHAR(200)	
	, SNAM1		VARCHAR(20)	
	, SNAM2		VARCHAR(20)	
	, SNAM3		VARCHAR(20)	
	, CIDN1		VARCHAR(3)		
	, CIDN2		VARCHAR(3)		
	, GLOBALID	CHAR(38)		NOT NULL

);

ALTER TABLE icgis.SWT_CNST_D ADD CONSTRAINT SWT_CNST_D_PK PRIMARY KEY (MNGT, IDN);
COMMENT ON TABLE icgis.SWT_CNST_D IS '공사대장';
COMMENT ON COLUMN icgis.SWT_CNST_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNST_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNST_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNST_D.NAM IS '공사명';
COMMENT ON COLUMN icgis.SWT_CNST_D.LOC IS '공사위치';
COMMENT ON COLUMN icgis.SWT_CNST_D.CSUM IS '설계금액_총공사비';
COMMENT ON COLUMN icgis.SWT_CNST_D.CDO IS '설계금액_도급액';
COMMENT ON COLUMN icgis.SWT_CNST_D.CGONG IS '설계금액_공급가액';
COMMENT ON COLUMN icgis.SWT_CNST_D.CBUGA IS '설계금액_부가가치세';
COMMENT ON COLUMN icgis.SWT_CNST_D.CKWAN IS '설계금액_관급액';
COMMENT ON COLUMN icgis.SWT_CNST_D.CWASTE IS '설계금액_폐기물';
COMMENT ON COLUMN icgis.SWT_CNST_D.CETC IS '설계금액_기타';
COMMENT ON COLUMN icgis.SWT_CNST_D.CTYPE IS '계약방법';
COMMENT ON COLUMN icgis.SWT_CNST_D.CONYMD IS '계약일자';
COMMENT ON COLUMN icgis.SWT_CNST_D.PERIOD IS '계약내역_절대공기';
COMMENT ON COLUMN icgis.SWT_CNST_D.WSTART IS '계약내역_하자담보_시작일';
COMMENT ON COLUMN icgis.SWT_CNST_D.WSTOP IS '계약내역_하자담보_종료일';
COMMENT ON COLUMN icgis.SWT_CNST_D.WCOST IS '계약내역_하자담보_보증금';
COMMENT ON COLUMN icgis.SWT_CNST_D.JANG IS '지출과목';
COMMENT ON COLUMN icgis.SWT_CNST_D.KWAN IS '지출과목_관';
COMMENT ON COLUMN icgis.SWT_CNST_D.HANG IS '지출과목_항';
COMMENT ON COLUMN icgis.SWT_CNST_D.SHANG IS '지출과목_세항';
COMMENT ON COLUMN icgis.SWT_CNST_D.SSHANG IS '지출과목_세세항';
COMMENT ON COLUMN icgis.SWT_CNST_D.MOK IS '지출과목_목';
COMMENT ON COLUMN icgis.SWT_CNST_D.SUM IS '재원';
COMMENT ON COLUMN icgis.SWT_CNST_D.COUNTRY IS '재원_국비';
COMMENT ON COLUMN icgis.SWT_CNST_D.CITY IS '재원_시비';
COMMENT ON COLUMN icgis.SWT_CNST_D.DISTRICT IS '재원_구비';
COMMENT ON COLUMN icgis.SWT_CNST_D.REASSIG IS '재원_재배정';
COMMENT ON COLUMN icgis.SWT_CNST_D.LOAN IS '재원_기채';
COMMENT ON COLUMN icgis.SWT_CNST_D.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.SWT_CNST_D.DSTATE IS '공사감독_직명';
COMMENT ON COLUMN icgis.SWT_CNST_D.DNAM IS '공사감독_성명';
COMMENT ON COLUMN icgis.SWT_CNST_D.CYMD IS '변경공사감동_변경일';
COMMENT ON COLUMN icgis.SWT_CNST_D.CSTATE IS '변경공사감동_직명';
COMMENT ON COLUMN icgis.SWT_CNST_D.CNAM IS '변경공사감동_성명';
COMMENT ON COLUMN icgis.SWT_CNST_D.NOTE IS '기타';
COMMENT ON COLUMN icgis.SWT_CNST_D.STATUS IS '지장물현황';
COMMENT ON COLUMN icgis.SWT_CNST_D.SNAM1 IS '결재_담당자';
COMMENT ON COLUMN icgis.SWT_CNST_D.SNAM2 IS '결재_담당';
COMMENT ON COLUMN icgis.SWT_CNST_D.SNAM3 IS '결재_과장';
COMMENT ON COLUMN icgis.SWT_CNST_D.CIDN1 IS '도급자';
COMMENT ON COLUMN icgis.SWT_CNST_D.CIDN2 IS '공동도급자';
COMMENT ON COLUMN icgis.SWT_CNST_D.GLOBALID IS 'GLOBALID';


--공사비지급내역

CREATE TABLE icgis.SWT_CNPY_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(10)	NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, PTYPE		VARCHAR(7)		
	, YMD			DATE			
	, AMOUNT		NUMERIC(38,8)	
	, REMAIND		NUMERIC(38,8)	
	, GLOBALID	CHAR(38)		NOT NULL
	
);

ALTER TABLE icgis.SWT_CNPY_D ADD CONSTRAINT SWT_CNPY_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CNPY_D IS '공사비지급내역';
COMMENT ON COLUMN icgis.SWT_CNPY_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNPY_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNPY_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CNPY_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNPY_D.PTYPE IS '지급구분';
COMMENT ON COLUMN icgis.SWT_CNPY_D.YMD IS '지급일';
COMMENT ON COLUMN icgis.SWT_CNPY_D.AMOUNT IS '부분급금액';
COMMENT ON COLUMN icgis.SWT_CNPY_D.REMAIND IS '잔액';
COMMENT ON COLUMN icgis.SWT_CNPY_D.GLOBALID IS 'GLOBALID';


--공사업체대장

CREATE TABLE icgis.SWT_CNCM_D(
	IDN			VARCHAR(3)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, NAM		VARCHAR(40)	
	, CHIEF		VARCHAR(20)	
	, ZIP		VARCHAR(7)		
	, ADDR		VARCHAR(80)	
	, TEL		VARCHAR(15)	
	, FAX		VARCHAR(15)	
	, NOTE		VARCHAR(100)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.SWT_CNCM_D ADD CONSTRAINT SWT_CNCM_D_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.SWT_CNCM_D IS '공사업체대장';
COMMENT ON COLUMN icgis.SWT_CNCM_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_CNCM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNCM_D.NAM IS '업체명';
COMMENT ON COLUMN icgis.SWT_CNCM_D.CHIEF IS '대표자';
COMMENT ON COLUMN icgis.SWT_CNCM_D.ZIP IS '우편번호';
COMMENT ON COLUMN icgis.SWT_CNCM_D.ADDR IS '주소';
COMMENT ON COLUMN icgis.SWT_CNCM_D.TEL IS '대표전화';
COMMENT ON COLUMN icgis.SWT_CNCM_D.FAX IS '팩스번호';
COMMENT ON COLUMN icgis.SWT_CNCM_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_CNCM_D.GLOBALID IS 'GLOBALID';


--관거검사내역

CREATE TABLE icgis.SWT_TEST_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CYMD			DATE			
	, CIMG			VARCHAR(60)	
	, EYMD			DATE			
	, RSLT			VARCHAR(20)	
	, SYMD			DATE			
	, VALUE			NUMERIC(38,8)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL

);

ALTER TABLE icgis.SWT_TEST_D ADD CONSTRAINT SWT_TEST_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_TEST_D IS '관거검사내역';
COMMENT ON COLUMN icgis.SWT_TEST_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_TEST_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_TEST_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_TEST_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_TEST_D.CYMD IS 'CCTV검사일자';
COMMENT ON COLUMN icgis.SWT_TEST_D.CIMG IS 'CCTV검사화면';
COMMENT ON COLUMN icgis.SWT_TEST_D.EYMD IS '육안검사일자';
COMMENT ON COLUMN icgis.SWT_TEST_D.RSLT IS '육안검사결과';
COMMENT ON COLUMN icgis.SWT_TEST_D.SYMD IS '수밀검사일자';
COMMENT ON COLUMN icgis.SWT_TEST_D.VALUE IS '수밀검사측정값';
COMMENT ON COLUMN icgis.SWT_TEST_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_TEST_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_TEST_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_TEST_D.GLOBALID IS 'GLOBALID';


--관리자정보_배수문

CREATE TABLE icgis.SWT_SUMUNP_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			
	, GJNAM			VARCHAR(8)		
	, GBNAM			VARCHAR(8)		
	, DJNAM			VARCHAR(8)		
	, DBNAM			VARCHAR(8)		
	, NAM			VARCHAR(20)	
	, TEL			VARCHAR(20)	
	, CNAM			VARCHAR(20)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_SUMUNP_D ADD CONSTRAINT SWT_SUMUNP_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_SUMUNP_D IS '관리자정보_배수문';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.YMD IS '년월일';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.GJNAM IS '구청';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.GBNAM IS '동 정';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.DJNAM IS '동';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.DBNAM IS '동 부';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.NAM IS '관리';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.TEL IS '책임자';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.CNAM IS '확인자';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_SUMUNP_D.GLOBALID IS 'GLOBALID';


--관리자정보_하수펌프장

CREATE TABLE icgis.SWT_PUMPA_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			
	, GUMAIN		VARCHAR(16)	
	, GUSUB			VARCHAR(16)	
	, DMAIN			VARCHAR(16)	
	, DSUB			VARCHAR(16)	
	, NAM			VARCHAR(8)		
	, TEL1			VARCHAR(16)	
	, TEL2			VARCHAR(16)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_PUMPA_D ADD CONSTRAINT SWT_PUMPA_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_PUMPA_D IS '관리자정보_하수펌프장';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.YMD IS '임명일';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.GUMAIN IS '구청_정';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.GUSUB IS '구청_부';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.DMAIN IS '동_정';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.DSUB IS '동_부';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.NAM IS '근무자_성명';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.TEL1 IS '근무자_연락처1';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.TEL2 IS '근무자_연락처2';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_PUMPA_D.GLOBALID IS 'GLOBALID';


--관말

CREATE TABLE icgis.SWL_END_P(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, MNGT			VARCHAR(6)		
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, ANG			NUMERIC(5)		
	, TIDN			INTEGER			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.SWL_END_P ADD CONSTRAINT SWL_END_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.SWL_END_P IS '관말';
COMMENT ON COLUMN icgis.SWL_END_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_END_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_END_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_END_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_END_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_END_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_END_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_END_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_END_P.ANG IS '장애자램프경사도';
COMMENT ON COLUMN icgis.SWL_END_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_END_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_END_P.SHAPE IS 'SHAPE';


--년별현황

CREATE TABLE icgis.SWT_CHURIY_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YEAR			VARCHAR(4)		NOT NULL
	, INPUT			VARCHAR(30)	
	, OUTPUT		VARCHAR(30)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL

);

ALTER TABLE icgis.SWT_CHURIY_D ADD CONSTRAINT SWT_CHURIY_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CHURIY_D IS '년별현황';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.YEAR IS '측정년도';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.INPUT IS '채수';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.OUTPUT IS '지점';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHURIY_D.GLOBALID IS 'GLOBALID';


--단계별내역

CREATE TABLE icgis.SWT_PLANCHD_D(
	FTC			VARCHAR(6)			NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, STAGE			NUMERIC(5)		
	, CHIM			VARCHAR(40)	
	, CHIMN			VARCHAR(30)	
	, INP1			VARCHAR(40)	
	, INPN1			VARCHAR(30)	
	, INP2			VARCHAR(40)	
	, INPN2			VARCHAR(30)	
	, INP3			VARCHAR(40)	
	, INPN3			VARCHAR(30)	
	, INP4			VARCHAR(40)	
	, INPN4			VARCHAR(30)	
	, FCHIM			VARCHAR(40)	
	, FCHIMN		VARCHAR(30)	
	, JUN			VARCHAR(40)	
	, JUNN			VARCHAR(30)	
	, HUM			VARCHAR(40)	
	, HUMN			VARCHAR(30)	
	, MU			VARCHAR(40)	
	, MUN			VARCHAR(30)	
	, HO			VARCHAR(40)	
	, HON			VARCHAR(30)	
	, LCHIM			VARCHAR(40)	
	, LCHIMN		VARCHAR(30)	
	, SO			VARCHAR(40)	
	, SON			VARCHAR(30)	
	, JUNG			VARCHAR(40)	
	, JUNGN			VARCHAR(30)	
	, WON			VARCHAR(40)	
	, WONN			VARCHAR(30)	
	, TAL			VARCHAR(40)	
	, TALN			VARCHAR(30)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_PLANCHD_D ADD CONSTRAINT SWT_PLANCHD_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_PLANCHD_D IS '단계별내역';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.STAGE IS '처리단계';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.CHIM IS '침사지';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.CHIMN IS '참사지 비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.INP1 IS '유입펌프장_제1항_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.INPN1 IS '유입펌프장_제1항_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.INP2 IS '유입펌프장_제2항_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.INPN2 IS '유입펌프장_제2항_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.INP3 IS '유입펌프장_제3항_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.INPN3 IS '유입펌프장_제3항_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.INP4 IS '유입펌프장_제4항_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.INPN4 IS '유입펌프장_제4항_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.FCHIM IS '최초침전지_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.FCHIMN IS '최초침전지_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.JUN IS '생물반응조';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.JUNN IS '생물반응조_전무산소조_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.HUM IS '생물반응조_혐기조_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.HUMN IS '생물반응조_혐기조_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.MU IS '생물반응조_무산소조_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.MUN IS '생물반응조_무산소조_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.HO IS '생물반응조_호기조_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.HON IS '생물반응조_호기조_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.LCHIM IS '최종침전지_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.LCHIMN IS '최종침전지_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.SO IS '소독조_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.SON IS '소독조_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.JUNG IS '농축_중력농축_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.JUNGN IS '설비_중력농축_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.WON IS '설비_원심농축_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.WONN IS '설비_원심농축_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.TAL IS '탈수기_규격';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.TALN IS '탈수기_비고';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_PLANCHD_D.GLOBALID IS 'GLOBALID';


--물받이/집수정

CREATE TABLE icgis.SWL_SPOUT_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, SBD			VARCHAR(6)		
	, LBL			VARCHAR(50)	
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, CDIP			NUMERIC(5)		
	, CHOL			NUMERIC(38,8)	
	, CVEL			NUMERIC(38,8)	
	, CNUM			NUMERIC(5)		
	, COV			VARCHAR(6)		
	, SBC			VARCHAR(6)		
	, DIP			NUMERIC(5)		
	, HOL			NUMERIC(38,8)	
	, VEL			NUMERIC(38,8)	
	, DEP			NUMERIC(38,8)	
	, FORX			VARCHAR(6)		
	, MAT			VARCHAR(6)		
	, INVERT		VARCHAR(1)		
	, OKGUB			VARCHAR(1)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, PFTC			VARCHAR(5)		
	, PHJDCD		VARCHAR(8)		
	, PSEQ			VARCHAR(6)		
	, RDFTC			VARCHAR(5)		
	, RDGUCD		VARCHAR(8)		
	, RDSEQ			VARCHAR(6)		
	, RDID			VARCHAR(11)	
	, ANG			NUMERIC(5)		
	, TIDN			INTEGER			
	, SHT_NUM		VARCHAR(10)		
	, FOR_CDE		VARCHAR(6)		
	, SPT_DIP		NUMERIC(38,8)	
	, SPT_HOL		NUMERIC(38,8)	
	, SPT_VEL		NUMERIC(38,8)	
	, SPT_DEP		NUMERIC(38,8)	
	, MOP_CDE		VARCHAR(6)		
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.SWL_SPOUT_P ADD CONSTRAINT SWL_SPOUT_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_SPOUT_P IS '물받이/집수정';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SBD IS '용도';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.CDIP IS '뚜껑_구경';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.CHOL IS '뚜껑_가로';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.CVEL IS '뚜껑_세로';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.CNUM IS '뚜껑_개수';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.COV IS '뚜껑_형태';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SBC IS '뚜껑_재질';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.DIP IS '변실_구경';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.HOL IS '변실_가로';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.VEL IS '변실_세로';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.DEP IS '변실_깊이';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.FORX IS '변실_형태';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.MAT IS '변실_재질';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.INVERT IS '인버트유무';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.OKGUB IS '불량여부';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.PFTC IS '펌프장_지형지물부호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.PHJDCD IS '유출관등록구';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.PSEQ IS '유출관개별번호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.RDFTC IS '도로지형지물부호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.RDGUCD IS '도로등록구';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.RDSEQ IS '도로개체번호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.RDID IS '도로구간ID';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.ANG IS '장애자램프경사도';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SPT_DIP IS '원형물받이내경';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SPT_HOL IS '각형물받이가로길이';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SPT_VEL IS '각형물받이세로길이';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SPT_DEP IS '물받이깊이';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_SPOUT_P.SHAPE IS 'SHAPE';


--배수문

CREATE TABLE icgis.SWL_SUMUN_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, NAM			VARCHAR(40)	
	, ADDR			VARCHAR(40)	
	, TIME			VARCHAR(6)		
	, MNUM			NUMERIC(5)		
	, MSIZE			VARCHAR(8)		
	, STATUS		VARCHAR(10)	
	, KSIZE			VARCHAR(8)		
	, OTHER			VARCHAR(30)	
	, HANDLE		VARCHAR(20)	
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, GDUTY			VARCHAR(8)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, GLOBALID		CHAR(38)		
	, SHAPE			public.geometry	
	, RIVER1		INTEGER				NOT NULL
	, RIVER2		INTEGER				NOT NULL
	, RIVER3		INTEGER				NOT NULL

);
ALTER TABLE icgis.SWL_SUMUN_P ADD CONSTRAINT SWL_SUMUN_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_SUMUN_P IS '배수문';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.NAM IS '수문명';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.ADDR IS '위치_주소';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.TIME IS '수문개폐소요시간';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.MNUM IS '문비수';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.MSIZE IS '문비규격';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.STATUS IS '작동상태';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.KSIZE IS '구체규격';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.OTHER IS '기타';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.HANDLE IS '핸들보관장소';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.YMD IS '설치년도';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.GDUTY IS '관리책임자';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.RIVER1 IS '하천1';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.RIVER2 IS '하천2';
COMMENT ON COLUMN icgis.SWL_SUMUN_P.RIVER3 IS '하천3';


--부과내역

CREATE TABLE icgis.SWT_CHARGEB_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, YEAR			VARCHAR(4)		NOT NULL	
	, NUM			NUMERIC(5)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CYMD			DATE			NOT NULL
	, CAMT			NUMERIC(38,8)	NOT NULL
	, HKAN			VARCHAR(20)	
	, HHAN			VARCHAR(30)	
	, HMOK			VARCHAR(30)	
	, RYMD			DATE			
	, PYMD			DATE			
	, PNUM			VARCHAR(10)	
	, TERM			VARCHAR(50)	
	, TGUB			VARCHAR(6)		
	, AYMD			DATE			
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, JAMT			NUMERIC(38,8)	
	, KAMT			NUMERIC(38,8)	
	, AAMT			NUMERIC(38,8)	

);
ALTER TABLE icgis.SWT_CHARGEB_D ADD CONSTRAINT SWT_CHARGEB_D_PK PRIMARY KEY (MNGT, YEAR, NUM, SEQ);
COMMENT ON TABLE icgis.SWT_CHARGEB_D IS '부과내역';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.MNGT IS '접수기관';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.YEAR IS '접수년도';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.NUM IS '접수번호';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.CYMD IS '부과일';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.CAMT IS '부과액_총액';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.HKAN IS '회계구분_관';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.HHAN IS '회계구분_항';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.HMOK IS '회계구분_목';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.RYMD IS '징수부등기일';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.PYMD IS '고지서_출력일자';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.PNUM IS '고지서_번호';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.TERM IS '납부기한';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.TGUB IS '처리구분';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.AYMD IS '납부일';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.JAMT IS '부과액_징수액';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.KAMT IS '부과액_가산금';
COMMENT ON COLUMN icgis.SWT_CHARGEB_D.AAMT IS '수납액';


--상세설계변경내역
--예악어 DO 주석처리

CREATE TABLE icgis.SWT_CNDH_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
	, YMD		DATE			
	, DTYPE		VARCHAR(7)		
	, SUM		NUMERIC(38,8)	
--	, DO		NUMERIC(38,8)	
	, KWAN		NUMERIC(38,8)	
	, WAST		NUMERIC(38,8)	
	, GLOBALID	CHAR(38)		NOT NULL
);
ALTER TABLE icgis.SWT_CNDH_D ADD CONSTRAINT SWT_CNDH_D_PK PRIMARY KEY (MNGT, IDN, SEQ, SNO);
COMMENT ON TABLE icgis.SWT_CNDH_D IS '상세설계변경내역';
COMMENT ON COLUMN icgis.SWT_CNDH_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNDH_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNDH_D.SEQ IS '설계변경일련번호';
COMMENT ON COLUMN icgis.SWT_CNDH_D.SNO IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CNDH_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNDH_D.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.SWT_CNDH_D.DTYPE IS '구분';
COMMENT ON COLUMN icgis.SWT_CNDH_D.SUM IS '계';
--COMMENT ON COLUMN icgis.SWT_CNDH_D.DO IS '도급';
COMMENT ON COLUMN icgis.SWT_CNDH_D.KWAN IS '관급';
COMMENT ON COLUMN icgis.SWT_CNDH_D.WAST IS '폐기물';
COMMENT ON COLUMN icgis.SWT_CNDH_D.GLOBALID IS 'GLOBALID';


--설계변경내역

CREATE TABLE icgis.SWT_CNCH_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(10)		NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, YMD		DATE			
	, CAUSE		VARCHAR(1000)	
	, GLOBALID	CHAR(38)		NOT NULL

);

ALTER TABLE icgis.SWT_CNCH_D ADD CONSTRAINT SWT_CNCH_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CNCH_D IS '설계변경내역';
COMMENT ON COLUMN icgis.SWT_CNCH_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNCH_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNCH_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CNCH_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNCH_D.YMD IS '변경일';
COMMENT ON COLUMN icgis.SWT_CNCH_D.CAUSE IS '설계변경사유';
COMMENT ON COLUMN icgis.SWT_CNCH_D.GLOBALID IS 'GLOBALID';


--시설보수내역_하수

CREATE TABLE icgis.SWT_BOSU_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			
	, GTYPE			VARCHAR(7)		
	, CAUSE			VARCHAR(100)	
	, RCONT			VARCHAR(100)	
	, NOTE			VARCHAR(100)	
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_BOSU_D ADD CONSTRAINT SWT_BOSU_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_BOSU_D IS '시설보수내역_하수';
COMMENT ON COLUMN icgis.SWT_BOSU_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_BOSU_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_BOSU_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_BOSU_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_BOSU_D.YMD IS '보수일자';
COMMENT ON COLUMN icgis.SWT_BOSU_D.GTYPE IS '이력구분';
COMMENT ON COLUMN icgis.SWT_BOSU_D.CAUSE IS '공사원인';
COMMENT ON COLUMN icgis.SWT_BOSU_D.RCONT IS '보수내역';
COMMENT ON COLUMN icgis.SWT_BOSU_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_BOSU_D.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.SWT_BOSU_D.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWT_BOSU_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_BOSU_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_BOSU_D.GLOBALID IS 'GLOBALID';


--역사이펀

CREATE TABLE icgis.SWL_RSPH_P(
	FTC			VARCHAR(6)			NOT NULL	
	, FTR_IDN	INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, HJD_CDE	VARCHAR(10)			NOT NULL
	, SHT_NUM	VARCHAR(10)			NOT NULL
	, MNG_CDE	VARCHAR(7)			NOT NULL
	, IST_YMD	INTEGER				
	, SBA_CDE	VARCHAR(6)			NOT NULL
	, FOR_CDE	VARCHAR(6)			NOT NULL
	, MOP_CDE	VARCHAR(6)			NOT NULL
	, SPH_DIP	NUMERIC(38,8)	
	, STD_HOL	NUMERIC(38,8)	
	, STD_VEL	NUMERIC(38,8)	
	, SPH_LEN	NUMERIC(38,8)	
	, SPH_HSL	NUMERIC(38,8)	
	, SPH_LIN	INTEGER			
	, STD_SLP	NUMERIC(38,8)	
	, CNT_NUM	VARCHAR(50)	
	, SYS_CHK	VARCHAR(1)			NOT NULL
	, ANG_DIR	INTEGER				NOT NULL
	, SGG_CDE	VARCHAR(5)			NOT NULL
	, GLOBALID	CHAR(38)			NOT NULL
	, SHAPE		public.geometry		

);
ALTER TABLE icgis.SWL_RSPH_P ADD CONSTRAINT SWL_RSPH_P_PK PRIMARY KEY (FTC, FTR_IDN);
COMMENT ON TABLE icgis.SWL_RSPH_P IS '역사이펀';
COMMENT ON COLUMN icgis.SWL_RSPH_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_RSPH_P.FTR_IDN IS '기준점ID';
COMMENT ON COLUMN icgis.SWL_RSPH_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_RSPH_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_RSPH_P.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.SWL_RSPH_P.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SBA_CDE IS '하수관용도';
COMMENT ON COLUMN icgis.SWL_RSPH_P.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.SWL_RSPH_P.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SPH_DIP IS '원형관구경';
COMMENT ON COLUMN icgis.SWL_RSPH_P.STD_HOL IS '가로길이';
COMMENT ON COLUMN icgis.SWL_RSPH_P.STD_VEL IS '세로길이';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SPH_LEN IS '구체_연장';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SPH_HSL IS '역사이펀관저고';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.SWL_RSPH_P.STD_SLP IS '경사';
COMMENT ON COLUMN icgis.SWL_RSPH_P.CNT_NUM IS '공사번호';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_RSPH_P.ANG_DIR IS '방향각';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.SWL_RSPH_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_RSPH_P.SHAPE IS 'SHAPE';


--연계처리수현황

CREATE TABLE icgis.SWT_CHURIW_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YEAR			VARCHAR(4)		NOT NULL
	, CPYE			VARCHAR(10)
	, CBUN			VARCHAR(10)
	, CCHIM			VARCHAR(10)
	, CNOTE			VARCHAR(10)
	, BOPYE			INTEGER		
	, BOBUN			INTEGER		
	, BOCHIM		INTEGER		
	, BONOTE		INTEGER		
	, SSPYE			INTEGER		
	, SSBUN			INTEGER		
	, SSCHIM		INTEGER		
	, SSNOTE		INTEGER		
	, IPYE			INTEGER		
	, IBUN			INTEGER		
	, ICHIM			INTEGER		
	, INOTE			INTEGER		
	, LPYE			VARCHAR(10)
	, LBUN			VARCHAR(10)
	, LCHIM			VARCHAR(10)
	, LNOTE			VARCHAR(10)
	, PPYE			VARCHAR(10)
	, PBUN			VARCHAR(10)
	, PCHIM			VARCHAR(10)
	, PNOTE			VARCHAR(10)
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.SWT_CHURIW_D ADD CONSTRAINT SWT_CHURIW_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CHURIW_D IS '연계처리수현황';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.YEAR IS '측정년도';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.CPYE IS '처리방법_축산폐수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.CBUN IS '처리방법_분뇨';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.CCHIM IS '처리방법_침출수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.CNOTE IS '처리방법_비고';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.BOPYE IS '유입수농도BOD';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.BOBUN IS '유입수농도BOD_분뇨';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.BOCHIM IS '유입수농도BOD_침출수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.BONOTE IS '유입수농도BOD_비고';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.SSPYE IS '유입수농도SS_축산폐수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.SSBUN IS '유입수농도SS_분뇨';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.SSCHIM IS '유입수농도SS_침출수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.SSNOTE IS '유입수농도SS_비고';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.IPYE IS '유입량';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.IBUN IS '유입량_분뇨';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.ICHIM IS '유입량_침출수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.INOTE IS '유입량_비고';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.LPYE IS '유입지점_축산폐수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.LBUN IS '유입지점_분뇨';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.LCHIM IS '유입지점_침출수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.LNOTE IS '유입지점_비고';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.PPYE IS '유입주기_축산폐수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.PBUN IS '유입주기_분뇨';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.PCHIM IS '유입주기_침출수';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.PNOTE IS '유입주기_비고';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHURIW_D.GLOBALID IS 'GLOBALID';


--연별내역

CREATE TABLE icgis.SWT_PLANCHA_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YEAR			VARCHAR(4)		
	, POP			INTEGER			
	, ARA			INTEGER			
	, AQUAN			INTEGER			
	, DQUAN			INTEGER			
	, HQUAN			INTEGER			
	, AMO			INTEGER			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.SWT_PLANCHA_D ADD CONSTRAINT SWT_PLANCHA_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_PLANCHA_D IS '연별내역';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.YEAR IS '구분년도';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.POP IS '처리인구';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.ARA IS '처리면적';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.AQUAN IS '하수량_일평균';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.DQUAN IS '하수량_일최대';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.HQUAN IS '하수량_시간최대';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.AMO IS '시설용량';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_PLANCHA_D.GLOBALID IS 'GLOBALID';


--오수량산출내역

CREATE TABLE icgis.SWT_CHARGEO_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, YEAR			VARCHAR(4)		NOT NULL	
	, NUM			NUMERIC(5)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUB			VARCHAR(20)	
	, USE			VARCHAR(25)	
	, ARA			NUMERIC(38,8)	
	, CALC			VARCHAR(200)	
	, OBJ			VARCHAR(100)	
	, UVOL			VARCHAR(20)	
	, VOL			NUMERIC(38,8)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL

);
ALTER TABLE icgis.SWT_CHARGEO_D ADD CONSTRAINT SWT_CHARGEO_D_PK PRIMARY KEY (MNGT, YEAR, NUM, SEQ);
COMMENT ON TABLE icgis.SWT_CHARGEO_D IS '오수량산출내역';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.MNGT IS '접수기관';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.YEAR IS '접수년도';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.NUM IS '접수번호';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.GUB IS '구분';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.USE IS '용도';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.ARA IS '면적';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.CALC IS '산출근거';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.OBJ IS '처리대상';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.UVOL IS '단위오수량';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.VOL IS '오수량';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHARGEO_D.GLOBALID IS 'GLOBALID';


--우수토실

CREATE TABLE icgis.SWL_TOSIL_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DCD			VARCHAR(10)
	, GUCD			VARCHAR(5)	
	, SBD			VARCHAR(6)	
	, LBL			VARCHAR(50)
	, MNGT			VARCHAR(6)	
	, YMD			DATE		
	, RNAM			VARCHAR(20)
	, CDIP			NUMERIC(5)	
	, CHOL			NUMERIC(38,8)
	, CVEL			NUMERIC(38,8)
	, CNUM			NUMERIC(5)	
	, COV			VARCHAR(6)	
	, SBC			VARCHAR(6)	
	, DIP			NUMERIC(5)	
	, HOL			NUMERIC(38,8)
	, VEL			NUMERIC(38,8)
	, DEP			NUMERIC(38,8)
	, FORX			VARCHAR(6)	
	, MAT			VARCHAR(6)	
	, INVERT		VARCHAR(1)	
	, OKGUB			VARCHAR(1)	
	, CIDN			VARCHAR(10)
	, CMNGT			VARCHAR(6)	
	, NOTE			VARCHAR(100) 
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, PFTC			VARCHAR(5)	
	, PHJDCD		VARCHAR(8)	
	, PSEQ			VARCHAR(6)	
	, RDFTC			VARCHAR(5)	
	, RDGUCD		VARCHAR(8)	
	, RDSEQ			VARCHAR(6)	
	, RDID			VARCHAR(11)
	, ANG			NUMERIC(5)	
	, TIDN			INTEGER		
	, SHT_NUM		VARCHAR(10)
	, FOR_CDE		VARCHAR(6)	
	, WOL_HIT		NUMERIC(38,8)
	, MAH_CDE		VARCHAR(6)	
	, HMN_CDE		VARCHAR(5)	
	, HMN_IDN		NUMERIC(38,8)
	, SYS_CHK		VARCHAR(1)	
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry		
);

ALTER TABLE icgis.SWL_TOSIL_P ADD CONSTRAINT SWL_TOSIL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_TOSIL_P IS '우수토실';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.SBD IS '용도';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.RNAM IS '방류수역명';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.CDIP IS '뚜껑_구경';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.CHOL IS '뚜껑_가로';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.CVEL IS '뚜껑_세로';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.CNUM IS '뚜껑_개수';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.COV IS '뚜껑_형태';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.SBC IS '뚜껑_재질';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.DIP IS '변실_구경';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.HOL IS '변실_가로';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.VEL IS '변실_세로';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.DEP IS '변실_깊이';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.FORX IS '변실_형태';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.MAT IS '변실_재질';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.INVERT IS '인버트유무';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.OKGUB IS '불량여부';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.PFTC IS '펌프장_지형지물부호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.PHJDCD IS '유출관등록구';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.PSEQ IS '유출관개별번호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.RDFTC IS '도로지형지물부호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.RDGUCD IS '도로등록구';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.RDSEQ IS '도로개체번호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.RDID IS '도로구간ID';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.ANG IS '장애자램프경사도';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.WOL_HIT IS '월류턱높이';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.MAH_CDE IS '맨홀존재여부';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.HMN_CDE IS '하수맨홀지형지물부호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.HMN_IDN IS '하수맨홀관리번호';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_TOSIL_P.SHAPE IS 'SHAPE';


--원인자부담금대장

CREATE TABLE icgis.SWT_CHARGE_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, YEAR			VARCHAR(4)		NOT NULL	
	, NUM			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, HYMD			DATE			
	, GGUB			VARCHAR(6)		
	, MNAM			VARCHAR(100)	NOT NULL
	, MNUM			VARCHAR(50)	
	, MBCD			VARCHAR(10)	
	, MSAN			VARCHAR(1)		
	, MBON			VARCHAR(4)		
	, MBU			VARCHAR(4)		
	, BUSE			VARCHAR(100)	
	, BBCD			VARCHAR(10)	
	, BSAN			VARCHAR(1)		
	, BBON			VARCHAR(4)		
	, BBU			VARCHAR(4)		
	, BNOTE			VARCHAR(50)	
	, BARA			NUMERIC(38,8)	
	, SVOL			NUMERIC(38,8)	NOT NULL	
	, SCST			NUMERIC(38,8)	
	, CAMT			NUMERIC(38,8)	NOT NULL	
	, PAMT			NUMERIC(38,8)	
	, DLVM			VARCHAR(6)		
	, DLVN			NUMERIC(5)		
	, NOTE			VARCHAR(200)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, MADDR			VARCHAR(100)	
	, BADDR			VARCHAR(100)	
	, BVOL			NUMERIC(38,8)	
	, GLOBALID		CHAR(38)		NOT NULL

);

ALTER TABLE icgis.SWT_CHARGE_D ADD CONSTRAINT SWT_CHARGE_D_PK PRIMARY KEY (MNGT, YEAR, NUM);
COMMENT ON TABLE icgis.SWT_CHARGE_D IS '원인자부담금대장';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.MNGT IS '접수기관';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.YEAR IS '접수년도';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.NUM IS '접수번호';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.HYMD IS '협의일자';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.GGUB IS '건축구분';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.MNAM IS '납세의무자_성명';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.MNUM IS '납세의무자_주민등록번호';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.MBCD IS '납세의무자_주소_법정동코드';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.MSAN IS '납세의무자_주소_산구분';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.MBON IS '납세의무자_주소_본번';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.MBU IS '납세의무자_주소_부번';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BUSE IS '건축물현황_용도';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BBCD IS '건축물현황_위치_법정동코드';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BSAN IS '건축물현황_위치_산구분';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BBON IS '건축물현황_위치_본번';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BBU IS '건축물현황_위치_부번';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BNOTE IS '건축물현황_위치_기타';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BARA IS '건축물현황_연면적';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.SVOL IS 'SVOL';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.SCST IS '오수정화시설공사비';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.CAMT IS '원인자부담금_하수종말처리시설';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.PAMT IS '원인자부담금_하수관거';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.DLVM IS '납부방법';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.DLVN IS '분납횟수';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.MADDR IS '납세의무자_주소';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BADDR IS '건축물현황_주소';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.BVOL IS '오수발생량';
COMMENT ON COLUMN icgis.SWT_CHARGE_D.GLOBALID IS 'GLOBALID';


--월별현황

CREATE TABLE icgis.SWT_CHURIM_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, TIME			VARCHAR(6)		NOT NULL
	, HDC			INTEGER			
	, IBOD			INTEGER			
	, ICOD			INTEGER			
	, ISS			INTEGER			
	, ITN			INTEGER			
	, ITP			NUMERIC(38,8)	
	, OBOD			INTEGER			
	, OCOD			INTEGER			
	, OSS			INTEGER			
	, OTN			INTEGER			
	, OTP			NUMERIC(38,8)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_CHURIM_D ADD CONSTRAINT SWT_CHURIM_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CHURIM_D IS '월별현황';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.TIME IS '측정월';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.HDC IS '하수처리량';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.IBOD IS '유입수질_BOD';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.ICOD IS '유입수질_COD';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.ISS IS '유입수질_SS';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.ITN IS '유입수질_T-N';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.ITP IS '유입수질_T-P';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.OBOD IS '방류수질_BOD';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.OCOD IS '방류수질_COD';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.OSS IS '방류수질_SS';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.OTN IS '방류수질_T-N';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.OTP IS '방류수질_T-P';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHURIM_D.GLOBALID IS 'GLOBALID';


--유수지

CREATE TABLE icgis.SWL_RESV_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, NAM			VARCHAR(20)	
	, YMD			DATE			
	, MNGT			VARCHAR(6)		
	, ARA			NUMERIC(38,8)	
	, WAL			NUMERIC(5)		
	, AMO			NUMERIC(38,8)	
	, SBS			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, SHT_NUM		VARCHAR(10)	
	, LOW_WAL		NUMERIC(38,8)	
	, HGH_WAL		NUMERIC(38,8)	
	, PRN_WAL		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, ANG_DIR		INTEGER			
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry	
	, PFTC			VARCHAR(6)		NOT NULL
	, PIDN			INTEGER			NOT NULL

);

ALTER TABLE icgis.SWL_RESV_P ADD CONSTRAINT SWL_RESV_P_PK PRIMARY KEY (FTC, IDN, OBJECTID);
COMMENT ON TABLE icgis.SWL_RESV_P IS '유수지';
COMMENT ON COLUMN icgis.SWL_RESV_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_RESV_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_RESV_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_RESV_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_RESV_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_RESV_P.NAM IS '유수지명칭';
COMMENT ON COLUMN icgis.SWL_RESV_P.YMD IS '설치년월일';
COMMENT ON COLUMN icgis.SWL_RESV_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_RESV_P.ARA IS '유수지면적';
COMMENT ON COLUMN icgis.SWL_RESV_P.WAL IS '수위';
COMMENT ON COLUMN icgis.SWL_RESV_P.AMO IS '저수용량';
COMMENT ON COLUMN icgis.SWL_RESV_P.SBS IS '유수지형태';
COMMENT ON COLUMN icgis.SWL_RESV_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_RESV_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_RESV_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_RESV_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_RESV_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_RESV_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_RESV_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_RESV_P.LOW_WAL IS '최저수위';
COMMENT ON COLUMN icgis.SWL_RESV_P.HGH_WAL IS '최고수위';
COMMENT ON COLUMN icgis.SWL_RESV_P.PRN_WAL IS '계획홍수위';
COMMENT ON COLUMN icgis.SWL_RESV_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_RESV_P.ANG_DIR IS '방향각';
COMMENT ON COLUMN icgis.SWL_RESV_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_RESV_P.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.SWL_RESV_P.PFTC IS '펌프장_지형지물부호';
COMMENT ON COLUMN icgis.SWL_RESV_P.PIDN IS '펌프장_개별번호';


--장비투입구

CREATE TABLE icgis.SWL_MHOLE_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, CHOL			NUMERIC(38,8)	
	, CVEL			NUMERIC(38,8)	
	, LOC			VARCHAR(50)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
);

ALTER TABLE icgis.SWL_MHOLE_P ADD CONSTRAINT SWL_MHOLE_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_MHOLE_P IS '장비투입구';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.CHOL IS '뚜껑_가로';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.CVEL IS '뚜껑_세로';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.LOC IS '위치';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_MHOLE_P.SHAPE IS 'SHAPE';


--준공검사내역

CREATE TABLE icgis.SWT_CNEM_D(
	MNGT	VARCHAR(6)			NOT NULL	
	, IDN	VARCHAR(10)			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)
	, GLOBALID	CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_CNEM_D ADD CONSTRAINT SWT_CNEM_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CNEM_D IS '준공검사내역';
COMMENT ON COLUMN icgis.SWT_CNEM_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNEM_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNEM_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CNEM_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNEM_D.ETYPE IS '검사구분';
COMMENT ON COLUMN icgis.SWT_CNEM_D.YMD IS '검사일';
COMMENT ON COLUMN icgis.SWT_CNEM_D.STATE IS '검사자_직명';
COMMENT ON COLUMN icgis.SWT_CNEM_D.NAM IS '검사자_성명';
COMMENT ON COLUMN icgis.SWT_CNEM_D.PRESENCE IS '입회자';
COMMENT ON COLUMN icgis.SWT_CNEM_D.GLOBALID IS 'GLOBALID';


--처리비용현황

CREATE TABLE icgis.SWT_CHURIC_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YEAR			VARCHAR(4)		
	, ELECU			NUMERIC(38,8)	
	, MEDIU			NUMERIC(38,8)	
	, LABU			NUMERIC(38,8)	
	, MENDU			NUMERIC(38,8)	
	, SLUGU			NUMERIC(38,8)	
	, OTHERU		NUMERIC(38,8)	
	, ELEC			INTEGER			
	, MEDI			INTEGER			
	, LAB			INTEGER			
	, MEND			INTEGER			
	, SLUG			INTEGER			
	, OTHER			INTEGER			
	, PUB			INTEGER			
	, PUBD			VARCHAR(80)	
	, BIZ			INTEGER			
	, BIZD			VARCHAR(80)	
	, PR			INTEGER			
	, PRD			VARCHAR(80)	
	, OFEE			INTEGER			
	, OFEED			VARCHAR(80)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_CHURIC_D ADD CONSTRAINT SWT_CHURIC_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CHURIC_D IS '처리비용현황';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.YEAR IS '측정년도';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.ELECU IS '처리단가';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.MEDIU IS '처리단가_약품비단가';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.LABU IS '처리단가_인건비단가';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.MENDU IS '처리단가_개보수비단가';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.SLUGU IS '처리단가_슬러지처리단가';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.OTHERU IS '처리단가_기타단가';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.ELEC IS '처리금액';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.MEDI IS '처리금액_약품비';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.LAB IS '처리금액_인건비';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.MEND IS '처리금액_개보수비';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.SLUG IS '처리금액_슬러지';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.OTHER IS '처리금액_기타';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.PUB IS '기타항목';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.PUBD IS '기타항목_공공요금';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.BIZ IS '기타항목_업무추진비';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.BIZD IS '기타항목_업무추진비내역';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.PR IS '기타항목_홍보비용';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.PRD IS '기타항목_홍보비용내역';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.OFEE IS '기타항목_기타요금';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.OFEED IS '기타항목_기타요금내역';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHURIC_D.GLOBALID IS 'GLOBALID';


--처리시설대장

CREATE TABLE icgis.SWT_CHURIF_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, LCLS			VARCHAR(6)		NOT NULL
	, SCLS			VARCHAR(6)		
	, FORF			VARCHAR(30)	
	, STD			VARCHAR(50)	
	, AVAIL			VARCHAR(50)	
	, YMD			DATE			
	, SYMD			DATE			
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_CHURIF_D ADD CONSTRAINT SWT_CHURIF_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CHURIF_D IS '처리시설대장';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.LCLS IS '대분류';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.SCLS IS '소분류';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.FORF IS '구조또는형식';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.STD IS '규격';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.AVAIL IS '능력또는용량';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.YMD IS '완공년월일';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.SYMD IS '운전개시년월일';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHURIF_D.GLOBALID IS 'GLOBALID';


--측구

CREATE TABLE icgis.SWL_SIDE_L(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, AEG			VARCHAR(6)		
	, LENG			NUMERIC(38,8)	
	, WID			INTEGER			
	, HIT			INTEGER			
	, OKGUB			VARCHAR(1)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, RDFTC			VARCHAR(5)		
	, RDGUCD		VARCHAR(8)		
	, RDSEQ			VARCHAR(6)		
	, RDID			VARCHAR(11)	
	, TIDN			INTEGER			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);

ALTER TABLE icgis.SWL_SIDE_L ADD CONSTRAINT SWL_SIDE_L_PK PRIMARY KEY (FTC, IDN, OBJECTID);
COMMENT ON TABLE icgis.SWL_SIDE_L IS '측구';
COMMENT ON COLUMN icgis.SWL_SIDE_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_SIDE_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_SIDE_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_SIDE_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_SIDE_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_SIDE_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_SIDE_L.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_SIDE_L.AEG IS '측구종류';
COMMENT ON COLUMN icgis.SWL_SIDE_L.LENG IS '연장';
COMMENT ON COLUMN icgis.SWL_SIDE_L.WID IS '폭';
COMMENT ON COLUMN icgis.SWL_SIDE_L.HIT IS '높이';
COMMENT ON COLUMN icgis.SWL_SIDE_L.OKGUB IS '불량여부';
COMMENT ON COLUMN icgis.SWL_SIDE_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_SIDE_L.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_SIDE_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_SIDE_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_SIDE_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_SIDE_L.RDFTC IS '도로지형지물부호';
COMMENT ON COLUMN icgis.SWL_SIDE_L.RDGUCD IS '도로등록구';
COMMENT ON COLUMN icgis.SWL_SIDE_L.RDSEQ IS '도로개체번호';
COMMENT ON COLUMN icgis.SWL_SIDE_L.RDID IS '도로구간ID';
COMMENT ON COLUMN icgis.SWL_SIDE_L.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_SIDE_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_SIDE_L.SHAPE IS 'SHAPE';


--침수피해지역

CREATE TABLE icgis.SWL_FLOOD_A(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, SYMD			DATE			
	, LOC			VARCHAR(100)	
	, FQCY			VARCHAR(30)	
	, CONT			VARCHAR(30)	
	, HOUSE			NUMERIC(5)		
	, COST			NUMERIC(38,8)	
	, AMOUNT		INTEGER			
	, WHY			VARCHAR(100)	
	, RSLT			VARCHAR(100)	
	, NOTE			VARCHAR(30)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);

ALTER TABLE icgis.SWL_FLOOD_A ADD CONSTRAINT SWL_FLOOD_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.SWL_FLOOD_A IS '침수피해지역';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.SYMD IS '침수시기';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.LOC IS '침수지역';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.FQCY IS '발생빈도';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.CONT IS '침수내용';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.HOUSE IS '세대수';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.COST IS '침수피해액';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.AMOUNT IS '강우량';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.WHY IS '침수원인';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.RSLT IS '추진실적';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_FLOOD_A.SHAPE IS 'SHAPE';


--탈수슬러지현황

CREATE TABLE icgis.SWT_CHURIS_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YEAR			VARCHAR(4)		NOT NULL
	, SGEN			NUMERIC(38,8)
	, SHDC			NUMERIC(38,8)
	, SCOST			INTEGER		
	, SOTHER		INTEGER		
	, UGEN			NUMERIC(38,8)
	, UHDC			NUMERIC(38,8)
	, UCOST			INTEGER		
	, UOTHER		INTEGER		
	, HGEN			NUMERIC(38,8)
	, HHDC			NUMERIC(38,8)
	, HCOST			INTEGER		
	, HOTHER		INTEGER		
	, JGEN			NUMERIC(38,8)
	, JHDC			NUMERIC(38,8)
	, JCOST			INTEGER		
	, JOTHER		INTEGER		
	, OGEN			NUMERIC(38,8)
	, OHDC			NUMERIC(38,8)
	, OCOST			INTEGER		
	, OOTHER		INTEGER		
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.SWT_CHURIS_D ADD CONSTRAINT SWT_CHURIS_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CHURIS_D IS '탈수슬러지현황';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.YEAR IS '측정년도';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.SGEN IS '소각_연간발생량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.SHDC IS '소각_연간처리량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.SCOST IS '소각_연간처리비용';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.SOTHER IS '소각_기타';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.UGEN IS '육상_연간발생량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.UHDC IS '육상_연간처리량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.UCOST IS '육상_연간처리비용';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.UOTHER IS '육상_기타';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.HGEN IS '해양투기';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.HHDC IS '해양투기_연간처리량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.HCOST IS '해양투기_연간처리비용';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.HOTHER IS '해양투기_기타';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.JGEN IS '재이용_연간발생량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.JHDC IS '재이용_연간처리량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.JCOST IS '재이용_연간처리비용';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.JOTHER IS '재이용_기타';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.OGEN IS '기타_연간발생량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.OHDC IS '기타_연간처리량';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.OCOST IS '기타_연간처리비용';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.OOTHER IS '기타_기타';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHURIS_D.GLOBALID IS 'GLOBALID';


--토구

CREATE TABLE icgis.SWL_TOGU_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, LBL			VARCHAR(50)	
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, FORX			VARCHAR(6)		
	, DIP			NUMERIC(5)		
	, HOL			NUMERIC(38,8)	
	, VEL			NUMERIC(38,8)	
	, MAT			VARCHAR(6)		
	, PLOL			NUMERIC(38,8)	
	, RNAM			VARCHAR(20)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, ANG			NUMERIC(5)		
	, TIDN			INTEGER			
	, SHT_NUM		VARCHAR(10)	
	, VMT_CDE		VARCHAR(6)		
	, SPW_HSL		NUMERIC(38,8)	
	, SPW_WAL		NUMERIC(38,8)	
	, DRA_CDE		VARCHAR(5)		
	, DRA_IDN		NUMERIC(38,8)	
	, DSP_CDE		VARCHAR(5)		
	, DSP_IDN		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
);

ALTER TABLE icgis.SWL_TOGU_P ADD CONSTRAINT SWL_TOGU_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_TOGU_P IS '토구';
COMMENT ON COLUMN icgis.SWL_TOGU_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_TOGU_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_TOGU_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_TOGU_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.SWL_TOGU_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_TOGU_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_TOGU_P.FORX IS '구조물형태';
COMMENT ON COLUMN icgis.SWL_TOGU_P.DIP IS '구경';
COMMENT ON COLUMN icgis.SWL_TOGU_P.HOL IS '가로';
COMMENT ON COLUMN icgis.SWL_TOGU_P.VEL IS '세로';
COMMENT ON COLUMN icgis.SWL_TOGU_P.MAT IS '재질';
COMMENT ON COLUMN icgis.SWL_TOGU_P.PLOL IS '계획방류량';
COMMENT ON COLUMN icgis.SWL_TOGU_P.RNAM IS '방류천명칭';
COMMENT ON COLUMN icgis.SWL_TOGU_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_TOGU_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_TOGU_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_TOGU_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_TOGU_P.ANG IS '장애자램프경사도';
COMMENT ON COLUMN icgis.SWL_TOGU_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.VMT_CDE IS '토구용도';
COMMENT ON COLUMN icgis.SWL_TOGU_P.SPW_HSL IS '토구표고';
COMMENT ON COLUMN icgis.SWL_TOGU_P.SPW_WAL IS '평균수위';
COMMENT ON COLUMN icgis.SWL_TOGU_P.DRA_CDE IS '배수구역지형지물부호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.DRA_IDN IS '배수구역관리번호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.DSP_CDE IS '처리구역지형지물부호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.DSP_IDN IS '처리구역관리번호';
COMMENT ON COLUMN icgis.SWL_TOGU_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_TOGU_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_TOGU_P.SHAPE IS 'SHAPE';


--펌프시설대장

CREATE TABLE icgis.SWT_PUMPF_D(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, CLS			VARCHAR(6)		
	, SIZ			INTEGER			
	, AVAIL			NUMERIC(38,8)	
	, QUANT			INTEGER			
	, AUTO			VARCHAR(4)		
	, EMERG			VARCHAR(10)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.SWT_PUMPF_D ADD CONSTRAINT SWT_PUMPF_D_PK PRIMARY KEY (FTC, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_PUMPF_D IS '펌프시설대장';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.CLS IS '분류';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.SIZ IS '규격';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.AVAIL IS '성능';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.QUANT IS '대수';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.AUTO IS '자동상태';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.EMERG IS '비상발전기';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_PUMPF_D.GLOBALID IS 'GLOBALID';


--하수관거

CREATE TABLE icgis.SWL_PIPE_L(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, FOP			VARCHAR(6)		
	, SBA			VARCHAR(6)		
	, CCTV			VARCHAR(1)		
	, LBL			VARCHAR(100)	
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, FORX			VARCHAR(6)		
	, MOP			VARCHAR(6)		
	, DIP			NUMERIC(5)		
	, HOL			NUMERIC(38,8)	
	, VEL			NUMERIC(38,8)	
	, LENG			NUMERIC(38,8)	
	, ALTIN			NUMERIC(38,8)	
	, ALTOT			NUMERIC(38,8)	
	, FDEP			NUMERIC(38,8)	
	, TDEP			NUMERIC(38,8)	
	, SBR			NUMERIC(38,8)	
	, SBQ			NUMERIC(38,8)	
	, SLP			NUMERIC(38,8)	
	, OKGUB			VARCHAR(1)		
	, OKJUN			VARCHAR(1)		
	, REGUB			VARCHAR(1)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, EXAM_YN		VARCHAR(1)		
	, SHT_NUM		VARCHAR(10)	
	, LIT_CDE		VARCHAR(6)		
	, SPH_LIN		INTEGER			
	, BST_ARA		NUMERIC(38,8)	
	, DRT_ARA		NUMERIC(38,8)	
	, BOM_CDE		VARCHAR(5)		
	, BOM_IDN		NUMERIC(38,8)	
	, EOM_CDE		VARCHAR(5)		
	, EOM_IDN		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, IQT_CDE		VARCHAR(6)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
	, BIDN			INTEGER				NOT NULL
);

ALTER TABLE icgis.SWL_PIPE_L ADD CONSTRAINT SWL_PIPE_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_PIPE_L IS '하수관거';
COMMENT ON COLUMN icgis.SWL_PIPE_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_PIPE_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_PIPE_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_PIPE_L.FOP IS '구조물형태';
COMMENT ON COLUMN icgis.SWL_PIPE_L.SBA IS '용도';
COMMENT ON COLUMN icgis.SWL_PIPE_L.CCTV IS 'CCTV검사여부';
COMMENT ON COLUMN icgis.SWL_PIPE_L.LBL IS '라벨';
COMMENT ON COLUMN icgis.SWL_PIPE_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_PIPE_L.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_PIPE_L.FORX IS '관거종류';
COMMENT ON COLUMN icgis.SWL_PIPE_L.MOP IS '재질';
COMMENT ON COLUMN icgis.SWL_PIPE_L.DIP IS '관경';
COMMENT ON COLUMN icgis.SWL_PIPE_L.HOL IS '가로';
COMMENT ON COLUMN icgis.SWL_PIPE_L.VEL IS '세로';
COMMENT ON COLUMN icgis.SWL_PIPE_L.LENG IS '관연장';
COMMENT ON COLUMN icgis.SWL_PIPE_L.ALTIN IS '관저고시점';
COMMENT ON COLUMN icgis.SWL_PIPE_L.ALTOT IS '관저고종점';
COMMENT ON COLUMN icgis.SWL_PIPE_L.FDEP IS '심도시점';
COMMENT ON COLUMN icgis.SWL_PIPE_L.TDEP IS '심도종점';
COMMENT ON COLUMN icgis.SWL_PIPE_L.SBR IS '청천시유속';
COMMENT ON COLUMN icgis.SWL_PIPE_L.SBQ IS '우천시유속';
COMMENT ON COLUMN icgis.SWL_PIPE_L.SLP IS '평균구배';
COMMENT ON COLUMN icgis.SWL_PIPE_L.OKGUB IS '불량여부';
COMMENT ON COLUMN icgis.SWL_PIPE_L.OKJUN IS '준설여부';
COMMENT ON COLUMN icgis.SWL_PIPE_L.REGUB IS '재조사여부';
COMMENT ON COLUMN icgis.SWL_PIPE_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_PIPE_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_PIPE_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_PIPE_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_PIPE_L.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.EXAM_YN IS '성과심사여부';
COMMENT ON COLUMN icgis.SWL_PIPE_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.LIT_CDE IS '규모';
COMMENT ON COLUMN icgis.SWL_PIPE_L.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.SWL_PIPE_L.BST_ARA IS '우수배수면적';
COMMENT ON COLUMN icgis.SWL_PIPE_L.DRT_ARA IS '오수배수면적';
COMMENT ON COLUMN icgis.SWL_PIPE_L.BOM_CDE IS '시점맨홀지형지물부호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.BOM_IDN IS '시점맨홀관리번호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.EOM_CDE IS '종점맨홀지형지물부호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.EOM_IDN IS '종점맨홀관리번호';
COMMENT ON COLUMN icgis.SWL_PIPE_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_PIPE_L.IQT_CDE IS '탐사구분';
COMMENT ON COLUMN icgis.SWL_PIPE_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_PIPE_L.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.SWL_PIPE_L.BIDN IS '배수구역개별번호';


--하수관거_면

CREATE TABLE icgis.SWL_PIPE_A(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, MNGT			VARCHAR(6)		
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry

);

ALTER TABLE icgis.SWL_PIPE_A ADD CONSTRAINT SWL_PIPE_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.SWL_PIPE_A IS '하수관거_면';
COMMENT ON COLUMN icgis.SWL_PIPE_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_PIPE_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_PIPE_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_PIPE_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_PIPE_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_PIPE_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_PIPE_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_PIPE_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_PIPE_A.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_PIPE_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_PIPE_A.SHAPE IS 'SHAPE';


--하수관거심도

CREATE TABLE icgis.SWL_DEPT_P(
	FTC			VARCHAR(6)		NOT NULL	
	, PIP_DEP	NUMERIC(38,8)	NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, GLOBALID	CHAR(38)		NOT NULL
	, SHAPE		public.geometry	

);
ALTER TABLE icgis.SWL_DEPT_P ADD CONSTRAINT SWL_DEPT_P_PK PRIMARY KEY (FTC, PIP_DEP);
COMMENT ON TABLE icgis.SWL_DEPT_P IS '하수관거심도';
COMMENT ON COLUMN icgis.SWL_DEPT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_DEPT_P.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.SWL_DEPT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_DEPT_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_DEPT_P.SHAPE IS 'SHAPE';


--하수맨홀

CREATE TABLE icgis.SWL_MANHOL_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, LBL			VARCHAR(50)	
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, SBD			VARCHAR(6)		
	, CDIP			NUMERIC(5)		
	, CHOL			NUMERIC(38,8)	
	, CVEL			NUMERIC(38,8)	
	, CNUM			NUMERIC(5)		
	, COV			VARCHAR(6)		
	, SBC			VARCHAR(6)		
	, DIP			NUMERIC(5)		
	, HOL			NUMERIC(38,8)	
	, VEL			NUMERIC(38,8)	
	, DEP			NUMERIC(38,8)	
	, FORX			VARCHAR(6)		
	, MAT			VARCHAR(6)		
	, INVERT		VARCHAR(1)		
	, OKTAM			VARCHAR(6)		
	, OKGUB			VARCHAR(1)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE	NULL	
	, UPDATE_NAM	VARCHAR(50)	
	, PFTC			VARCHAR(5)		
	, PHJDCD		VARCHAR(10)	
	, PSEQ			VARCHAR(6)		
	, ANG			NUMERIC(5)		
	, TIDN			INTEGER			
	, SHT_NUM		VARCHAR(10)	
	, FOR_CDE		VARCHAR(6)		
	, SOM_CDE		VARCHAR(6)		
	, LAD_CDE		VARCHAR(6)		
	, MOS_HSL		NUMERIC(38,8)	
	, LMS_HSL		NUMERIC(38,8)	
	, CST_CDE		VARCHAR(6)		
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	
);

ALTER TABLE icgis.SWL_MANHOL_P ADD CONSTRAINT SWL_MANHOL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_MANHOL_P IS '하수맨홀';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.SBD IS '용도구분';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.CDIP IS '뚜껑_구경';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.CHOL IS '뚜껑_가로';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.CVEL IS '뚜껑_세로';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.CNUM IS '뚜껑_개수';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.COV IS '뚜껑_형태';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.SBC IS '뚜껑_재질';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.DIP IS '변실_구경';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.HOL IS '변실_가로';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.VEL IS '변실_세로';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.DEP IS '변실_깊이';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.FORX IS '변실_형태';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.MAT IS '변실_재질';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.INVERT IS '인버트유무';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.OKTAM IS '탐사가능여부';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.OKGUB IS '불량여부';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.PFTC IS '유출관지형지물부호';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.PHJDCD IS '유출관등록구';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.PSEQ IS '유출관개별번호';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.ANG IS '시설물각도';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.SOM_CDE IS '맨홀종류';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.LAD_CDE IS '사다리설치유무';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.MOS_HSL IS '하수맨홀_고도';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.LMS_HSL IS '하수맨홀_저고';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.CST_CDE IS '이상상태';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_MANHOL_P.SHAPE IS 'SHAPE';


--하수배수구역

CREATE TABLE icgis.SWL_BAESU_A(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, MNGT			VARCHAR(6)		
	, NAM			VARCHAR(30)	
	, POP			INTEGER			
	, ARA			NUMERIC(38,8)	
	, NUM			VARCHAR(30)	
	, YMD			DATE			
	, NOTE			VARCHAR(30)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, RIV_NAM		VARCHAR(100)	
	, DRN_CNT		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
	, RIVER1		INTEGER				NOT NULL
	, RIVER2		INTEGER				NOT NULL
	, RIVER3		INTEGER				NOT NULL

);

ALTER TABLE icgis.SWL_BAESU_A ADD CONSTRAINT SWL_BAESU_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.SWL_BAESU_A IS '하수배수구역';
COMMENT ON COLUMN icgis.SWL_BAESU_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_BAESU_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_BAESU_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_BAESU_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_BAESU_A.NAM IS '배수구역명';
COMMENT ON COLUMN icgis.SWL_BAESU_A.POP IS '배수인구';
COMMENT ON COLUMN icgis.SWL_BAESU_A.ARA IS '배수구역면적';
COMMENT ON COLUMN icgis.SWL_BAESU_A.NUM IS '고시번호';
COMMENT ON COLUMN icgis.SWL_BAESU_A.YMD IS '고시년월일';
COMMENT ON COLUMN icgis.SWL_BAESU_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_BAESU_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_BAESU_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_BAESU_A.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_BAESU_A.RIV_NAM IS '하천명';
COMMENT ON COLUMN icgis.SWL_BAESU_A.DRN_CNT IS '유출계수';
COMMENT ON COLUMN icgis.SWL_BAESU_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_BAESU_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_BAESU_A.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.SWL_BAESU_A.RIVER1 IS '하천1';
COMMENT ON COLUMN icgis.SWL_BAESU_A.RIVER2 IS '하천2';
COMMENT ON COLUMN icgis.SWL_BAESU_A.RIVER3 IS '하천3';


--하수배수분구

CREATE TABLE icgis.SWL_BUNGU_A(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, MNGT			VARCHAR(6)			
	, NAM			VARCHAR(30)		
	, ARA			NUMERIC(38,8)		
	, POP			INTEGER				
	, NOTE			VARCHAR(100)		
	, UPDATE_YMD	DATE				
	, UPDATE_NAM	VARCHAR(50)		
	, TIDN			INTEGER				
		
	, RES_ARA		NUMERIC(38,8)		
	, COM_ARA		NUMERIC(38,8)		
	, IND_ARA		NUMERIC(38,8)		
	, NAT_ARA		NUMERIC(38,8)		
	, RN1_CNT		NUMERIC(38,8)		
	, RN2_CNT		NUMERIC(38,8)		
	, RIV_NAM		VARCHAR(100)		
	, DRN_CNT		NUMERIC(38,8)		
	, SYS_CHK		VARCHAR(1)			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry		
	, BIDN			INTEGER				NOT NULL
	, RIVER1		INTEGER				NOT NULL
	, RIVER2		INTEGER				NOT NULL
	, RIVER3		INTEGER				NOT NULL

);
ALTER TABLE icgis.SWL_BUNGU_A ADD CONSTRAINT SWL_BUNGU_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.SWL_BUNGU_A IS '하수배수분구';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.NAM IS '배수분구명';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.ARA IS '배수분구면적';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.POP IS '배수인구';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.RES_ARA IS '주거지역면적';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.COM_ARA IS '상업지역면적';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.IND_ARA IS '공업지역면적';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.NAT_ARA IS '녹지면적';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.RN1_CNT IS '5년_빈도_강우강도';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.RN2_CNT IS '10년_빈도_강우강도';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.RIV_NAM IS '하천명';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.DRN_CNT IS '유출계수';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.SHAPE IS 'SHAPE';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.BIDN IS '비수구역_개별번호';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.RIVER1 IS '하천1';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.RIVER2 IS '하천2';
COMMENT ON COLUMN icgis.SWL_BUNGU_A.RIVER3 IS '하천3';


--하수연결관

CREATE TABLE icgis.SWL_CONN_L(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, YMD			DATE			
	, MOP			VARCHAR(6)		
	, DIP			NUMERIC(5)		
	, LENG			NUMERIC(38,8)	
	, ALTIN			NUMERIC(38,8)	
	, ALTOT			NUMERIC(38,8)	
	, FDEP			NUMERIC(38,8)	
	, TDEP			NUMERIC(38,8)	
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, SHT_NUM		VARCHAR(10)	
	, SBA_CDE		VARCHAR(6)		
	, FOR_CDE		VARCHAR(6)		
	, STD_HOL		NUMERIC(38,8)	
	, STD_VEL		NUMERIC(38,8)	
	, SPH_LIN		INTEGER			
	, PIP_SLP		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, PIP_LBL		VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry	
);

ALTER TABLE icgis.SWL_CONN_L ADD CONSTRAINT SWL_CONN_L_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_CONN_L IS '하수연결관';
COMMENT ON COLUMN icgis.SWL_CONN_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_CONN_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_CONN_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_CONN_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_CONN_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_CONN_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_CONN_L.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SWL_CONN_L.MOP IS '재질';
COMMENT ON COLUMN icgis.SWL_CONN_L.DIP IS '구경';
COMMENT ON COLUMN icgis.SWL_CONN_L.LENG IS '연장';
COMMENT ON COLUMN icgis.SWL_CONN_L.ALTIN IS '관저고시점';
COMMENT ON COLUMN icgis.SWL_CONN_L.ALTOT IS '관저고종점';
COMMENT ON COLUMN icgis.SWL_CONN_L.FDEP IS '심도시점';
COMMENT ON COLUMN icgis.SWL_CONN_L.TDEP IS '심도종점';
COMMENT ON COLUMN icgis.SWL_CONN_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_CONN_L.CMNGT IS '공사대장_공사기관';
COMMENT ON COLUMN icgis.SWL_CONN_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_CONN_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_CONN_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_CONN_L.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_CONN_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_CONN_L.SBA_CDE IS '하수관용도';
COMMENT ON COLUMN icgis.SWL_CONN_L.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.SWL_CONN_L.STD_HOL IS '가로길이';
COMMENT ON COLUMN icgis.SWL_CONN_L.STD_VEL IS '세로길이';
COMMENT ON COLUMN icgis.SWL_CONN_L.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.SWL_CONN_L.PIP_SLP IS '평균구배';
COMMENT ON COLUMN icgis.SWL_CONN_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_CONN_L.PIP_LBL IS '관라벨';
COMMENT ON COLUMN icgis.SWL_CONN_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_CONN_L.SHAPE IS 'SHAPE';


--하수처리구역

CREATE TABLE icgis.SWL_CHURI_A(
	IDN				INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, MNGT			VARCHAR(6)		
	, NAM			VARCHAR(30)	
	, POP			INTEGER			
	, ARA			NUMERIC(38,8)	
	, NUM			VARCHAR(30)	
	, YMD			DATE			
	, NOTE			VARCHAR(30)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, USE_CDE		VARCHAR(6)		
	, PRN_POP		NUMERIC(38,8)	
	, SEW_VOL		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry	
);

ALTER TABLE icgis.SWL_CHURI_A ADD CONSTRAINT SWL_CHURI_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.SWL_CHURI_A IS '하수처리구역';
COMMENT ON COLUMN icgis.SWL_CHURI_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_CHURI_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_CHURI_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_CHURI_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_CHURI_A.NAM IS '처리구역명';
COMMENT ON COLUMN icgis.SWL_CHURI_A.POP IS '처리구역인구';
COMMENT ON COLUMN icgis.SWL_CHURI_A.ARA IS '처리구역면적';
COMMENT ON COLUMN icgis.SWL_CHURI_A.NUM IS '고시번호';
COMMENT ON COLUMN icgis.SWL_CHURI_A.YMD IS '사용개시일';
COMMENT ON COLUMN icgis.SWL_CHURI_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_CHURI_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_CHURI_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_CHURI_A.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_CHURI_A.USE_CDE IS '용도지역';
COMMENT ON COLUMN icgis.SWL_CHURI_A.PRN_POP IS '계획처리인구수';
COMMENT ON COLUMN icgis.SWL_CHURI_A.SEW_VOL IS '오수발생량';
COMMENT ON COLUMN icgis.SWL_CHURI_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_CHURI_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_CHURI_A.SHAPE IS 'SHAPE';


--하수처리분구

CREATE TABLE icgis.SWL_CBNGU_A(
	IDN				INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, FTC			VARCHAR(6)			NOT NULL
	, MNGT			VARCHAR(6)		
	, NAM			VARCHAR(20)	
	, YMD			DATE			
	, ARA			INTEGER			
	, POP			INTEGER			
	, PPOP			INTEGER			
	, RARA			INTEGER			
	, CARA			INTEGER			
	, IARA			INTEGER			
	, SVOL			INTEGER			
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, SYS_CHK		VARCHAR(1)		
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry	

);

ALTER TABLE icgis.SWL_CBNGU_A ADD CONSTRAINT SWL_CBNGU_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.SWL_CBNGU_A IS '하수처리분구';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.NAM IS '처리분구명';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.YMD IS '사용개시일';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.ARA IS '처리분구면적';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.POP IS '처리분구인구수';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.PPOP IS '계획처리인구수';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.RARA IS '주거지역면적';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.CARA IS '상업지역면적';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.IARA IS '공업지역면적';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.SVOL IS '오수발생량';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_CBNGU_A.SHAPE IS 'SHAPE';


--하수처리장

CREATE TABLE icgis.SWL_CHURI_P(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			INTEGER				NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, NAM			VARCHAR(20)	
	, ADDR			VARCHAR(60)	
	, MNGT			VARCHAR(6)		
	, ARA			NUMERIC(38,8)	
	, YMD			DATE			
	, P_DARA		INTEGER			
	, P_HDCA		INTEGER			
	, P_HDCB		INTEGER			
	, N_DARA		INTEGER			
	, N_HDCA		INTEGER			
	, N_HDCB		INTEGER			
	, WNAM			VARCHAR(20)	
	, LARA			INTEGER			
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, SHT_NUM		VARCHAR(10)	
	, SOO_CDE		VARCHAR(6)		
	, SBB_CDE		VARCHAR(6)		
	, QW1_EXP		VARCHAR(50)	
	, QW2_EXP		VARCHAR(50)	
	, PIP_LEN		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, ANG_DIR		INTEGER			
	, GLOBALID		CHAR(38)			NOT NULL
	, SHAPE			public.geometry
);

ALTER TABLE icgis.SWL_CHURI_P ADD CONSTRAINT SWL_CHURI_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_CHURI_P IS '하수처리장';
COMMENT ON COLUMN icgis.SWL_CHURI_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_CHURI_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_CHURI_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_CHURI_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_CHURI_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_CHURI_P.NAM IS '명칭';
COMMENT ON COLUMN icgis.SWL_CHURI_P.ADDR IS '위치_주소';
COMMENT ON COLUMN icgis.SWL_CHURI_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_CHURI_P.ARA IS '부지면적';
COMMENT ON COLUMN icgis.SWL_CHURI_P.YMD IS '처리개시년월일';
COMMENT ON COLUMN icgis.SWL_CHURI_P.P_DARA IS '계획_계획처리면적';
COMMENT ON COLUMN icgis.SWL_CHURI_P.P_HDCA IS '계획_청천시처리유량';
COMMENT ON COLUMN icgis.SWL_CHURI_P.P_HDCB IS '계획_우천시처리유량';
COMMENT ON COLUMN icgis.SWL_CHURI_P.N_DARA IS '현재_처리면적';
COMMENT ON COLUMN icgis.SWL_CHURI_P.N_HDCA IS '현재_청천시처리유량';
COMMENT ON COLUMN icgis.SWL_CHURI_P.N_HDCB IS '현재_우천시처리유량';
COMMENT ON COLUMN icgis.SWL_CHURI_P.WNAM IS '방류수역명칭';
COMMENT ON COLUMN icgis.SWL_CHURI_P.LARA IS '조경시설등';
COMMENT ON COLUMN icgis.SWL_CHURI_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_CHURI_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_CHURI_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_CHURI_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_CHURI_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_CHURI_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_CHURI_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_CHURI_P.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.SWL_CHURI_P.SBB_CDE IS '하수처리방식';
COMMENT ON COLUMN icgis.SWL_CHURI_P.QW1_EXP IS '설계유입수_수질';
COMMENT ON COLUMN icgis.SWL_CHURI_P.QW2_EXP IS '설계유출수_수질';
COMMENT ON COLUMN icgis.SWL_CHURI_P.PIP_LEN IS '차집관_연장';
COMMENT ON COLUMN icgis.SWL_CHURI_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_CHURI_P.ANG_DIR IS '방향각';
COMMENT ON COLUMN icgis.SWL_CHURI_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_CHURI_P.SHAPE IS 'SHAPE';


--하수펌프장

CREATE TABLE icgis.SWL_PUMP_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, DCD			VARCHAR(10)	
	, GUCD			VARCHAR(5)		
	, NAM			VARCHAR(20)	
	, ADDR			VARCHAR(60)	
	, MNGT			VARCHAR(6)		
	, TEL			VARCHAR(15)	
	, SBE			VARCHAR(6)		
	, YMD			DATE			
	, ARA			VARCHAR(12)	
	, YONG			NUMERIC(5)		
	, CIDN			VARCHAR(10)	
	, CMNGT			VARCHAR(6)		
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TIDN			INTEGER			
	, SHT_NUM		VARCHAR(10)	
	, SOO_CDE		VARCHAR(6)		
	, DAY_VOL		NUMERIC(38,8)	
	, MAX_VOL		NUMERIC(38,8)	
	, STP_HSL		NUMERIC(38,8)	
	, PMP_WAL		NUMERIC(38,8)	
	, COS_VOL		NUMERIC(38,8)	
	, UOS_VOL		NUMERIC(38,8)	
	, USU_VOL		NUMERIC(38,8)	
	, SYS_CHK		VARCHAR(1)		
	, ANG_DIR		INTEGER			
	, SPH_LIN		INTEGER			
	, MOP_CDE		VARCHAR(6)		
	, GLOBALID		CHAR(38)		NOT NULL
	, SHAPE			public.geometry
);
ALTER TABLE icgis.SWL_PUMP_P ADD CONSTRAINT SWL_PUMP_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.SWL_PUMP_P IS '하수펌프장';
COMMENT ON COLUMN icgis.SWL_PUMP_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_PUMP_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.SWL_PUMP_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_PUMP_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.SWL_PUMP_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.SWL_PUMP_P.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.SWL_PUMP_P.ADDR IS '위치_주소';
COMMENT ON COLUMN icgis.SWL_PUMP_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SWL_PUMP_P.TEL IS '전화번호';
COMMENT ON COLUMN icgis.SWL_PUMP_P.SBE IS '용도';
COMMENT ON COLUMN icgis.SWL_PUMP_P.YMD IS '설치년도';
COMMENT ON COLUMN icgis.SWL_PUMP_P.ARA IS '대지';
COMMENT ON COLUMN icgis.SWL_PUMP_P.YONG IS '용지면적';
COMMENT ON COLUMN icgis.SWL_PUMP_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.SWL_PUMP_P.CMNGT IS '공사대장_공사시행기관';
COMMENT ON COLUMN icgis.SWL_PUMP_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWL_PUMP_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWL_PUMP_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWL_PUMP_P.TIDN IS '이전개별번호';
COMMENT ON COLUMN icgis.SWL_PUMP_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_PUMP_P.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.SWL_PUMP_P.DAY_VOL IS '일일처리용량';
COMMENT ON COLUMN icgis.SWL_PUMP_P.MAX_VOL IS '최대저수용량';
COMMENT ON COLUMN icgis.SWL_PUMP_P.STP_HSL IS '표고';
COMMENT ON COLUMN icgis.SWL_PUMP_P.PMP_WAL IS '수위';
COMMENT ON COLUMN icgis.SWL_PUMP_P.COS_VOL IS '청천시_오수양수능력';
COMMENT ON COLUMN icgis.SWL_PUMP_P.UOS_VOL IS '우천시_오수양수능력';
COMMENT ON COLUMN icgis.SWL_PUMP_P.USU_VOL IS '우수양수능력';
COMMENT ON COLUMN icgis.SWL_PUMP_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_PUMP_P.ANG_DIR IS '방향각';
COMMENT ON COLUMN icgis.SWL_PUMP_P.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.SWL_PUMP_P.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.SWL_PUMP_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_PUMP_P.SHAPE IS 'SHAPE';


--하수폐관로

CREATE TABLE icgis.SWL_CLPI_L(
	FTC			VARCHAR(6)			NOT NULL	
	, FTR_IDN	INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, HJD_CDE	VARCHAR(10)	
	, SHT_NUM	VARCHAR(10)	
	, MNG_CDE	VARCHAR(7)			
	, SBA_CDE	VARCHAR(6)		
	, MOP_CDE	VARCHAR(6)		
	, LIT_CDE	VARCHAR(6)		
	, FOR_CDE	VARCHAR(6)		
	, STD_DIP	NUMERIC(38,8)	
	, STD_HOL	NUMERIC(38,8)	
	, STD_VEL	NUMERIC(38,8)	
	, BYC_LEN	NUMERIC(38,8)	
	, BEG_DEP	NUMERIC(38,8)	
	, END_DEP	NUMERIC(38,8)	
	, SBK_HSL	NUMERIC(38,8)	
	, SBL_HSL	NUMERIC(38,8)	
	, PIP_SLP	NUMERIC(38,8)	
	, SPH_LIN	INTEGER			
	, SBO_ARA	NUMERIC(38,8)	
	, DRT_ARA	NUMERIC(38,8)	
	, SBQ_SPD	NUMERIC(38,8)	
	, SBR_SPD	NUMERIC(38,8)	
	, CNT_NUM	VARCHAR(50)	
	, BOM_CDE	VARCHAR(5)		
	, BOM_IDN	INTEGER			
	, EOM_CDE	VARCHAR(5)		
	, EOM_IDN	INTEGER			
	, SYS_CHK	VARCHAR(1)		
	, PIP_LBL	VARCHAR(50)	
	, SGG_CDE	VARCHAR(5)			NOT NULL
	, GLOBALID	CHAR(38)			NOT NULL
	, SHAPE		public.geometry		
);

ALTER TABLE icgis.SWL_CLPI_L ADD CONSTRAINT SWL_CLPI_L_PK PRIMARY KEY (FTC, FTR_IDN);
COMMENT ON TABLE icgis.SWL_CLPI_L IS '하수폐관로';
COMMENT ON COLUMN icgis.SWL_CLPI_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_CLPI_L.FTR_IDN IS '기준점ID';
COMMENT ON COLUMN icgis.SWL_CLPI_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_CLPI_L.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_CLPI_L.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SBA_CDE IS '하수관용도';
COMMENT ON COLUMN icgis.SWL_CLPI_L.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.SWL_CLPI_L.LIT_CDE IS '규모';
COMMENT ON COLUMN icgis.SWL_CLPI_L.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.SWL_CLPI_L.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.SWL_CLPI_L.STD_HOL IS '가로길이';
COMMENT ON COLUMN icgis.SWL_CLPI_L.STD_VEL IS '세로길이';
COMMENT ON COLUMN icgis.SWL_CLPI_L.BYC_LEN IS '연장';
COMMENT ON COLUMN icgis.SWL_CLPI_L.BEG_DEP IS '시점깊이';
COMMENT ON COLUMN icgis.SWL_CLPI_L.END_DEP IS '종점깊이';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SBK_HSL IS '시점관저고';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SBL_HSL IS '종점관저고';
COMMENT ON COLUMN icgis.SWL_CLPI_L.PIP_SLP IS '평균구배';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SBO_ARA IS '폐관우수배수면적';
COMMENT ON COLUMN icgis.SWL_CLPI_L.DRT_ARA IS '오수배수면적';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SBQ_SPD IS '우천시유속';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SBR_SPD IS '청천시유속';
COMMENT ON COLUMN icgis.SWL_CLPI_L.CNT_NUM IS '공사번호';
COMMENT ON COLUMN icgis.SWL_CLPI_L.BOM_CDE IS '시점맨홀지형지물부호';
COMMENT ON COLUMN icgis.SWL_CLPI_L.BOM_IDN IS '시점맨홀관리번호';
COMMENT ON COLUMN icgis.SWL_CLPI_L.EOM_CDE IS '종점맨홀지형지물부호';
COMMENT ON COLUMN icgis.SWL_CLPI_L.EOM_IDN IS '종점맨홀관리번호';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_CLPI_L.PIP_LBL IS '관라벨';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.SWL_CLPI_L.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_CLPI_L.SHAPE IS 'SHAPE';


--하수폐관심도

CREATE TABLE icgis.SWL_CLDE_P(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, PIP_DEP	NUMERIC(38,8)	
	, GLOBALID	CHAR(38)		NOT NULL
	, SHAPE		public.geometry	
);

COMMENT ON TABLE icgis.SWL_CLDE_P IS '하수폐관심도';
COMMENT ON COLUMN icgis.SWL_CLDE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_CLDE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_CLDE_P.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.SWL_CLDE_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_CLDE_P.SHAPE IS 'SHAPE';


--하자검사내역

CREATE TABLE icgis.SWT_CNHJ_D(
	MNGT		VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(10)		NOT NULL	
	, SEQ		NUMERIC(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, HTYPE		VARCHAR(7)		
	, STATE		VARCHAR(20)	
	, NAM		VARCHAR(20)	
	, YMD		DATE			
	, BFYMD		DATE			
	, BTYMD		DATE			
	, CONT		VARCHAR(200)	
	, ETC		VARCHAR(200)	
	, GLOBALID	CHAR(38)		NOT NULL
);

ALTER TABLE icgis.SWT_CNHJ_D ADD CONSTRAINT SWT_CNHJ_D_PK PRIMARY KEY (MNGT, IDN, SEQ);
COMMENT ON TABLE icgis.SWT_CNHJ_D IS '하자검사내역';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.MNGT IS '공사기관';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.IDN IS '공사번호';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.HTYPE IS '검사구분';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.STATE IS '검사자_직명';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.NAM IS '검사자_성명';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.YMD IS '검사일';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.BFYMD IS '보수지시일';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.BTYMD IS '보수완료일';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.CONT IS '하자내용';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.ETC IS '비고';
COMMENT ON COLUMN icgis.SWT_CNHJ_D.GLOBALID IS 'GLOBALID';


--환기구

CREATE TABLE icgis.SWL_VENT_P(
	FTC			VARCHAR(6)			NOT NULL	
	, FTR_IDN	INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, HJD_CDE	VARCHAR(10)			NOT NULL
	, SHT_NUM	VARCHAR(10)			NOT NULL
	, MNG_CDE	VARCHAR(7)			NOT NULL
	, VNT_DIP	NUMERIC(38,8)	
	, MOP_CDE	VARCHAR(6)		
	, MOF_CDE	VARCHAR(6)		
	, HMP_CDE	VARCHAR(6)		
	, CNT_NUM	VARCHAR(50)	
	, SYS_CHK	VARCHAR(1)			NOT NULL
	, ANG_DIR	INTEGER				NOT NULL
	, SGG_CDE	VARCHAR(5)			NOT NULL
	, GLOBALID	CHAR(38)			NOT NULL
	, SHAPE		public.geometry		
);

ALTER TABLE icgis.SWL_VENT_P ADD CONSTRAINT SWL_VENT_P_PK PRIMARY KEY (FTC, FTR_IDN);
COMMENT ON TABLE icgis.SWL_VENT_P IS '환기구';
COMMENT ON COLUMN icgis.SWL_VENT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SWL_VENT_P.FTR_IDN IS '기준점ID';
COMMENT ON COLUMN icgis.SWL_VENT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWL_VENT_P.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.SWL_VENT_P.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.SWL_VENT_P.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.SWL_VENT_P.VNT_DIP IS '환기구구경';
COMMENT ON COLUMN icgis.SWL_VENT_P.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.SWL_VENT_P.MOF_CDE IS '소화전형식';
COMMENT ON COLUMN icgis.SWL_VENT_P.HMP_CDE IS '흡출기재질';
COMMENT ON COLUMN icgis.SWL_VENT_P.CNT_NUM IS '공사번호';
COMMENT ON COLUMN icgis.SWL_VENT_P.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.SWL_VENT_P.ANG_DIR IS '방향각';
COMMENT ON COLUMN icgis.SWL_VENT_P.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.SWL_VENT_P.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.SWL_VENT_P.SHAPE IS 'SHAPE';


--환불내역

CREATE TABLE icgis.SWT_CHARGER_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, YEAR			VARCHAR(4)		NOT NULL	
	, NUM			NUMERIC(5)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, RYMD			DATE			
	, RAMT			INTEGER			
	, RCNT			VARCHAR(100)	
	, NOTE			VARCHAR(100)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, GLOBALID		CHAR(38)		NOT NULL
	
);

ALTER TABLE icgis.SWT_CHARGER_D ADD CONSTRAINT SWT_CHARGER_D_PK PRIMARY KEY (MNGT, YEAR, NUM, SEQ);
COMMENT ON TABLE icgis.SWT_CHARGER_D IS '환불내역';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.MNGT IS '접수기관';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.YEAR IS '접수년도';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.NUM IS '접수번호';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.RYMD IS '환불일';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.RAMT IS '환불액';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.RCNT IS '환불사유';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.SWT_CHARGER_D.GLOBALID IS 'GLOBALID';


--------------------------------------------------------------------------
--// ##지하시설물
--------------------------------------------------------------------------


--LPG 맨홀

CREATE TABLE icgis.UFL_GLMN_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL	
	, FTR_CDE	VARCHAR(6)		NOT NULL	
	, MNG_CDE	VARCHAR(7)		NOT NULL	
	, STD_NAM	VARCHAR(100)	NOT NULL	
	, IST_YMD	VARCHAR(8)		NOT NULL	
	, FOR_CDE	VARCHAR(6)		NOT NULL	
	, SOM_CDE	VARCHAR(6)		NOT NULL	
	, STD_DEP	NUMERIC(38,8)	NOT NULL	
	, ARA_LEN	DATE			NOT NULL	
	, SHAPE		public.geometry
	
);
ALTER TABLE icgis.UFL_GLMN_PS ADD CONSTRAINT UFL_GLMN_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_GLMN_PS IS 'LPG 맨홀';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.SOM_CDE IS '맨홀종류';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.ARA_LEN IS '넓이';
COMMENT ON COLUMN icgis.UFL_GLMN_PS.SHAPE IS 'SHAPE';


---LPG 배관

CREATE TABLE icgis.UFL_GLPI_LM(
	FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, IST_YMD	VARCHAR(8)		
	, STD_DIP	NUMERIC(38,8)	
	, STD_DEP	NUMERIC(38,8)	
	, STD_LEN	NUMERIC(38,8)	
	, MOP_CDE	VARCHAR(6)		
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_GLPI_LM ADD CONSTRAINT UFL_GLPI_LM_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_GLPI_LM IS 'LPG 배관';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_GLPI_LM.SHAPE IS 'SHAPE';


--가스배관심도

CREATE TABLE icgis.UFL_GPIP_PS(
	FTR_CDE		VARCHAR(6)			NOT NULL	
	, PIP_DEP	NUMERIC(38,8)		NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, IDN		VARCHAR(50)		NOT NULL
	, ORGZID	VARCHAR(6)			NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_GPIP_PS ADD CONSTRAINT UFL_GPIP_PS_PK PRIMARY KEY (FTR_CDE, PIP_DEP);
COMMENT ON TABLE icgis.UFL_GPIP_PS IS '가스배관심도';
COMMENT ON COLUMN icgis.UFL_GPIP_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_GPIP_PS.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.UFL_GPIP_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_GPIP_PS.IDN IS '고유번호';
COMMENT ON COLUMN icgis.UFL_GPIP_PS.ORGZID IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_GPIP_PS.SHAPE IS 'SHAPE';


--가스밸브

CREATE TABLE icgis.UFL_GVAL_PS(
	FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, FTR_CDE	VARCHAR(6)			NOT NULL
	, MNG_CDE	VARCHAR(7)			NOT NULL
	, STD_NAM	VARCHAR(100)		NOT NULL
	, IST_YMD	VARCHAR(8)			NOT NULL
	, SGE_CDE	VARCHAR(6)			NOT NULL
	, OUG_CDE	VARCHAR(6)			NOT NULL
	, SOO_CDE	VARCHAR(6)			
	, SGA_CDE	VARCHAR(6)			
	, MAN		VARCHAR(50)		
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_GVAL_PS ADD CONSTRAINT UFL_GVAL_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_GVAL_PS IS '가스밸브';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.SGE_CDE IS '밸브종류';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.OUG_CDE IS '지상_지하구분';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.SGA_CDE IS '압력';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_GVAL_PS.SHAPE IS 'SHAPE';


--가압소

CREATE TABLE icgis.UFL_OPRS_PS(
	FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, FTR_CDE	VARCHAR(6)			
	, MNG_CDE	VARCHAR(7)			
	, STD_NAM	VARCHAR(100)		
	, IST_YMD	VARCHAR(8)			
	, ARA_LEN	NUMERIC(38,8)		
	, BJD_CDE	VARCHAR(10)		
	, PNU_ADR	VARCHAR(50)		
	, SGG_CDE	VARCHAR(5)			NOT NULL
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_OPRS_PS ADD CONSTRAINT UFL_OPRS_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_OPRS_PS IS '가압소';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.ARA_LEN IS '넓이';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.BJD_CDE IS '법정읍면동코드';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.PNU_ADR IS '지번';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.UFL_OPRS_PS.SHAPE IS 'SHAPE';


--개폐기

CREATE TABLE icgis.UFL_BOPC_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, OUG_CDE	VARCHAR(6)		
	, BJD_CDE	VARCHAR(10)	
	, PNU_ADR	VARCHAR(50)	
	, SGG_CDE	VARCHAR(5)		NOT NULL
	, MAN		VARCHAR(50)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_BOPC_PS ADD CONSTRAINT UFL_BOPC_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_BOPC_PS IS '개폐기';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.OUG_CDE IS '지상_지하구분';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.BJD_CDE IS '법정읍면동코드';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.PNU_ADR IS '지번';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_BOPC_PS.SHAPE IS 'SHAPE';


--고압_저압 입상주

CREATE TABLE icgis.UFL_BPOL_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, SCB_CDE	VARCHAR(6)		
	, STD_HIT	NUMERIC(38,8)	NOT NULL
	, BJD_CDE	VARCHAR(10)	
	, PNU_ADR	VARCHAR(50)	
	, SGG_CDE	VARCHAR(5)		NOT NULL
	, SHAPE		public.geometry
);
ALTER TABLE icgis.UFL_BPOL_PS ADD CONSTRAINT UFL_BPOL_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_BPOL_PS IS '고압_저압 입상주';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.SCB_CDE IS '전주종류';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.STD_HIT IS '높이';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.BJD_CDE IS '법정읍면동코드';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.PNU_ADR IS '지번';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.UFL_BPOL_PS.SHAPE IS 'SHAPE';


--광역급수탑

CREATE TABLE icgis.UFL_TOWR_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, STD_DIP	NUMERIC(38,8)	
	, SAP_EXP	NUMERIC(38,8)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_TOWR_PS ADD CONSTRAINT UFL_TOWR_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_TOWR_PS IS '광역급수탑';
COMMENT ON COLUMN icgis.UFL_TOWR_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_TOWR_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_TOWR_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_TOWR_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_TOWR_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_TOWR_PS.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_TOWR_PS.SAP_EXP IS '회전방향';
COMMENT ON COLUMN icgis.UFL_TOWR_PS.SHAPE IS 'SHAPE';


--광역변류시설

CREATE TABLE icgis.UFL_VALV_PS(
	FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, FTR_CDE	VARCHAR(6)			NOT NULL
	, MNG_CDE	VARCHAR(7)			NOT NULL
	, STD_NAM	VARCHAR(100)		NOT NULL
	, STD_LEN	NUMERIC(38,8)		NOT NULL
	, IST_YMD	VARCHAR(8)			NOT NULL
	, MOF_CDE	VARCHAR(6)			NOT NULL
	, STD_DIP	NUMERIC(38,8)		
	, MOP_CDE	VARCHAR(6)			
	, SAP_SLP	NUMERIC(38,8)		
	, VAL_SAF	NUMERIC(38,8)		
	, PIP_DEP	NUMERIC(38,8)		
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_VALV_PS ADD CONSTRAINT UFL_VALV_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_VALV_PS IS '광역변류시설';
COMMENT ON COLUMN icgis.UFL_VALV_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_VALV_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_VALV_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_VALV_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_VALV_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_VALV_PS.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_VALV_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_VALV_PS.MOF_CDE IS '변류형식';
COMMENT ON COLUMN icgis.UFL_VALV_PS.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_VALV_PS.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_VALV_PS.SAP_SLP IS '회전방향';
COMMENT ON COLUMN icgis.UFL_VALV_PS.VAL_SAF IS '설정압력';
COMMENT ON COLUMN icgis.UFL_VALV_PS.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.UFL_VALV_PS.SHAPE IS 'SHAPE';


--광역상수관

CREATE TABLE icgis.UFL_PIPE_LM(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, STD_NAM	VARCHAR(100)	NOT NULL
	, STD_DIP	NUMERIC(38,8)	NOT NULL
	, STD_LEN	NUMERIC(38,8)	NOT NULL
	, STD_DEP	NUMERIC(38,8)	NOT NULL
	, MOP_CDE	VARCHAR(6)		
	, IST_YMD	VARCHAR(8)		
	, SOO_CDE	VARCHAR(6)		
	, SAA_CDE	VARCHAR(6)		
	, SBJ_CDE	VARCHAR(6)		
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_PIPE_LM ADD CONSTRAINT UFL_PIPE_LM_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_PIPE_LM IS '광역상수관';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.SAA_CDE IS '관용도';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.SBJ_CDE IS '유지보수사유';
COMMENT ON COLUMN icgis.UFL_PIPE_LM.SHAPE IS 'SHAPE';


--광역상수관로 심도

CREATE TABLE icgis.UFL_PIPE_PS(
	FTR_CDE		VARCHAR(6)		NOT NULL	
	, PIP_DEP	NUMERIC(38,8)	NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, SHAPE		public.geometry
);
ALTER TABLE icgis.UFL_PIPE_PS ADD CONSTRAINT UFL_PIPE_PS_PK PRIMARY KEY (FTR_CDE, PIP_DEP);
COMMENT ON TABLE icgis.UFL_PIPE_PS IS '광역상수관로 심도';
COMMENT ON COLUMN icgis.UFL_PIPE_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_PIPE_PS.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.UFL_PIPE_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_PIPE_PS.SHAPE IS 'SHAPE';


--광역상수맨홀

CREATE TABLE icgis.UFL_MANH_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, FOR_CDE	VARCHAR(6)		NOT NULL
	, SOM_CDE	VARCHAR(6)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, SHAPE		public.geometry	
	
);
ALTER TABLE icgis.UFL_MANH_PS ADD CONSTRAINT UFL_MANH_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_MANH_PS IS '광역상수맨홀';
COMMENT ON COLUMN icgis.UFL_MANH_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_MANH_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_MANH_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_MANH_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_MANH_PS.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.UFL_MANH_PS.SOM_CDE IS '맨홀종류';
COMMENT ON COLUMN icgis.UFL_MANH_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_MANH_PS.SHAPE IS 'SHAPE';


--광역상수터널

CREATE TABLE icgis.UFL_TRNL_LS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, TRN_NAM	VARCHAR(100)	NOT NULL
	, TNL_EXP	VARCHAR(50)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, SMA_LIN	VARCHAR(6)		NOT NULL
	, STD_DIP	NUMERIC(38,8)	
	, STD_LEN	NUMERIC(38,8)	
	, TNL_LOC	VARCHAR(100)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_TRNL_LS ADD CONSTRAINT UFL_TRNL_LS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_TRNL_LS IS '광역상수터널';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.TRN_NAM IS '터널명';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.TNL_EXP IS '터널용도';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.SMA_LIN IS '라이닝_구조';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.TNL_LOC IS '위치';
COMMENT ON COLUMN icgis.UFL_TRNL_LS.SHAPE IS 'SHAPE';


--광역소화전

CREATE TABLE icgis.UFL_FIRE_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, STD_DIP	NUMERIC(38,8)	
	, MOF_CDE	VARCHAR(6)		
	, SAP_NAM	VARCHAR(100)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_FIRE_PS ADD CONSTRAINT UFL_FIRE_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_FIRE_PS IS '광역소화전';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.MOF_CDE IS '소화전형식';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.SAP_NAM IS '관할소방서';
COMMENT ON COLUMN icgis.UFL_FIRE_PS.SHAPE IS 'SHAPE';


--난방맨홀

CREATE TABLE icgis.UFL_HMAN_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, FOR_CDE	VARCHAR(6)		
	, SOM_CDE	VARCHAR(6)		
	, IST_YMD	VARCHAR(8)		
	, ARA_LEN	NUMERIC(38,8)	
	, SEA_CDE	VARCHAR(6)		
	, SBC_CDE	VARCHAR(6)		
	, MAN		VARCHAR(50)	
	, FORX		VARCHAR(3)		
	, SHAPE		public.geometry	

);
ALTER TABLE icgis.UFL_HMAN_PS ADD CONSTRAINT UFL_HMAN_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_HMAN_PS IS '난방맨홀';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.SOM_CDE IS '맨홀종류';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.ARA_LEN IS '넓이';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.SEA_CDE IS '난방밸브';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.SBC_CDE IS '뚜껑재질';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.FORX IS '구조물형상';
COMMENT ON COLUMN icgis.UFL_HMAN_PS.SHAPE IS 'SHAPE';


--누수감지기 설치함

CREATE TABLE icgis.UFL_HLEK_PS(
	FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, FTR_CDE	VARCHAR(6)			NOT NULL
	, MNG_CDE	VARCHAR(7)			NOT NULL
	, IST_YMD	VARCHAR(8)			NOT NULL
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_HLEK_PS ADD CONSTRAINT UFL_HLEK_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_HLEK_PS IS '누수감지기 설치함';
COMMENT ON COLUMN icgis.UFL_HLEK_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_HLEK_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_HLEK_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_HLEK_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_HLEK_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_HLEK_PS.SHAPE IS 'SHAPE';


--누유감지 케이블

CREATE TABLE icgis.UFL_OLCB_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, IST_YMD	VARCHAR(8)		
	, MOP_CDE	VARCHAR(6)		
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_OLCB_PS ADD CONSTRAINT UFL_OLCB_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_OLCB_PS IS '누유감지 케이블';
COMMENT ON COLUMN icgis.UFL_OLCB_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_OLCB_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_OLCB_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_OLCB_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_OLCB_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_OLCB_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_OLCB_PS.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_OLCB_PS.SHAPE IS 'SHAPE';


--배전전력구

CREATE TABLE icgis.UFL_BCON_LM(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, STD_NAM	VARCHAR(100)	
	, MOP_CDE	VARCHAR(6)		
	, SPH_LIN	INTEGER			
	, STD_LEN	NUMERIC(38,8)	NOT NULL
	, STD_DEP	NUMERIC(38,8)	
	, HOL_DIP	NUMERIC(38,8)	
	, VEL_DIP	NUMERIC(38,8)	
	, MAN		VARCHAR(50)	
	, LAB		VARCHAR(50)	
	, MOF		VARCHAR(6)		
	, SHAPE		public.geometry	

);
ALTER TABLE icgis.UFL_BCON_LM ADD CONSTRAINT UFL_BCON_LM_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_BCON_LM IS '배전전력구';
COMMENT ON COLUMN icgis.UFL_BCON_LM.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_BCON_LM.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BCON_LM.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BCON_LM.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BCON_LM.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_BCON_LM.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_BCON_LM.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_BCON_LM.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.UFL_BCON_LM.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_BCON_LM.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_BCON_LM.HOL_DIP IS '열';
COMMENT ON COLUMN icgis.UFL_BCON_LM.VEL_DIP IS '단';
COMMENT ON COLUMN icgis.UFL_BCON_LM.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_BCON_LM.LAB IS '주석';
COMMENT ON COLUMN icgis.UFL_BCON_LM.MOF IS '전력구형태';
COMMENT ON COLUMN icgis.UFL_BCON_LM.SHAPE IS 'SHAPE';


--밸브 스테이션

CREATE TABLE icgis.UFL_OSTT_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, IST_YMD	VARCHAR(8)		
	, ARA_LEN	NUMERIC(38,8)	
	, BJD_CDE	VARCHAR(10)	
	, PNU_ADR	VARCHAR(50)	
	, SGE_CDE	VARCHAR(6)		
	, SGG_CDE	VARCHAR(5)		NOT NULL
	, SHAPE		public.geometry	
	
);
ALTER TABLE icgis.UFL_OSTT_PS ADD CONSTRAINT UFL_OSTT_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_OSTT_PS IS '밸브 스테이션';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.ARA_LEN IS '넓이';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.BJD_CDE IS '법정읍면동코드';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.PNU_ADR IS '지번';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.SGE_CDE IS '밸브종류';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.UFL_OSTT_PS.SHAPE IS 'SHAPE';


--밸브박스

CREATE TABLE icgis.UFL_OVLB_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, IST_YMD	VARCHAR(8)		
	, ARA_LEN	NUMERIC(38,8)	
	, SFA_CDE	VARCHAR(6)		
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_OVLB_PS ADD CONSTRAINT UFL_OVLB_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_OVLB_PS IS '밸브박스';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.ARA_LEN IS '넓이';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.SFA_CDE IS '송유밸브';
COMMENT ON COLUMN icgis.UFL_OVLB_PS.SHAPE IS 'SHAPE';


--변압기

CREATE TABLE icgis.UFL_BTRS_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, OUG_CDE	VARCHAR(6)		
	, BJD_CDE	VARCHAR(10)	
	, PNU_ADR	VARCHAR(50)	
	, SGG_CDE	VARCHAR(5)		NOT NULL
	, MAN		VARCHAR(50)	
	, SHAPE		public.geometry	

);
ALTER TABLE icgis.UFL_BTRS_PS ADD CONSTRAINT UFL_BTRS_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_BTRS_PS IS '변압기';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.OUG_CDE IS '지상_지하구분';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.BJD_CDE IS '법정읍면동코드';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.PNU_ADR IS '지번';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_BTRS_PS.SHAPE IS 'SHAPE';


--송유관 보호시설

CREATE TABLE icgis.UFL_OSFT_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, IST_YMD	VARCHAR(8)		
	, THK_WID	NUMERIC(38,8)	
	, STD_DEP	NUMERIC(38,8)	
	, STD_WID	NUMERIC(38,8)	
	, STD_LEN	NUMERIC(38,8)	
	, MOP_CDE	VARCHAR(6)		
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_OSFT_PS ADD CONSTRAINT UFL_OSFT_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_OSFT_PS IS '송유관 보호시설';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.THK_WID IS '두께';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.STD_WID IS '폭';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_OSFT_PS.SHAPE IS 'SHAPE';


--송유관로_면

CREATE TABLE icgis.UFL_OPIP_LM(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL	
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, IST_YMD	VARCHAR(8)		
	, STD_DIP	NUMERIC(38,8)	
	, STD_LEN	NUMERIC(38,8)	
	, LIN_CNT	NUMERIC(38,8)	
	, STD_DEP	NUMERIC(38,8)	
	, STD_WID	NUMERIC(38,8)	
	, MOP_CDE	VARCHAR(6)		
	, SOO_CDE	VARCHAR(6)		
	, LAB		VARCHAR(50)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_OPIP_LM ADD CONSTRAINT UFL_OPIP_LM_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_OPIP_LM IS '송유관로_면';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.LIN_CNT IS '선로수';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.STD_WID IS '폭';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.LAB IS '주석';
COMMENT ON COLUMN icgis.UFL_OPIP_LM.SHAPE IS 'SHAPE';


--송유관로심도

CREATE TABLE icgis.UFL_OPIP_PS(
	FTR_CDE		VARCHAR(6)		NOT NULL	
	, PIP_DEP	NUMERIC(38,8)	NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_OPIP_PS ADD CONSTRAINT UFL_OPIP_PS_PK PRIMARY KEY (FTR_CDE, PIP_DEP);
COMMENT ON TABLE icgis.UFL_OPIP_PS IS '송유관로심도';
COMMENT ON COLUMN icgis.UFL_OPIP_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_OPIP_PS.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.UFL_OPIP_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_OPIP_PS.SHAPE IS 'SHAPE';


--송전전력구

CREATE TABLE icgis.UFL_BCON_AS(
	FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, FTR_CDE	VARCHAR(6)			NOT NULL
	, MNG_CDE	VARCHAR(7)			NOT NULL
	, IST_YMD	VARCHAR(8)			NOT NULL
	, STD_NAM	VARCHAR(100)		
	, MOP_CDE	VARCHAR(6)			
	, SPH_LIN	INTEGER				
	, STD_LEN	NUMERIC(38,8)		NOT NULL
	, STD_DEP	NUMERIC(38,8)		
	, HOL_DIP	INTEGER		
	, VEL_DIP	NUMERIC(38,8)		
	, LAB		VARCHAR(50)		
	, MAN		VARCHAR(50)		
	, MOF		VARCHAR(7)			
	, HOL		NUMERIC(38,8)		
	, VEL		NUMERIC(38,8)		
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_BCON_AS ADD CONSTRAINT UFL_BCON_AS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_BCON_AS IS '송전전력구';
COMMENT ON COLUMN icgis.UFL_BCON_AS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_BCON_AS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BCON_AS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BCON_AS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BCON_AS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_BCON_AS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_BCON_AS.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_BCON_AS.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.UFL_BCON_AS.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_BCON_AS.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_BCON_AS.HOL_DIP IS '열';
COMMENT ON COLUMN icgis.UFL_BCON_AS.VEL_DIP IS '단';
COMMENT ON COLUMN icgis.UFL_BCON_AS.LAB IS '주석';
COMMENT ON COLUMN icgis.UFL_BCON_AS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_BCON_AS.MOF IS '전력구형태';
COMMENT ON COLUMN icgis.UFL_BCON_AS.HOL IS '가로길이';
COMMENT ON COLUMN icgis.UFL_BCON_AS.VEL IS '세로길이';
COMMENT ON COLUMN icgis.UFL_BCON_AS.SHAPE IS 'SHAPE';


--에어벤트

CREATE TABLE icgis.UFL_HAVT_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_HAVT_PS ADD CONSTRAINT UFL_HAVT_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_HAVT_PS IS '에어벤트';
COMMENT ON COLUMN icgis.UFL_HAVT_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_HAVT_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_HAVT_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_HAVT_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_HAVT_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_HAVT_PS.SHAPE IS 'SHAPE';

--열배관

CREATE TABLE icgis.UFL_HPIP_LM(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, IST_YMD	VARCHAR(8)		
	, STD_DIP	NUMERIC(38,8)	
	, STD_LEN	NUMERIC(38,8)	
	, SPH_LIN	INTEGER			
	, STD_DEP	NUMERIC(38,8)	
	, STD_WID	NUMERIC(38,8)	
	, MOP_CDE	VARCHAR(6)		
	, SOO_CDE	VARCHAR(6)		
	, MAN		VARCHAR(50)	
	, LAB		VARCHAR(50)	
	, SHAPE		public.geometry	

);
ALTER TABLE icgis.UFL_HPIP_LM ADD CONSTRAINT UFL_HPIP_LM_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_HPIP_LM IS '열배관';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.STD_WID IS '폭';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.LAB IS '주석';
COMMENT ON COLUMN icgis.UFL_HPIP_LM.SHAPE IS 'SHAPE';


--열배관심도

CREATE TABLE icgis.UFL_HPIP_PS(
	FTR_CDE		VARCHAR(6)			NOT NULL	
	, PIP_DEP	NUMERIC(38,8)		NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, IDN		VARCHAR(50)			NOT NULL
	, ORGZID	VARCHAR(6)			NOT NULL
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_HPIP_PS ADD CONSTRAINT UFL_HPIP_PS_PK PRIMARY KEY (FTR_CDE, PIP_DEP);
COMMENT ON TABLE icgis.UFL_HPIP_PS IS '열배관심도';
COMMENT ON COLUMN icgis.UFL_HPIP_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_HPIP_PS.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.UFL_HPIP_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_HPIP_PS.IDN IS '고유번호';
COMMENT ON COLUMN icgis.UFL_HPIP_PS.ORGZID IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_HPIP_PS.SHAPE IS 'SHAPE';


--저유소_면

CREATE TABLE icgis.UFL_OTNK_PS(
	FTR_CDE		VARCHAR(6)		NOT NULL	
	, FTR_IDN	INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, IST_YMD	VARCHAR(8)		
	, BJD_CDE	VARCHAR(10)	
	, PNU_ADR	VARCHAR(50)	
	, SPH_LIN	INTEGER			
	, STD_DEP	NUMERIC(38,8)	
	, STD_WID	NUMERIC(38,8)	
	, MOP_CDE	VARCHAR(6)		
	, SOO_CDE	VARCHAR(6)		
	, SGG_CDE	VARCHAR(5)		NOT NULL
	, LOC		VARCHAR(50)	
	, DCD		VARCHAR(10)	
	, SHAPE		public.geometry	
	
);
ALTER TABLE icgis.UFL_OTNK_PS ADD CONSTRAINT UFL_OTNK_PS_PK PRIMARY KEY (FTR_CDE, FTR_IDN);
COMMENT ON TABLE icgis.UFL_OTNK_PS IS '저유소_면';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.FTR_CDE IS '관리번호';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.FTR_IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.BJD_CDE IS '법정읍면동코드';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.PNU_ADR IS '지번';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.STD_WID IS '폭';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.LOC IS '위치';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.UFL_OTNK_PS.SHAPE IS 'SHAPE';


--전기맨홀

CREATE TABLE icgis.UFL_BMAN_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, FOR_CDE	VARCHAR(6)		
	, SCJ_CDE	VARCHAR(8)		NOT NULL
	, STD_HOL	NUMERIC(38,8)	NOT NULL
	, STD_VEL	NUMERIC(38,8)	
	, STD_DEP	NUMERIC(38,8)	
	, BJD_CDE	VARCHAR(10)	
	, PNU_ADR	VARCHAR(50)	
	, SGG_CDE	VARCHAR(5)		NOT NULL
	, MAN		VARCHAR(50)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_BMAN_PS ADD CONSTRAINT UFL_BMAN_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_BMAN_PS IS '전기맨홀';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.SCJ_CDE IS '전기맨홀종류';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.STD_HOL IS '가로길이';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.STD_VEL IS '세로길이';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.BJD_CDE IS '법정동읍면동코드';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.PNU_ADR IS '지번';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.SGG_CDE IS '시군구코드';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_BMAN_PS.SHAPE IS 'SHAPE';


--전력지중 환기구

CREATE TABLE icgis.UFL_BVNT_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, FTR_CDE	VARCHAR(6)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, SCF_CDE	VARCHAR(6)		
	, MAN		VARCHAR(50)		NOT NULL
	, SHAPE		public.geometry
);
ALTER TABLE icgis.UFL_BVNT_PS ADD CONSTRAINT UFL_BVNT_PS_PK PRIMARY KEY (FTR_IDN, FTR_CDE);
COMMENT ON TABLE icgis.UFL_BVNT_PS IS '전력지중 환기구';
COMMENT ON COLUMN icgis.UFL_BVNT_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_BVNT_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BVNT_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BVNT_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BVNT_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_BVNT_PS.SCF_CDE IS '환기구종류';
COMMENT ON COLUMN icgis.UFL_BVNT_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_BVNT_PS.SHAPE IS 'SHAPE';


--전력지중관로

CREATE TABLE icgis.UFL_BPIP_LM(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, MOP_CDE	VARCHAR(6)		        
	, STD_LEN	NUMERIC(38,8)	NOT NULL
	, SPH_LIN	INTEGER			NOT NULL
	, STD_DEP	NUMERIC(38,8)	
	, STD_DIP	NUMERIC(38,8)	
	, HOL_DIP	NUMERIC(38,8)	
	, VEL_DIP	NUMERIC(38,8)	
	, MAN		VARCHAR(50)	
	, LAB		VARCHAR(50)	
	, SUBTYPE	INTEGER			
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_BPIP_LM ADD CONSTRAINT UFL_BPIP_LM_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_BPIP_LM IS '전력지중관로';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.HOL_DIP IS '열';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.VEL_DIP IS '단';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.LAB IS '주석';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.SUBTYPE IS '분류';
COMMENT ON COLUMN icgis.UFL_BPIP_LM.SHAPE IS 'SHAPE';


--전력지중관로심도

CREATE TABLE icgis.UFL_BPIP_PS(
	FTR_CDE		VARCHAR(6)			NOT NULL	
	, PIP_DEP	NUMERIC(38,8)		NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, IDN		VARCHAR(50)			NOT NULL
	, ORGZID	VARCHAR(6)			NOT NULL
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_BPIP_PS ADD CONSTRAINT UFL_BPIP_PS_PK PRIMARY KEY (FTR_CDE, PIP_DEP);
COMMENT ON TABLE icgis.UFL_BPIP_PS IS '전력지중관로심도';
COMMENT ON COLUMN icgis.UFL_BPIP_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_BPIP_PS.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.UFL_BPIP_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_BPIP_PS.IDN IS '고유번호';
COMMENT ON COLUMN icgis.UFL_BPIP_PS.ORGZID IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_BPIP_PS.SHAPE IS 'SHAPE';


--정압기

CREATE TABLE icgis.UFL_GPRS_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, STD_NAM	VARCHAR(100)	NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, SGF_CDE	VARCHAR(6)		
	, OUG_CDE	VARCHAR(6)		
	, SOO_CDE	VARCHAR(6)		
	, SGA_CDE	VARCHAR(6)		
	, SGF_NAM	VARCHAR(100)	
	, MAN		VARCHAR(50)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_GPRS_PS ADD CONSTRAINT UFL_GPRS_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_GPRS_PS IS '정압기';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.SGF_CDE IS '정압기종류';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.OUG_CDE IS '지상_지하구분';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.SGA_CDE IS '압력';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.SGF_NAM IS '공급정압기코드';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_GPRS_PS.SHAPE IS 'SHAPE';


--천연가스 맨홀

CREATE TABLE icgis.UFL_GMAN_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, STD_NAM	VARCHAR(100)
	, IST_YMD	VARCHAR(8)	
	, FOR_CDE	VARCHAR(6)	
	, SOM_CDE	VARCHAR(6)		NOT NULL
	, STD_DEP	NUMERIC(38,8)	NOT NULL
	, ARA_LEN	NUMERIC(38,8)	NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_GMAN_PS ADD CONSTRAINT UFL_GMAN_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_GMAN_PS IS '천연가스 맨홀';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.SOM_CDE IS '맨홀종류';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.ARA_LEN IS '넓이';
COMMENT ON COLUMN icgis.UFL_GMAN_PS.SHAPE IS 'SHAPE';


--천연가스배관

CREATE TABLE icgis.UFL_GPIP_LM(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		
	, MNG_CDE	VARCHAR(7)		
	, STD_NAM	VARCHAR(100)	
	, IST_YMD	VARCHAR(8)		
	, STD_DIP	NUMERIC(38,8)	
	, STD_DEP	NUMERIC(38,8)	
	, STD_WID	NUMERIC(38,8)	
	, STD_LEN	NUMERIC(38,8)	
	, OUG_CDE	VARCHAR(6)		
	, MOP_CDE	VARCHAR(6)		
	, SOO_CDE	VARCHAR(6)		
	, LIN_CNT	NUMERIC(38,8)	
	, SGA_CDE	VARCHAR(6)		
	, SGB_CDE	VARCHAR(6)		
	, MAN		VARCHAR(50)	
	, LAB		VARCHAR(50)	
	, SUBTYPE	INTEGER			
	, SGH		VARCHAR(3)		
	, LEN		NUMERIC(38,8)	
	, SHAPE		public.geometry	

);
ALTER TABLE icgis.UFL_GPIP_LM ADD CONSTRAINT UFL_GPIP_LM_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_GPIP_LM IS '천연가스배관';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.STD_WID IS '폭';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.OUG_CDE IS '지상_지하구분';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.SOO_CDE IS '개통상태';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.LIN_CNT IS '선로수';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.SGA_CDE IS '압력';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.SGB_CDE IS '방식구분';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.LAB IS '주석';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.SUBTYPE IS '분류';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.SGH IS '배관구분';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.LEN IS 'LEN';
COMMENT ON COLUMN icgis.UFL_GPIP_LM.SHAPE IS 'SHAPE';


--천연방식전위 관측함

CREATE TABLE icgis.UFL_GMNT_PS(
	FTR_IDN		INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, FTR_CDE	VARCHAR(6)			NOT NULL
	, MNG_CDE	VARCHAR(7)			
	, STD_NAM	VARCHAR(100)		
	, IST_YMD	VARCHAR(8)			
	, SGA_CDE	VARCHAR(6)			
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_GMNT_PS ADD CONSTRAINT UFL_GMNT_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_GMNT_PS IS '천연방식전위 관측함';
COMMENT ON COLUMN icgis.UFL_GMNT_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_GMNT_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_GMNT_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_GMNT_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_GMNT_PS.STD_NAM IS '명칭';
COMMENT ON COLUMN icgis.UFL_GMNT_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_GMNT_PS.SGA_CDE IS '압력';
COMMENT ON COLUMN icgis.UFL_GMNT_PS.SHAPE IS 'SHAPE';


--통신맨홀

CREATE TABLE icgis.UFL_KMAN_PS(
	FTR_CDE		VARCHAR(6)			NOT NULL	
	, FTR_IDN	INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, MNG_CDE	VARCHAR(7)			
	, IST_YMD	VARCHAR(8)			
	, FOR_CDE	VARCHAR(6)			
	, SOM_CDE	VARCHAR(6)			
	, LEN_NAM	VARCHAR(100)		
	, MAN		VARCHAR(50)		
	, SUBTYPE	INTEGER				
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.UFL_KMAN_PS ADD CONSTRAINT UFL_KMAN_PS_PK PRIMARY KEY (FTR_CDE);
COMMENT ON TABLE icgis.UFL_KMAN_PS IS '통신맨홀';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.FTR_CDE IS '관리번호';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.FTR_IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.SOM_CDE IS '맨홀종류';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.LEN_NAM IS '간선명';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.SUBTYPE IS '분류';
COMMENT ON COLUMN icgis.UFL_KMAN_PS.SHAPE IS 'SHAPE';


--통신선로

CREATE TABLE icgis.UFL_KPIP_LS(
	FTR_CDE		VARCHAR(6)		NOT NULL	
	, FTR_IDN	INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, MNG_CDE	VARCHAR(7)		
	, IST_YMD	VARCHAR(8)		
	, SPH_LIN	INTEGER			
	, MOP_CDE	VARCHAR(6)		
	, STD_DIP	NUMERIC(38,8)	
	, STD_HOL	NUMERIC(38,8)	
	, STD_DEP	NUMERIC(38,8)	
	, LEN_NAM	VARCHAR(100)	
	, SDG_PNT	VARCHAR(50)	
	, SDH_PNT	VARCHAR(50)	
	, PIP_LBL	VARCHAR(50)	
	, LENG		NUMERIC(38,8)	
	, VEL		NUMERIC(38,8)	
	, MAN		VARCHAR(50)	
	, REMARK	VARCHAR(50)	
	, SUBTYPE	INTEGER			
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_KPIP_LS ADD CONSTRAINT UFL_KPIP_LS_PK PRIMARY KEY (FTR_CDE, FTR_IDN);
COMMENT ON TABLE icgis.UFL_KPIP_LS IS '통신선로';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.FTR_CDE IS '관리번호';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.FTR_IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.STD_HOL IS '가로길이';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.LEN_NAM IS '간선명';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.SDG_PNT IS '통신관로연결시작점';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.SDH_PNT IS '통신관로연결끝점';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.PIP_LBL IS '관라벨';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.LENG IS '길이';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.VEL IS '단';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.REMARK IS '비고';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.SUBTYPE IS '분류';
COMMENT ON COLUMN icgis.UFL_KPIP_LS.SHAPE IS 'SHAPE';


--통신심도

CREATE TABLE icgis.UFL_KPIP_PS(
	FTR_CDE		VARCHAR(6)			NOT NULL	
	, FTR_IDN	INTEGER				NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, PIP_DEP	NUMERIC(38,8)		NOT NULL
	, GRU_HSL	NUMERIC(38,8)		NOT NULL
	, ORGZID	VARCHAR(6)			NOT NULL
	, SHAPE		public.geometry		

);
ALTER TABLE icgis.UFL_KPIP_PS ADD CONSTRAINT UFL_KPIP_PS_PK PRIMARY KEY (FTR_CDE, FTR_IDN);
COMMENT ON TABLE icgis.UFL_KPIP_PS IS '통신심도';
COMMENT ON COLUMN icgis.UFL_KPIP_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_KPIP_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_KPIP_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_KPIP_PS.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.UFL_KPIP_PS.GRU_HSL IS '관저고';
COMMENT ON COLUMN icgis.UFL_KPIP_PS.ORGZID IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_KPIP_PS.SHAPE IS 'SHAPE';


--통신주

CREATE TABLE icgis.UFL_KPOL_PS(
	FTR_CDE		VARCHAR(6)		NOT NULL	
	, FTR_IDN	INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, MNG_CDE	VARCHAR(7)		
	, IST_YMD	VARCHAR(8)		
	, STD_LEN	NUMERIC(38,8)	
	, SMA_EXP	VARCHAR(50)	
	, LEN_NAM	VARCHAR(100)	
	, MAN		VARCHAR(50)	
	, SUBTYPE	INTEGER			
	, SDD		VARCHAR(50)	
	, SHAPE		public.geometry	

);
ALTER TABLE icgis.UFL_KPOL_PS ADD CONSTRAINT UFL_KPOL_PS_PK PRIMARY KEY (FTR_CDE, FTR_IDN);
COMMENT ON TABLE icgis.UFL_KPOL_PS IS '통신주';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.SMA_EXP IS '통신주재질';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.LEN_NAM IS '간선명';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.SUBTYPE IS '분류';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.SDD IS '통신관리형태';
COMMENT ON COLUMN icgis.UFL_KPOL_PS.SHAPE IS 'SHAPE';


--핸드홀

CREATE TABLE icgis.UFL_HHND_PS(
	FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTR_CDE	VARCHAR(6)		NOT NULL
	, MNG_CDE	VARCHAR(7)		NOT NULL
	, IST_YMD	VARCHAR(8)		NOT NULL
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.UFL_HHND_PS ADD CONSTRAINT UFL_HHND_PS_PK PRIMARY KEY (FTR_IDN);
COMMENT ON TABLE icgis.UFL_HHND_PS IS '핸드홀';
COMMENT ON COLUMN icgis.UFL_HHND_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.UFL_HHND_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.UFL_HHND_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.UFL_HHND_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.UFL_HHND_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.UFL_HHND_PS.SHAPE IS 'SHAPE';


--------------------------------------------------------------------------
--// ##상수
--------------------------------------------------------------------------


--WTL_BAD_A

CREATE TABLE icgis.WTL_BAD_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, SOCD			VARCHAR(3)		
	, MNGT			VARCHAR(7)		
	, NAM			VARCHAR(50)	
	, LOC			VARCHAR(50)	
	, MNO			VARCHAR(50)	
	, DBLD			INTEGER			
	, DHOUS			INTEGER			
	, DPOPL			INTEGER			
	, JGU			VARCHAR(6)		
	, SUJ			VARCHAR(50)	
	, HNAM			VARCHAR(10)	
	, HTEL			VARCHAR(14)	
	, CAU			VARCHAR(6)		
	, OTM			VARCHAR(60)	
	, HALT			INTEGER			
	, LALT			INTEGER			
	, JBLD			INTEGER			
	, JHOUS			INTEGER			
	, GBLD			INTEGER			
	, GHOUS			INTEGER			
	, GNAM			VARCHAR(10)	
	, ETC			VARCHAR(100)	
	, RNU			VARCHAR(100)	
	, RVL			VARCHAR(100)	
	, RSU			VARCHAR(100)	
	, RETC			VARCHAR(100)	
	, EFF			VARCHAR(100)	
	, PRB			VARCHAR(100)	
	, DEV			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_BAD_A ADD CONSTRAINT WTL_BAD_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_BAD_A IS 'WTL_BAD_A';
COMMENT ON COLUMN icgis.WTL_BAD_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_BAD_A.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_BAD_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_BAD_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WTL_BAD_A.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_BAD_A.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_BAD_A.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.WTL_BAD_A.LOC IS '침수지역';
COMMENT ON COLUMN icgis.WTL_BAD_A.MNO IS '관리번호';
COMMENT ON COLUMN icgis.WTL_BAD_A.DBLD IS '대상_가옥';
COMMENT ON COLUMN icgis.WTL_BAD_A.DHOUS IS '대상_세대';
COMMENT ON COLUMN icgis.WTL_BAD_A.DPOPL IS '대상_인구';
COMMENT ON COLUMN icgis.WTL_BAD_A.JGU IS '정수권역';
COMMENT ON COLUMN icgis.WTL_BAD_A.SUJ IS '수계통';
COMMENT ON COLUMN icgis.WTL_BAD_A.HNAM IS '확인요원_성명';
COMMENT ON COLUMN icgis.WTL_BAD_A.HTEL IS '확인요원_전화';
COMMENT ON COLUMN icgis.WTL_BAD_A.CAU IS '원인';
COMMENT ON COLUMN icgis.WTL_BAD_A.OTM IS '출수시간';
COMMENT ON COLUMN icgis.WTL_BAD_A.HALT IS '표고_최고';
COMMENT ON COLUMN icgis.WTL_BAD_A.LALT IS '표고_최저';
COMMENT ON COLUMN icgis.WTL_BAD_A.JBLD IS '자연수_가옥';
COMMENT ON COLUMN icgis.WTL_BAD_A.JHOUS IS '자연수_세대';
COMMENT ON COLUMN icgis.WTL_BAD_A.GBLD IS '가압수_가옥';
COMMENT ON COLUMN icgis.WTL_BAD_A.GHOUS IS '가압수_세대';
COMMENT ON COLUMN icgis.WTL_BAD_A.GNAM IS '가압장';
COMMENT ON COLUMN icgis.WTL_BAD_A.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.WTL_BAD_A.RNU IS '조치현황_누수보수';
COMMENT ON COLUMN icgis.WTL_BAD_A.RVL IS '조치현황_제수변조정';
COMMENT ON COLUMN icgis.WTL_BAD_A.RSU IS '조치현황_수계전환';
COMMENT ON COLUMN icgis.WTL_BAD_A.RETC IS '조치현황_기타';
COMMENT ON COLUMN icgis.WTL_BAD_A.EFF IS '조치현황_효과';
COMMENT ON COLUMN icgis.WTL_BAD_A.PRB IS '조치현황_문제점';
COMMENT ON COLUMN icgis.WTL_BAD_A.DEV IS '조치현황_개선방안';
COMMENT ON COLUMN icgis.WTL_BAD_A.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_BAD_A.LBL IS '법정동명';
COMMENT ON COLUMN icgis.WTL_BAD_A.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_BAD_A.SHAPE IS 'SHAPE';


--WTL_GSDT_A

CREATE TABLE icgis.WTL_GSDT_A(
	FTC				VARCHAR(6)			NOT NULL	
	, IDN			VARCHAR(8)			NOT NULL	
	, OBJECTID		INTEGER				NOT NULL
	, MNGT			VARCHAR(7)			
	, NAM			VARCHAR(50)		
	, HOUS			INTEGER				
	, POPL			INTEGER				
	, ARA			NUMERIC(38,8)		
	, LBL			VARCHAR(50)		
	, SYS			VARCHAR(1)			
	, UPDATE_DTE	DATE				
	, SHAPE			public.geometry		
);
ALTER TABLE icgis.WTL_GSDT_A ADD CONSTRAINT WTL_GSDT_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_GSDT_A IS 'WTL_GSDT_A';
COMMENT ON COLUMN icgis.WTL_GSDT_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_GSDT_A.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_GSDT_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_GSDT_A.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_GSDT_A.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.WTL_GSDT_A.HOUS IS '세대';
COMMENT ON COLUMN icgis.WTL_GSDT_A.POPL IS '인구';
COMMENT ON COLUMN icgis.WTL_GSDT_A.ARA IS '총면적';
COMMENT ON COLUMN icgis.WTL_GSDT_A.LBL IS '법정동명';
COMMENT ON COLUMN icgis.WTL_GSDT_A.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_GSDT_A.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_GSDT_A.SHAPE IS 'SHAPE';


--WTL_GULC_A

CREATE TABLE icgis.WTL_GULC_A(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, ARA			NUMERIC(38,8)	
	, PACK			VARCHAR(6)		
	, SIMDO			NUMERIC(38,8)	
	, BUKANO		VARCHAR(33)	
	, GALYM			VARCHAR(6)		
	, MAEJIL		VARCHAR(15)	
	, JYSYMD		DATE			
	, JYEYMD		DATE			
	, CHGYMD		DATE			
	, CGYMD			DATE			
	, DGYMD			DATE			
	, DIGCOM		VARCHAR(20)	
	, GTELE			VARCHAR(20)	
	, SYMD			DATE			
	, PYMD			DATE			
	, CYMD			DATE			
	, BKYMD			DATE			
	, CANYN			VARCHAR(6)		
	, BTELE			VARCHAR(20)	
	, UPJGCD		VARCHAR(6)		
	, KONGCD		VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, NOTE			VARCHAR(50)	
	, REPCOM1		VARCHAR(20)	
	, REPCOM2		VARCHAR(20)	
	, KWAN			NUMERIC(38,8)	
	, MNGT			VARCHAR(7)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	

);
ALTER TABLE icgis.WTL_GULC_A ADD CONSTRAINT WTL_GULC_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_GULC_A IS 'WTL_GULC_A';
COMMENT ON COLUMN icgis.WTL_GULC_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_GULC_A.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_GULC_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_GULC_A.ARA IS '총면적';
COMMENT ON COLUMN icgis.WTL_GULC_A.PACK IS '포장재질';
COMMENT ON COLUMN icgis.WTL_GULC_A.SIMDO IS '심도';
COMMENT ON COLUMN icgis.WTL_GULC_A.BUKANO IS '부과번호';
COMMENT ON COLUMN icgis.WTL_GULC_A.GALYM IS '관리청유무';
COMMENT ON COLUMN icgis.WTL_GULC_A.MAEJIL IS '매설매질';
COMMENT ON COLUMN icgis.WTL_GULC_A.JYSYMD IS '점용기간시작일';
COMMENT ON COLUMN icgis.WTL_GULC_A.JYEYMD IS '점용기간종료일';
COMMENT ON COLUMN icgis.WTL_GULC_A.CHGYMD IS '변경처리일';
COMMENT ON COLUMN icgis.WTL_GULC_A.CGYMD IS '착공계제출일';
COMMENT ON COLUMN icgis.WTL_GULC_A.DGYMD IS '준공계제출일';
COMMENT ON COLUMN icgis.WTL_GULC_A.DIGCOM IS '굴착업체';
COMMENT ON COLUMN icgis.WTL_GULC_A.GTELE IS '굴착전화번호';
COMMENT ON COLUMN icgis.WTL_GULC_A.SYMD IS '침수시기';
COMMENT ON COLUMN icgis.WTL_GULC_A.PYMD IS '도시계획결정고시일';
COMMENT ON COLUMN icgis.WTL_GULC_A.CYMD IS '협조일/조회일';
COMMENT ON COLUMN icgis.WTL_GULC_A.BKYMD IS '복구검사일';
COMMENT ON COLUMN icgis.WTL_GULC_A.CANYN IS '부과취소여부';
COMMENT ON COLUMN icgis.WTL_GULC_A.BTELE IS '복구전화번호';
COMMENT ON COLUMN icgis.WTL_GULC_A.UPJGCD IS '업종';
COMMENT ON COLUMN icgis.WTL_GULC_A.KONGCD IS '공사유형코드';
COMMENT ON COLUMN icgis.WTL_GULC_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WTL_GULC_A.LBL IS '법정동명';
COMMENT ON COLUMN icgis.WTL_GULC_A.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_GULC_A.NOTE IS '비고';
COMMENT ON COLUMN icgis.WTL_GULC_A.REPCOM1 IS 'REPCOM1';
COMMENT ON COLUMN icgis.WTL_GULC_A.REPCOM2 IS 'REPCOM2';
COMMENT ON COLUMN icgis.WTL_GULC_A.KWAN IS '지출과목_관';
COMMENT ON COLUMN icgis.WTL_GULC_A.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_GULC_A.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_GULC_A.SHAPE IS 'SHAPE';


--WTL_IMAGE_P

CREATE TABLE icgis.WTL_IMAGE_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNGT			VARCHAR(7)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, FFTC			VARCHAR(5)		
	, FIDN			VARCHAR(8)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_IMAGE_P ADD CONSTRAINT WTL_IMAGE_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_IMAGE_P IS 'WTL_IMAGE_P';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.DST IS '병합계량코드';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.FFTC IS '교차시설';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.FIDN IS '일련번호';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.LBL IS '법정동명';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_IMAGE_P.SHAPE IS 'SHAPE';


--WTL_TPLANT_A

CREATE TABLE icgis.WTL_TPLANT_A(
	FTC			VARCHAR(6)		NOT NULL	
	, IDN		VARCHAR(8)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, GUCD		VARCHAR(5)		
	, DCD		VARCHAR(10)	
	, SOCD		VARCHAR(3)		
	, MNGT		VARCHAR(7)		
	, NAM		VARCHAR(20)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.WTL_TPLANT_A ADD CONSTRAINT WTL_TPLANT_A_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_TPLANT_A IS 'WTL_TPLANT_A';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.WTL_TPLANT_A.SHAPE IS 'SHAPE';


--WTL_TPLANT_P

CREATE TABLE icgis.WTL_TPLANT_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, MNGT			VARCHAR(7)		
	, NAM			VARCHAR(20)	
	, ADDR			VARCHAR(100)	
	, SRC			VARCHAR(20)	
	, USE			VARCHAR(50)	
	, YMD			DATE			
	, TYMD			DATE			
	, NOTE			VARCHAR(100)	
	, ARA			NUMERIC(38,8)	
	, BARA			NUMERIC(38,8)	
	, QTY			INTEGER			
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(8)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_TPLANT_P ADD CONSTRAINT WTL_TPLANT_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_TPLANT_P IS 'WTL_TPLANT_P';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.NAM IS '펌프장명칭';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.ADDR IS '주소';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.SRC IS '수원명';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.USE IS '주용도';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.TYMD IS '처분일';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.ARA IS '총면적';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.BARA IS '인근지부설_면적';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.QTY IS '용량';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.CIDN IS '공사번호';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_TPLANT_P.SHAPE IS 'SHAPE';


--가압구역

CREATE TABLE icgis.WTL_KAAP_A(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, SOCD			VARCHAR(3)		
	, MNGT			VARCHAR(7)		
	, NAM			VARCHAR(50)	
	, LOC			VARCHAR(50)	
	, MNO			VARCHAR(50)	
	, DBLD			INTEGER			
	, DHOUS			INTEGER			
	, DPOPL			INTEGER			
	, JGU			VARCHAR(6)		
	, SUJ			VARCHAR(50)	
	, HNAM			VARCHAR(10)	
	, HTEL			VARCHAR(14)	
	, CAU			VARCHAR(6)		
	, OTM			VARCHAR(60)	
	, HALT			INTEGER			
	, LALT			INTEGER			
	, JBLD			INTEGER			
	, JHOUS			INTEGER			
	, GBLD			INTEGER			
	, GHOUS			INTEGER			
	, GNAM			VARCHAR(10)	
	, ETC			VARCHAR(100)	
	, RNU			VARCHAR(100)	
	, RVL			VARCHAR(100)	
	, RSU			VARCHAR(100)	
	, RETC			VARCHAR(100)	
	, EFF			VARCHAR(100)	
	, PRB			VARCHAR(100)	
	, DEV			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	

);
ALTER TABLE icgis.WTL_KAAP_A ADD CONSTRAINT WTL_KAAP_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_KAAP_A IS '가압구역';
COMMENT ON COLUMN icgis.WTL_KAAP_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_KAAP_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_KAAP_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_KAAP_A.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_KAAP_A.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_KAAP_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_KAAP_A.NAM IS '지역명';
COMMENT ON COLUMN icgis.WTL_KAAP_A.LOC IS '위치';
COMMENT ON COLUMN icgis.WTL_KAAP_A.MNO IS '관리번호';
COMMENT ON COLUMN icgis.WTL_KAAP_A.DBLD IS '대상_가옥';
COMMENT ON COLUMN icgis.WTL_KAAP_A.DHOUS IS '대상_세대';
COMMENT ON COLUMN icgis.WTL_KAAP_A.DPOPL IS '대상_인구';
COMMENT ON COLUMN icgis.WTL_KAAP_A.JGU IS '정수권역';
COMMENT ON COLUMN icgis.WTL_KAAP_A.SUJ IS '수계통';
COMMENT ON COLUMN icgis.WTL_KAAP_A.HNAM IS '확인요원_성명';
COMMENT ON COLUMN icgis.WTL_KAAP_A.HTEL IS '확인요원_전화';
COMMENT ON COLUMN icgis.WTL_KAAP_A.CAU IS '원인';
COMMENT ON COLUMN icgis.WTL_KAAP_A.OTM IS '출수시간';
COMMENT ON COLUMN icgis.WTL_KAAP_A.HALT IS '표고_최고';
COMMENT ON COLUMN icgis.WTL_KAAP_A.LALT IS '표고_최저';
COMMENT ON COLUMN icgis.WTL_KAAP_A.JBLD IS '자연수_가옥';
COMMENT ON COLUMN icgis.WTL_KAAP_A.JHOUS IS '자연수_세대';
COMMENT ON COLUMN icgis.WTL_KAAP_A.GBLD IS '가압수_가옥';
COMMENT ON COLUMN icgis.WTL_KAAP_A.GHOUS IS '가압수_세대';
COMMENT ON COLUMN icgis.WTL_KAAP_A.GNAM IS '가압장';
COMMENT ON COLUMN icgis.WTL_KAAP_A.ETC IS '기타';
COMMENT ON COLUMN icgis.WTL_KAAP_A.RNU IS '조치현황_누수보수';
COMMENT ON COLUMN icgis.WTL_KAAP_A.RVL IS '조치현황_제수변조정';
COMMENT ON COLUMN icgis.WTL_KAAP_A.RSU IS '조치현황_수계전환';
COMMENT ON COLUMN icgis.WTL_KAAP_A.RETC IS '조치현황_기타';
COMMENT ON COLUMN icgis.WTL_KAAP_A.EFF IS '조치현황_효과';
COMMENT ON COLUMN icgis.WTL_KAAP_A.PRB IS '조치현황_문제점';
COMMENT ON COLUMN icgis.WTL_KAAP_A.DEV IS '조치현황_개선방안';
COMMENT ON COLUMN icgis.WTL_KAAP_A.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_KAAP_A.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_KAAP_A.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_KAAP_A.SHAPE IS 'SHAPE';


--가압장

CREATE TABLE icgis.WTL_KAAP_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, NAM			VARCHAR(50)	
	, CMNGT			VARCHAR(7)		
	, CIDN			VARCHAR(8)		
	, MNGT			VARCHAR(7)		
	, SAG			VARCHAR(6)		
	, ADDR			VARCHAR(60)	
	, LOC			VARCHAR(50)	
	, ALT			INTEGER			
	, HOUS			INTEGER			
	, POPL			INTEGER			
	, YMD			DATE			
	, OPT			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, PWR			INTEGER			
	, INPR			NUMERIC(38,8)	
	, OTPR			NUMERIC(38,8)	
	, IYMD			DATE			
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	

);
ALTER TABLE icgis.WTL_KAAP_P ADD CONSTRAINT WTL_KAAP_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_KAAP_P IS '가압장';
COMMENT ON COLUMN icgis.WTL_KAAP_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_KAAP_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_KAAP_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_KAAP_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_KAAP_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_KAAP_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_KAAP_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_KAAP_P.NAM IS '명칭';
COMMENT ON COLUMN icgis.WTL_KAAP_P.CMNGT IS '공사_등록주체';
COMMENT ON COLUMN icgis.WTL_KAAP_P.CIDN IS '공사_공사번호';
COMMENT ON COLUMN icgis.WTL_KAAP_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_KAAP_P.SAG IS '유인여부';
COMMENT ON COLUMN icgis.WTL_KAAP_P.ADDR IS '위치';
COMMENT ON COLUMN icgis.WTL_KAAP_P.LOC IS '가압구역';
COMMENT ON COLUMN icgis.WTL_KAAP_P.ALT IS '표고';
COMMENT ON COLUMN icgis.WTL_KAAP_P.HOUS IS '세대';
COMMENT ON COLUMN icgis.WTL_KAAP_P.POPL IS '인구';
COMMENT ON COLUMN icgis.WTL_KAAP_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_KAAP_P.OPT IS '가동여부';
COMMENT ON COLUMN icgis.WTL_KAAP_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_KAAP_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_KAAP_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_KAAP_P.PWR IS '계약전력';
COMMENT ON COLUMN icgis.WTL_KAAP_P.INPR IS '인입수압';
COMMENT ON COLUMN icgis.WTL_KAAP_P.OTPR IS '배출수압';
COMMENT ON COLUMN icgis.WTL_KAAP_P.IYMD IS '인버터설치일';
COMMENT ON COLUMN icgis.WTL_KAAP_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_KAAP_P.SHAPE IS 'SHAPE';


--계획관로

CREATE TABLE icgis.WTL_PLANPIPE_L(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, PYMD			DATE			
	, SAA			VARCHAR(6)		
	, LENG			NUMERIC(38,8)	
	, DIP			NUMERIC(5)		
	, YMD			DATE			
	, SYS			VARCHAR(1)		
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, CDIP			VARCHAR(4)		
	, UPDATE_DTE	DATE			
	, MOP			VARCHAR(6)		
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_PLANPIPE_L ADD CONSTRAINT WTL_PLANPIPE_L_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_PLANPIPE_L IS '계획관로';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.PYMD IS '계획수립년도';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.SAA IS '관용도';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.LENG IS '연장';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.YMD IS '설치예정일';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.CDIP IS '구경문자';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.MOP IS '관재질';
COMMENT ON COLUMN icgis.WTL_PLANPIPE_L.SHAPE IS 'SHAPE';


--계획시설물

CREATE TABLE icgis.WTL_PLANFAC_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, PYMD			DATE			
	, YMD			DATE			
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_PLANFAC_P ADD CONSTRAINT WTL_PLANFAC_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_PLANFAC_P IS '계획시설물';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.DST IS '병합계량코드';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.PYMD IS '도시계획결정고시일';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.LBL IS '법정동명';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_PLANFAC_P.SHAPE IS 'SHAPE';


--급수탑

CREATE TABLE icgis.WTL_WTOWER_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, YMD			DATE			
	, BDIP			NUMERIC(5)		
	, DIP			NUMERIC(5)		
	, HIT			NUMERIC(5)		
	, ETC			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, ADDR			VARCHAR(60)	
	, WTGB			VARCHAR(6)		
	, SUJUN_NO		VARCHAR(12)	
	, KEGI_TYPE		VARCHAR(6)		
	, KEGI_NO		VARCHAR(15)	
	, VYMD			DATE			
	, STAT			VARCHAR(6)		
	, UPDATE_DTE	DATE			
	, BSS			VARCHAR(25)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_WTOWER_P ADD CONSTRAINT WTL_WTOWER_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_WTOWER_P IS '급수탑';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.BDIP IS '관경';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.HIT IS '높이';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.ADDR IS '위치';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.WTGB IS '구분';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.SUJUN_NO IS '수전번호';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.KEGI_TYPE IS '계량기형식';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.KEGI_NO IS '계량기 기물번호';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.VYMD IS '유효경과일';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.BSS IS '변실규격';
COMMENT ON COLUMN icgis.WTL_WTOWER_P.SHAPE IS 'SHAPE';


--기타 변류

CREATE TABLE icgis.WTL_VALVETC_P(
	IDN				VARCHAR(8)		NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, ANG			NUMERIC(5)		
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, YMD			DATE			
	, DIP			NUMERIC(5)		
	, BTT			VARCHAR(6)		
	, BSS			VARCHAR(25)	
	, CSS			VARCHAR(25)	
	, CLS			VARCHAR(6)		
	, STAT			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, ANG1			NUMERIC(5)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_VALVETC_P ADD CONSTRAINT WTL_VALVETC_P_PK PRIMARY KEY (IDN, FTC);
COMMENT ON TABLE icgis.WTL_VALVETC_P IS '기타 변류';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.FTC IS '개별번호';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.ANG IS '각도';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.BTT IS '변실형태';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.BSS IS '변실규격';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.CSS IS '뚜껑구경';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.CLS IS '폐쇄여부';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.ANG1 IS '각도1';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_VALVETC_P.SHAPE IS 'SHAPE';


--누수_불출수지점

CREATE TABLE icgis.WTL_NUBU_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, MNGT			VARCHAR(7)		
	, LOC			VARCHAR(50)	
	, NRE			VARCHAR(6)		
	, MYMD			DATE			
	, MMNGT			VARCHAR(7)		
	, MIDN			VARCHAR(10)	
	, NWO			VARCHAR(6)		
	, VOL			NUMERIC(38,8)	
	, NGUB			VARCHAR(6)		
	, BWO			VARCHAR(6)		
	, DYMD			DATE			
	, SUNO			INTEGER			
	, POP			INTEGER			
	, DLOC			VARCHAR(50)	
	, RYMD			DATE			
	, RCONT			VARCHAR(250)	
	, CMNGT			VARCHAR(7)		
	, CIDN			VARCHAR(8)		
	, GWO			VARCHAR(100)	
	, GARA			NUMERIC(38,8)	
	, GDEP			NUMERIC(38,8)	
	, AORG			VARCHAR(50)	
	, AYMD			DATE			
	, ACONT			VARCHAR(100)	
	, NORG			VARCHAR(50)	
	, NYMD			DATE			
	, NCONT			VARCHAR(100)	
	, CLS			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, UPDATE_DTE	DATE			
	, RCOMP			VARCHAR(20)	
	, PLANDST		VARCHAR(3)		
	, EOID			INTEGER			
	, EIDN			VARCHAR(8)		
	, EMOP			VARCHAR(6)		
	, ESAA			VARCHAR(6)		
	, EDIP			NUMERIC(38,8)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_NUBU_P ADD CONSTRAINT WTL_NUBU_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_NUBU_P IS '누수_불출수지점';
COMMENT ON COLUMN icgis.WTL_NUBU_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_NUBU_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_NUBU_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_NUBU_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_NUBU_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_NUBU_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_NUBU_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_NUBU_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_NUBU_P.LOC IS '위치';
COMMENT ON COLUMN icgis.WTL_NUBU_P.NRE IS '접수_접수구분';
COMMENT ON COLUMN icgis.WTL_NUBU_P.MYMD IS '접수_접수일';
COMMENT ON COLUMN icgis.WTL_NUBU_P.MMNGT IS '접수_민원_접수기관';
COMMENT ON COLUMN icgis.WTL_NUBU_P.MIDN IS '접수_민원_접수번호';
COMMENT ON COLUMN icgis.WTL_NUBU_P.NWO IS '누수_누수원인';
COMMENT ON COLUMN icgis.WTL_NUBU_P.VOL IS '누수_누수량';
COMMENT ON COLUMN icgis.WTL_NUBU_P.NGUB IS '누수_시설구분';
COMMENT ON COLUMN icgis.WTL_NUBU_P.BWO IS '불출수_불출수원인';
COMMENT ON COLUMN icgis.WTL_NUBU_P.DYMD IS '단수사항_일시';
COMMENT ON COLUMN icgis.WTL_NUBU_P.SUNO IS '단수사항_수전수';
COMMENT ON COLUMN icgis.WTL_NUBU_P.POP IS '단수사항_대상인구';
COMMENT ON COLUMN icgis.WTL_NUBU_P.DLOC IS '단수사항_지역';
COMMENT ON COLUMN icgis.WTL_NUBU_P.RYMD IS '복구내역_복구일';
COMMENT ON COLUMN icgis.WTL_NUBU_P.RCONT IS '복구내역_복구내용';
COMMENT ON COLUMN icgis.WTL_NUBU_P.CMNGT IS '공사_등록주체';
COMMENT ON COLUMN icgis.WTL_NUBU_P.CIDN IS '공사_공사번호';
COMMENT ON COLUMN icgis.WTL_NUBU_P.GWO IS '굴착내역_원인';
COMMENT ON COLUMN icgis.WTL_NUBU_P.GARA IS '굴착내역_면적';
COMMENT ON COLUMN icgis.WTL_NUBU_P.GDEP IS '굴착내역_심도';
COMMENT ON COLUMN icgis.WTL_NUBU_P.AORG IS '이첩수령사항_이첩의뢰기관';
COMMENT ON COLUMN icgis.WTL_NUBU_P.AYMD IS '이첩수령사항_이첩수령일';
COMMENT ON COLUMN icgis.WTL_NUBU_P.ACONT IS '이첩수령사항_이첩수령내역';
COMMENT ON COLUMN icgis.WTL_NUBU_P.NORG IS '이첩사항_이첩기관';
COMMENT ON COLUMN icgis.WTL_NUBU_P.NYMD IS '이첩사항_이첩일';
COMMENT ON COLUMN icgis.WTL_NUBU_P.NCONT IS '이첩사항_이첩내용';
COMMENT ON COLUMN icgis.WTL_NUBU_P.CLS IS '폐쇄(삭제)여부';
COMMENT ON COLUMN icgis.WTL_NUBU_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_NUBU_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_NUBU_P.RCOMP IS '복구내역_복구업체';
COMMENT ON COLUMN icgis.WTL_NUBU_P.PLANDST IS '블록코드';
COMMENT ON COLUMN icgis.WTL_NUBU_P.EOID IS 'EOID';
COMMENT ON COLUMN icgis.WTL_NUBU_P.EIDN IS 'EIDN';
COMMENT ON COLUMN icgis.WTL_NUBU_P.EMOP IS 'EMOP';
COMMENT ON COLUMN icgis.WTL_NUBU_P.ESAA IS 'ESAA';
COMMENT ON COLUMN icgis.WTL_NUBU_P.EDIP IS 'EDIP';
COMMENT ON COLUMN icgis.WTL_NUBU_P.SHAPE IS 'SHAPE';


--매몰제수변

CREATE TABLE icgis.WTL_HVALV_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, ANG			NUMERIC(5)		
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, ANG1			NUMERIC(5)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_HVALV_P ADD CONSTRAINT WTL_HVALV_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_HVALV_P IS '매몰제수변';
COMMENT ON COLUMN icgis.WTL_HVALV_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_HVALV_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_HVALV_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_HVALV_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_HVALV_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_HVALV_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_HVALV_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_HVALV_P.ANG IS '각도';
COMMENT ON COLUMN icgis.WTL_HVALV_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_HVALV_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_HVALV_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_HVALV_P.ANG1 IS '각도1';
COMMENT ON COLUMN icgis.WTL_HVALV_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_HVALV_P.SHAPE IS 'SHAPE';


--배수구역

CREATE TABLE icgis.WTL_GUPSU_A(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, MNGT			VARCHAR(7)		
	, NAM			VARCHAR(50)	
	, JGU			VARCHAR(6)		
	, GSNAM			VARCHAR(50)	
	, JSNAM			VARCHAR(50)	
	, HOUS			INTEGER			
	, POPL			INTEGER			
	, ARA			NUMERIC(38,8)	
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_GUPSU_A ADD CONSTRAINT WTL_GUPSU_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_GUPSU_A IS '배수구역';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.NAM IS '명칭';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.JGU IS '정수권역';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.GSNAM IS '급수구역명';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.JSNAM IS '정수구역명';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.HOUS IS '세대';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.POPL IS '인구';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.ARA IS '총면적';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_GUPSU_A.SHAPE IS 'SHAPE';


--배수지_면

CREATE TABLE icgis.WTL_BAESU_A(
	IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, GUCD		VARCHAR(5)		
	, DCD		VARCHAR(10)	
	, DST		VARCHAR(3)		
	, MNGT		VARCHAR(7)		
	, NAM		VARCHAR(50)	
	, SOCD		VARCHAR(3)		
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.WTL_BAESU_A ADD CONSTRAINT WTL_BAESU_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_BAESU_A IS '배수지_면';
COMMENT ON COLUMN icgis.WTL_BAESU_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_BAESU_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_BAESU_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_BAESU_A.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_BAESU_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_BAESU_A.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_BAESU_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_BAESU_A.NAM IS '명칭';
COMMENT ON COLUMN icgis.WTL_BAESU_A.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_BAESU_A.SHAPE IS 'SHAPE';

--배수지_점

CREATE TABLE icgis.WTL_BAESU_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, NAM			VARCHAR(50)	
	, CMNGT			VARCHAR(7)		
	, CIDN			VARCHAR(8)		
	, ADDR			VARCHAR(60)	
	, QTY			INTEGER			
	, LOC			VARCHAR(50)	
	, PIDN			VARCHAR(8)		
	, HWL			NUMERIC(38,8)	
	, LWL			NUMERIC(38,8)	
	, SAG			VARCHAR(6)		
	, MNGT			VARCHAR(7)		
	, YMD			DATE			
	, ETC			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, UPDATE_DTE	DATE			
	, JGU			VARCHAR(6)		
	, JSNAM			VARCHAR(50)	
	, SHAPE			public.geometry	
	
);
ALTER TABLE icgis.WTL_BAESU_P ADD CONSTRAINT WTL_BAESU_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_BAESU_P IS '배수지_점';
COMMENT ON COLUMN icgis.WTL_BAESU_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_BAESU_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_BAESU_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_BAESU_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_BAESU_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_BAESU_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_BAESU_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_BAESU_P.NAM IS '명칭';
COMMENT ON COLUMN icgis.WTL_BAESU_P.CMNGT IS '공사_등록주체';
COMMENT ON COLUMN icgis.WTL_BAESU_P.CIDN IS '공사_공사번호';
COMMENT ON COLUMN icgis.WTL_BAESU_P.ADDR IS '위치';
COMMENT ON COLUMN icgis.WTL_BAESU_P.QTY IS '용량';
COMMENT ON COLUMN icgis.WTL_BAESU_P.LOC IS '배수구역';
COMMENT ON COLUMN icgis.WTL_BAESU_P.PIDN IS '가압장';
COMMENT ON COLUMN icgis.WTL_BAESU_P.HWL IS '최고수위';
COMMENT ON COLUMN icgis.WTL_BAESU_P.LWL IS '최저수위';
COMMENT ON COLUMN icgis.WTL_BAESU_P.SAG IS '유인/무인 여부';
COMMENT ON COLUMN icgis.WTL_BAESU_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_BAESU_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_BAESU_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_BAESU_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_BAESU_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_BAESU_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_BAESU_P.JGU IS '정수권역';
COMMENT ON COLUMN icgis.WTL_BAESU_P.JSNAM IS '정수구역';
COMMENT ON COLUMN icgis.WTL_BAESU_P.SHAPE IS 'SHAPE';


--병합계량구역

CREATE TABLE icgis.WTL_DST_A(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, MNGT			VARCHAR(7)		
	, NAM			VARCHAR(50)	
	, DST			VARCHAR(3)		
	, GSNAM			VARCHAR(50)	
	, JSNAM			VARCHAR(50)	
	, BSNAM			VARCHAR(50)	
	, PGS			VARCHAR(6)		
	, RATE			NUMERIC(38,8)	
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_DST_A ADD CONSTRAINT WTL_DST_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_DST_A IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_DST_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_DST_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_DST_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_DST_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_DST_A.NAM IS '병합계량명칭';
COMMENT ON COLUMN icgis.WTL_DST_A.DST IS '병합계량코드';
COMMENT ON COLUMN icgis.WTL_DST_A.GSNAM IS '급수구역명';
COMMENT ON COLUMN icgis.WTL_DST_A.JSNAM IS '정수구역명';
COMMENT ON COLUMN icgis.WTL_DST_A.BSNAM IS '배수구역명';
COMMENT ON COLUMN icgis.WTL_DST_A.PGS IS '진행상태';
COMMENT ON COLUMN icgis.WTL_DST_A.RATE IS '유수율';
COMMENT ON COLUMN icgis.WTL_DST_A.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_DST_A.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_DST_A.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_DST_A.SHAPE IS 'SHAPE';


--상수관로_선

CREATE TABLE icgis.WTL_PIPE_L(
	OBJECTID		INTEGER			NOT NULL
	, ASSETGROUP	NUMERIC(38,0)	
	, ASSETTYPE 	NUMERIC(5,0)		
	, FTR_CDE		VARCHAR(5)		
	, FTR_IDN		NUMERIC(10)		
	, HJD_CDE		VARCHAR(10)	
	, IST_YMD		VARCHAR(8)		
	, SAA_CDE		VARCHAR(255)	
	, BYC_LEN		NUMERIC(11,2)	
	, PIP_LBL		VARCHAR(50)	
	, CNT_NUM		VARCHAR(50)	
	, MNG_CDE		VARCHAR(7)		
	, MOP_CDE		VARCHAR(6)		
	, SYS_CHK		VARCHAR(1)		
	, STD_DIP		NUMERIC(6,2)		
	, IQT_CDE		VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, SOCD			VARCHAR(3)		
	, CMNGT			VARCHAR(7)		
	, NSNO			NUMERIC(5)		
	, RMK_DES		VARCHAR(300)	
	, EXT			VARCHAR(1)		
	, CDIP			VARCHAR(4)		
	, REPLYMD		DATE			
	, RPIRYMD		DATE			
	, CLSYMD		DATE			
	, UPDATE_DTE	DATE			
	, PLANDST		VARCHAR(3)		
	, ADDR			VARCHAR(100)	
	, ROOT			VARCHAR(6)		
	, DECREPIT		VARCHAR(1)		
	, DEVIDN		VARCHAR(8)		
	, ROUND_TYPE	VARCHAR(1)		
	, ROAD_TYPE		VARCHAR(1)		
	, SHT_NUM		VARCHAR(10)	
	, JHT_CDE		VARCHAR(6)		
	, LOW_DEP		NUMERIC(5,2)		
	, HGH_DEP		NUMERIC(5,2)		
	, CLN_YMD		DATE			
	, PBLSRV_INDX	NUMERIC(10,0)	
	, EVRG_DPH		NUMERIC(38,8)	
	, SHAPE			public.geometry	
);
COMMENT ON TABLE icgis.WTL_PIPE_L IS '상수관로_선';
COMMENT ON COLUMN icgis.WTL_PIPE_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_PIPE_L.ASSETGROUP IS 'ASSETGROUP';
COMMENT ON COLUMN icgis.WTL_PIPE_L.ASSETTYPE IS 'ASSETTYPE';
COMMENT ON COLUMN icgis.WTL_PIPE_L.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_PIPE_L.FTR_IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_PIPE_L.HJD_CDE IS '행정읍면동코드';
COMMENT ON COLUMN icgis.WTL_PIPE_L.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_PIPE_L.SAA_CDE IS '관용도';
COMMENT ON COLUMN icgis.WTL_PIPE_L.BYC_LEN IS '연장';
COMMENT ON COLUMN icgis.WTL_PIPE_L.PIP_LBL IS '관라벨';
COMMENT ON COLUMN icgis.WTL_PIPE_L.CNT_NUM IS '공사번호';
COMMENT ON COLUMN icgis.WTL_PIPE_L.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.WTL_PIPE_L.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.WTL_PIPE_L.SYS_CHK IS '대장초기화여부';
COMMENT ON COLUMN icgis.WTL_PIPE_L.STD_DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_PIPE_L.IQT_CDE IS '탐사구분';
COMMENT ON COLUMN icgis.WTL_PIPE_L.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_PIPE_L.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_PIPE_L.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_PIPE_L.NSNO IS '누수횟수';
COMMENT ON COLUMN icgis.WTL_PIPE_L.RMK_DES IS '비고';
COMMENT ON COLUMN icgis.WTL_PIPE_L.EXT IS '확실여부';
COMMENT ON COLUMN icgis.WTL_PIPE_L.CDIP IS '구경문자';
COMMENT ON COLUMN icgis.WTL_PIPE_L.REPLYMD IS '이설일자';
COMMENT ON COLUMN icgis.WTL_PIPE_L.RPIRYMD IS '갱생일자';
COMMENT ON COLUMN icgis.WTL_PIPE_L.CLSYMD IS '세관일자';
COMMENT ON COLUMN icgis.WTL_PIPE_L.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_PIPE_L.PLANDST IS '블록코드';
COMMENT ON COLUMN icgis.WTL_PIPE_L.ADDR IS '주소';
COMMENT ON COLUMN icgis.WTL_PIPE_L.ROOT IS '상수계통';
COMMENT ON COLUMN icgis.WTL_PIPE_L.DECREPIT IS '노후관여부';
COMMENT ON COLUMN icgis.WTL_PIPE_L.DEVIDN IS '도시개발사업구역개별번호';
COMMENT ON COLUMN icgis.WTL_PIPE_L.ROUND_TYPE IS '토양종류';
COMMENT ON COLUMN icgis.WTL_PIPE_L.ROAD_TYPE IS '지상도로구분';
COMMENT ON COLUMN icgis.WTL_PIPE_L.SHT_NUM IS '도엽번호';
COMMENT ON COLUMN icgis.WTL_PIPE_L.JHT_CDE IS '접합종류';
COMMENT ON COLUMN icgis.WTL_PIPE_L.LOW_DEP IS '최저깊이';
COMMENT ON COLUMN icgis.WTL_PIPE_L.HGH_DEP IS '최고깊이';
COMMENT ON COLUMN icgis.WTL_PIPE_L.CLN_YMD IS '세척일자';
COMMENT ON COLUMN icgis.WTL_PIPE_L.PBLSRV_INDX IS '공사대장_IDX';
COMMENT ON COLUMN icgis.WTL_PIPE_L.EVRG_DPH IS '평균심도';
COMMENT ON COLUMN icgis.WTL_PIPE_L.SHAPE IS 'SHAPE';


--상수관말

CREATE TABLE icgis.WTL_PIEND_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, ANG			NUMERIC(5)		
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, ANG1			NUMERIC(5)		
	, UPDATE_DTE	DATE			
	, CLS			VARCHAR(6)		
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_PIEND_P ADD CONSTRAINT WTL_PIEND_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_PIEND_P IS '상수관말';
COMMENT ON COLUMN icgis.WTL_PIEND_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_PIEND_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_PIEND_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_PIEND_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_PIEND_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_PIEND_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_PIEND_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_PIEND_P.ANG IS '각도';
COMMENT ON COLUMN icgis.WTL_PIEND_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_PIEND_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_PIEND_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_PIEND_P.ANG1 IS '각도1';
COMMENT ON COLUMN icgis.WTL_PIEND_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_PIEND_P.CLS IS '폐쇄여부';
COMMENT ON COLUMN icgis.WTL_PIEND_P.SHAPE IS 'SHAPE';


--상수폐관로

CREATE TABLE icgis.WTL_CLOS_L(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)	
	, GUCD			VARCHAR(5)	
	, DCD			VARCHAR(10)
	, SOCD			VARCHAR(3)	
	, DST			VARCHAR(3)	
	, CYMD			DATE		
	, MNGT			VARCHAR(7)	
	, YMD			DATE		
	, MOP			VARCHAR(6)	
	, DIP			NUMERIC(5)	
	, LENG			NUMERIC(38,8)
	, CWI			VARCHAR(6)	
	, SYS			VARCHAR(1)	
	, LBL			VARCHAR(50)
	, UPDATE_DTE	DATE		
	, ETC			VARCHAR(100)
	, CMNGT			VARCHAR(6)	
	, CIDN			VARCHAR(10)
	, SAA			VARCHAR(6)	
	, SHAPE			public.geometry	

);
ALTER TABLE icgis.WTL_CLOS_L ADD CONSTRAINT WTL_CLOS_L_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_CLOS_L IS '상수폐관로';
COMMENT ON COLUMN icgis.WTL_CLOS_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_CLOS_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_CLOS_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_CLOS_L.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_CLOS_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_CLOS_L.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_CLOS_L.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_CLOS_L.CYMD IS '폐관일자';
COMMENT ON COLUMN icgis.WTL_CLOS_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_CLOS_L.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_CLOS_L.MOP IS '재질';
COMMENT ON COLUMN icgis.WTL_CLOS_L.DIP IS '관경';
COMMENT ON COLUMN icgis.WTL_CLOS_L.LENG IS '연장';
COMMENT ON COLUMN icgis.WTL_CLOS_L.CWI IS '폐관원인';
COMMENT ON COLUMN icgis.WTL_CLOS_L.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_CLOS_L.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_CLOS_L.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_CLOS_L.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_CLOS_L.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_CLOS_L.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.WTL_CLOS_L.SAA IS '관용도';
COMMENT ON COLUMN icgis.WTL_CLOS_L.SHAPE IS 'SHAPE';


--소화전

CREATE TABLE icgis.WTL_HYDRANT_P(
	IDN				VARCHAR(8)		NOT NULL	
	, FTC			VARCHAR(6)		
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, YMD			DATE			
	, MOF			VARCHAR(6)		
	, BDIP			NUMERIC(5)		
	, DIP			NUMERIC(5)		
	, OUG			VARCHAR(6)		
	, BSS			VARCHAR(25)	
	, CSS			VARCHAR(25)	
	, STAT			VARCHAR(6)		
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, UPDATE_DTE	DATE			
	, ETC			VARCHAR(103)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_HYDRANT_P ADD CONSTRAINT WTL_HYDRANT_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_HYDRANT_P IS '소화전';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.MOF IS '형식';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.BDIP IS '배수관경';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.OUG IS '지상/지하구분';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.BSS IS '변실규격';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.CSS IS '뚜껑 구경';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_HYDRANT_P.SHAPE IS 'SHAPE';


--수도전

CREATE TABLE icgis.WTL_META_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, SJNO			VARCHAR(4)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, DIP			NUMERIC(5)		
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, SUJUN_NO		VARCHAR(12)	
	, CDIP			VARCHAR(4)		
	, BYMD			DATE			
	, SGUCD			VARCHAR(5)		
	, SDCD			VARCHAR(10)	
	, UPDATE_DTE	DATE			
	, YMD			DATE			
	, ADDR			VARCHAR(60)	
	, KEGI_TYPE		VARCHAR(6)		
	, KEGI_GB		VARCHAR(6)		
	, SUJUN_TYPE	VARCHAR(6)		
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, KEGI_NO		VARCHAR(120)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_META_P ADD CONSTRAINT WTL_META_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_META_P IS '수도전';
COMMENT ON COLUMN icgis.WTL_META_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_META_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_META_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_META_P.SJNO IS '수전번호';
COMMENT ON COLUMN icgis.WTL_META_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_META_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_META_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_META_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_META_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_META_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_META_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_META_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_META_P.SUJUN_NO IS '수도전번호';
COMMENT ON COLUMN icgis.WTL_META_P.CDIP IS '구경문자';
COMMENT ON COLUMN icgis.WTL_META_P.BYMD IS '보호통설치일자';
COMMENT ON COLUMN icgis.WTL_META_P.SGUCD IS '수용가 행정구';
COMMENT ON COLUMN icgis.WTL_META_P.SDCD IS '수용가 행정동';
COMMENT ON COLUMN icgis.WTL_META_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_META_P.YMD IS '설치일';
COMMENT ON COLUMN icgis.WTL_META_P.ADDR IS '주소';
COMMENT ON COLUMN icgis.WTL_META_P.KEGI_TYPE IS '계량기형식';
COMMENT ON COLUMN icgis.WTL_META_P.KEGI_GB IS '계량기구분';
COMMENT ON COLUMN icgis.WTL_META_P.SUJUN_TYPE IS '수전구분';
COMMENT ON COLUMN icgis.WTL_META_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_META_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.WTL_META_P.KEGI_NO IS '계기번호';
COMMENT ON COLUMN icgis.WTL_META_P.SHAPE IS 'SHAPE';


--수압

CREATE TABLE icgis.WTL_SUAP_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, RSU			VARCHAR(6)		
	, SIDN			VARCHAR(8)		
	, PSUAP			NUMERIC(38,8)	
	, ALT			INTEGER			
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, UTIL			VARCHAR(1)		
	, UPDATE_DTE	DATE			
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, YMD			DATE			
	, MOF			VARCHAR(6)		
	, BDIP			NUMERIC(5)		
	, ETC			VARCHAR(100)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_SUAP_P ADD CONSTRAINT WTL_SUAP_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_SUAP_P IS '수압';
COMMENT ON COLUMN icgis.WTL_SUAP_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_SUAP_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_SUAP_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_SUAP_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WTL_SUAP_P.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.WTL_SUAP_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_SUAP_P.DST IS '병합계량코드';
COMMENT ON COLUMN icgis.WTL_SUAP_P.RSU IS '조치현황_수계전환';
COMMENT ON COLUMN icgis.WTL_SUAP_P.SIDN IS '도로중심선정보부속_개별번호';
COMMENT ON COLUMN icgis.WTL_SUAP_P.PSUAP IS '현재수압';
COMMENT ON COLUMN icgis.WTL_SUAP_P.ALT IS '표고';
COMMENT ON COLUMN icgis.WTL_SUAP_P.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_SUAP_P.LBL IS '법정동명';
COMMENT ON COLUMN icgis.WTL_SUAP_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_SUAP_P.UTIL IS '수압계 존재여부';
COMMENT ON COLUMN icgis.WTL_SUAP_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_SUAP_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_SUAP_P.CIDN IS '공사번호_공사번호';
COMMENT ON COLUMN icgis.WTL_SUAP_P.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.WTL_SUAP_P.MOF IS '형태';
COMMENT ON COLUMN icgis.WTL_SUAP_P.BDIP IS '배수관경';
COMMENT ON COLUMN icgis.WTL_SUAP_P.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.WTL_SUAP_P.SHAPE IS 'SHAPE';


--수질

CREATE TABLE icgis.WTL_SUJIL_P(
	FTC				VARCHAR(6)		NOT NULL	
	, IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, YMD			DATE			
	, PRO			VARCHAR(6)		
	, CAUSE			VARCHAR(100)	
	, CYMD			DATE			
	, ETC			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_SUJIL_P ADD CONSTRAINT WTL_SUJIL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WTL_SUJIL_P IS '수질';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.IDN IS '허가번호';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.DCD IS '행정동코드';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.DST IS '병합계량코드';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.YMD IS '침수시작일자';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.PRO IS '이상유무';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.CAUSE IS '설계변경사유';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.CYMD IS '협조일/조회일';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.ETC IS '재원_기타';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.LBL IS '법정동명';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_SUJIL_P.SHAPE IS 'SHAPE';


--심도

CREATE TABLE icgis.WTL_DEPTH_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, DEP			NUMERIC(38,8)	
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_DEPTH_P ADD CONSTRAINT WTL_DEPTH_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_DEPTH_P IS '심도';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.DEP IS '심도';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_DEPTH_P.SHAPE IS 'SHAPE';


--유량계

CREATE TABLE icgis.WTL_YURANG_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, PNAM			VARCHAR(20)	
	, MOF			VARCHAR(6)		
	, MNU			VARCHAR(20)	
	, YMD			DATE			
	, DIP			NUMERIC(5)		
	, MFLW			INTEGER			
	, LOC			VARCHAR(50)	
	, GNO			VARCHAR(15)	
	, GSU			INTEGER			
	, STAT			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_YURANG_P ADD CONSTRAINT WTL_YURANG_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_YURANG_P IS '유량계';
COMMENT ON COLUMN icgis.WTL_YURANG_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_YURANG_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_YURANG_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_YURANG_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_YURANG_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_YURANG_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_YURANG_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_YURANG_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_YURANG_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.WTL_YURANG_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_YURANG_P.PNAM IS '품명';
COMMENT ON COLUMN icgis.WTL_YURANG_P.MOF IS '형식';
COMMENT ON COLUMN icgis.WTL_YURANG_P.MNU IS '제조회사';
COMMENT ON COLUMN icgis.WTL_YURANG_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_YURANG_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_YURANG_P.MFLW IS '최대 유량';
COMMENT ON COLUMN icgis.WTL_YURANG_P.LOC IS '위치';
COMMENT ON COLUMN icgis.WTL_YURANG_P.GNO IS '기물번호';
COMMENT ON COLUMN icgis.WTL_YURANG_P.GSU IS '급수전수';
COMMENT ON COLUMN icgis.WTL_YURANG_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WTL_YURANG_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_YURANG_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_YURANG_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_YURANG_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_YURANG_P.SHAPE IS 'SHAPE';


--저수조

CREATE TABLE icgis.WTL_JEOSU_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, MNGT			VARCHAR(7)		
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_JEOSU_P ADD CONSTRAINT WTL_JEOSU_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_JEOSU_P IS '저수조';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_JEOSU_P.SHAPE IS 'SHAPE';


--정수구역

CREATE TABLE icgis.WTL_JSDT_A(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, MNGT			VARCHAR(7)		
	, NAM			VARCHAR(50)	
	, GUCD			VARCHAR(5)		
	, GSNAM			VARCHAR(50)	
	, HOUS			INTEGER			
	, POPL			INTEGER			
	, ARA			NUMERIC(38,8)	
	, LBL			VARCHAR(50)	
	, SYS			VARCHAR(1)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_JSDT_A ADD CONSTRAINT WTL_JSDT_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_JSDT_A IS '정수구역';
COMMENT ON COLUMN icgis.WTL_JSDT_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_JSDT_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_JSDT_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_JSDT_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_JSDT_A.NAM IS '명칭';
COMMENT ON COLUMN icgis.WTL_JSDT_A.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_JSDT_A.GSNAM IS '급수구역명';
COMMENT ON COLUMN icgis.WTL_JSDT_A.HOUS IS '급수세대';
COMMENT ON COLUMN icgis.WTL_JSDT_A.POPL IS '급수인구';
COMMENT ON COLUMN icgis.WTL_JSDT_A.ARA IS '급수면적';
COMMENT ON COLUMN icgis.WTL_JSDT_A.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_JSDT_A.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_JSDT_A.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_JSDT_A.SHAPE IS 'SHAPE';


--정수장_면

CREATE TABLE icgis.WTL_JUNGSU_A(
	IDN			VARCHAR(8)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, GUCD		VARCHAR(5)		
	, DCD		VARCHAR(10)	
	, SOCD		VARCHAR(3)		
	, MNGT		VARCHAR(7)		
	, NAM		VARCHAR(50)	
	, SHAPE		public.geometry	
);

ALTER TABLE icgis.WTL_JUNGSU_A ADD CONSTRAINT WTL_JUNGSU_A_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_JUNGSU_A IS '정수장_면';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.NAM IS '명칭';
COMMENT ON COLUMN icgis.WTL_JUNGSU_A.SHAPE IS 'SHAPE';


--정수장_점

CREATE TABLE icgis.WTL_JUNGSU_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, NAM			VARCHAR(50)	
	, CMNGT			VARCHAR(7)		
	, CIDN			VARCHAR(8)		
	, ADDR			VARCHAR(60)	
	, WSRC			VARCHAR(25)	
	, FACA			NUMERIC(38,8)	
	, FYMD			DATE			
	, TYMD			DATE			
	, TIDN1			VARCHAR(8)		
	, TIDN2			VARCHAR(8)		
	, ARA			NUMERIC(38,8)	
	, BARA			NUMERIC(38,8)	
	, ETC			VARCHAR(100)	
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, MNGT			VARCHAR(7)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_JUNGSU_P ADD CONSTRAINT WTL_JUNGSU_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_JUNGSU_P IS '정수장_점';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.NAM IS '명칭';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.CMNGT IS '공사_등록주체';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.CIDN IS '공사_공사번호';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.ADDR IS '위치';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.WSRC IS '원수';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.FACA IS '시설용량';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.FYMD IS '착공일';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.TYMD IS '준공일';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.TIDN1 IS '취수장 번호1';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.TIDN2 IS '취수장 번호2';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.ARA IS '총면적';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.BARA IS '건평';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_JUNGSU_P.SHAPE IS 'SHAPE';


--제수변

CREATE TABLE icgis.WTL_VALVE_P(
	IDN				VARCHAR(8)		NOT NULL	
	, FTC			VARCHAR(6)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, ANG			NUMERIC(5)		
	, ONOFF			NUMERIC(5)		
	, BDRY			VARCHAR(6)		
	, CMNGT			VARCHAR(6)		
	, CIDN			VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, YMD			DATE			
	, MOP			VARCHAR(6)		
	, MOF			VARCHAR(6)		
	, DIP			NUMERIC(5)		
	, TCRPM			NUMERIC(38,8)	
	, CRPM			NUMERIC(38,8)	
	, SAE			VARCHAR(6)		
	, BTT			VARCHAR(6)		
	, BSS			VARCHAR(25)	
	, CSS			VARCHAR(25)	
	, GDT			VARCHAR(6)		
	, CLS			VARCHAR(6)		
	, STAT			VARCHAR(6)		
	, SYS			VARCHAR(1)		
	, LBL			VARCHAR(50)	
	, ANG1			NUMERIC(5)		
	, EDYMD			DATE			
	, EDCONT		VARCHAR(50)	
	, ADDR			VARCHAR(60)	
	, UPDATE_DTE	DATE			
	, BST			VARCHAR(6)		
	, CKT			VARCHAR(6)		
	, PLANDST		VARCHAR(3)		
	, MNO			VARCHAR(20)	
	, ETC			VARCHAR(123)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_VALVE_P ADD CONSTRAINT WTL_VALVE_P_PK PRIMARY KEY (IDN, FTC);
COMMENT ON TABLE icgis.WTL_VALVE_P IS '제수변';
COMMENT ON COLUMN icgis.WTL_VALVE_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_VALVE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_VALVE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_VALVE_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_VALVE_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_VALVE_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_VALVE_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_VALVE_P.ANG IS '각도';
COMMENT ON COLUMN icgis.WTL_VALVE_P.ONOFF IS '개폐여부';
COMMENT ON COLUMN icgis.WTL_VALVE_P.BDRY IS '경계변여부';
COMMENT ON COLUMN icgis.WTL_VALVE_P.CMNGT IS '공사대장_등록주체';
COMMENT ON COLUMN icgis.WTL_VALVE_P.CIDN IS '공사대장_공사번호';
COMMENT ON COLUMN icgis.WTL_VALVE_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_VALVE_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WTL_VALVE_P.MOP IS '재질';
COMMENT ON COLUMN icgis.WTL_VALVE_P.MOF IS '변류형식';
COMMENT ON COLUMN icgis.WTL_VALVE_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_VALVE_P.TCRPM IS '전체 회전수';
COMMENT ON COLUMN icgis.WTL_VALVE_P.CRPM IS '회전수';
COMMENT ON COLUMN icgis.WTL_VALVE_P.SAE IS '회전방향';
COMMENT ON COLUMN icgis.WTL_VALVE_P.BTT IS '변실형태';
COMMENT ON COLUMN icgis.WTL_VALVE_P.BSS IS '변실규격';
COMMENT ON COLUMN icgis.WTL_VALVE_P.CSS IS '뚜껑구경';
COMMENT ON COLUMN icgis.WTL_VALVE_P.GDT IS '구동방법';
COMMENT ON COLUMN icgis.WTL_VALVE_P.CLS IS '폐쇄여부';
COMMENT ON COLUMN icgis.WTL_VALVE_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WTL_VALVE_P.SYS IS '시스템 사용';
COMMENT ON COLUMN icgis.WTL_VALVE_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WTL_VALVE_P.ANG1 IS '각도1';
COMMENT ON COLUMN icgis.WTL_VALVE_P.EDYMD IS '종료일';
COMMENT ON COLUMN icgis.WTL_VALVE_P.EDCONT IS '조정내역';
COMMENT ON COLUMN icgis.WTL_VALVE_P.ADDR IS '위치';
COMMENT ON COLUMN icgis.WTL_VALVE_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_VALVE_P.BST IS 'BST';
COMMENT ON COLUMN icgis.WTL_VALVE_P.CKT IS '철개형태';
COMMENT ON COLUMN icgis.WTL_VALVE_P.PLANDST IS '블록코드';
COMMENT ON COLUMN icgis.WTL_VALVE_P.MNO IS '관리번호';
COMMENT ON COLUMN icgis.WTL_VALVE_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WTL_VALVE_P.SHAPE IS 'SHAPE';


--지중선로

CREATE TABLE icgis.WTL_JJSR_L(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, FTC			VARCHAR(6)		
	, MNGT			VARCHAR(5)		
	, NAM			VARCHAR(100)	
	, ESTI			NUMERIC(38,8)	
	, SYMD			DATE			
	, EYMD			DATE			
	, ELYMD			DATE			
	, PMNGR			VARCHAR(40)	
	, CMNGR			VARCHAR(40)	
	, DEP			NUMERIC(38,8)	
	, CABLE			VARCHAR(40)	
	, PMOP			VARCHAR(40)	
	, DIP			NUMERIC(38,8)	
	, PNO			NUMERIC(5)		
	, UPDATE_DTE	DATE			
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_JJSR_L ADD CONSTRAINT WTL_JJSR_L_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_JJSR_L IS '지중선로';
COMMENT ON COLUMN icgis.WTL_JJSR_L.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_JJSR_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_JJSR_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_JJSR_L.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.WTL_JJSR_L.NAM IS '공사명';
COMMENT ON COLUMN icgis.WTL_JJSR_L.ESTI IS '계약금액';
COMMENT ON COLUMN icgis.WTL_JJSR_L.SYMD IS '착공일';
COMMENT ON COLUMN icgis.WTL_JJSR_L.EYMD IS '준공일';
COMMENT ON COLUMN icgis.WTL_JJSR_L.ELYMD IS '준공기한';
COMMENT ON COLUMN icgis.WTL_JJSR_L.PMNGR IS '계약자';
COMMENT ON COLUMN icgis.WTL_JJSR_L.CMNGR IS '감독관';
COMMENT ON COLUMN icgis.WTL_JJSR_L.DEP IS '심도';
COMMENT ON COLUMN icgis.WTL_JJSR_L.CABLE IS '케이블';
COMMENT ON COLUMN icgis.WTL_JJSR_L.PMOP IS '관재질';
COMMENT ON COLUMN icgis.WTL_JJSR_L.DIP IS '관구경';
COMMENT ON COLUMN icgis.WTL_JJSR_L.PNO IS '관개수';
COMMENT ON COLUMN icgis.WTL_JJSR_L.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_JJSR_L.SHAPE IS 'SHAPE';


--폐수도전

CREATE TABLE icgis.WTL_CMETA_P(
	IDN				VARCHAR(8)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, FTC			VARCHAR(6)		
	, SJNO			VARCHAR(4)		
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, SOCD			VARCHAR(3)		
	, DST			VARCHAR(3)		
	, DIP			NUMERIC(5)		
	, MNGT			VARCHAR(7)		
	, SUJUN_NO		VARCHAR(12)	
	, BYMD			DATE			
	, SGUCD			VARCHAR(5)		
	, SDCD			VARCHAR(10)	
	, UPDATE_DTE	DATE			
	, YMD			DATE			
	, ADDR			VARCHAR(60)	
	, KEGI_TYPE		VARCHAR(6)		
	, KEGI_GB		VARCHAR(6)		
	, CYMD			DATE			
	, CWI			VARCHAR(50)	
	, KEGI_NO		VARCHAR(120)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WTL_CMETA_P ADD CONSTRAINT WTL_CMETA_P_PK PRIMARY KEY (IDN);
COMMENT ON TABLE icgis.WTL_CMETA_P IS '폐수도전';
COMMENT ON COLUMN icgis.WTL_CMETA_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WTL_CMETA_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WTL_CMETA_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WTL_CMETA_P.SJNO IS '수전번호';
COMMENT ON COLUMN icgis.WTL_CMETA_P.GUCD IS '등록구';
COMMENT ON COLUMN icgis.WTL_CMETA_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WTL_CMETA_P.SOCD IS '사업소';
COMMENT ON COLUMN icgis.WTL_CMETA_P.DST IS '병합계량구역';
COMMENT ON COLUMN icgis.WTL_CMETA_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WTL_CMETA_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WTL_CMETA_P.SUJUN_NO IS '수도전번호';
COMMENT ON COLUMN icgis.WTL_CMETA_P.BYMD IS '보호통설치일자';
COMMENT ON COLUMN icgis.WTL_CMETA_P.SGUCD IS '수용가 행정구';
COMMENT ON COLUMN icgis.WTL_CMETA_P.SDCD IS '수용가 행정동';
COMMENT ON COLUMN icgis.WTL_CMETA_P.UPDATE_DTE IS '갱신일';
COMMENT ON COLUMN icgis.WTL_CMETA_P.YMD IS '설치일';
COMMENT ON COLUMN icgis.WTL_CMETA_P.ADDR IS '주소';
COMMENT ON COLUMN icgis.WTL_CMETA_P.KEGI_TYPE IS '계량기형식';
COMMENT ON COLUMN icgis.WTL_CMETA_P.KEGI_GB IS '계량기구분';
COMMENT ON COLUMN icgis.WTL_CMETA_P.CYMD IS '폐전_폐전일';
COMMENT ON COLUMN icgis.WTL_CMETA_P.CWI IS '폐전_폐전원인';
COMMENT ON COLUMN icgis.WTL_CMETA_P.KEGI_NO IS '계기번호';
COMMENT ON COLUMN icgis.WTL_CMETA_P.SHAPE IS 'SHAPE';


--------------------------------------------------------------------------
--// ##경제자유구청
--------------------------------------------------------------------------


--SH_LAUNCHER_P

CREATE TABLE icgis.SH_LAUNCHER_P(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.SH_LAUNCHER_P IS 'SH_LAUNCHER_P';
COMMENT ON COLUMN icgis.SH_LAUNCHER_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_LAUNCHER_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_LAUNCHER_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_LAUNCHER_P.SHAPE IS 'SHAPE';


--공기흡입밸브

CREATE TABLE icgis.SH_AIRINTAKE_P(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, FORS		VARCHAR(100)	
	, SBC		VARCHAR(6)		
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.SH_AIRINTAKE_P IS '공기흡입밸브';
COMMENT ON COLUMN icgis.SH_AIRINTAKE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_AIRINTAKE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_AIRINTAKE_P.FORS IS 'FORS';
COMMENT ON COLUMN icgis.SH_AIRINTAKE_P.SBC IS '뚜껑재질';
COMMENT ON COLUMN icgis.SH_AIRINTAKE_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_AIRINTAKE_P.SHAPE IS 'SHAPE';


--구간밸브

CREATE TABLE icgis.SH_SECTIONINGVALVR_P(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, LBL		VARCHAR(50)	
	, SBD		VARCHAR(6)		
	, CDIP		NUMERIC(5)		
	, CHOL		NUMERIC(38,8)	
	, CVEL		NUMERIC(38,8)	
	, COV		VARCHAR(6)		
	, SBC		VARCHAR(6)		
	, DIP		NUMERIC(5)		
	, HOL		NUMERIC(38,8)	
	, VEL		NUMERIC(38,8)	
	, DEP		NUMERIC(38,8)	
	, FORX		VARCHAR(6)		
	, MAT		VARCHAR(6)		
	, SW		VARCHAR(6)		
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	
);

COMMENT ON TABLE icgis.SH_SECTIONINGVALVR_P IS '구간밸브';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.SBD IS '용도';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.CDIP IS '뚜껑_구경';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.CHOL IS '뚜껑_가로';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.CVEL IS '뚜껑_세로';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.COV IS '뚜껑_형태';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.SBC IS '뚜껑_재질';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.DIP IS '변실_구경';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.HOL IS '변실_가로';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.VEL IS '변실_세로';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.DEP IS '변실_깊이';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.FORX IS '변실_형태';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.MAT IS '변실_재질';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.SW IS 'SW';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_SECTIONINGVALVR_P.SHAPE IS 'SHAPE';


--금회관로

CREATE TABLE icgis.SH_PIPEOUT_L(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, DIP		NUMERIC(38,8)	
	, SAA		VARCHAR(10)	
	, LENG		NUMERIC(38,8)	
	, LBL		VARCHAR(50)	
	, MNGT		VARCHAR(7)		
	, MOP		VARCHAR(6)		
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	

);
COMMENT ON TABLE icgis.SH_PIPEOUT_L IS '금회관로';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.DIP IS '변실_구경';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.SAA IS '관용도';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.LENG IS '연장';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.LBL IS '법정동명';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.MNGT IS '허가기관';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.MOP IS '차도재질';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_PIPEOUT_L.SHAPE IS 'SHAPE';


--기타시설_선

CREATE TABLE icgis.SH_ECT_P(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, MOF		VARCHAR(10)	
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.SH_ECT_P IS '기타시설_선';
COMMENT ON COLUMN icgis.SH_ECT_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_ECT_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_ECT_P.MOF IS '형태';
COMMENT ON COLUMN icgis.SH_ECT_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_ECT_P.SHAPE IS 'SHAPE';


--분기맨홀

CREATE TABLE icgis.SH_CUTMANHOL_P(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, MNGT		VARCHAR(6)		
	, YMD		DATE			
	, SBD		VARCHAR(6)		
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.SH_CUTMANHOL_P IS '분기맨홀';
COMMENT ON COLUMN icgis.SH_CUTMANHOL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_CUTMANHOL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_CUTMANHOL_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SH_CUTMANHOL_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SH_CUTMANHOL_P.SBD IS '용도';
COMMENT ON COLUMN icgis.SH_CUTMANHOL_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_CUTMANHOL_P.SHAPE IS 'SHAPE';


--심도

CREATE TABLE icgis.SH_DEPTH_P(
	FTC			VARCHAR(6)			NOT NULL	
	, DEP		NUMERIC(38,8)		NOT NULL	
	, OBJECTID	INTEGER				NOT NULL
	, SHAPE		public.geometry		
);
ALTER TABLE icgis.SH_DEPTH_P ADD CONSTRAINT SH_DEPTH_P_PK PRIMARY KEY (FTC, DEP);
COMMENT ON TABLE icgis.SH_DEPTH_P IS '심도';
COMMENT ON COLUMN icgis.SH_DEPTH_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_DEPTH_P.DEP IS '심도';
COMMENT ON COLUMN icgis.SH_DEPTH_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_DEPTH_P.SHAPE IS 'SHAPE';


--옥외투입구

CREATE TABLE icgis.SH_PUTGATE_P(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, MNGT		VARCHAR(7)		
	, YMD		DATE			
	, MOF		VARCHAR(6)		
	, MOL		VARCHAR(6)		
	, FORS		VARCHAR(6)		
	, SBC		VARCHAR(20)	
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.SH_PUTGATE_P IS '옥외투입구';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.MOF IS '형태';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.MOL IS 'MOL';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.FORS IS 'FORS';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.SBC IS '뚜껑재질';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_PUTGATE_P.SHAPE IS 'SHAPE';


--점검구용맨홀

CREATE TABLE icgis.SH_TESTMANHOL_P(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, LBL		VARCHAR(50)	
	, MNGT		VARCHAR(6)		
	, YMD		DATE			
	, SBD		VARCHAR(6)		
	, CDIP		NUMERIC(5)		
	, CHOL		NUMERIC(38,8)	
	, CVEL		NUMERIC(38,8)	
	, COV		VARCHAR(6)		
	, SBC		VARCHAR(6)		
	, DIP		NUMERIC(5)		
	, HOL		NUMERIC(38,8)	
	, VEL		NUMERIC(38,8)	
	, DEP		NUMERIC(38,8)	
	, FORX		VARCHAR(6)		
	, MAT		VARCHAR(6)		
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.SH_TESTMANHOL_P IS '점검구용맨홀';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.SBD IS '용도';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.CDIP IS '뚜껑_구경';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.CHOL IS '뚜껑_가로';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.CVEL IS '뚜껑_세로';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.COV IS '뚜껑_형태';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.SBC IS '뚜껑_재질';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.DIP IS '변실_구경';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.HOL IS '변실_가로';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.VEL IS '변실_세로';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.DEP IS '변실_깊이';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.FORX IS '변실_형태';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.MAT IS '변실_재질';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_TESTMANHOL_P.SHAPE IS 'SHAPE';


--주관로

CREATE TABLE icgis.SH_PIPE_L(
	OBJECTID	INTEGER			NOT NULL
	, FTC		VARCHAR(6)		
	, DIO		NUMERIC(38,8)	
	, SAA		VARCHAR(10)	
	, LENG		NUMERIC(38,8)	
	, LBL		VARCHAR(50)	
	, MNGT		VARCHAR(7)		
	, MOP		VARCHAR(6)		
	, NOTE		VARCHAR(100)	
	, SHAPE		public.geometry	
);
COMMENT ON TABLE icgis.SH_PIPE_L IS '주관로';
COMMENT ON COLUMN icgis.SH_PIPE_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.SH_PIPE_L.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.SH_PIPE_L.DIO IS 'DIO';
COMMENT ON COLUMN icgis.SH_PIPE_L.SAA IS '관용도';
COMMENT ON COLUMN icgis.SH_PIPE_L.LENG IS '연장';
COMMENT ON COLUMN icgis.SH_PIPE_L.LBL IS '라벨';
COMMENT ON COLUMN icgis.SH_PIPE_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.SH_PIPE_L.MOP IS '재질';
COMMENT ON COLUMN icgis.SH_PIPE_L.NOTE IS '비고';
COMMENT ON COLUMN icgis.SH_PIPE_L.SHAPE IS 'SHAPE';


--중수관로

CREATE TABLE icgis.WWL_PIPE_L(
	IDN				INTEGER			NOT NULL	
	, FTC			VARCHAR(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(10)	
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, YMD			VARCHAR(10)	
	, DIP			NUMERIC(5)		
	, SAA			VARCHAR(6)		
	, LENG			NUMERIC(38,8)	
	, LBL			VARCHAR(50)	
	, MOP			VARCHAR(6)		
	, IQT			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, EXAM_YN		VARCHAR(1)		
	, UPDATE_YMD	VARCHAR(10)	
	, UPDATE_NAM	VARCHAR(50)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WWL_PIPE_L ADD CONSTRAINT WWL_PIPE_L_PK PRIMARY KEY (IDN, FTC);
COMMENT ON TABLE icgis.WWL_PIPE_L IS '중수관로';
COMMENT ON COLUMN icgis.WWL_PIPE_L.IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.WWL_PIPE_L.FTC IS '개별번호';
COMMENT ON COLUMN icgis.WWL_PIPE_L.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WWL_PIPE_L.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WWL_PIPE_L.DCD IS '행정동';
COMMENT ON COLUMN icgis.WWL_PIPE_L.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WWL_PIPE_L.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WWL_PIPE_L.DIP IS '구경';
COMMENT ON COLUMN icgis.WWL_PIPE_L.SAA IS '관용도';
COMMENT ON COLUMN icgis.WWL_PIPE_L.LENG IS '관연장';
COMMENT ON COLUMN icgis.WWL_PIPE_L.LBL IS '관라벨';
COMMENT ON COLUMN icgis.WWL_PIPE_L.MOP IS '재질';
COMMENT ON COLUMN icgis.WWL_PIPE_L.IQT IS '탐사구분';
COMMENT ON COLUMN icgis.WWL_PIPE_L.ETC IS '비고';
COMMENT ON COLUMN icgis.WWL_PIPE_L.EXAM_YN IS '성과심사여부';
COMMENT ON COLUMN icgis.WWL_PIPE_L.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.WWL_PIPE_L.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.WWL_PIPE_L.SHAPE IS 'SHAPE';


--중수맨홀

CREATE TABLE icgis.WWL_MANHOL_P(
	FTC				VARCHAR(5)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, YMD			VARCHAR(10)	
	, CSS			VARCHAR(25)	
	, SOM			VARCHAR(6)		
	, BTT			VARCHAR(6)		
	, STAT			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, LBL			VARCHAR(50)	
	, UPDATE_YMD	VARCHAR(10)	
	, UPDATE_NAM	VARCHAR(50)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WWL_MANHOL_P ADD CONSTRAINT WWL_MANHOL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WWL_MANHOL_P IS '중수맨홀';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.CSS IS '규격';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.SOM IS '맨홀종류';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.BTT IS '맨홀형태';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.WWL_MANHOL_P.SHAPE IS 'SHAPE';


--중수변류시설

CREATE TABLE icgis.WWL_VALVE_P(
	FTC				VARCHAR(5)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL	
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, YMD			VARCHAR(10)	
	, MOP			VARCHAR(6)		
	, MOF			VARCHAR(6)		
	, DIP			NUMERIC(5)		
	, BTT			VARCHAR(6)		
	, BSS			VARCHAR(50)	
	, CSS			VARCHAR(6)		
	, CSR			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, STAT			VARCHAR(6)		
	, LBL			VARCHAR(50)	
	, UPDATE_YMD	VARCHAR(10)	
	, UPDATE_NAM	VARCHAR(50)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WWL_VALVE_P ADD CONSTRAINT WWL_VALVE_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WWL_VALVE_P IS '중수변류시설';
COMMENT ON COLUMN icgis.WWL_VALVE_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WWL_VALVE_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WWL_VALVE_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WWL_VALVE_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WWL_VALVE_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WWL_VALVE_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WWL_VALVE_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WWL_VALVE_P.MOP IS '재질';
COMMENT ON COLUMN icgis.WWL_VALVE_P.MOF IS '변류형식';
COMMENT ON COLUMN icgis.WWL_VALVE_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WWL_VALVE_P.BTT IS '변실형태';
COMMENT ON COLUMN icgis.WWL_VALVE_P.BSS IS '변실규격';
COMMENT ON COLUMN icgis.WWL_VALVE_P.CSS IS '뚜껑구경';
COMMENT ON COLUMN icgis.WWL_VALVE_P.CSR IS '뚜껑재질';
COMMENT ON COLUMN icgis.WWL_VALVE_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WWL_VALVE_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WWL_VALVE_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WWL_VALVE_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.WWL_VALVE_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.WWL_VALVE_P.SHAPE IS 'SHAPE';


--중수수압계

CREATE TABLE icgis.WWL_PRGA_P(
	FTC				VARCHAR(5)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, YMD			VARCHAR(10)	
	, PGA			VARCHAR(6)		
	, MOF			VARCHAR(6)		
	, DIP			NUMERIC(5)		
	, SSAF			NUMERIC(38,8)	
	, ASAF			NUMERIC(38,8)	
	, MSAF			NUMERIC(38,8)	
	, PDIP			NUMERIC(5)		
	, NAM			VARCHAR(100)	
	, ANG			NUMERIC(5)		
	, UPDATE_YMD	VARCHAR(10)	
	, UPDATE_NAM	VARCHAR(50)	
	, SHAPE			public.geometry	

);
ALTER TABLE icgis.WWL_PRGA_P ADD CONSTRAINT WWL_PRGA_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WWL_PRGA_P IS '중수수압계';
COMMENT ON COLUMN icgis.WWL_PRGA_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WWL_PRGA_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WWL_PRGA_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WWL_PRGA_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WWL_PRGA_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WWL_PRGA_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WWL_PRGA_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WWL_PRGA_P.PGA IS '수압계종류';
COMMENT ON COLUMN icgis.WWL_PRGA_P.MOF IS '수압계형식';
COMMENT ON COLUMN icgis.WWL_PRGA_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WWL_PRGA_P.SSAF IS '기준압력';
COMMENT ON COLUMN icgis.WWL_PRGA_P.ASAF IS '평균압력';
COMMENT ON COLUMN icgis.WWL_PRGA_P.MSAF IS '측정압력';
COMMENT ON COLUMN icgis.WWL_PRGA_P.PDIP IS '중수관관경';
COMMENT ON COLUMN icgis.WWL_PRGA_P.NAM IS '제작회사명';
COMMENT ON COLUMN icgis.WWL_PRGA_P.ANG IS '방향각';
COMMENT ON COLUMN icgis.WWL_PRGA_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.WWL_PRGA_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.WWL_PRGA_P.SHAPE IS 'SHAPE';


--중수심도

CREATE TABLE icgis.WWL_DEPTH_P(
	MNGT		VARCHAR(6)		NOT NULL	
	, FTC		VARCHAR(5)		NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, DEP		NUMERIC(38,8)	
	, SHAPE		public.geometry	

);
ALTER TABLE icgis.WWL_DEPTH_P ADD CONSTRAINT WWL_DEPTH_P_PK PRIMARY KEY (MNGT, FTC);
COMMENT ON TABLE icgis.WWL_DEPTH_P IS '중수심도';
COMMENT ON COLUMN icgis.WWL_DEPTH_P.MNGT IS '지형지물부호';
COMMENT ON COLUMN icgis.WWL_DEPTH_P.FTC IS '관리기관';
COMMENT ON COLUMN icgis.WWL_DEPTH_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WWL_DEPTH_P.DEP IS '심도';
COMMENT ON COLUMN icgis.WWL_DEPTH_P.SHAPE IS 'SHAPE';


--중수유량계

CREATE TABLE icgis.WWL_YURANG_P(
	FTC				VARCHAR(5)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(7)		
	, PNAM			VARCHAR(20)	
	, MOF			VARCHAR(6)		
	, MNU			VARCHAR(100)	
	, YMD			VARCHAR(10)	
	, DIP			NUMERIC(5)		
	, LOC			VARCHAR(50)	
	, STAT			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, LBL			VARCHAR(50)	
	, UPDATE_YMD	VARCHAR(10)	
	, UPDATE_NAM	VARCHAR(50)	
	, SHAPE			public.geometry	

);
ALTER TABLE icgis.WWL_YURANG_P ADD CONSTRAINT WWL_YURANG_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WWL_YURANG_P IS '중수유량계';
COMMENT ON COLUMN icgis.WWL_YURANG_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WWL_YURANG_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WWL_YURANG_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WWL_YURANG_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WWL_YURANG_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WWL_YURANG_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WWL_YURANG_P.PNAM IS '품명';
COMMENT ON COLUMN icgis.WWL_YURANG_P.MOF IS '형식';
COMMENT ON COLUMN icgis.WWL_YURANG_P.MNU IS '제조회사';
COMMENT ON COLUMN icgis.WWL_YURANG_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WWL_YURANG_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WWL_YURANG_P.LOC IS '위치';
COMMENT ON COLUMN icgis.WWL_YURANG_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WWL_YURANG_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WWL_YURANG_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WWL_YURANG_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.WWL_YURANG_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.WWL_YURANG_P.SHAPE IS 'SHAPE';


--중수탑

CREATE TABLE icgis.WWL_WTOWER_P(
	FTC				VARCHAR(5)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)		
	, DCD			VARCHAR(10)	
	, MNGT			VARCHAR(6)		
	, YMD			VARCHAR(10)	
	, DIP			NUMERIC(5)		
	, BDIP			NUMERIC(5)		
	, HIT			NUMERIC(5)		
	, STAT			VARCHAR(6)		
	, ETC			VARCHAR(100)	
	, LBL			VARCHAR(50)	
	, UPDATE_YMD	VARCHAR(10)	
	, UPDATE_NAM	VARCHAR(50)	
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.WWL_WTOWER_P ADD CONSTRAINT WWL_WTOWER_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.WWL_WTOWER_P IS '중수탑';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.IDN IS '개별번호';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.MNGT IS '관리기관';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.YMD IS '설치일자';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.DIP IS '구경';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.BDIP IS '관경';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.HIT IS '높이';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.STAT IS '현재상태';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.ETC IS '비고';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.LBL IS '라벨';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.WWL_WTOWER_P.SHAPE IS 'SHAPE';


--경제청_통신맨홀

CREATE TABLE icgis.COM_KMAN_PS(
	FTR_CDE		VARCHAR(6)		NOT NULL	
	, FTR_IDN	INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, MNG_CDE	VARCHAR(7)		
	, IST_YMD	VARCHAR(8)		
	, FOR_CDE	VARCHAR(6)		
	, SOM_CDE	VARCHAR(6)		
	, LEN_NAM	VARCHAR(100)	
	, MAN		VARCHAR(50)	
	, SUBTYPE	INTEGER			
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.COM_KMAN_PS ADD CONSTRAINT COM_KMAN_PS_PK PRIMARY KEY (FTR_CDE, FTR_IDN);
COMMENT ON TABLE icgis.COM_KMAN_PS IS '경제청_통신맨홀';
COMMENT ON COLUMN icgis.COM_KMAN_PS.FTR_CDE IS '관리번호';
COMMENT ON COLUMN icgis.COM_KMAN_PS.FTR_IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.COM_KMAN_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.COM_KMAN_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.COM_KMAN_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.COM_KMAN_PS.FOR_CDE IS '시설물형태';
COMMENT ON COLUMN icgis.COM_KMAN_PS.SOM_CDE IS '맨홀종류';
COMMENT ON COLUMN icgis.COM_KMAN_PS.LEN_NAM IS '간선명';
COMMENT ON COLUMN icgis.COM_KMAN_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.COM_KMAN_PS.SUBTYPE IS '분류';
COMMENT ON COLUMN icgis.COM_KMAN_PS.SHAPE IS 'SHAPE';


--경제청_통신선로

CREATE TABLE icgis.COM_KPIP_LS(
	FTR_CDE			VARCHAR(6)		NOT NULL	
	, FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, MNG_CDE		VARCHAR(7)		
	, IST_YMD		VARCHAR(8)		
	, SPH_LIN		INTEGER			
	, MOP_CDE		VARCHAR(6)		
	, STD_DIP		NUMERIC(38,8)	
	, STD_HOL		NUMERIC(38,8)	
	, STD_DEP		NUMERIC(38,8)	
	, LEN_NAM		VARCHAR(100)	
	, SDG_PNT		VARCHAR(50)	
	, SDH_PNT		VARCHAR(50)	
	, PIP_LBL		VARCHAR(50)	
	, LENG			NUMERIC(38,8)	
	, VEL			NUMERIC(38,8)	
	, MAN			VARCHAR(50)	
	, REMARK		VARCHAR(50)	
	, SUBTYPE		INTEGER			
	, SHAPE			public.geometry	

);
ALTER TABLE icgis.COM_KPIP_LS ADD CONSTRAINT COM_KPIP_LS_PK PRIMARY KEY (FTR_CDE, FTR_IDN);
COMMENT ON TABLE icgis.COM_KPIP_LS IS '경제청_통신선로';
COMMENT ON COLUMN icgis.COM_KPIP_LS.FTR_CDE IS '관리번호';
COMMENT ON COLUMN icgis.COM_KPIP_LS.FTR_IDN IS '지형지물부호';
COMMENT ON COLUMN icgis.COM_KPIP_LS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.COM_KPIP_LS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.COM_KPIP_LS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.COM_KPIP_LS.SPH_LIN IS '차선통로수';
COMMENT ON COLUMN icgis.COM_KPIP_LS.MOP_CDE IS '관재질';
COMMENT ON COLUMN icgis.COM_KPIP_LS.STD_DIP IS '관경';
COMMENT ON COLUMN icgis.COM_KPIP_LS.STD_HOL IS '가로길이';
COMMENT ON COLUMN icgis.COM_KPIP_LS.STD_DEP IS '깊이';
COMMENT ON COLUMN icgis.COM_KPIP_LS.LEN_NAM IS '간선명';
COMMENT ON COLUMN icgis.COM_KPIP_LS.SDG_PNT IS '통신관로연결시작점';
COMMENT ON COLUMN icgis.COM_KPIP_LS.SDH_PNT IS '통신관로연결끝점';
COMMENT ON COLUMN icgis.COM_KPIP_LS.PIP_LBL IS '관라벨';
COMMENT ON COLUMN icgis.COM_KPIP_LS.LENG IS '길이';
COMMENT ON COLUMN icgis.COM_KPIP_LS.VEL IS '단';
COMMENT ON COLUMN icgis.COM_KPIP_LS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.COM_KPIP_LS.REMARK IS '비고';
COMMENT ON COLUMN icgis.COM_KPIP_LS.SUBTYPE IS '분류';
COMMENT ON COLUMN icgis.COM_KPIP_LS.SHAPE IS 'SHAPE';


--경제청_통신심도

CREATE TABLE icgis.COM_KPIP_PS(
	FTR_CDE			VARCHAR(6)		NOT NULL	
	, FTR_IDN		INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, PIP_DEP		NUMERIC(38,8)	NOT NULL
	, GRU_HSL		NUMERIC(38,8)	NOT NULL
	, ORGZID		VARCHAR(6)		NOT NULL
	, SHAPE			public.geometry	
);
ALTER TABLE icgis.COM_KPIP_PS ADD CONSTRAINT COM_KPIP_PS_PK PRIMARY KEY (FTR_CDE, FTR_IDN);
COMMENT ON TABLE icgis.COM_KPIP_PS IS '경제청_통신심도';
COMMENT ON COLUMN icgis.COM_KPIP_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.COM_KPIP_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.COM_KPIP_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.COM_KPIP_PS.PIP_DEP IS '심도';
COMMENT ON COLUMN icgis.COM_KPIP_PS.GRU_HSL IS '관저고';
COMMENT ON COLUMN icgis.COM_KPIP_PS.ORGZID IS '관리기관코드';
COMMENT ON COLUMN icgis.COM_KPIP_PS.SHAPE IS 'SHAPE';


--경제청_통신주

CREATE TABLE icgis.COM_KPOL_PS(
	FTR_CDE		VARCHAR(6)		NOT NULL	
	, FTR_IDN	INTEGER			NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, MNG_CDE	VARCHAR(7)		
	, IST_YMD	VARCHAR(8)		
	, STD_LEN	NUMERIC(38,8)	
	, SMA_EXP	VARCHAR(50)	
	, LEN_NAM	VARCHAR(100)	
	, MAN		VARCHAR(50)	
	, SUBTYPE	INTEGER			
	, SDD		VARCHAR(50)	
	, SHAPE		public.geometry	
);
ALTER TABLE icgis.COM_KPOL_PS ADD CONSTRAINT COM_KPOL_PS_PK PRIMARY KEY (FTR_CDE, FTR_IDN);
COMMENT ON TABLE icgis.COM_KPOL_PS IS '경제청_통신주';
COMMENT ON COLUMN icgis.COM_KPOL_PS.FTR_CDE IS '지형지물부호';
COMMENT ON COLUMN icgis.COM_KPOL_PS.FTR_IDN IS '관리번호';
COMMENT ON COLUMN icgis.COM_KPOL_PS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.COM_KPOL_PS.MNG_CDE IS '관리기관코드';
COMMENT ON COLUMN icgis.COM_KPOL_PS.IST_YMD IS '설치일자';
COMMENT ON COLUMN icgis.COM_KPOL_PS.STD_LEN IS '길이';
COMMENT ON COLUMN icgis.COM_KPOL_PS.SMA_EXP IS '통신주재질';
COMMENT ON COLUMN icgis.COM_KPOL_PS.LEN_NAM IS '간선명';
COMMENT ON COLUMN icgis.COM_KPOL_PS.MAN IS '관리부서';
COMMENT ON COLUMN icgis.COM_KPOL_PS.SUBTYPE IS '분류';
COMMENT ON COLUMN icgis.COM_KPOL_PS.SDD IS '통신관리형태';
COMMENT ON COLUMN icgis.COM_KPOL_PS.SHAPE IS 'SHAPE';


--------------------------------------------------------------------------
--// ##기타
--------------------------------------------------------------------------


--GPT_CMMTNADMDNG

CREATE TABLE icgis.GPT_CMMTNADMDNG(
	ADMDNG_CODE			VARCHAR(10)	NOT NULL	
	, OBJECTID			INTEGER			NOT NULL
	, SIDO_NM			VARCHAR(30)	NOT NULL
	, CGG_NM			VARCHAR(30)	
	, UMD_NM			VARCHAR(30)	
	, CRE_YMD			VARCHAR(8)		
	, DEL_YMD			VARCHAR(8)		
	, BCHG_ADMDNG_CODE	VARCHAR(10)	
	, DEP_CODE			VARCHAR(11)	
	, GLOBALID			CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GPT_CMMTNADMDNG ADD CONSTRAINT GPT_CMMTNADMDNG_PK PRIMARY KEY (ADMDNG_CODE);
COMMENT ON TABLE icgis.GPT_CMMTNADMDNG IS 'GPT_CMMTNADMDNG';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.ADMDNG_CODE IS 'ADMDNG_CODE';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.SIDO_NM IS '시도명';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.CGG_NM IS '시군구명';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.UMD_NM IS '읍면동명';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.CRE_YMD IS '생성일';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.DEL_YMD IS '삭제일';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.BCHG_ADMDNG_CODE IS 'BCHG_ADMDNG_CODE';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.DEP_CODE IS '부서코드';
COMMENT ON COLUMN icgis.GPT_CMMTNADMDNG.GLOBALID IS 'GLOBALID';


--GPT_CMMTNCODBL

CREATE TABLE icgis.GPT_CMMTNCODBL(
	REGN_CODE			VARCHAR(10)	NOT NULL	
	, OBJECTID			INTEGER			NOT NULL
	, SIDO_NM			VARCHAR(30)	NOT NULL
	, CGG_NM			VARCHAR(30)	
	, UMD_NM			VARCHAR(30)	
	, RI_NM				VARCHAR(30)	
	, RANK				INTEGER			
	, RESI_BUPD_CODE	VARCHAR(10)	
	, ACRG_BUPD_CODE	VARCHAR(10)	
	, CRE_YMD			VARCHAR(8)		
	, DEL_YMD			VARCHAR(8)		
	, BCHG_REGN_CODE	VARCHAR(10)	
	, SF_TEAM_CODE		VARCHAR(7)		
	, SIDO_ENG_NM		VARCHAR(40)	
	, CGG_ENG_NM		VARCHAR(40)	
	, UMD_ENG_NM		VARCHAR(40)	
	, RI_ENG_NM			VARCHAR(40)	
	, GLOBALID			CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GPT_CMMTNCODBL ADD CONSTRAINT GPT_CMMTNCODBL_PK PRIMARY KEY (REGN_CODE);
COMMENT ON TABLE icgis.GPT_CMMTNCODBL IS 'GPT_CMMTNCODBL';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.REGN_CODE IS '지역코드';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.SIDO_NM IS '시도명';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.CGG_NM IS '시군구명';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.UMD_NM IS '읍면동명';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.RI_NM IS '리명';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.RANK IS '서열';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.RESI_BUPD_CODE IS 'RESI_BUPD_CODE';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.ACRG_BUPD_CODE IS 'ACRG_BUPD_CODE';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.CRE_YMD IS '생성일';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.DEL_YMD IS '삭제일';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.BCHG_REGN_CODE IS 'BCHG_REGN_CODE';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.SF_TEAM_CODE IS 'SF_TEAM_CODE';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.SIDO_ENG_NM IS '시도영문명';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.CGG_ENG_NM IS '시군구영문명';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.UMD_ENG_NM IS '읍면동영문명';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.RI_ENG_NM IS '리영문명';
COMMENT ON COLUMN icgis.GPT_CMMTNCODBL.GLOBALID IS 'GLOBALID';


--GPT_CODE_DT

CREATE TABLE icgis.GPT_CODE_DT(
	LIST_ID			NUMERIC(5)		NOT NULL	
	, CODE			VARCHAR(7)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, NAME			VARCHAR(127)	NOT NULL
	, DESCRIPTION	VARCHAR(511)	
	, SHORT_WORD	VARCHAR(127)	
	, SORT			NUMERIC(5)		NOT NULL
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GPT_CODE_DT ADD CONSTRAINT GPT_CODE_DT_PK PRIMARY KEY (LIST_ID, CODE);
COMMENT ON TABLE icgis.GPT_CODE_DT IS 'GPT_CODE_DT';
COMMENT ON COLUMN icgis.GPT_CODE_DT.LIST_ID IS 'ID';
COMMENT ON COLUMN icgis.GPT_CODE_DT.CODE IS '코드';
COMMENT ON COLUMN icgis.GPT_CODE_DT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GPT_CODE_DT.NAME IS '코드명';
COMMENT ON COLUMN icgis.GPT_CODE_DT.DESCRIPTION IS '설명';
COMMENT ON COLUMN icgis.GPT_CODE_DT.SHORT_WORD IS '약어';
COMMENT ON COLUMN icgis.GPT_CODE_DT.SORT IS '정렬순서';
COMMENT ON COLUMN icgis.GPT_CODE_DT.GLOBALID IS 'GLOBALID';


--GPT_CODE_LT

CREATE TABLE icgis.GPT_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.GPT_CODE_LT ADD CONSTRAINT GPT_CODE_LT_PK PRIMARY KEY (ID);
COMMENT ON TABLE icgis.GPT_CODE_LT IS 'GPT_CODE_LT';
COMMENT ON COLUMN icgis.GPT_CODE_LT.ID IS 'ID';
COMMENT ON COLUMN icgis.GPT_CODE_LT.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GPT_CODE_LT.NAME IS '도메인명';
COMMENT ON COLUMN icgis.GPT_CODE_LT.DESCRIPTION IS '설명';
COMMENT ON COLUMN icgis.GPT_CODE_LT.GLOBALID IS 'GLOBALID';


--GPT_CODE_TB

CREATE TABLE icgis.GPT_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.GPT_CODE_TB ADD CONSTRAINT GPT_CODE_TB_PK PRIMARY KEY (LIST_ID, TABLE_NAME);
COMMENT ON TABLE icgis.GPT_CODE_TB IS 'GPT_CODE_TB';
COMMENT ON COLUMN icgis.GPT_CODE_TB.LIST_ID IS 'ID';
COMMENT ON COLUMN icgis.GPT_CODE_TB.TABLE_NAME IS '테이블명';
COMMENT ON COLUMN icgis.GPT_CODE_TB.COLUMN_NAME IS '컬럼명';
COMMENT ON COLUMN icgis.GPT_CODE_TB.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GPT_CODE_TB.GLOBALID IS 'GLOBALID';


--GPT_NOTICE_D

CREATE TABLE icgis.GPT_NOTICE_D(
	N_IDX		NUMERIC(38,8)	NOT NULL	
	, OBJECTID	INTEGER			NOT NULL
	, N_NAME	VARCHAR(50)	
	, N_EMAIL	VARCHAR(100)	
	, N_TITLE	VARCHAR(200)	
	, N_CONTENT	VARCHAR(4000)	
	, N_DATE	DATE			
	, N_VIEW	VARCHAR(1)		
	, N_POPUP	VARCHAR(1)		
	, GLOBALID	CHAR(38)		NOT NULL	
); 
ALTER TABLE icgis.GPT_NOTICE_D ADD CONSTRAINT GPT_NOTICE_D_PK PRIMARY KEY (N_IDX);
COMMENT ON TABLE icgis.GPT_NOTICE_D IS 'GPT_NOTICE_D';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.N_IDX IS '공지순서';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.N_NAME IS '공지명';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.N_EMAIL IS '공지메일';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.N_TITLE IS '공지제목';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.N_CONTENT IS '공지내용';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.N_DATE IS '공지일';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.N_VIEW IS '공지뷰';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.N_POPUP IS '공지팝업';
COMMENT ON COLUMN icgis.GPT_NOTICE_D.GLOBALID IS 'GLOBALID';


--GPT_QAMN_D

CREATE TABLE icgis.GPT_QAMN_D(
	SEQ				NUMERIC(38,8)	NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, Q_IDX			NUMERIC(38,8)	
	, Q_IDX_SUB		NUMERIC(38,8)	
	, Q_RIDX		NUMERIC(38,8)	
	, Q_NAME		VARCHAR(50)	
	, Q_EMAIL		VARCHAR(100)	
	, Q_TITLE		VARCHAR(200)	
	, Q_CONTENT		VARCHAR(4000)	
	, Q_PASSWORD	VARCHAR(10)	
	, Q_DATE		DATE			
	, Q_READNUM		NUMERIC(38,8)	
	, Q_IP			VARCHAR(50)	
	, Q_ID			VARCHAR(20)	
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.GPT_QAMN_D ADD CONSTRAINT GPT_QAMN_D_PK PRIMARY KEY (SEQ);
COMMENT ON TABLE icgis.GPT_QAMN_D IS 'GPT_QAMN_D';
COMMENT ON COLUMN icgis.GPT_QAMN_D.SEQ IS 'SEQ';
COMMENT ON COLUMN icgis.GPT_QAMN_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_IDX IS 'Q_IDX';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_IDX_SUB IS 'Q_IDX_SUB';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_RIDX IS 'Q_RIDX';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_NAME IS 'Q_NAME';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_EMAIL IS 'Q_EMAIL';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_TITLE IS 'Q_TITLE';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_CONTENT IS 'Q_CONTENT';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_PASSWORD IS 'Q_PASSWORD';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_DATE IS 'Q_DATE';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_READNUM IS 'Q_READNUM';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_IP IS 'Q_IP';
COMMENT ON COLUMN icgis.GPT_QAMN_D.Q_ID IS 'Q_ID';
COMMENT ON COLUMN icgis.GPT_QAMN_D.GLOBALID IS 'GLOBALID';


--민원위치

CREATE TABLE icgis.GEL_CIVIL_P(
	FTC				VARCHAR(5)		NOT NULL	
	, IDN			INTEGER			NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, GUCD			VARCHAR(5)	
	, DCD			VARCHAR(10)
	, MMNGT			VARCHAR(6)	
	, MYM			VARCHAR(6)	
	, MSEQ			NUMERIC(5)	
	, UPDATE_YMD	DATE		
	, UPDATE_NAM	VARCHAR(50)
	, SHAPE			INTEGER		
);
ALTER TABLE icgis.GEL_CIVIL_P ADD CONSTRAINT GEL_CIVIL_P_PK PRIMARY KEY (FTC, IDN);
COMMENT ON TABLE icgis.GEL_CIVIL_P IS '민원위치';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.FTC IS '지형지물부호';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.IDN IS '일련번호';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.GUCD IS '행정구';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.DCD IS '행정동';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.MMNGT IS '민원대장_등록기관';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.MYM IS '민원대장_접수월';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.MSEQ IS '민원대장_일련번호';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.GEL_CIVIL_P.SHAPE IS 'SHAPE';


--민원처리대장

CREATE TABLE icgis.CMT_CIVIL_D(
	MNGT			VARCHAR(6)		NOT NULL	
	, YM			VARCHAR(6)		NOT NULL	
	, SEQ			NUMERIC(5)		NOT NULL	
	, OBJECTID		INTEGER			NOT NULL
	, YMD			DATE			NOT NULL
	, RNAME			VARCHAR(8)		
	, KIND			VARCHAR(30)	
	, TITLE			VARCHAR(40)	
	, ANAME			VARCHAR(30)	
	, ADDR			VARCHAR(80)	
	, TEL			VARCHAR(14)	
	, PERIOD		VARCHAR(6)		
	, TRANS			VARCHAR(20)	
	, CYMD			DATE			
	, RYMD			DATE			
	, EYMD			DATE			
	, TYMD			DATE			
	, DETAIL		VARCHAR(60)	
	, CONFIRM		VARCHAR(8)		
	, NOTE			VARCHAR(60)	
	, UPDATE_YMD	DATE			
	, UPDATE_NAM	VARCHAR(50)	
	, TYPE			VARCHAR(6)		
	, GLOBALID		CHAR(38)		NOT NULL
);
ALTER TABLE icgis.CMT_CIVIL_D ADD CONSTRAINT CMT_CIVIL_D_PK PRIMARY KEY (MNGT, YM, SEQ);
COMMENT ON TABLE icgis.CMT_CIVIL_D IS '민원처리대장';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.MNGT IS '등록기관';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.YM IS '접수월';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.SEQ IS '일련번호';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.YMD IS '접수일';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.RNAME IS '접수/처리담당자';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.KIND IS '종류';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.TITLE IS '건명';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.ANAME IS '민원인_성명';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.ADDR IS '민원인_주소';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.TEL IS '민원인_전화번호';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.PERIOD IS '처리기간';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.TRANS IS '경유 또는 이첩';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.CYMD IS '협조일_조회일';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.RYMD IS '회신일';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.EYMD IS '조사일';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.TYMD IS '처분일';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.DETAIL IS '처분내역';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.CONFIRM IS '처분확인';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.NOTE IS '비고';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.UPDATE_YMD IS '최종수정일시';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.UPDATE_NAM IS '최종수정자명';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.TYPE IS '분야';
COMMENT ON COLUMN icgis.CMT_CIVIL_D.GLOBALID IS 'GLOBALID';


--굴착예정지

CREATE TABLE icgis.DRL_DPL_LS(
	DIPA_IDN			VARCHAR(18)		NOT NULL	
	, OBJECTID			INTEGER			NOT NULL
	, YEAR				VARCHAR(8)		
	, RECOV_METHOD		VARCHAR(50)	
	, CONSTRUCT_NAME	VARCHAR(100)	
	, OCCUPY_PURPOSE	VARCHAR(180)	
	, CONSTRUCT_TIME	VARCHAR(100)	
	, OCCUPY_PLACE_AREA	VARCHAR(120)	
	, CONSTRUCT_CORP	VARCHAR(50)	
	, CONSTRUCT_TEL		VARCHAR(50)	
	, CONSTRUCT_MANAGER	VARCHAR(50)	
	, PERMIT_NUM		VARCHAR(30)	
	, RECEIPT_DT		DATE			
	, PERMIT_DT			DATE			
	, PACK_TYPE			VARCHAR(50)	
	, REQ_LENGTH		NUMERIC(38,8)	
	, REQ_WIDTH			NUMERIC(38,8)	
	, COMPLT_LENGTH		NUMERIC(38,8)	
	, COMPLT_WIDTH		NUMERIC(38,8)	
	, RDIG_STATUS		VARCHAR(50)	
	, USER_NAME			VARCHAR(20)	
	, USER_DEPT			VARCHAR(30)	
	, TEL_NO			VARCHAR(20)	
	, GLOBALID			CHAR(38)		NOT NULL
	, SHAPE				public.geometry	
);
ALTER TABLE icgis.DRL_DPL_LS ADD CONSTRAINT DRL_DPL_LS_PK PRIMARY KEY (DIPA_IDN);
COMMENT ON TABLE icgis.DRL_DPL_LS IS '굴착예정지';
COMMENT ON COLUMN icgis.DRL_DPL_LS.DIPA_IDN IS '일련번호';
COMMENT ON COLUMN icgis.DRL_DPL_LS.OBJECTID IS 'OBJECTID';
COMMENT ON COLUMN icgis.DRL_DPL_LS.YEAR IS '연도';
COMMENT ON COLUMN icgis.DRL_DPL_LS.RECOV_METHOD IS 'RECOV_METHOD';
COMMENT ON COLUMN icgis.DRL_DPL_LS.CONSTRUCT_NAME IS 'CONSTRUCT_NAME';
COMMENT ON COLUMN icgis.DRL_DPL_LS.OCCUPY_PURPOSE IS 'OCCUPY_PURPOSE';
COMMENT ON COLUMN icgis.DRL_DPL_LS.CONSTRUCT_TIME IS 'CONSTRUCT_TIME';
COMMENT ON COLUMN icgis.DRL_DPL_LS.OCCUPY_PLACE_AREA IS 'OCCUPY_PLACE_AREA';
COMMENT ON COLUMN icgis.DRL_DPL_LS.CONSTRUCT_CORP IS 'CONSTRUCT_CORP';
COMMENT ON COLUMN icgis.DRL_DPL_LS.CONSTRUCT_TEL IS 'CONSTRUCT_TEL';
COMMENT ON COLUMN icgis.DRL_DPL_LS.CONSTRUCT_MANAGER IS 'CONSTRUCT_MANAGER';
COMMENT ON COLUMN icgis.DRL_DPL_LS.PERMIT_NUM IS 'PERMIT_NUM';
COMMENT ON COLUMN icgis.DRL_DPL_LS.RECEIPT_DT IS 'RECEIPT_DT';
COMMENT ON COLUMN icgis.DRL_DPL_LS.PERMIT_DT IS 'PERMIT_DT';
COMMENT ON COLUMN icgis.DRL_DPL_LS.PACK_TYPE IS 'PACK_TYPE';
COMMENT ON COLUMN icgis.DRL_DPL_LS.REQ_LENGTH IS 'REQ_LENGTH';
COMMENT ON COLUMN icgis.DRL_DPL_LS.REQ_WIDTH IS 'REQ_WIDTH';
COMMENT ON COLUMN icgis.DRL_DPL_LS.COMPLT_LENGTH IS 'COMPLT_LENGTH';
COMMENT ON COLUMN icgis.DRL_DPL_LS.COMPLT_WIDTH IS 'COMPLT_WIDTH';
COMMENT ON COLUMN icgis.DRL_DPL_LS.RDIG_STATUS IS 'RDIG_STATUS';
COMMENT ON COLUMN icgis.DRL_DPL_LS.USER_NAME IS '사용자명';
COMMENT ON COLUMN icgis.DRL_DPL_LS.USER_DEPT IS '사용자부서';
COMMENT ON COLUMN icgis.DRL_DPL_LS.TEL_NO IS '전화번호';
COMMENT ON COLUMN icgis.DRL_DPL_LS.GLOBALID IS 'GLOBALID';
COMMENT ON COLUMN icgis.DRL_DPL_LS.SHAPE IS 'SHAPE';

