|
|
|
@ -27,16 +27,6 @@ CREATE TABLE tb_dsuse_mgt
|
|
|
|
|
CREATE INDEX idx_tb_dsuse_mgt_01
|
|
|
|
|
ON tb_dsuse_mgt (org_usr_rpt_id_no ASC, usr_rpt_id_no ASC);
|
|
|
|
|
|
|
|
|
|
create table adds.tb_dsuse_mgt_dsuse_img
|
|
|
|
|
(
|
|
|
|
|
dscdmng_id varchar(10) NOT NULL COMMENT '폐기관리_id',
|
|
|
|
|
img_sn varchar(2) NOT NULL COMMENT '이미지일련번호',
|
|
|
|
|
dsuse_img_id varchar(13) NOT NULL COMMENT '폐기_이미지_id',
|
|
|
|
|
reg_dt varchar(14) NOT NULL COMMENT '등록_일시',
|
|
|
|
|
rgtr varchar(10) NOT NULL COMMENT '등록자',
|
|
|
|
|
PRIMARY KEY (dscdmng_id, img_sn)
|
|
|
|
|
) COMMENT '폐기관리_폐기_이미지';
|
|
|
|
|
|
|
|
|
|
CREATE TABLE tb_dsuse_mgt_dtl
|
|
|
|
|
(
|
|
|
|
|
dscdmng_id varchar(10) NOT NULL COMMENT '폐기관리_id',
|
|
|
|
@ -49,7 +39,6 @@ CREATE TABLE tb_dsuse_mgt_dtl
|
|
|
|
|
prd_valid_de varchar(8) NULL COMMENT '제품_유효기한_일자',
|
|
|
|
|
mnf_seq varchar(42) NULL COMMENT '제조_일련번호',
|
|
|
|
|
dsuse_qy decimal NOT NULL COMMENT '폐기_수량',
|
|
|
|
|
dsuse_prd_img_id varchar(13) NULL COMMENT '폐기_제품_이미지_파일_ID',
|
|
|
|
|
usr_rpt_id_no varchar(30) NULL COMMENT '사용자_보고_식별_번호',
|
|
|
|
|
usr_rpt_ln_id_no varchar(35) NULL COMMENT '사용자_보고_라인_식별_번호',
|
|
|
|
|
use_yn varchar(1) NOT NULL COMMENT '사용_여부',
|
|
|
|
@ -120,22 +109,6 @@ ALTER TABLE tb_dsuse_rpt_info_dtl
|
|
|
|
|
FOREIGN KEY (usr_rpt_id_no)
|
|
|
|
|
REFERENCES tb_dsuse_rpt_info (usr_rpt_id_no);
|
|
|
|
|
|
|
|
|
|
CREATE TABLE tb_dsuse_doc_file_info
|
|
|
|
|
(
|
|
|
|
|
dscdmng_id varchar(10) NOT NULL COMment '폐기관리_ID',
|
|
|
|
|
rslt_ntfctn_file_id varchar(13) NULL COMMENT '결과_통보_파일_ID',
|
|
|
|
|
rslt_rpt_file_id varchar(13) NULL COMMENT '결과_보고_파일_ID',
|
|
|
|
|
crntstan_file_id varchar(13) NULL COMMENT '현황_파일_ID',
|
|
|
|
|
prcs_dtl_file_id varchar(13) NULL COMMENT '처리_내역_파일_ID',
|
|
|
|
|
mng_ldgr_file_id varchar(13) NULL COMMENT '관리_대장_파일_ID',
|
|
|
|
|
use_yn varchar(1) NOT NULL COMment '사용_여부',
|
|
|
|
|
reg_dt varchar(14) NOT NULL COMment '등록_일시',
|
|
|
|
|
rgtr varchar(10) NOT NULL COMment '등록자',
|
|
|
|
|
mdfcn_dt varchar(14) NULL COMMENT '수정_일시',
|
|
|
|
|
mdfr varchar(10) NULL COMMENT '수정자',
|
|
|
|
|
PRIMARY KEY (dscdmng_id)
|
|
|
|
|
) COMMENT '폐기관리_문서_파일_정보';
|
|
|
|
|
|
|
|
|
|
CREATE TABLE tb_bssh_info
|
|
|
|
|
(
|
|
|
|
|
bssh_cd varchar(10) NOT NULL COMMENT '마약류취급자식별_번호',
|
|
|
|
|