-----------------------------------------------------
-- Export file for user YJPTNEWCITY                --
-- Created by Administrator on 2014/8/18, 10:08:28 --
-----------------------------------------------------

create table T_QLYG_INF_APPLY
(
  id                   NUMBER not null,
  no                   VARCHAR2(50),
  org_id               VARCHAR2(10),
  internal_no          VARCHAR2(100),
  item_id              VARCHAR2(100),
  department           VARCHAR2(100),
  transact_affair_name VARCHAR2(200),
  content              VARCHAR2(200),
  apply_way            VARCHAR2(1),
  form                 CLOB,
  stuff                CLOB,
  apply_due_date       DATE,
  applicant_code       VARCHAR2(50),
  applicant_type       VARCHAR2(1),
  applicant_name       VARCHAR2(100),
  applicant_paper_type VARCHAR2(2),
  applicant_paper_code VARCHAR2(50),
  applicant_phone      VARCHAR2(40),
  applicant_mobile     VARCHAR2(20),
  applicant_address    VARCHAR2(200),
  applicant_zipcode    VARCHAR2(6),
  applicant_email      VARCHAR2(100),
  linkman              VARCHAR2(50),
  linkman_name         VARCHAR2(100),
  linkman_paper_type   VARCHAR2(2),
  linkman_paper_code   VARCHAR2(50),
  linkman_phone        VARCHAR2(40),
  linkman_mobile       VARCHAR2(20),
  linkman_address      VARCHAR2(200),
  linkman_zipcode      VARCHAR2(6),
  linkman_email        VARCHAR2(100),
  promise              NUMBER(4),
  promise_type         VARCHAR2(2),
  isrisk               NUMBER(1),
  risktype             VARCHAR2(50),
  riskdescription      VARCHAR2(200),
  riskresult           VARCHAR2(200),
  apply_date           DATE,
  create_date          DATE,
  add_user             VARCHAR2(50),
  add_date             TIMESTAMP(6),
  update_user          VARCHAR2(50),
  update_date          TIMESTAMP(6),
  record_status        NUMBER default 1,
  sftb                 CHAR(1),
  tbzt                 CHAR(1),
  tbdyid               NUMBER,
  qylb                 CHAR(1),
  ssqy                 NUMBER,
  record_code          VARCHAR2(30),
  byzd1                VARCHAR2(100),
  byzd2                VARCHAR2(100),
  byzd3                VARCHAR2(100),
  byzd4                VARCHAR2(100),
  byzd5                VARCHAR2(100),
  apply_warn_date      DATE,
  SZD NUMBER
)
;
comment on column T_QLYG_INF_APPLY.id
  is 'ID';
comment on column T_QLYG_INF_APPLY.no
  is '流水号';
comment on column T_QLYG_INF_APPLY.org_id
  is '部门编码';
comment on column T_QLYG_INF_APPLY.internal_no
  is '部门内部办件编号';
comment on column T_QLYG_INF_APPLY.item_id
  is '权力编码';
comment on column T_QLYG_INF_APPLY.department
  is '业务处室';
comment on column T_QLYG_INF_APPLY.transact_affair_name
  is '办件名称';
comment on column T_QLYG_INF_APPLY.content
  is '办件摘要';
comment on column T_QLYG_INF_APPLY.apply_way
  is '办件申请方式';
comment on column T_QLYG_INF_APPLY.form
  is '办件申请表格';
comment on column T_QLYG_INF_APPLY.stuff
  is '办件申请提交材料';
comment on column T_QLYG_INF_APPLY.apply_due_date
  is '到期时间';
comment on column T_QLYG_INF_APPLY.applicant_code
  is '组织机构代码';
comment on column T_QLYG_INF_APPLY.applicant_type
  is '申请者（自然人/法人）';
comment on column T_QLYG_INF_APPLY.applicant_name
  is '申请者名称';
comment on column T_QLYG_INF_APPLY.applicant_paper_type
  is '申请者证件类型';
comment on column T_QLYG_INF_APPLY.applicant_paper_code
  is '申请者证件号码';
comment on column T_QLYG_INF_APPLY.applicant_phone
  is '申请者电话';
comment on column T_QLYG_INF_APPLY.applicant_mobile
  is '申请者手机';
comment on column T_QLYG_INF_APPLY.applicant_address
  is '申请者地址';
comment on column T_QLYG_INF_APPLY.applicant_zipcode
  is '申请者邮编';
comment on column T_QLYG_INF_APPLY.applicant_email
  is '申请者电子邮件';
comment on column T_QLYG_INF_APPLY.linkman
  is '联系人/代理人（自然人）';
comment on column T_QLYG_INF_APPLY.linkman_name
  is '联系人/代理人姓名';
comment on column T_QLYG_INF_APPLY.linkman_paper_type
  is '联系人/代理人证件类型';
comment on column T_QLYG_INF_APPLY.linkman_paper_code
  is '联系人/代理人证件号码';
comment on column T_QLYG_INF_APPLY.linkman_phone
  is '联系人/代理人电话';
comment on column T_QLYG_INF_APPLY.linkman_mobile
  is '联系人/代理人手机';
comment on column T_QLYG_INF_APPLY.linkman_address
  is '联系人/代理人地址';
comment on column T_QLYG_INF_APPLY.linkman_zipcode
  is '联系人/代理人邮编';
comment on column T_QLYG_INF_APPLY.linkman_email
  is '联系人/代理人电子邮件';
comment on column T_QLYG_INF_APPLY.promise
  is '承诺时限';
comment on column T_QLYG_INF_APPLY.promise_type
  is '承诺时限单位';
comment on column T_QLYG_INF_APPLY.isrisk
  is '是否风险点';
comment on column T_QLYG_INF_APPLY.risktype
  is '风险点类别';
comment on column T_QLYG_INF_APPLY.riskdescription
  is '风险点描述';
comment on column T_QLYG_INF_APPLY.riskresult
  is '风险内控的手段与结果';
comment on column T_QLYG_INF_APPLY.apply_date
  is '办件申请时间';
comment on column T_QLYG_INF_APPLY.create_date
  is '录入自建系统时间';
comment on column T_QLYG_INF_APPLY.add_user
  is '创建人';
comment on column T_QLYG_INF_APPLY.add_date
  is '创建时间';
comment on column T_QLYG_INF_APPLY.update_user
  is '修改人';
comment on column T_QLYG_INF_APPLY.update_date
  is '修改时间';
comment on column T_QLYG_INF_APPLY.record_status
  is '删除状态';
comment on column T_QLYG_INF_APPLY.sftb
  is '是否同步';
comment on column T_QLYG_INF_APPLY.tbzt
  is '同步状态';
comment on column T_QLYG_INF_APPLY.tbdyid
  is '同步对应ID';
comment on column T_QLYG_INF_APPLY.qylb
  is '区域类别';
comment on column T_QLYG_INF_APPLY.ssqy
  is '所属区域';
comment on column T_QLYG_INF_APPLY.record_code
  is 'RECORD_CODE';
comment on column T_QLYG_INF_APPLY.byzd1
  is 'BYZD1';
comment on column T_QLYG_INF_APPLY.byzd2
  is 'BYZD2';
comment on column T_QLYG_INF_APPLY.byzd3
  is 'BYZD3';
comment on column T_QLYG_INF_APPLY.byzd4
  is 'BYZD4';
comment on column T_QLYG_INF_APPLY.byzd5
  is 'BYZD5';
comment on column T_QLYG_INF_APPLY.apply_warn_date
  is '预警时间';
alter table T_QLYG_INF_APPLY
  add primary key (ID);





create table T_QLYG_INF_APPLY_PROCESS
(
  id                 NUMBER not null,
  no                 VARCHAR2(50),
  inf_apply_id       NUMBER,
  no_ord             NUMBER(3),
  org_id             VARCHAR2(10),
  internal_no        VARCHAR2(100),
  item_id            VARCHAR2(100),
  tache_name         VARCHAR2(100),
  department         VARCHAR2(100),
  user_staff_code    VARCHAR2(30),
  user_name          VARCHAR2(100),
  status             VARCHAR2(2),
  promise            NUMBER(4),
  promise_type       VARCHAR2(2),
  promise_start_sign VARCHAR2(1),
  isrisk             NUMBER(1),
  risktype           VARCHAR2(50),
  riskdescription    VARCHAR2(200),
  riskresult         VARCHAR2(200),
  note               VARCHAR2(4000),
  attachment         CLOB,
  process_date       DATE,
  external_no        VARCHAR2(50),
  next_person        VARCHAR2(200),
  node_id            VARCHAR2(10),
  node_attribute     NUMBER(1),
  create_date        DATE,
  add_user           VARCHAR2(50),
  add_date           TIMESTAMP(6),
  update_user        VARCHAR2(50),
  update_date        TIMESTAMP(6),
  record_status      NUMBER default 1,
  sftb               CHAR(1),
  tbzt               CHAR(1),
  tbdyid             NUMBER,
  qylb               CHAR(1),
  ssqy               NUMBER,
  record_code        VARCHAR2(30),
  byzd1              VARCHAR2(100),
  byzd2              VARCHAR2(100),
  byzd3              VARCHAR2(100),
  byzd4              VARCHAR2(100),
  byzd5              VARCHAR2(100),
  apply_due_date     DATE,
  apply_warn_date    DATE,
  SZD NUMBER
)
;
comment on column T_QLYG_INF_APPLY_PROCESS.id
  is 'ID';
comment on column T_QLYG_INF_APPLY_PROCESS.no
  is '流水号';
comment on column T_QLYG_INF_APPLY_PROCESS.inf_apply_id
  is '办件ID';
comment on column T_QLYG_INF_APPLY_PROCESS.no_ord
  is '同一办件多个岗位（环节）的编号';
comment on column T_QLYG_INF_APPLY_PROCESS.org_id
  is '部门编码';
comment on column T_QLYG_INF_APPLY_PROCESS.internal_no
  is '部门内部办件编号';
comment on column T_QLYG_INF_APPLY_PROCESS.item_id
  is '权力编码';
comment on column T_QLYG_INF_APPLY_PROCESS.tache_name
  is '岗位（环节）名称';
comment on column T_QLYG_INF_APPLY_PROCESS.department
  is '办理处室';
comment on column T_QLYG_INF_APPLY_PROCESS.user_staff_code
  is '办理人员工号';
comment on column T_QLYG_INF_APPLY_PROCESS.user_name
  is '办理人员姓名';
comment on column T_QLYG_INF_APPLY_PROCESS.status
  is '岗位（环节）状态';
comment on column T_QLYG_INF_APPLY_PROCESS.promise
  is '承诺时限';
comment on column T_QLYG_INF_APPLY_PROCESS.promise_type
  is '承诺时限单位';
comment on column T_QLYG_INF_APPLY_PROCESS.promise_start_sign
  is '是否承诺时限起始标志';
comment on column T_QLYG_INF_APPLY_PROCESS.isrisk
  is '是否风险点';
comment on column T_QLYG_INF_APPLY_PROCESS.risktype
  is '风险点类别';
comment on column T_QLYG_INF_APPLY_PROCESS.riskdescription
  is '风险点描述';
comment on column T_QLYG_INF_APPLY_PROCESS.riskresult
  is '风险内控的手段与结果';
comment on column T_QLYG_INF_APPLY_PROCESS.note
  is '处理意见';
comment on column T_QLYG_INF_APPLY_PROCESS.attachment
  is '办理附件';
comment on column T_QLYG_INF_APPLY_PROCESS.process_date
  is '处理时间';
comment on column T_QLYG_INF_APPLY_PROCESS.external_no
  is '部门外部办件编号';
comment on column T_QLYG_INF_APPLY_PROCESS.next_person
  is '下一环节处理人员';
comment on column T_QLYG_INF_APPLY_PROCESS.node_id
  is '岗位编号';
comment on column T_QLYG_INF_APPLY_PROCESS.node_attribute
  is '岗位属性';
comment on column T_QLYG_INF_APPLY_PROCESS.create_date
  is '录入自建系统时间';
comment on column T_QLYG_INF_APPLY_PROCESS.add_user
  is '创建人';
comment on column T_QLYG_INF_APPLY_PROCESS.add_date
  is '创建时间';
comment on column T_QLYG_INF_APPLY_PROCESS.update_user
  is '修改人';
comment on column T_QLYG_INF_APPLY_PROCESS.update_date
  is '修改时间';
comment on column T_QLYG_INF_APPLY_PROCESS.record_status
  is '删除状态';
comment on column T_QLYG_INF_APPLY_PROCESS.sftb
  is '是否同步';
comment on column T_QLYG_INF_APPLY_PROCESS.tbzt
  is '同步状态';
comment on column T_QLYG_INF_APPLY_PROCESS.tbdyid
  is '同步对应ID';
comment on column T_QLYG_INF_APPLY_PROCESS.qylb
  is '区域类别';
comment on column T_QLYG_INF_APPLY_PROCESS.ssqy
  is '所属区域';
comment on column T_QLYG_INF_APPLY_PROCESS.record_code
  is 'RECORD_CODE';
comment on column T_QLYG_INF_APPLY_PROCESS.byzd1
  is 'BYZD1';
comment on column T_QLYG_INF_APPLY_PROCESS.byzd2
  is 'BYZD2';
comment on column T_QLYG_INF_APPLY_PROCESS.byzd3
  is 'BYZD3';
comment on column T_QLYG_INF_APPLY_PROCESS.byzd4
  is 'BYZD4';
comment on column T_QLYG_INF_APPLY_PROCESS.byzd5
  is 'BYZD5';
comment on column T_QLYG_INF_APPLY_PROCESS.apply_due_date
  is '到期时间';
comment on column T_QLYG_INF_APPLY_PROCESS.apply_warn_date
  is '预警时间';
alter table T_QLYG_INF_APPLY_PROCESS
  add primary key (ID);





create table T_QLYG_INF_APPLY_RESULT
(
  id             NUMBER not null,
  no             VARCHAR2(50),
  inf_apply_id   NUMBER,
  org_id         VARCHAR2(10),
  internal_no    VARCHAR2(100),
  item_id        VARCHAR2(100),
  status         VARCHAR2(1),
  note           VARCHAR2(4000),
  attachment     CLOB,
  finish_date    DATE,
  receivable     NUMBER(22,2),
  paid           NUMBER(22,2),
  relief_reasons VARCHAR2(400),
  create_date    DATE,
  add_user       VARCHAR2(50),
  add_date       TIMESTAMP(6),
  update_user    VARCHAR2(50),
  update_date    TIMESTAMP(6),
  record_status  NUMBER default 1,
  sftb           CHAR(1),
  tbzt           CHAR(1),
  tbdyid         NUMBER,
  qylb           CHAR(1),
  ssqy           NUMBER,
  record_code    VARCHAR2(30),
  byzd1          VARCHAR2(100),
  byzd2          VARCHAR2(100),
  byzd3          VARCHAR2(100),
  byzd4          VARCHAR2(100),
  byzd5          VARCHAR2(100),
  SZD NUMBER
)
;
comment on column T_QLYG_INF_APPLY_RESULT.id
  is 'ID';
comment on column T_QLYG_INF_APPLY_RESULT.no
  is '流水号';
comment on column T_QLYG_INF_APPLY_RESULT.inf_apply_id
  is '办件ID';
comment on column T_QLYG_INF_APPLY_RESULT.org_id
  is '部门编码';
comment on column T_QLYG_INF_APPLY_RESULT.internal_no
  is '部门内部办件编号';
comment on column T_QLYG_INF_APPLY_RESULT.item_id
  is '权力编码';
comment on column T_QLYG_INF_APPLY_RESULT.status
  is '办结状态';
comment on column T_QLYG_INF_APPLY_RESULT.note
  is '办结意见';
comment on column T_QLYG_INF_APPLY_RESULT.attachment
  is '办理附件';
comment on column T_QLYG_INF_APPLY_RESULT.finish_date
  is '办结时间';
comment on column T_QLYG_INF_APPLY_RESULT.receivable
  is '应收费用金额';
comment on column T_QLYG_INF_APPLY_RESULT.paid
  is '实收费用金额';
comment on column T_QLYG_INF_APPLY_RESULT.relief_reasons
  is '减免原因';
comment on column T_QLYG_INF_APPLY_RESULT.create_date
  is '录入自建系统时间';
comment on column T_QLYG_INF_APPLY_RESULT.add_user
  is '创建人';
comment on column T_QLYG_INF_APPLY_RESULT.add_date
  is '创建时间';
comment on column T_QLYG_INF_APPLY_RESULT.update_user
  is '修改人';
comment on column T_QLYG_INF_APPLY_RESULT.update_date
  is '修改时间';
comment on column T_QLYG_INF_APPLY_RESULT.record_status
  is '删除状态';
comment on column T_QLYG_INF_APPLY_RESULT.sftb
  is '是否同步';
comment on column T_QLYG_INF_APPLY_RESULT.tbzt
  is '同步状态';
comment on column T_QLYG_INF_APPLY_RESULT.tbdyid
  is '同步对应ID';
comment on column T_QLYG_INF_APPLY_RESULT.qylb
  is '区域类别';
comment on column T_QLYG_INF_APPLY_RESULT.ssqy
  is '所属区域';
comment on column T_QLYG_INF_APPLY_RESULT.record_code
  is 'RECORD_CODE';
comment on column T_QLYG_INF_APPLY_RESULT.byzd1
  is 'BYZD1';
comment on column T_QLYG_INF_APPLY_RESULT.byzd2
  is 'BYZD2';
comment on column T_QLYG_INF_APPLY_RESULT.byzd3
  is 'BYZD3';
comment on column T_QLYG_INF_APPLY_RESULT.byzd4
  is 'BYZD4';
comment on column T_QLYG_INF_APPLY_RESULT.byzd5
  is 'BYZD5';
alter table T_QLYG_INF_APPLY_RESULT
  add primary key (ID);





create table T_QLYG_INF_SUPBACK
(
  id            NUMBER not null,
  no            VARCHAR2(50),
  superviseback VARCHAR2(200),
  operatorname  VARCHAR2(100),
  monitor_id    VARCHAR2(50),
  receiptdate   DATE,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on column T_QLYG_INF_SUPBACK.id
  is '主键';
comment on column T_QLYG_INF_SUPBACK.no
  is '流水号';
comment on column T_QLYG_INF_SUPBACK.superviseback
  is '督办反馈信息';
comment on column T_QLYG_INF_SUPBACK.operatorname
  is '反馈人员';
comment on column T_QLYG_INF_SUPBACK.monitor_id
  is '反馈人ID';
comment on column T_QLYG_INF_SUPBACK.receiptdate
  is '反馈督办时间';
comment on column T_QLYG_INF_SUPBACK.add_user
  is '创建人';
comment on column T_QLYG_INF_SUPBACK.add_date
  is '创建时间';
comment on column T_QLYG_INF_SUPBACK.update_user
  is '修改人';
comment on column T_QLYG_INF_SUPBACK.update_date
  is '修改时间';
comment on column T_QLYG_INF_SUPBACK.record_status
  is '删除状态';
comment on column T_QLYG_INF_SUPBACK.sftb
  is '是否同步';
comment on column T_QLYG_INF_SUPBACK.tbzt
  is '同步状态';
comment on column T_QLYG_INF_SUPBACK.tbdyid
  is '同步对应ID';
comment on column T_QLYG_INF_SUPBACK.qylb
  is '区域类别';
comment on column T_QLYG_INF_SUPBACK.ssqy
  is '所属区域';
comment on column T_QLYG_INF_SUPBACK.record_code
  is 'RECORD_CODE';
comment on column T_QLYG_INF_SUPBACK.byzd1
  is 'BYZD1';
comment on column T_QLYG_INF_SUPBACK.byzd2
  is 'BYZD2';
comment on column T_QLYG_INF_SUPBACK.byzd3
  is 'BYZD3';
comment on column T_QLYG_INF_SUPBACK.byzd4
  is 'BYZD4';
comment on column T_QLYG_INF_SUPBACK.byzd5
  is 'BYZD5';
alter table T_QLYG_INF_SUPBACK
  add primary key (ID);





create table T_QLYG_MONITOR_ALERT
(
  id            NUMBER not null,
  no            VARCHAR2(50),
  inf_apply_id  NUMBER,
  bj_no         VARCHAR2(50),
  bj_type       VARCHAR2(1),
  org_id        VARCHAR2(10),
  internal_no   VARCHAR2(50),
  ql_reg_id     VARCHAR2(50),
  monitor_type  VARCHAR2(1),
  out_way_type  NUMBER(1),
  monitor_logo  VARCHAR2(2000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  type          VARCHAR2(2),
  SZD NUMBER
)
;
comment on column T_QLYG_MONITOR_ALERT.id
  is 'ID';
comment on column T_QLYG_MONITOR_ALERT.no
  is '流水号';
comment on column T_QLYG_MONITOR_ALERT.inf_apply_id
  is '办件ID';
comment on column T_QLYG_MONITOR_ALERT.bj_no
  is '办件流水号';
comment on column T_QLYG_MONITOR_ALERT.bj_type
  is '办件类型';
comment on column T_QLYG_MONITOR_ALERT.org_id
  is '部门编码';
comment on column T_QLYG_MONITOR_ALERT.internal_no
  is '部门内部办件编号';
comment on column T_QLYG_MONITOR_ALERT.ql_reg_id
  is '行政权力事项编码';
comment on column T_QLYG_MONITOR_ALERT.monitor_type
  is '异常类型';
comment on column T_QLYG_MONITOR_ALERT.out_way_type
  is '异常级别';
comment on column T_QLYG_MONITOR_ALERT.monitor_logo
  is '异常原因说明';
comment on column T_QLYG_MONITOR_ALERT.add_user
  is '创建人';
comment on column T_QLYG_MONITOR_ALERT.add_date
  is '创建时间';
comment on column T_QLYG_MONITOR_ALERT.update_user
  is '修改人';
comment on column T_QLYG_MONITOR_ALERT.update_date
  is '修改时间';
comment on column T_QLYG_MONITOR_ALERT.record_status
  is '删除状态';
comment on column T_QLYG_MONITOR_ALERT.sftb
  is '是否同步';
comment on column T_QLYG_MONITOR_ALERT.tbzt
  is '同步状态';
comment on column T_QLYG_MONITOR_ALERT.tbdyid
  is '同步对应ID';
comment on column T_QLYG_MONITOR_ALERT.qylb
  is '区域类别';
comment on column T_QLYG_MONITOR_ALERT.ssqy
  is '所属区域';
comment on column T_QLYG_MONITOR_ALERT.record_code
  is 'RECORD_CODE';
comment on column T_QLYG_MONITOR_ALERT.byzd1
  is 'BYZD1';
comment on column T_QLYG_MONITOR_ALERT.byzd2
  is 'BYZD2';
comment on column T_QLYG_MONITOR_ALERT.byzd3
  is 'BYZD3';
comment on column T_QLYG_MONITOR_ALERT.byzd4
  is 'BYZD4';
comment on column T_QLYG_MONITOR_ALERT.byzd5
  is 'BYZD5';
comment on column T_QLYG_MONITOR_ALERT.type
  is '异常类型细分';
alter table T_QLYG_MONITOR_ALERT
  add primary key (ID);





create table T_QLYG_MONITOR_SUPERVISE
(
  id                   NUMBER not null,
  no                   VARCHAR2(50),
  bj_no                VARCHAR2(50),
  bj_type              VARCHAR2(1),
  association          VARCHAR2(50),
  supervise_org_id     VARCHAR2(10),
  supervise_person     VARCHAR2(100),
  supervise_id         VARCHAR2(50),
  monitor_org_id       VARCHAR2(50),
  monitor_name         VARCHAR2(100),
  supervise_date       DATE,
  supervise_opinion    VARCHAR2(4000),
  supervise_reply_date DATE,
  add_user             VARCHAR2(50),
  add_date             TIMESTAMP(6),
  update_user          VARCHAR2(50),
  update_date          TIMESTAMP(6),
  record_status        NUMBER default 1,
  sftb                 CHAR(1),
  tbzt                 CHAR(1),
  tbdyid               NUMBER,
  qylb                 CHAR(1),
  ssqy                 NUMBER,
  record_code          VARCHAR2(30),
  byzd1                VARCHAR2(100),
  byzd2                VARCHAR2(100),
  byzd3                VARCHAR2(100),
  byzd4                VARCHAR2(100),
  byzd5                VARCHAR2(100),
  inf_alert_id         NUMBER,
  SZD NUMBER
)
;
comment on column T_QLYG_MONITOR_SUPERVISE.no
  is '流水号';
comment on column T_QLYG_MONITOR_SUPERVISE.bj_no
  is '办件流水号';
comment on column T_QLYG_MONITOR_SUPERVISE.bj_type
  is '办件类型';
comment on column T_QLYG_MONITOR_SUPERVISE.association
  is '异常办件关联号';
comment on column T_QLYG_MONITOR_SUPERVISE.supervise_org_id
  is '督办发起部门编号';
comment on column T_QLYG_MONITOR_SUPERVISE.supervise_person
  is '督办发起人姓名';
comment on column T_QLYG_MONITOR_SUPERVISE.supervise_id
  is '督办人ID';
comment on column T_QLYG_MONITOR_SUPERVISE.monitor_org_id
  is '被督办的部门编号';
comment on column T_QLYG_MONITOR_SUPERVISE.monitor_name
  is '被督办部门名称';
comment on column T_QLYG_MONITOR_SUPERVISE.supervise_date
  is '发起督办时间';
comment on column T_QLYG_MONITOR_SUPERVISE.supervise_opinion
  is '督办意见';
comment on column T_QLYG_MONITOR_SUPERVISE.supervise_reply_date
  is '督办反馈截止时间';
comment on column T_QLYG_MONITOR_SUPERVISE.add_user
  is '创建人';
comment on column T_QLYG_MONITOR_SUPERVISE.add_date
  is '创建时间';
comment on column T_QLYG_MONITOR_SUPERVISE.update_user
  is '修改人';
comment on column T_QLYG_MONITOR_SUPERVISE.update_date
  is '修改时间';
comment on column T_QLYG_MONITOR_SUPERVISE.record_status
  is '删除状态';
comment on column T_QLYG_MONITOR_SUPERVISE.sftb
  is '是否同步';
comment on column T_QLYG_MONITOR_SUPERVISE.tbzt
  is '同步状态';
comment on column T_QLYG_MONITOR_SUPERVISE.tbdyid
  is '同步对应ID';
comment on column T_QLYG_MONITOR_SUPERVISE.qylb
  is '区域类别';
comment on column T_QLYG_MONITOR_SUPERVISE.ssqy
  is '所属区域';
comment on column T_QLYG_MONITOR_SUPERVISE.record_code
  is 'RECORD_CODE';
comment on column T_QLYG_MONITOR_SUPERVISE.byzd1
  is 'BYZD1';
comment on column T_QLYG_MONITOR_SUPERVISE.byzd2
  is 'BYZD2';
comment on column T_QLYG_MONITOR_SUPERVISE.byzd3
  is 'BYZD3';
comment on column T_QLYG_MONITOR_SUPERVISE.byzd4
  is 'BYZD4';
comment on column T_QLYG_MONITOR_SUPERVISE.byzd5
  is 'BYZD5';
alter table T_QLYG_MONITOR_SUPERVISE
  add primary key (ID);





create table T_QLYG_MONITOR_SUPERVISE_REPLY
(
  id             NUMBER not null,
  no             VARCHAR2(50),
  monitor_no     VARCHAR2(50),
  monitor_id     VARCHAR2(50),
  reply_date     DATE,
  reply_opinion  VARCHAR2(4000),
  add_user       VARCHAR2(50),
  add_date       TIMESTAMP(6),
  update_user    VARCHAR2(50),
  update_date    TIMESTAMP(6),
  record_status  NUMBER default 1,
  sftb           CHAR(1),
  tbzt           CHAR(1),
  tbdyid         NUMBER,
  qylb           CHAR(1),
  ssqy           NUMBER,
  record_code    VARCHAR2(30),
  byzd1          VARCHAR2(100),
  byzd2          VARCHAR2(100),
  byzd3          VARCHAR2(100),
  byzd4          VARCHAR2(100),
  byzd5          VARCHAR2(100),
  supervise_id   NUMBER,
  monitor_person VARCHAR2(50),
  SZD NUMBER
)
;
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.id
  is 'ID';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.no
  is '流水号';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.monitor_no
  is '督办办件编号（关联督办基本信息）';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.monitor_id
  is '反馈人ID';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.reply_date
  is '督办反馈时间';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.reply_opinion
  is '督办反馈意见';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.add_user
  is '创建人';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.add_date
  is '创建时间';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.update_user
  is '修改人';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.update_date
  is '修改时间';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.record_status
  is '删除状态';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.sftb
  is '是否同步';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.tbzt
  is '同步状态';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.tbdyid
  is '同步对应ID';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.qylb
  is '区域类别';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.ssqy
  is '所属区域';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.record_code
  is 'RECORD_CODE';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.byzd1
  is 'BYZD1';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.byzd2
  is 'BYZD2';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.byzd3
  is 'BYZD3';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.byzd4
  is 'BYZD4';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.byzd5
  is 'BYZD5';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.supervise_id
  is '关联督办基本信息';
comment on column T_QLYG_MONITOR_SUPERVISE_REPLY.monitor_person
  is '反馈人名称';
alter table T_QLYG_MONITOR_SUPERVISE_REPLY
  add primary key (ID);





create table T_QLYG_MONITOR_SUPERVISE_RES
(
  id            NUMBER not null,
  no            VARCHAR2(50),
  inf_alert_id  NUMBER,
  monitor_no    VARCHAR2(50),
  end_date      DATE,
  confirm       VARCHAR2(1),
  end_opinion   VARCHAR2(4000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  supervise_id  NUMBER,
  SZD NUMBER
)
;
comment on column T_QLYG_MONITOR_SUPERVISE_RES.id
  is 'ID';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.no
  is '流水号';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.inf_alert_id
  is '关联异常';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.monitor_no
  is '督办办件编号';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.end_date
  is '办结时间';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.confirm
  is '1、属实（同意办结）；2、不属实（不同意办结）';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.end_opinion
  is '办结意见';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.add_user
  is '创建人';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.add_date
  is '创建时间';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.update_user
  is '修改人';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.update_date
  is '修改时间';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.record_status
  is '删除状态';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.sftb
  is '是否同步';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.tbzt
  is '同步状态';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.tbdyid
  is '同步对应ID';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.qylb
  is '区域类别';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.ssqy
  is '所属区域';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.record_code
  is 'RECORD_CODE';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.byzd1
  is 'BYZD1';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.byzd2
  is 'BYZD2';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.byzd3
  is 'BYZD3';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.byzd4
  is 'BYZD4';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.byzd5
  is 'BYZD5';
comment on column T_QLYG_MONITOR_SUPERVISE_RES.supervise_id
  is '关联督查基本信息';
alter table T_QLYG_MONITOR_SUPERVISE_RES
  add primary key (ID);





create table T_YJPT_AQPJJGXX
(
  id            NUMBER not null,
  szd           NUMBER,
  szgq          NUMBER,
  jgmc          VARCHAR2(200),
  zcdz          VARCHAR2(400),
  bgdz          VARCHAR2(400),
  fddbr         VARCHAR2(400),
  lxr           VARCHAR2(400),
  lxrdh         VARCHAR2(400),
  cz            VARCHAR2(400),
  email         VARCHAR2(400),
  yb            VARCHAR2(400),
  jgdj          VARCHAR2(400),
  zzzhbh        VARCHAR2(400),
  fzrq          TIMESTAMP(6),
  yxqz          TIMESTAMP(6),
  dwqkjj        VARCHAR2(4000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on column T_YJPT_AQPJJGXX.id
  is 'id';
comment on column T_YJPT_AQPJJGXX.szd
  is '所在地';
comment on column T_YJPT_AQPJJGXX.szgq
  is '所在港区';
comment on column T_YJPT_AQPJJGXX.jgmc
  is '机构名称';
comment on column T_YJPT_AQPJJGXX.zcdz
  is '注册地址';
comment on column T_YJPT_AQPJJGXX.bgdz
  is '办公地址';
comment on column T_YJPT_AQPJJGXX.fddbr
  is '法定代表人';
comment on column T_YJPT_AQPJJGXX.lxr
  is '联系人';
comment on column T_YJPT_AQPJJGXX.lxrdh
  is '联系人电话';
comment on column T_YJPT_AQPJJGXX.cz
  is '传真';
comment on column T_YJPT_AQPJJGXX.email
  is 'Email';
comment on column T_YJPT_AQPJJGXX.yb
  is '邮编';
comment on column T_YJPT_AQPJJGXX.jgdj
  is '机构登记';
comment on column T_YJPT_AQPJJGXX.zzzhbh
  is '资质证书编号';
comment on column T_YJPT_AQPJJGXX.fzrq
  is '发证日期';
comment on column T_YJPT_AQPJJGXX.yxqz
  is '有效期至';
comment on column T_YJPT_AQPJJGXX.dwqkjj
  is '单位情况简介';
comment on column T_YJPT_AQPJJGXX.add_user
  is '创建人';
comment on column T_YJPT_AQPJJGXX.add_date
  is '创建时间';
comment on column T_YJPT_AQPJJGXX.update_user
  is '修改人';
comment on column T_YJPT_AQPJJGXX.update_date
  is '修改时间';
comment on column T_YJPT_AQPJJGXX.record_status
  is '删除状态';
comment on column T_YJPT_AQPJJGXX.sftb
  is '是否同步';
comment on column T_YJPT_AQPJJGXX.tbzt
  is '同步状态';
comment on column T_YJPT_AQPJJGXX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_AQPJJGXX.qylb
  is '区域类别';
comment on column T_YJPT_AQPJJGXX.ssqy
  is '所属区域';
comment on column T_YJPT_AQPJJGXX.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_AQPJJGXX.byzd1
  is 'BYZD1';
comment on column T_YJPT_AQPJJGXX.byzd2
  is 'BYZD2';
comment on column T_YJPT_AQPJJGXX.byzd3
  is 'BYZD3';
comment on column T_YJPT_AQPJJGXX.byzd4
  is 'BYZD4';
comment on column T_YJPT_AQPJJGXX.byzd5
  is 'BYZD5';
alter table T_YJPT_AQPJJGXX
  add constraint T_YJPT_AQPJJGXX_PK primary key (ID);





create table T_YJPT_AQSSSBXXXX
(
  id            NUMBER not null,
  name          VARCHAR2(50),
  code          VARCHAR2(16),
  type          VARCHAR2(1) not null,
  path          VARCHAR2(100),
  pid           NUMBER,
  order_no      NUMBER,
  add_user      NUMBER,
  add_date      TIMESTAMP(6),
  update_user   NUMBER,
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  branch        CHAR(1),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  ms            VARCHAR2(4000),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on column T_YJPT_AQSSSBXXXX.name
  is '功能名称';
comment on column T_YJPT_AQSSSBXXXX.code
  is '功能ID';
comment on column T_YJPT_AQSSSBXXXX.type
  is '类型,0:主菜单;1:普通应用;2:地图应用;3:菜单按钮';
comment on column T_YJPT_AQSSSBXXXX.path
  is '功能路径';
comment on column T_YJPT_AQSSSBXXXX.pid
  is '父ID';
comment on column T_YJPT_AQSSSBXXXX.order_no
  is '排序';
comment on column T_YJPT_AQSSSBXXXX.add_user
  is '创建人';
comment on column T_YJPT_AQSSSBXXXX.add_date
  is '创建时间';
comment on column T_YJPT_AQSSSBXXXX.update_user
  is '修改人';
comment on column T_YJPT_AQSSSBXXXX.update_date
  is '修改时间';
comment on column T_YJPT_AQSSSBXXXX.record_status
  is '删除状态';
comment on column T_YJPT_AQSSSBXXXX.branch
  is '是否分支';
comment on column T_YJPT_AQSSSBXXXX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_AQSSSBXXXX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_AQSSSBXXXX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_AQSSSBXXXX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_AQSSSBXXXX.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_AQSSSBXXXX.ms
  is '描述';
alter table T_YJPT_AQSSSBXXXX
  add constraint T_YJPT_AQSSSBXXXX_PK primary key (ID);





create table T_YJPT_AQSSZXYS
(
  id            NUMBER not null,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  sftb          CHAR(1),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  szd           NUMBER,
  xmmc          VARCHAR2(200),
  sqdw          VARCHAR2(200),
  sqrq          TIMESTAMP(6),
  fzr           VARCHAR2(20),
  lb            VARCHAR2(20),
  lxr           VARCHAR2(20),
  dhhcz         VARCHAR2(200),
  sqsx          VARCHAR2(200),
  dwdz          VARCHAR2(200),
  yb            VARCHAR2(20),
  gcdz          VARCHAR2(200),
  gcqsj         TIMESTAMP(6),
  gczsj         TIMESTAMP(6),
  gkjsaqssgk    VARCHAR2(2000),
  zywxhwpm      VARCHAR2(2000),
  szgq          NUMBER,
  status        VARCHAR2(20),
  bh            VARCHAR2(20),
  gkjsdwmc      VARCHAR2(200),
  jsdw          NUMBER
)
;
comment on table T_YJPT_AQSSZXYS
  is '安全设施专项验收';
comment on column T_YJPT_AQSSZXYS.id
  is '主键';
comment on column T_YJPT_AQSSZXYS.add_user
  is '创建人';
comment on column T_YJPT_AQSSZXYS.add_date
  is '创建时间';
comment on column T_YJPT_AQSSZXYS.update_user
  is '修改人';
comment on column T_YJPT_AQSSZXYS.update_date
  is '修改时间';
comment on column T_YJPT_AQSSZXYS.record_status
  is '删除状态';
comment on column T_YJPT_AQSSZXYS.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_AQSSZXYS.tbdyid
  is '同步对应ID';
comment on column T_YJPT_AQSSZXYS.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_AQSSZXYS.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_AQSSZXYS.sftb
  is '是否同步';
comment on column T_YJPT_AQSSZXYS.szd
  is '所在地';
comment on column T_YJPT_AQSSZXYS.xmmc
  is '项目名称';
comment on column T_YJPT_AQSSZXYS.sqdw
  is '申请单位';
comment on column T_YJPT_AQSSZXYS.sqrq
  is '申请日期';
comment on column T_YJPT_AQSSZXYS.fzr
  is '负责人';
comment on column T_YJPT_AQSSZXYS.lb
  is '类别';
comment on column T_YJPT_AQSSZXYS.lxr
  is '联系人';
comment on column T_YJPT_AQSSZXYS.dhhcz
  is '电话和传真';
comment on column T_YJPT_AQSSZXYS.sqsx
  is '申请事项';
comment on column T_YJPT_AQSSZXYS.dwdz
  is '单位地址';
comment on column T_YJPT_AQSSZXYS.yb
  is '邮编';
comment on column T_YJPT_AQSSZXYS.gcdz
  is '工程地址';
comment on column T_YJPT_AQSSZXYS.gcqsj
  is '工程起时间';
comment on column T_YJPT_AQSSZXYS.gczsj
  is '工程止时间';
comment on column T_YJPT_AQSSZXYS.gkjsaqssgk
  is '港口建设安全设施概况';
comment on column T_YJPT_AQSSZXYS.zywxhwpm
  is '装卸、储存主要危险货物品名';
comment on column T_YJPT_AQSSZXYS.szgq
  is '所在港区';
comment on column T_YJPT_AQSSZXYS.bh
  is '编号';
comment on column T_YJPT_AQSSZXYS.gkjsdwmc
  is '港口建设项目安全条件审查';
comment on column T_YJPT_AQSSZXYS.jsdw
  is '建设单位';
alter table T_YJPT_AQSSZXYS
  add constraint T_YJPT_AQSSZXYS_PK1 primary key (ID);





create table T_YJPT_AQXZPJBGBADJB
(
  id            NUMBER not null,
  szd           NUMBER,
  szgq          NUMBER,
  babh          VARCHAR2(100),
  dwmc          VARCHAR2(400),
  dwdz          VARCHAR2(400),
  yzbm          VARCHAR2(10),
  fddbr         VARCHAR2(100),
  cz            VARCHAR2(100),
  jbr           VARCHAR2(100),
  lxdh          VARCHAR2(100),
  bamc          VARCHAR2(400),
  bayxq         TIMESTAMP(6),
  barq          TIMESTAMP(6),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  record_code   VARCHAR2(30)
)
;
comment on table T_YJPT_AQXZPJBGBADJB
  is '危险货物安全现状评价报告备案登记表-危险货物安全现状评价报告备案登记表“申请附件材料”类型存到公用代码';
comment on column T_YJPT_AQXZPJBGBADJB.id
  is 'ID';
comment on column T_YJPT_AQXZPJBGBADJB.szd
  is '所在地';
comment on column T_YJPT_AQXZPJBGBADJB.szgq
  is '港区';
comment on column T_YJPT_AQXZPJBGBADJB.babh
  is '备案编号';
comment on column T_YJPT_AQXZPJBGBADJB.dwmc
  is '单位名称';
comment on column T_YJPT_AQXZPJBGBADJB.dwdz
  is '单位地址';
comment on column T_YJPT_AQXZPJBGBADJB.yzbm
  is '邮政编码';
comment on column T_YJPT_AQXZPJBGBADJB.fddbr
  is '法定代表人';
comment on column T_YJPT_AQXZPJBGBADJB.cz
  is '传真';
comment on column T_YJPT_AQXZPJBGBADJB.jbr
  is '经办人';
comment on column T_YJPT_AQXZPJBGBADJB.lxdh
  is '联系电话';
comment on column T_YJPT_AQXZPJBGBADJB.bamc
  is '备案名称';
comment on column T_YJPT_AQXZPJBGBADJB.bayxq
  is '备案有效期';
comment on column T_YJPT_AQXZPJBGBADJB.barq
  is '备案日期';
comment on column T_YJPT_AQXZPJBGBADJB.add_user
  is '创建人';
comment on column T_YJPT_AQXZPJBGBADJB.add_date
  is '创建时间';
comment on column T_YJPT_AQXZPJBGBADJB.update_user
  is '修改人';
comment on column T_YJPT_AQXZPJBGBADJB.update_date
  is '修改时间';
comment on column T_YJPT_AQXZPJBGBADJB.record_status
  is '删除状态';
comment on column T_YJPT_AQXZPJBGBADJB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_AQXZPJBGBADJB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_AQXZPJBGBADJB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_AQXZPJBGBADJB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_AQXZPJBGBADJB.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_AQXZPJBGBADJB
  add constraint PK_T_YJPT_AQXZPJBGBADJB primary key (ID);





create table T_YJPT_BLOB
(
  id            NUMBER not null,
  value         BLOB,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  sftb          CHAR(1),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_BLOB
  is '大字段表';
comment on column T_YJPT_BLOB.add_user
  is '创建人';
comment on column T_YJPT_BLOB.add_date
  is '创建时间';
comment on column T_YJPT_BLOB.update_user
  is '修改人';
comment on column T_YJPT_BLOB.update_date
  is '修改时间';
comment on column T_YJPT_BLOB.record_status
  is '删除状态';
comment on column T_YJPT_BLOB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_BLOB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_BLOB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_BLOB.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_BLOB.sftb
  is '是否同步 Y或者N';
alter table T_YJPT_BLOB
  add constraint T_YJPT_BLOB_PK primary key (ID);





create table T_YJPT_BUTTON
(
  id            NUMBER not null,
  menu_id       NUMBER,
  name          VARCHAR2(200),
  code          VARCHAR2(200),
  order_no      NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  sftb          CHAR(1),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_BUTTON
  is '菜单的按钮表';
comment on column T_YJPT_BUTTON.id
  is 'ID';
comment on column T_YJPT_BUTTON.menu_id
  is 'MENU_ID';
comment on column T_YJPT_BUTTON.name
  is 'NAME';
comment on column T_YJPT_BUTTON.code
  is 'CODE';
comment on column T_YJPT_BUTTON.add_user
  is '创建人';
comment on column T_YJPT_BUTTON.add_date
  is '创建时间';
comment on column T_YJPT_BUTTON.update_user
  is '修改人';
comment on column T_YJPT_BUTTON.update_date
  is '修改时间';
comment on column T_YJPT_BUTTON.record_status
  is '删除状态';
comment on column T_YJPT_BUTTON.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_BUTTON.tbdyid
  is '同步对应ID';
comment on column T_YJPT_BUTTON.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_BUTTON.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_BUTTON.sftb
  is '是否同步 Y或者N';
alter table T_YJPT_BUTTON
  add constraint T_YJPT_BUTTON_PK primary key (ID);





create table T_YJPT_CCSJDWXHXPJBLHXNZB
(
  id            NUMBER not null,
  ssxmid        NUMBER,
  pm            VARCHAR2(1000),
  rd            VARCHAR2(1000),
  zrd           VARCHAR2(1000),
  sd            VARCHAR2(1000),
  baozha        VARCHAR2(1000),
  bzjx          VARCHAR2(1000),
  dx            VARCHAR2(1000),
  wlxz          VARCHAR2(1000),
  hxxz          VARCHAR2(1000),
  sjly          VARCHAR2(1000),
  bz            CHAR(10),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_state  VARCHAR2(10),
  record_status NUMBER default 0,
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  sftb          CHAR(1),
  jx            VARCHAR2(200),
  ysyq          VARCHAR2(1000),
  ydcs          VARCHAR2(1000),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_CCSJDWXHXPJBLHXNZB
  is '储存涉及的危险化学品基本理化性能指标';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.id
  is 'ID';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.ssxmid
  is '所属项目ID';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.pm
  is '品名';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.rd
  is '燃点';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.zrd
  is '自然点';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.sd
  is '闪点';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.baozha
  is '爆炸';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.bzjx
  is '爆炸极限';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.dx
  is '毒性';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.wlxz
  is '物理性质';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.hxxz
  is '化学性质';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.sjly
  is '数据来源';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.bz
  is '备注';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.add_user
  is '创建人';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.add_date
  is '创建时间';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.update_user
  is '修改人';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.update_date
  is '修改时间';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.record_state
  is '删除状态';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.record_status
  is '删除状态';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.jx
  is '极限';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.ysyq
  is '运输要求';
comment on column T_YJPT_CCSJDWXHXPJBLHXNZB.ydcs
  is '应对措施';
alter table T_YJPT_CCSJDWXHXPJBLHXNZB
  add constraint T_YJPT_CCSJDWXHXPJBLHXNZB_PK primary key (ID);





create table T_YJPT_CG
(
  id            NUMBER not null,
  dwmc          VARCHAR2(40),
  whzyfzbh      VARCHAR2(4000),
  qyccbh        VARCHAR2(4000),
  scjyhdlx      VARCHAR2(10),
  cchxppzsl     VARCHAR2(40),
  zxgyjzysb     VARCHAR2(100),
  cccscq        VARCHAR2(10),
  gkzdwxybh     VARCHAR2(40),
  gkzdwxybabh   VARCHAR2(40),
  cgqmc         VARCHAR2(40),
  jtwz          VARCHAR2(40),
  cgzb          VARCHAR2(40),
  cgqmj         NUMBER,
  cggs          NUMBER,
  cgmc          VARCHAR2(40),
  cgxh          VARCHAR2(40),
  ywfhd         VARCHAR2(40),
  gjzxjl        NUMBER,
  cgcz          VARCHAR2(40),
  cgrj          NUMBER,
  cgxs          VARCHAR2(10),
  cgazxs        VARCHAR2(10),
  wzzt          VARCHAR2(10),
  cgwx          VARCHAR2(10),
  sjyl          NUMBER,
  sjgzyl        NUMBER,
  sjwd          VARCHAR2(50),
  sjgzwd      VARCHAR2(50),
  tcsj          DATE,
  sjsynx        NUMBER,
  jlfs          VARCHAR2(10),
  clfs          VARCHAR2(10),
  fjdsssfnjjzs  VARCHAR2(10),
  zsbh          VARCHAR2(40),
  tbr           VARCHAR2(100),
  lxdh          VARCHAR2(40),
  tbsj          DATE,
  hysl          NUMBER,
  hysm          VARCHAR2(100),
  bdzzsl        NUMBER,
  bdzzsm        VARCHAR2(100),
  qtsl          NUMBER,
  qtsm          VARCHAR2(100),
  mapid         NUMBER,
  hxpmc         VARCHAR2(2000),
  hxppz         VARCHAR2(40),
  hxpsl         NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  szd           NUMBER,
  ssqy          NUMBER,
  gq            NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zdwxycggs     NUMBER,
  zdwxycgrl     NUMBER,
  aqgd          NUMBER,
  zj            NUMBER,
  wxydj number
)
;
comment on table T_YJPT_CG
  is '储罐信息';
comment on column T_YJPT_CG.id
  is 'ID';
comment on column T_YJPT_CG.dwmc
  is '单位名称';
comment on column T_YJPT_CG.whzyfzbh
  is '危货作业附证编号';
comment on column T_YJPT_CG.qyccbh
  is '企业存储编号';
comment on column T_YJPT_CG.scjyhdlx
  is '生产经营活动类型';
comment on column T_YJPT_CG.cchxppzsl
  is '储存化学品品种数量';
comment on column T_YJPT_CG.zxgyjzysb
  is '装卸工艺及主要设备';
comment on column T_YJPT_CG.cccscq
  is '储存场所产权';
comment on column T_YJPT_CG.gkzdwxybh
  is '港口重大危险源编号';
comment on column T_YJPT_CG.gkzdwxybabh
  is '港口重大危险源备案编号';
comment on column T_YJPT_CG.cgqmc
  is '储罐区名称';
comment on column T_YJPT_CG.jtwz
  is '具体位置';
comment on column T_YJPT_CG.cgzb
  is '储罐坐标';
comment on column T_YJPT_CG.cgqmj
  is '储罐区面积';
comment on column T_YJPT_CG.cggs
  is '储罐个数';
comment on column T_YJPT_CG.cgmc
  is '储罐名称';
comment on column T_YJPT_CG.cgxh
  is '储罐序号';
comment on column T_YJPT_CG.ywfhd
  is '有无防护堤';
comment on column T_YJPT_CG.gjzxjl
  is '罐间最小距离';
comment on column T_YJPT_CG.cgcz
  is '储罐材质';
comment on column T_YJPT_CG.cgrj
  is '储罐容积';
comment on column T_YJPT_CG.cgxs
  is '储罐形式';
comment on column T_YJPT_CG.cgazxs
  is '储罐安装形式';
comment on column T_YJPT_CG.wzzt
  is '物质状态';
comment on column T_YJPT_CG.cgwx
  is '储罐外形';
comment on column T_YJPT_CG.sjyl
  is '设计压力';
comment on column T_YJPT_CG.sjgzyl
  is '实际工作压力';
comment on column T_YJPT_CG.sjwd
  is '设计温度';
comment on column T_YJPT_CG.sjgzwd
  is '实际工作温度';
comment on column T_YJPT_CG.tcsj
  is '投产时间';
comment on column T_YJPT_CG.sjsynx
  is '设计使用年限';
comment on column T_YJPT_CG.jlfs
  is '进料方式';
comment on column T_YJPT_CG.clfs
  is '出料方式';
comment on column T_YJPT_CG.fjdsssfnjjzs
  is '防静电设施是否年检及证书';
comment on column T_YJPT_CG.zsbh
  is '证书编号';
comment on column T_YJPT_CG.tbr
  is '填表人';
comment on column T_YJPT_CG.lxdh
  is '联系电话';
comment on column T_YJPT_CG.tbsj
  is '填表时间';
comment on column T_YJPT_CG.hysl
  is '火源数量';
comment on column T_YJPT_CG.hysm
  is '火源说明';
comment on column T_YJPT_CG.bdzzsl
  is '变电装置数量';
comment on column T_YJPT_CG.bdzzsm
  is '变电装置说明';
comment on column T_YJPT_CG.qtsl
  is '其他数量';
comment on column T_YJPT_CG.qtsm
  is '其他说明';
comment on column T_YJPT_CG.mapid
  is '地图ID';
comment on column T_YJPT_CG.hxpmc
  is '化学品名称';
comment on column T_YJPT_CG.hxppz
  is '化学品品种';
comment on column T_YJPT_CG.hxpsl
  is '化学品数量';
comment on column T_YJPT_CG.add_user
  is 'ADD_USER';
comment on column T_YJPT_CG.add_date
  is 'ADD_DATE';
comment on column T_YJPT_CG.update_user
  is 'UPDATE_USER';
comment on column T_YJPT_CG.update_date
  is 'UPDATE_DATE';
comment on column T_YJPT_CG.record_status
  is 'RECORD_STATUS';
comment on column T_YJPT_CG.sftb
  is 'SFTB';
comment on column T_YJPT_CG.tbzt
  is 'TBZT';
comment on column T_YJPT_CG.tbdyid
  is 'TBDYID';
comment on column T_YJPT_CG.qylb
  is 'QYLB';
comment on column T_YJPT_CG.szd
  is 'SZD';
comment on column T_YJPT_CG.ssqy
  is 'SSQY';
comment on column T_YJPT_CG.gq
  is 'GQ';
comment on column T_YJPT_CG.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_CG.byzd1
  is 'BYZD1';
comment on column T_YJPT_CG.byzd2
  is 'BYZD2';
comment on column T_YJPT_CG.byzd3
  is 'BYZD3';
comment on column T_YJPT_CG.byzd4
  is 'BYZD4';
comment on column T_YJPT_CG.byzd5
  is 'BYZD5';
comment on column T_YJPT_CG.zdwxycggs
  is '重大危险源储罐个数';
comment on column T_YJPT_CG.zdwxycgrl
  is '重大危险源储罐容量';
comment on column T_YJPT_CG.aqgd
  is '安全高度（米）';
comment on column T_YJPT_CG.zj
  is '储罐直径（米）';
comment on column T_YJPT_CG.wxydj  is '危险源等级';
alter table T_YJPT_CG
  add constraint PK_T_YJPT_CG primary key (ID);





create table T_YJPT_CURRENTNO
(
  pattern    VARCHAR2(50) not null,
  current_no VARCHAR2(10) not null
)
;
comment on column T_YJPT_CURRENTNO.pattern
  is '编号模式';
comment on column T_YJPT_CURRENTNO.current_no
  is '当前编号';
alter table T_YJPT_CURRENTNO
  add primary key (PATTERN);





create table T_YJPT_DBRW
(
  id            NUMBER not null,
  rwlx          VARCHAR2(100),
  rwbt          VARCHAR2(400),
  kssj          DATE,
  sdzt          CHAR(1),
  sdr           VARCHAR2(100),
  bdid          VARCHAR2(400),
  bdlx          VARCHAR2(100),
  jsr           NUMBER,
  fsr           NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  sftb          CHAR(1),
  status        VARCHAR2(50),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_DBRW
  is '待办任务';
comment on column T_YJPT_DBRW.id
  is 'ID';
comment on column T_YJPT_DBRW.rwlx
  is '任务类型';
comment on column T_YJPT_DBRW.rwbt
  is '任务标题';
comment on column T_YJPT_DBRW.kssj
  is '开始时间';
comment on column T_YJPT_DBRW.sdzt
  is '锁定状态';
comment on column T_YJPT_DBRW.sdr
  is '锁定人';
comment on column T_YJPT_DBRW.bdid
  is '表单ID';
comment on column T_YJPT_DBRW.bdlx
  is '表单类型';
comment on column T_YJPT_DBRW.jsr
  is '接收人';
comment on column T_YJPT_DBRW.fsr
  is '发送人';
comment on column T_YJPT_DBRW.add_user
  is '创建人';
comment on column T_YJPT_DBRW.add_date
  is '创建时间';
comment on column T_YJPT_DBRW.update_user
  is '修改人';
comment on column T_YJPT_DBRW.update_date
  is '修改时间';
comment on column T_YJPT_DBRW.record_status
  is '删除状态';
comment on column T_YJPT_DBRW.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_DBRW.tbdyid
  is '同步对应ID';
comment on column T_YJPT_DBRW.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_DBRW.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_DBRW.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_DBRW.status
  is '状态';
alter table T_YJPT_DBRW
  add constraint T_YJPT_DBRW_PK primary key (ID);





create table T_YJPT_DC
(
  id            NUMBER not null,
  szd           VARCHAR2(30),
  szgq          VARCHAR2(30),
  sj            DATE,
  dcdw          VARCHAR2(100),
  bdcdw         VARCHAR2(100),
  cjdcry        VARCHAR2(100),
  bdcdwcjry     VARCHAR2(100),
  jdjcnr        VARCHAR2(400),
  jdjcqk        VARCHAR2(2000),
  yhzgyj        VARCHAR2(400),
  bdcdwfzr      VARCHAR2(100),
  bz            VARCHAR2(400),
  jlr           VARCHAR2(30),
  lxdh          VARCHAR2(30),
  yhdl          VARCHAR2(50),
  yhzl          VARCHAR2(50),
  jhwcsj        DATE,
  mqzt          VARCHAR2(50),
  jb            VARCHAR2(50),
  zgtrzj        NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(400),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(400),
  byzd5         VARCHAR2(100),
  yhfl          CHAR(1),
  yhqy          CHAR(1),
  yzgbz         VARCHAR2(500),
  ORIGINAL_ID 	NUMBER,
  jcyj number,
  zxjcid number,
  yqzgqx DATE,
  yqzgyy VARCHAR2(400)
)
;
comment on table T_YJPT_DC
  is '督查';
comment on column T_YJPT_DC.id
  is 'ID';
comment on column T_YJPT_DC.szd
  is '所在地';
comment on column T_YJPT_DC.szgq
  is '所在港区';
comment on column T_YJPT_DC.sj
  is '时间';
comment on column T_YJPT_DC.dcdw
  is '督查单位';
comment on column T_YJPT_DC.bdcdw
  is '被督查单位';
comment on column T_YJPT_DC.cjdcry
  is '参加督查人员';
comment on column T_YJPT_DC.bdcdwcjry
  is '被督查单位参加人员';
comment on column T_YJPT_DC.jdjcnr
  is '监督检查内容';
comment on column T_YJPT_DC.jdjcqk
  is '监督检查情况';
comment on column T_YJPT_DC.yhzgyj
  is '隐患整改意见';
comment on column T_YJPT_DC.bdcdwfzr
  is '被督查单位负责人';
comment on column T_YJPT_DC.bz
  is '备注';
comment on column T_YJPT_DC.jlr
  is '记录人';
comment on column T_YJPT_DC.lxdh
  is '联系电话';
comment on column T_YJPT_DC.yhdl
  is '隐患大类';
comment on column T_YJPT_DC.yhzl
  is '隐患中类';
comment on column T_YJPT_DC.jhwcsj
  is '计划完成时间';
comment on column T_YJPT_DC.mqzt
  is '目前状态';
comment on column T_YJPT_DC.jb
  is '级别';
comment on column T_YJPT_DC.zgtrzj
  is '整改投入资金';
comment on column T_YJPT_DC.add_user
  is 'ADD_USER';
comment on column T_YJPT_DC.add_date
  is 'ADD_DATE';
comment on column T_YJPT_DC.update_user
  is 'UPDATE_USER';
comment on column T_YJPT_DC.update_date
  is 'UPDATE_DATE';
comment on column T_YJPT_DC.record_status
  is 'RECORD_STATUS';
comment on column T_YJPT_DC.sftb
  is 'SFTB';
comment on column T_YJPT_DC.tbzt
  is 'TBZT';
comment on column T_YJPT_DC.tbdyid
  is 'TBDYID';
comment on column T_YJPT_DC.qylb
  is 'QYLB';
comment on column T_YJPT_DC.ssqy
  is 'SSQY';
comment on column T_YJPT_DC.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_DC.byzd1
  is 'BYZD1';
comment on column T_YJPT_DC.byzd2
  is 'BYZD2';
comment on column T_YJPT_DC.byzd3
  is 'BYZD3';
comment on column T_YJPT_DC.byzd4
  is 'BYZD4';
comment on column T_YJPT_DC.byzd5
  is 'BYZD5';
comment on column T_YJPT_DC.yhfl
  is '隐患分类';
comment on column T_YJPT_DC.yhqy
  is '隐患区域';
comment on column T_YJPT_DC.yzgbz
 is '已整改备注';
comment on column T_YJPT_DC.ORIGINAL_ID 
 is '原始数据ID';
comment on column T_YJPT_DC.jcyj 
 is '检查依据  关联公告id';
comment on column T_YJPT_DC.zxjcid  
 is '专项检查id';
comment on column T_YJPT_DC.jcyj 
 is '检查依据  关联公告id';
comment on column T_YJPT_DC.zxjcid 
 is '专项检查id';
 comment on column T_YJPT_DC.yqzgqx 
 is '延期整改期限';
comment on column T_YJPT_DC.yqzgyy 
 is '延期整改原因';
alter table T_YJPT_DC add constraint T_YJPT_DC primary key (ID);





create table T_YJPT_FJB
(
  id            NUMBER not null,
  wjm           VARCHAR2(400),
  wjhzm         VARCHAR2(400),
  bz            VARCHAR2(1000),
  wjcflj        VARCHAR2(4000),
  wjnr          NUMBER,
  wjdx          NUMBER,
  ssid          NUMBER,
  sslx          NUMBER,
  lx            NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  sftb          CHAR(1),
  qylb          CHAR(1),
  ssqy          NUMBER,
  gq            NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_FJB
  is '附件表';
comment on column T_YJPT_FJB.id
  is 'ID';
comment on column T_YJPT_FJB.wjm
  is '文件名';
comment on column T_YJPT_FJB.wjhzm
  is '文件后缀名';
comment on column T_YJPT_FJB.bz
  is '备注';
comment on column T_YJPT_FJB.wjcflj
  is '文件存放路径';
comment on column T_YJPT_FJB.wjnr
  is '文件内容';
comment on column T_YJPT_FJB.wjdx
  is '文件大小';
comment on column T_YJPT_FJB.ssid
  is '所属ID';
comment on column T_YJPT_FJB.sslx
  is '所属类型';
comment on column T_YJPT_FJB.lx
  is '类型';
comment on column T_YJPT_FJB.add_user
  is '创建人';
comment on column T_YJPT_FJB.add_date
  is '创建时间';
comment on column T_YJPT_FJB.update_user
  is '修改人';
comment on column T_YJPT_FJB.update_date
  is '修改时间';
comment on column T_YJPT_FJB.record_status
  is '删除状态';
comment on column T_YJPT_FJB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_FJB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_FJB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_FJB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_FJB.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_FJB.gq
  is '港区';
alter table T_YJPT_FJB
  add constraint T_YJPT_FJB_PK primary key (ID);





create table T_YJPT_GG
(
  id            NUMBER not null,
  title         VARCHAR2(100),
  content       VARCHAR2(2000),
  lkr           VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  szd           NUMBER,
  qykj          CHAR(1)
)
;
comment on table T_YJPT_GG
  is '公告';
comment on column T_YJPT_GG.id
  is 'ID';
comment on column T_YJPT_GG.title
  is '公告标题';
comment on column T_YJPT_GG.content
  is '内容';
comment on column T_YJPT_GG.lkr
  is '落款人';
comment on column T_YJPT_GG.add_user
  is '创建人';
comment on column T_YJPT_GG.add_date
  is '创建时间';
comment on column T_YJPT_GG.update_user
  is '修改人';
comment on column T_YJPT_GG.update_date
  is '修改时间';
comment on column T_YJPT_GG.record_status
  is '删除状态';
comment on column T_YJPT_GG.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GG.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GG.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GG.szd
  is '所在地';
comment on column T_YJPT_GG.qykj
  is '企业是否可见 可见Y， 不可见N';
alter table T_YJPT_GG
  add constraint PK_T_YJPT_GG primary key (ID);





create table T_YJPT_GGDM
(
  id            NUMBER not null,
  fid           NUMBER,
  groupcode     VARCHAR2(400),
  code          VARCHAR2(400),
  px            NUMBER,
  mc            VARCHAR2(400),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  bz            VARCHAR2(4000),
  szd           NUMBER,
  gq            NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_GGDM
  is '公共代码表,所有用到公共代码的字段填入的是主键id,而不是编码';
comment on column T_YJPT_GGDM.id
  is 'ID';
comment on column T_YJPT_GGDM.fid
  is '父ID';
comment on column T_YJPT_GGDM.groupcode
  is '分组编码, 用于查询同一类编码, 如是经济类型, 则填入JJLX';
comment on column T_YJPT_GGDM.code
  is '值,具体的值';
comment on column T_YJPT_GGDM.px
  is '排序';
comment on column T_YJPT_GGDM.mc
  is '名称';
comment on column T_YJPT_GGDM.add_user
  is '创建人';
comment on column T_YJPT_GGDM.add_date
  is '创建时间';
comment on column T_YJPT_GGDM.update_user
  is '修改人';
comment on column T_YJPT_GGDM.update_date
  is '修改时间';
comment on column T_YJPT_GGDM.record_status
  is '删除状态';
comment on column T_YJPT_GGDM.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GGDM.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GGDM.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GGDM.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GGDM.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_GGDM.bz
  is '备注';
comment on column T_YJPT_GGDM.szd
  is '所在地';
comment on column T_YJPT_GGDM.gq
  is '港区';
alter table T_YJPT_GGDM
  add constraint T_YJPT_GGDM_PK primary key (ID);





create table T_YJPT_GG_VIEW
(
  id            NUMBER not null,
  ggid          NUMBER,
  qymc          NUMBER,
  sfkj              CHAR(1),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_GG_VIEW
  is '公告查看记录';
comment on column T_YJPT_GG_VIEW.id
  is 'ID';
comment on column T_YJPT_GG_VIEW.ggid
  is '查看的公告id';
comment on column T_YJPT_GG_VIEW.qymc
  is '企业id';
  comment on column T_YJPT_GG_VIEW.sfkj
  is '企业是否可见';
comment on column T_YJPT_GG_VIEW.add_user
  is '创建人';
comment on column T_YJPT_GG_VIEW.add_date
  is '创建时间';
comment on column T_YJPT_GG_VIEW.update_user
  is '修改人';
comment on column T_YJPT_GG_VIEW.update_date
  is '修改时间';
comment on column T_YJPT_GG_VIEW.record_status
  is '删除状态';
comment on column T_YJPT_GG_VIEW.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GG_VIEW.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GG_VIEW.tbdyid
  is '同步对应ID';
alter table T_YJPT_GG_VIEW
  add constraint T_YJPT_GG_VIEW_PK primary key (ID);





create table T_YJPT_GKAQPJJGSQBAB
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  jgmc          VARCHAR2(400),
  jglx          CHAR(1),
  zcdz          VARCHAR2(400),
  bgdz          VARCHAR2(400),
  fddbr         VARCHAR2(100),
  jglxr         VARCHAR2(100),
  yzbm          VARCHAR2(10),
  dh            VARCHAR2(100),
  cz            VARCHAR2(100),
  dzyx          VARCHAR2(100),
  zzzsbm        VARCHAR2(400),
  zzyxq         TIMESTAMP(6),
  pzrq          TIMESTAMP(6),
  aqpjywfw      VARCHAR2(4000),
  dwqkjj        VARCHAR2(4000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  tbr           VARCHAR2(100),
  tbsj          TIMESTAMP(6),
  record_code   VARCHAR2(30),
  babh          VARCHAR2(100),
  bamc          VARCHAR2(100),
  bayxq         TIMESTAMP(6),
  sfqxzg        CHAR(1)
)
;
comment on table T_YJPT_GKAQPJJGSQBAB
  is '港口安全评价机构申请备案表“申请材料”清单根据“不同类型”存放在附件表中安全评价机构备案申请表申请材料清单附件类型存到公共代码中';
comment on column T_YJPT_GKAQPJJGSQBAB.id
  is 'ID';
comment on column T_YJPT_GKAQPJJGSQBAB.szd
  is '所在地';
comment on column T_YJPT_GKAQPJJGSQBAB.gq
  is '港区';
comment on column T_YJPT_GKAQPJJGSQBAB.jgmc
  is '机构名称';
comment on column T_YJPT_GKAQPJJGSQBAB.jglx
  is '机构类型 1甲级 2乙级';
comment on column T_YJPT_GKAQPJJGSQBAB.zcdz
  is '注册地址';
comment on column T_YJPT_GKAQPJJGSQBAB.bgdz
  is '办公地址';
comment on column T_YJPT_GKAQPJJGSQBAB.fddbr
  is '法定代表人';
comment on column T_YJPT_GKAQPJJGSQBAB.jglxr
  is '机构联系人';
comment on column T_YJPT_GKAQPJJGSQBAB.yzbm
  is '邮政编码';
comment on column T_YJPT_GKAQPJJGSQBAB.dh
  is '电话';
comment on column T_YJPT_GKAQPJJGSQBAB.cz
  is '传真';
comment on column T_YJPT_GKAQPJJGSQBAB.dzyx
  is '电子邮箱';
comment on column T_YJPT_GKAQPJJGSQBAB.zzzsbm
  is '资质证书编号';
comment on column T_YJPT_GKAQPJJGSQBAB.zzyxq
  is '资质有效期';
comment on column T_YJPT_GKAQPJJGSQBAB.pzrq
  is '批准日期';
comment on column T_YJPT_GKAQPJJGSQBAB.aqpjywfw
  is '安全评价业务范围';
comment on column T_YJPT_GKAQPJJGSQBAB.dwqkjj
  is '单位情况简介（增）';
comment on column T_YJPT_GKAQPJJGSQBAB.add_user
  is '创建人';
comment on column T_YJPT_GKAQPJJGSQBAB.add_date
  is '创建时间';
comment on column T_YJPT_GKAQPJJGSQBAB.update_user
  is '修改人';
comment on column T_YJPT_GKAQPJJGSQBAB.update_date
  is '修改时间';
comment on column T_YJPT_GKAQPJJGSQBAB.record_status
  is '删除状态';
comment on column T_YJPT_GKAQPJJGSQBAB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GKAQPJJGSQBAB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GKAQPJJGSQBAB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GKAQPJJGSQBAB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GKAQPJJGSQBAB.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_GKAQPJJGSQBAB.tbr
  is '填表人';
comment on column T_YJPT_GKAQPJJGSQBAB.tbsj
  is '填表时间';
comment on column T_YJPT_GKAQPJJGSQBAB.record_code
  is '记录代码';
comment on column T_YJPT_GKAQPJJGSQBAB.babh
  is '备案编号';
comment on column T_YJPT_GKAQPJJGSQBAB.bamc
  is '备案名称';
comment on column T_YJPT_GKAQPJJGSQBAB.bayxq
  is '备案有效期';
comment on column T_YJPT_GKAQPJJGSQBAB.sfqxzg
  is '是否取消资格';
alter table T_YJPT_GKAQPJJGSQBAB
  add constraint T_YJPT_GKAQPJJGSQBAB_PK primary key (ID);





create table T_YJPT_GKCCSS
(
  id            NUMBER not null,
  szd           NUMBER,
  qymc          VARCHAR2(100),
  lb            VARCHAR2(100),
  bwsl          VARCHAR2(100),
  cgsl          VARCHAR2(100),
  cgrj          VARCHAR2(100),
  dggr          VARCHAR2(100),
  zyhz          VARCHAR2(200),
  zdwxydy       VARCHAR2(100),
  szqy          VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(2),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_GKCCSS
  is '首页港口储存设施';
comment on column T_YJPT_GKCCSS.id
  is 'ID';
comment on column T_YJPT_GKCCSS.szd
  is '所在地';
comment on column T_YJPT_GKCCSS.qymc
  is '企业名称';
comment on column T_YJPT_GKCCSS.lb
  is '类别';
comment on column T_YJPT_GKCCSS.bwsl
  is '泊位数量';
comment on column T_YJPT_GKCCSS.cgsl
  is '储罐数量';
comment on column T_YJPT_GKCCSS.cgrj
  is '储罐容积';
comment on column T_YJPT_GKCCSS.dggr
  is '单个罐容';
comment on column T_YJPT_GKCCSS.zyhz
  is '主要货种';
comment on column T_YJPT_GKCCSS.zdwxydy
  is '构成重大危险源单元';
comment on column T_YJPT_GKCCSS.szqy
  is '所在区域';
comment on column T_YJPT_GKCCSS.add_user
  is '创建人';
comment on column T_YJPT_GKCCSS.add_date
  is '创建时间';
comment on column T_YJPT_GKCCSS.update_user
  is '修改人';
comment on column T_YJPT_GKCCSS.update_date
  is '修改时间';
comment on column T_YJPT_GKCCSS.record_status
  is '记录状态';
comment on column T_YJPT_GKCCSS.sftb
  is '是否同步';
comment on column T_YJPT_GKCCSS.tbzt
  is '同步状态';
comment on column T_YJPT_GKCCSS.tbdyid
  is '同步对应id';
comment on column T_YJPT_GKCCSS.qylb
  is '区域类别';
comment on column T_YJPT_GKCCSS.ssqy
  is '所属区域';
comment on column T_YJPT_GKCCSS.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_GKCCSS.byzd1
  is 'BYZD1';
comment on column T_YJPT_GKCCSS.byzd2
  is 'BYZD2';
comment on column T_YJPT_GKCCSS.byzd3
  is 'BYZD3';
comment on column T_YJPT_GKCCSS.byzd4
  is 'BYZD4';
comment on column T_YJPT_GKCCSS.byzd5
  is 'BYZD5';
alter table T_YJPT_GKCCSS
  add constraint T_YJPT_GKCCSS_PK primary key (ID);





create table T_YJPT_GKSSSB
(
  id            NUMBER not null,
  ssmc          VARCHAR2(80),
  qymc          VARCHAR2(40),
  tbr           VARCHAR2(100),
  lxdh          VARCHAR2(40),
  szd           NUMBER,
  szgq          NUMBER,
  ggxh          VARCHAR2(100),
  sl            NUMBER,
  yxq           DATE,
  cfcs          VARCHAR2(4000),
  bz            VARCHAR2(4000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  sldw          VARCHAR2(10),
  yjfl          NUMBER,
  ejfl          NUMBER
)
;
comment on column T_YJPT_GKSSSB.sldw
  is '数量单位';
comment on column T_YJPT_GKSSSB.yjfl
  is '一级分类';
comment on column T_YJPT_GKSSSB.ejfl
  is '二级分类';
alter table T_YJPT_GKSSSB
  add constraint PK_T_YJPT_GKSSSB_PK primary key (ID);





create table T_YJPT_GKWHQY
(
  id            NUMBER not null,
  szd           NUMBER,
  qymc          VARCHAR2(100),
  mt            VARCHAR2(200),
  lb            VARCHAR2(100),
  bws           VARCHAR2(100),
  mtwz          VARCHAR2(100),
  jsgm          VARCHAR2(200),
  ttl           VARCHAR2(100),
  zyhz          VARCHAR2(300),
  szqy          VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(2),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_GKWHQY
  is '首页港口危货企业统计信息';
comment on column T_YJPT_GKWHQY.id
  is 'ID';
comment on column T_YJPT_GKWHQY.szd
  is '所在地';
comment on column T_YJPT_GKWHQY.qymc
  is '企业名称';
comment on column T_YJPT_GKWHQY.mt
  is '码头(泊位)名称';
comment on column T_YJPT_GKWHQY.lb
  is '类别';
comment on column T_YJPT_GKWHQY.bws
  is '万吨级泊位数(个)';
comment on column T_YJPT_GKWHQY.mtwz
  is '码头位置或港区';
comment on column T_YJPT_GKWHQY.jsgm
  is '建设规模';
comment on column T_YJPT_GKWHQY.ttl
  is '吞吐量(万吨)';
comment on column T_YJPT_GKWHQY.zyhz
  is '主要作业货种及作业量';
comment on column T_YJPT_GKWHQY.szqy
  is '所在区域';
comment on column T_YJPT_GKWHQY.add_user
  is '创建人';
comment on column T_YJPT_GKWHQY.add_date
  is '创建时间';
comment on column T_YJPT_GKWHQY.update_user
  is '修改人';
comment on column T_YJPT_GKWHQY.update_date
  is '修改时间';
comment on column T_YJPT_GKWHQY.record_status
  is '记录状态';
comment on column T_YJPT_GKWHQY.sftb
  is '是否同步';
comment on column T_YJPT_GKWHQY.tbzt
  is '同步状态';
comment on column T_YJPT_GKWHQY.tbdyid
  is '同步对应id';
comment on column T_YJPT_GKWHQY.qylb
  is '区域类别';
comment on column T_YJPT_GKWHQY.ssqy
  is '所属区域';
comment on column T_YJPT_GKWHQY.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_GKWHQY.byzd1
  is 'BYZD1';
comment on column T_YJPT_GKWHQY.byzd2
  is 'BYZD2';
comment on column T_YJPT_GKWHQY.byzd3
  is 'BYZD3';
comment on column T_YJPT_GKWHQY.byzd4
  is 'BYZD4';
comment on column T_YJPT_GKWHQY.byzd5
  is 'BYZD5';
alter table T_YJPT_GKWHQY
  add constraint T_YJPT_GKWHQY_PK primary key (ID);





create table T_YJPT_GKWXHWZYFZBLHHZ
(
  id            NUMBER not null,
  qymc          VARCHAR2(200),
  szd           NUMBER,
  ssgq          NUMBER,
  dz            VARCHAR2(2000),
  fddbr         VARCHAR2(200),
  aqgljg        VARCHAR2(200),
  aqfz          VARCHAR2(200),
  gqgljgfzrxm   VARCHAR2(200),
  gqgljgfzrzc   VARCHAR2(200),
  gqgljgfzrlxdh VARCHAR2(20),
  gqgljgfzrdzyx VARCHAR2(200),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(4000),
  zycs          NUMBER,
  cq            NUMBER,
  zyfs          VARCHAR2(200),
  whdj          NUMBER,
  zywxhwpm      VARCHAR2(4000),
  bh            VARCHAR2(2000),
  sqtbrq        TIMESTAMP(6),
  fzsj          TIMESTAMP(6),
  fzfzrq        TIMESTAMP(6),
  fzgkjyxkzh    VARCHAR2(20),
  fzzycs        VARCHAR2(20),
  fzcsbh        VARCHAR2(50),
  fzqynbbh      VARCHAR2(20),
  fzjg          VARCHAR2(100),
  yxqkssj       TIMESTAMP(6),
  yxqjssj       TIMESTAMP(6),
  qynbbh        VARCHAR2(50),
  gkjyxkz       VARCHAR2(400),
  jyr           NUMBER
)
;
comment on table T_YJPT_GKWXHWZYFZBLHHZ
  is '港口危险货物作业"附证" 办理或换证申请表';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.qymc
  is '企业名称';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.szd
  is '所在地';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.ssgq
  is '所属港区';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.dz
  is '地址';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.fddbr
  is '法定代表人';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.aqgljg
  is '安全管理机构';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.aqfz
  is '安全副总';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.gqgljgfzrxm
  is '安全管理机构负责人信息  姓名';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.gqgljgfzrzc
  is '安全管理机构负责人信息  职称';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.gqgljgfzrlxdh
  is '安全管理机构负责人信息  联系电话';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.gqgljgfzrdzyx
  is '安全管理机构负责人信息  电子邮箱';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.add_user
  is '创建人';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.add_date
  is '创建时间';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.update_user
  is '修改人';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.update_date
  is '修改时间';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.record_status
  is '删除状态';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.zycs
  is '作业场所';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.cq
  is '产权';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.zyfs
  is '作业方式';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.whdj
  is '危货等级';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.zywxhwpm
  is '作业危险货物品名';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.bh
  is '编号';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.sqtbrq
  is '填报日期';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.fzsj
  is '发证时间';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.fzfzrq
  is '发证日期';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.fzgkjyxkzh
  is '港口经营许可证号';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.fzzycs
  is '作业场所';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.fzcsbh
  is '附证场所编号';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.fzqynbbh
  is '企业内部编号';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.fzjg
  is '发证机关';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.yxqkssj
  is '有效期开始时间';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.yxqjssj
  is '有效期结束时间';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.qynbbh
  is '企业内部编号';
comment on column T_YJPT_GKWXHWZYFZBLHHZ.gkjyxkz
  is '港口经营许可证号';
alter table T_YJPT_GKWXHWZYFZBLHHZ
  add constraint T_YJPT_GKWXHWZYFZBLHHZ_PK primary key (ID);





create table T_YJPT_GKWXHWZYFZBL_FZ
(
  id            NUMBER not null,
  zycs          NUMBER,
  fzcsbh        VARCHAR2(100),
  qynbbh        VARCHAR2(100),
  fzsq          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(2000),
  fzhz          NUMBER,
  qynbmc        VARCHAR2(100),
  jyr           NUMBER,
  wxhwm         VARCHAR2(2000),
  SZD NUMBER
)
;
comment on column T_YJPT_GKWXHWZYFZBL_FZ.zycs
  is '作业场所id';
comment on column T_YJPT_GKWXHWZYFZBL_FZ.fzcsbh
  is '附证场所编号';
comment on column T_YJPT_GKWXHWZYFZBL_FZ.qynbbh
  is '企业内部编号';
comment on column T_YJPT_GKWXHWZYFZBL_FZ.fzsq
  is '原附证申请id';
comment on column T_YJPT_GKWXHWZYFZBL_FZ.fzhz
  is '附证变更id';
comment on column T_YJPT_GKWXHWZYFZBL_FZ.jyr
  is '关联的经营人';
comment on column T_YJPT_GKWXHWZYFZBL_FZ.wxhwm
  is '允许作业的危险货物品名';
alter table T_YJPT_GKWXHWZYFZBL_FZ
  add constraint T_YJPT_GKWXHWZYFZBL_FZ_PK primary key (ID);





create table T_YJPT_GKWXHWZYFZHZ
(
  id            NUMBER not null,
  qymc          VARCHAR2(200),
  szd           NUMBER,
  ssgq          NUMBER,
  dz            VARCHAR2(2000),
  fddbr         VARCHAR2(200),
  aqgljg        VARCHAR2(200),
  aqfz          VARCHAR2(200),
  gqgljgfzrxm   VARCHAR2(200),
  gqgljgfzrzc   VARCHAR2(200),
  gqgljgfzrlxdh VARCHAR2(20),
  gqgljgfzrdzyx VARCHAR2(200),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  bh            VARCHAR2(2000),
  fzjg          VARCHAR2(100),
  fzsj          TIMESTAMP(6),
  fzfzrq        TIMESTAMP(6),
  yxqkssj       TIMESTAMP(6),
  yxqjssj       TIMESTAMP(6),
  fzgkjyxkzh    VARCHAR2(20),
  fzbh          VARCHAR2(20),
  fzzycs        VARCHAR2(20),
  fzcsbh        VARCHAR2(20),
  fzqynbbh      VARCHAR2(20),
  yfzsj         TIMESTAMP(6),
  yyxqkssj      TIMESTAMP(6),
  yyxqjssj      TIMESTAMP(6),
  ygkjyxkz      VARCHAR2(200),
  ybh           VARCHAR2(2000),
  jyr           NUMBER,
  gkjyxkz       VARCHAR2(400),
  yfzjg         VARCHAR2(100),
   fzsq          NUMBER
)
;
comment on table T_YJPT_GKWXHWZYFZHZ
  is '港口危险货物作业"附证"换证申请表';
comment on column T_YJPT_GKWXHWZYFZHZ.qymc
  is '企业名称';
comment on column T_YJPT_GKWXHWZYFZHZ.szd
  is '所在地';
comment on column T_YJPT_GKWXHWZYFZHZ.ssgq
  is '所属港区';
comment on column T_YJPT_GKWXHWZYFZHZ.dz
  is '地址';
comment on column T_YJPT_GKWXHWZYFZHZ.fddbr
  is '法定代表人';
comment on column T_YJPT_GKWXHWZYFZHZ.aqgljg
  is '安全管理机构';
comment on column T_YJPT_GKWXHWZYFZHZ.aqfz
  is '安全副总';
comment on column T_YJPT_GKWXHWZYFZHZ.gqgljgfzrxm
  is '安全管理机构负责人信息  姓名';
comment on column T_YJPT_GKWXHWZYFZHZ.gqgljgfzrzc
  is '安全管理机构负责人信息  职称';
comment on column T_YJPT_GKWXHWZYFZHZ.gqgljgfzrlxdh
  is '安全管理机构负责人信息  联系电话';
comment on column T_YJPT_GKWXHWZYFZHZ.gqgljgfzrdzyx
  is '安全管理机构负责人信息  电子邮箱';
comment on column T_YJPT_GKWXHWZYFZHZ.add_user
  is '创建人';
comment on column T_YJPT_GKWXHWZYFZHZ.add_date
  is '创建时间';
comment on column T_YJPT_GKWXHWZYFZHZ.update_user
  is '修改人';
comment on column T_YJPT_GKWXHWZYFZHZ.update_date
  is '修改时间';
comment on column T_YJPT_GKWXHWZYFZHZ.record_status
  is '删除状态';
comment on column T_YJPT_GKWXHWZYFZHZ.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GKWXHWZYFZHZ.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GKWXHWZYFZHZ.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GKWXHWZYFZHZ.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GKWXHWZYFZHZ.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_GKWXHWZYFZHZ.bh
  is '编号';
comment on column T_YJPT_GKWXHWZYFZHZ.fzjg
  is '发证机关';
comment on column T_YJPT_GKWXHWZYFZHZ.fzsj
  is '时间';
comment on column T_YJPT_GKWXHWZYFZHZ.fzfzrq
  is '发证日期';
comment on column T_YJPT_GKWXHWZYFZHZ.yxqkssj
  is '有效日期起';
comment on column T_YJPT_GKWXHWZYFZHZ.yxqjssj
  is '有效日期止';
comment on column T_YJPT_GKWXHWZYFZHZ.fzgkjyxkzh
  is '港口经营许可证号';
comment on column T_YJPT_GKWXHWZYFZHZ.fzbh
  is '附证编号';
comment on column T_YJPT_GKWXHWZYFZHZ.fzzycs
  is '作业场所';
comment on column T_YJPT_GKWXHWZYFZHZ.fzcsbh
  is '附证场所编号';
comment on column T_YJPT_GKWXHWZYFZHZ.fzqynbbh
  is '企业内部编号';
comment on column T_YJPT_GKWXHWZYFZHZ.yfzsj
  is '原附证发证日期';
comment on column T_YJPT_GKWXHWZYFZHZ.yyxqkssj
  is '原附证有效日期起';
comment on column T_YJPT_GKWXHWZYFZHZ.yyxqjssj
  is '原附证有效日期止';
comment on column T_YJPT_GKWXHWZYFZHZ.ygkjyxkz
  is '原附证港口经营许可证号';
comment on column T_YJPT_GKWXHWZYFZHZ.ybh
  is '原附证附证编号';
comment on column T_YJPT_GKWXHWZYFZHZ.gkjyxkz
  is '港口经营许可证号';
comment on column T_YJPT_GKWXHWZYFZHZ.yfzjg
  is '原发证机关';
comment on column T_YJPT_GKWXHWZYFZHZ.fzsq
  is '原附证申请';
alter table T_YJPT_GKWXHWZYFZHZ
  add constraint T_YJPT_GKWXHWZYFZHZ_PK primary key (ID);





create table T_YJPT_GKWXHWZYFZNS
(
  id            NUMBER not null,
  szd           NUMBER,
  ssgq          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  nsnd          VARCHAR2(30),
  bz            VARCHAR2(100),
  jyr           NUMBER,
  lxdh          VARCHAR2(30),
  fzbh          VARCHAR2(100),
  jbr           VARCHAR2(30)
)
;
comment on table T_YJPT_GKWXHWZYFZNS
  is '港口危险货物作业"附证" 年审申请表';
comment on column T_YJPT_GKWXHWZYFZNS.szd
  is '所在地';
comment on column T_YJPT_GKWXHWZYFZNS.ssgq
  is '所属港区';
comment on column T_YJPT_GKWXHWZYFZNS.add_user
  is '创建人';
comment on column T_YJPT_GKWXHWZYFZNS.add_date
  is '创建时间';
comment on column T_YJPT_GKWXHWZYFZNS.update_user
  is '修改人';
comment on column T_YJPT_GKWXHWZYFZNS.update_date
  is '修改时间';
comment on column T_YJPT_GKWXHWZYFZNS.record_status
  is '删除状态';
comment on column T_YJPT_GKWXHWZYFZNS.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GKWXHWZYFZNS.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GKWXHWZYFZNS.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GKWXHWZYFZNS.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GKWXHWZYFZNS.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_GKWXHWZYFZNS.nsnd
  is '年审年度';
comment on column T_YJPT_GKWXHWZYFZNS.bz
  is '备注';
comment on column T_YJPT_GKWXHWZYFZNS.jyr
  is '港口经营人';
comment on column T_YJPT_GKWXHWZYFZNS.lxdh
  is '联系电话';
comment on column T_YJPT_GKWXHWZYFZNS.fzbh
  is ' 附证编号';
comment on column T_YJPT_GKWXHWZYFZNS.jbr
  is '经办人';
alter table T_YJPT_GKWXHWZYFZNS
  add constraint T_YJPT_GKWXHWZYFZNS_PK primary key (ID);





create table T_YJPT_GKXX
(
  id            NUMBER not null,
  szd           NUMBER,
  aqgk          VARCHAR2(1500),
  syhg          VARCHAR2(1000),
  whcg          VARCHAR2(1000),
  whpz          VARCHAR2(1000),
  zdwxy         VARCHAR2(1000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(2),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_GKXX
  is '概况信息';
comment on column T_YJPT_GKXX.id
  is 'ID';
comment on column T_YJPT_GKXX.szd
  is '所在地';
comment on column T_YJPT_GKXX.aqgk
  is '安全概况';
comment on column T_YJPT_GKXX.syhg
  is '石油化工码头企业';
comment on column T_YJPT_GKXX.whcg
  is '危险货物储罐';
comment on column T_YJPT_GKXX.whpz
  is '危险货物品种';
comment on column T_YJPT_GKXX.zdwxy
  is '重大危险源';
comment on column T_YJPT_GKXX.add_user
  is '创建人';
comment on column T_YJPT_GKXX.add_date
  is '创建时间';
comment on column T_YJPT_GKXX.update_user
  is '修改人';
comment on column T_YJPT_GKXX.update_date
  is '修改时间';
comment on column T_YJPT_GKXX.record_status
  is '记录状态';
comment on column T_YJPT_GKXX.sftb
  is '是否同步';
comment on column T_YJPT_GKXX.tbzt
  is '同步状态';
comment on column T_YJPT_GKXX.tbdyid
  is '同步对应id';
comment on column T_YJPT_GKXX.qylb
  is '区域类别';
comment on column T_YJPT_GKXX.ssqy
  is '所属区域';
comment on column T_YJPT_GKXX.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_GKXX.byzd1
  is 'BYZD1';
comment on column T_YJPT_GKXX.byzd2
  is 'BYZD2';
comment on column T_YJPT_GKXX.byzd3
  is 'BYZD3';
comment on column T_YJPT_GKXX.byzd4
  is 'BYZD4';
comment on column T_YJPT_GKXX.byzd5
  is 'BYZD5';
alter table T_YJPT_GKXX
  add constraint PK_T_YJPT_GKXX primary key (ID);





create table T_YJPT_GKXX_GKJTQK
(
  id            NUMBER not null,
  key           VARCHAR2(100),
  value         VARCHAR2(300),
  bz            VARCHAR2(200),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(2),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_GKXX_GKJTQK
  is '港口概况信息子表——具体的子表信息';
comment on column T_YJPT_GKXX_GKJTQK.key
  is '键';
comment on column T_YJPT_GKXX_GKJTQK.value
  is '值';
comment on column T_YJPT_GKXX_GKJTQK.bz
  is '备注';
comment on column T_YJPT_GKXX_GKJTQK.add_user
  is '创建人';
comment on column T_YJPT_GKXX_GKJTQK.add_date
  is '创建时间';
comment on column T_YJPT_GKXX_GKJTQK.update_user
  is '修改人';
comment on column T_YJPT_GKXX_GKJTQK.update_date
  is '修改时间';
comment on column T_YJPT_GKXX_GKJTQK.record_status
  is '记录状态';
comment on column T_YJPT_GKXX_GKJTQK.sftb
  is '是否同步';
comment on column T_YJPT_GKXX_GKJTQK.tbzt
  is '同步状态';
comment on column T_YJPT_GKXX_GKJTQK.tbdyid
  is '同步对应id';
comment on column T_YJPT_GKXX_GKJTQK.qylb
  is '区域类别';
comment on column T_YJPT_GKXX_GKJTQK.ssqy
  is '所属区域';
comment on column T_YJPT_GKXX_GKJTQK.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_GKXX_GKJTQK.byzd1
  is 'BYZD1';
comment on column T_YJPT_GKXX_GKJTQK.byzd2
  is 'BYZD2';
comment on column T_YJPT_GKXX_GKJTQK.byzd3
  is 'BYZD3';
comment on column T_YJPT_GKXX_GKJTQK.byzd4
  is 'BYZD4';
comment on column T_YJPT_GKXX_GKJTQK.byzd5
  is 'BYZD5';
alter table T_YJPT_GKXX_GKJTQK
  add constraint T_YJPT_GKXX_GKJTQK_PK primary key (ID);





create table T_YJPT_GKZBHJDWXYDYX
(
  id            NUMBER not null,
  zbid          NUMBER,
  szd           NUMBER,
  gq            NUMBER,
  lx            NUMBER,
  sl            NUMBER,
  jysm          VARCHAR2(4000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_GKZBHJDWXYDYX
  is '港口周边环境对危险源的影响“类型”存到公用代码表中';
comment on column T_YJPT_GKZBHJDWXYDYX.id
  is 'ID';
comment on column T_YJPT_GKZBHJDWXYDYX.zbid
  is '主表ID';
comment on column T_YJPT_GKZBHJDWXYDYX.szd
  is '所在地';
comment on column T_YJPT_GKZBHJDWXYDYX.gq
  is '港区';
comment on column T_YJPT_GKZBHJDWXYDYX.lx
  is '类型';
comment on column T_YJPT_GKZBHJDWXYDYX.sl
  is '数量（个）';
comment on column T_YJPT_GKZBHJDWXYDYX.jysm
  is '简要说明';
comment on column T_YJPT_GKZBHJDWXYDYX.add_user
  is '创建人';
comment on column T_YJPT_GKZBHJDWXYDYX.add_date
  is '创建时间';
comment on column T_YJPT_GKZBHJDWXYDYX.update_user
  is '修改人';
comment on column T_YJPT_GKZBHJDWXYDYX.update_date
  is '修改时间';
comment on column T_YJPT_GKZBHJDWXYDYX.record_status
  is '删除状态';
comment on column T_YJPT_GKZBHJDWXYDYX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GKZBHJDWXYDYX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GKZBHJDWXYDYX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GKZBHJDWXYDYX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GKZBHJDWXYDYX.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_GKZBHJDWXYDYX
  add constraint PK_T_YJPT_GKZBHJDWXYDYX primary key (ID);





create table T_YJPT_GLZD
(
  id            NUMBER not null,
  bxdw          VARCHAR2(100),
  szd           VARCHAR2(100),
  szgq          VARCHAR2(100),
  zdmc          VARCHAR2(200),
  zdfl          VARCHAR2(100),
  txsj          TIMESTAMP(6),
  tbr           VARCHAR2(100),
  lxdh          VARCHAR2(100),
  qymc          NUMBER,
  ssgq          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zdwh          VARCHAR2(200),
  fbrq          TIMESTAMP(6),
  xdrq          TIMESTAMP(6),
  sfczgc        NUMBER,
  zyfz_id       NUMBER,
  lxr           VARCHAR2(100)
)
;
comment on table T_YJPT_GLZD
  is '管理制度';
comment on column T_YJPT_GLZD.id
  is 'ID';
comment on column T_YJPT_GLZD.bxdw
  is '编写单位';
comment on column T_YJPT_GLZD.szd
  is '所在地';
comment on column T_YJPT_GLZD.szgq
  is '所在港区';
comment on column T_YJPT_GLZD.zdmc
  is '制度名称';
comment on column T_YJPT_GLZD.zdfl
  is '制度分类';
comment on column T_YJPT_GLZD.txsj
  is '填写时间';
comment on column T_YJPT_GLZD.tbr
  is '填表人';
comment on column T_YJPT_GLZD.lxdh
  is '联系电话';
comment on column T_YJPT_GLZD.qymc
  is '企业名称';
comment on column T_YJPT_GLZD.ssgq
  is '所属港区';
comment on column T_YJPT_GLZD.add_user
  is '创建人';
comment on column T_YJPT_GLZD.add_date
  is '创建时间';
comment on column T_YJPT_GLZD.update_user
  is '修改人';
comment on column T_YJPT_GLZD.update_date
  is '修改时间';
comment on column T_YJPT_GLZD.record_status
  is '删除状态';
comment on column T_YJPT_GLZD.sftb
  is 'SFTB';
comment on column T_YJPT_GLZD.tbzt
  is 'TBZT';
comment on column T_YJPT_GLZD.tbdyid
  is 'TBDYID';
comment on column T_YJPT_GLZD.qylb
  is 'QYLB';
comment on column T_YJPT_GLZD.ssqy
  is 'SSQY';
comment on column T_YJPT_GLZD.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_GLZD.byzd1
  is 'BYZD1';
comment on column T_YJPT_GLZD.byzd2
  is 'BYZD2';
comment on column T_YJPT_GLZD.byzd3
  is 'BYZD3';
comment on column T_YJPT_GLZD.byzd4
  is 'BYZD4';
comment on column T_YJPT_GLZD.byzd5
  is 'BYZD5';
comment on column T_YJPT_GLZD.zdwh
  is '制度文号';
comment on column T_YJPT_GLZD.fbrq
  is '发布日期';
comment on column T_YJPT_GLZD.xdrq
  is '修订日期';
comment on column T_YJPT_GLZD.sfczgc
  is '是否操作规程';
comment on column T_YJPT_GLZD.zyfz_id
  is '作业附证Id';
comment on column T_YJPT_GLZD.lxr
  is '联系人';
alter table T_YJPT_GLZD
  add primary key (ID);





create table T_YJPT_GQ
(
  id            NUMBER not null,
  szd           NUMBER,
  ssgk          NUMBER,
  gqmc          VARCHAR2(400),
  gqszsylx      VARCHAR2(400),
  gqmj          VARCHAR2(400),
  lymj          VARCHAR2(400),
  syfw          VARCHAR2(400),
  symj          VARCHAR2(400),
  gqghmj        VARCHAR2(400),
  ghlymj        VARCHAR2(400),
  fgyscydghmj   VARCHAR2(400),
  ghsymj        VARCHAR2(400),
  gqzraxcd      VARCHAR2(400),
  gymtaxcd      VARCHAR2(400),
  gqgkaxcd      VARCHAR2(400),
  gkssysyaxcd   VARCHAR2(400),
  gqdmbdzdz     VARCHAR2(400),
  bz            VARCHAR2(400),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_GQ
  is '港区';
comment on column T_YJPT_GQ.id
  is 'ID';
comment on column T_YJPT_GQ.szd
  is '所在地';
comment on column T_YJPT_GQ.ssgk
  is '所属港口';
comment on column T_YJPT_GQ.gqmc
  is '港区名称';
comment on column T_YJPT_GQ.gqszsylx
  is '港区所在水域类型　字典表　沿海 河流 湖泊 水库';
comment on column T_YJPT_GQ.gqmj
  is '港区面积(万平方米)';
comment on column T_YJPT_GQ.lymj
  is '陆域面积(万平方米)';
comment on column T_YJPT_GQ.syfw
  is '水域范围';
comment on column T_YJPT_GQ.symj
  is '水域面积(万平方米)';
comment on column T_YJPT_GQ.gqghmj
  is '港区规划面积(万平方米)';
comment on column T_YJPT_GQ.ghlymj
  is '规划陆域面积(万平方米)';
comment on column T_YJPT_GQ.fgyscydghmj
  is '非工业生产用地规划面积(万平方米)';
comment on column T_YJPT_GQ.ghsymj
  is '规划水域面积(万平方米)';
comment on column T_YJPT_GQ.gqzraxcd
  is '港区自然岸线长度(米)';
comment on column T_YJPT_GQ.gymtaxcd
  is '公用码头岸线长度(米)';
comment on column T_YJPT_GQ.gqgkaxcd
  is '港区港口岸线长度(米)';
comment on column T_YJPT_GQ.gkssysyaxcd
  is '港口设施已使用岸线长度(米)';
comment on column T_YJPT_GQ.gqdmbdzdz
  is '港区地面坡度最大值';
comment on column T_YJPT_GQ.bz
  is '备注';
comment on column T_YJPT_GQ.add_user
  is '创建人';
comment on column T_YJPT_GQ.add_date
  is '创建时间';
comment on column T_YJPT_GQ.update_user
  is '修改人';
comment on column T_YJPT_GQ.update_date
  is '修改时间';
comment on column T_YJPT_GQ.record_status
  is '删除状态';
comment on column T_YJPT_GQ.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GQ.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GQ.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GQ.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GQ.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_GQ
  add constraint T_YJPT_GQ_PK primary key (ID);





create table T_YJPT_GQNWXYDJBAB
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  dw            NUMBER,
  dwdz          VARCHAR2(400),
  yzbm          VARCHAR2(100),
  fdtbr         VARCHAR2(100),
  jbr           VARCHAR2(100),
  lxdh          VARCHAR2(100),
  cz            VARCHAR2(100),
  basj          TIMESTAMP(6),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  babh          VARCHAR2(100),
  bamc          VARCHAR2(100),
  bayxq         TIMESTAMP(6),
  bh 			VARCHAR2(50),
  sqhxly 	VARCHAR2(500)
)
;
comment on table T_YJPT_GQNWXYDJBAB
  is '港区内储存剧毒化学品和港口重大危险源登记备案表';
comment on column T_YJPT_GQNWXYDJBAB.id
  is 'ID';
comment on column T_YJPT_GQNWXYDJBAB.szd
  is '所在地';
comment on column T_YJPT_GQNWXYDJBAB.gq
  is '港区';
comment on column T_YJPT_GQNWXYDJBAB.dwdz
  is '单位地址';
comment on column T_YJPT_GQNWXYDJBAB.yzbm
  is '邮政编码';
comment on column T_YJPT_GQNWXYDJBAB.fdtbr
  is '法定代表人';
comment on column T_YJPT_GQNWXYDJBAB.jbr
  is '经办人';
comment on column T_YJPT_GQNWXYDJBAB.lxdh
  is '联系电话';
comment on column T_YJPT_GQNWXYDJBAB.cz
  is '传真';
comment on column T_YJPT_GQNWXYDJBAB.basj
  is '备案时间';
comment on column T_YJPT_GQNWXYDJBAB.add_user
  is '创建人';
comment on column T_YJPT_GQNWXYDJBAB.add_date
  is '创建时间';
comment on column T_YJPT_GQNWXYDJBAB.update_user
  is '修改人';
comment on column T_YJPT_GQNWXYDJBAB.update_date
  is '修改时间';
comment on column T_YJPT_GQNWXYDJBAB.record_status
  is '删除状态';
comment on column T_YJPT_GQNWXYDJBAB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GQNWXYDJBAB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GQNWXYDJBAB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GQNWXYDJBAB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GQNWXYDJBAB.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_GQNWXYDJBAB.babh
  is '备案编号';
comment on column T_YJPT_GQNWXYDJBAB.bamc
  is '备案名称';
comment on column T_YJPT_GQNWXYDJBAB.bayxq
  is '备案有效期';
comment on column T_YJPT_GQNWXYDJBAB.bh
  is '编号'; 
comment on column T_YJPT_GQNWXYDJBAB.sqhxly
  is '申请核销理由';
alter table T_YJPT_GQNWXYDJBAB
  add constraint PK_T_YJPT_GQNWXYDJBAB primary key (ID);





create table T_YJPT_GQNWXYXXQKB
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  dwmc          VARCHAR2(400),
  jylx          NUMBER,
  wxppz         NUMBER,
  wxpsl         NUMBER,
  gyjsb         VARCHAR2(100),
  cscq          VARCHAR2(100),
  wxybh         VARCHAR2(100),
  cgqmc         VARCHAR2(400),
  jtwz          VARCHAR2(100),
  cgqmj         VARCHAR2(100),
  cggs          NUMBER,
  cgmc          VARCHAR2(400),
  cgxh          VARCHAR2(100),
  ywfhd         NUMBER,
  gjzxjl        VARCHAR2(100),
  cgcl          NUMBER,
  cgrj          VARCHAR2(100),
  cgxs          NUMBER,
  cgazxs        VARCHAR2(100),
  wzzt          NUMBER,
  cgxz          NUMBER,
  sjyl          VARCHAR2(100),
  sjgzyl        VARCHAR2(100),
  sjwd          VARCHAR2(100),
  sjgzwd        VARCHAR2(100),
  tcsj          TIMESTAMP(6),
  sjsynx        VARCHAR2(100),
  jlfs          NUMBER,
  clfs          NUMBER,
  sfnj          NUMBER,
  zsbh          VARCHAR2(100),
  lxdh          VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  whzyfzbh      NUMBER,
  qyccbh        NUMBER,
  record_code   VARCHAR2(30)
)
;
comment on table T_YJPT_GQNWXYXXQKB
  is '港区内储存剧毒化学品或港口重大危险源详细情况表';
comment on column T_YJPT_GQNWXYXXQKB.id
  is 'ID';
comment on column T_YJPT_GQNWXYXXQKB.szd
  is '所在地';
comment on column T_YJPT_GQNWXYXXQKB.gq
  is '港区';
comment on column T_YJPT_GQNWXYXXQKB.dwmc
  is '单位名称';
comment on column T_YJPT_GQNWXYXXQKB.jylx
  is '生产经营活动类型';
comment on column T_YJPT_GQNWXYXXQKB.wxppz
  is '危险品品种';
comment on column T_YJPT_GQNWXYXXQKB.wxpsl
  is '危险品数量';
comment on column T_YJPT_GQNWXYXXQKB.gyjsb
  is '装卸工艺及主要设备';
comment on column T_YJPT_GQNWXYXXQKB.cscq
  is '储存场所产权';
comment on column T_YJPT_GQNWXYXXQKB.wxybh
  is '港口重大危险源编号';
comment on column T_YJPT_GQNWXYXXQKB.cgqmc
  is '储罐区名称';
comment on column T_YJPT_GQNWXYXXQKB.jtwz
  is '具体位置';
comment on column T_YJPT_GQNWXYXXQKB.cgqmj
  is '储罐区面积';
comment on column T_YJPT_GQNWXYXXQKB.cggs
  is '储罐个数';
comment on column T_YJPT_GQNWXYXXQKB.cgmc
  is '储罐名称';
comment on column T_YJPT_GQNWXYXXQKB.cgxh
  is '储罐序号';
comment on column T_YJPT_GQNWXYXXQKB.ywfhd
  is '有无防护堤';
comment on column T_YJPT_GQNWXYXXQKB.gjzxjl
  is '罐间最小距离';
comment on column T_YJPT_GQNWXYXXQKB.cgcl
  is '储罐材质';
comment on column T_YJPT_GQNWXYXXQKB.cgrj
  is '储罐容积';
comment on column T_YJPT_GQNWXYXXQKB.cgxs
  is '储罐形式';
comment on column T_YJPT_GQNWXYXXQKB.cgazxs
  is '储罐安装形式';
comment on column T_YJPT_GQNWXYXXQKB.wzzt
  is '物质状态';
comment on column T_YJPT_GQNWXYXXQKB.cgxz
  is '储罐形状';
comment on column T_YJPT_GQNWXYXXQKB.sjyl
  is '设计压力（MPa）';
comment on column T_YJPT_GQNWXYXXQKB.sjgzyl
  is '实际工作压力（MPa）';
comment on column T_YJPT_GQNWXYXXQKB.sjwd
  is '设计温度（。C）';
comment on column T_YJPT_GQNWXYXXQKB.sjgzwd
  is '实际工作温度（。C）';
comment on column T_YJPT_GQNWXYXXQKB.tcsj
  is '投产时间';
comment on column T_YJPT_GQNWXYXXQKB.sjsynx
  is '设计使用年限';
comment on column T_YJPT_GQNWXYXXQKB.jlfs
  is '进料方式';
comment on column T_YJPT_GQNWXYXXQKB.clfs
  is '出料方式';
comment on column T_YJPT_GQNWXYXXQKB.sfnj
  is '防雷防静电设施是否年检';
comment on column T_YJPT_GQNWXYXXQKB.zsbh
  is '证书编号';
comment on column T_YJPT_GQNWXYXXQKB.lxdh
  is '联系电话';
comment on column T_YJPT_GQNWXYXXQKB.add_user
  is '创建人';
comment on column T_YJPT_GQNWXYXXQKB.add_date
  is '创建时间';
comment on column T_YJPT_GQNWXYXXQKB.update_user
  is '修改人';
comment on column T_YJPT_GQNWXYXXQKB.update_date
  is '修改时间';
comment on column T_YJPT_GQNWXYXXQKB.record_status
  is '删除状态';
comment on column T_YJPT_GQNWXYXXQKB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GQNWXYXXQKB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GQNWXYXXQKB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GQNWXYXXQKB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GQNWXYXXQKB.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_GQNWXYXXQKB.whzyfzbh
  is '危货作业附证编号';
comment on column T_YJPT_GQNWXYXXQKB.qyccbh
  is '企业储存编号';
alter table T_YJPT_GQNWXYXXQKB
  add constraint PK_T_YJPT_GQNWXYXXQKB primary key (ID);





create table T_YJPT_GQNWXYZBHJJBQK
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  lxdh          VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  record_code   VARCHAR2(30)
)
;
comment on table T_YJPT_GQNWXYZBHJJBQK
  is '港区内储存剧毒化学品和港口重大危险源周边环境基本情况';
comment on column T_YJPT_GQNWXYZBHJJBQK.id
  is 'ID';
comment on column T_YJPT_GQNWXYZBHJJBQK.szd
  is '所在地';
comment on column T_YJPT_GQNWXYZBHJJBQK.gq
  is '港区';
comment on column T_YJPT_GQNWXYZBHJJBQK.lxdh
  is '联系电话';
comment on column T_YJPT_GQNWXYZBHJJBQK.add_user
  is '创建人';
comment on column T_YJPT_GQNWXYZBHJJBQK.add_date
  is '创建时间';
comment on column T_YJPT_GQNWXYZBHJJBQK.update_user
  is '修改人';
comment on column T_YJPT_GQNWXYZBHJJBQK.update_date
  is '修改时间';
comment on column T_YJPT_GQNWXYZBHJJBQK.record_status
  is '删除状态';
comment on column T_YJPT_GQNWXYZBHJJBQK.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GQNWXYZBHJJBQK.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GQNWXYZBHJJBQK.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GQNWXYZBHJJBQK.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GQNWXYZBHJJBQK.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_GQNWXYZBHJJBQK
  add constraint PK_T_YJPT_GQNWXYZBHJJBQK primary key (ID);





create table T_YJPT_GQNWXYZBHJQK
(
  id            NUMBER not null,
  zbid          NUMBER,
  szd           NUMBER,
  gq            NUMBER,
  dwlx          NUMBER,
  sl            NUMBER,
  dwmc          VARCHAR2(400),
  ywxyzjjl      VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  record_code   VARCHAR2(30)
)
;
comment on table T_YJPT_GQNWXYZBHJQK
  is '港区内储存剧毒化学品和港口重大危险源周边环境情况"单位类型"存到公用代码表中';
comment on column T_YJPT_GQNWXYZBHJQK.id
  is 'ID';
comment on column T_YJPT_GQNWXYZBHJQK.zbid
  is '主表ID';
comment on column T_YJPT_GQNWXYZBHJQK.szd
  is '所在地';
comment on column T_YJPT_GQNWXYZBHJQK.gq
  is '港区';
comment on column T_YJPT_GQNWXYZBHJQK.dwlx
  is '单位类型';
comment on column T_YJPT_GQNWXYZBHJQK.sl
  is '数量（个）';
comment on column T_YJPT_GQNWXYZBHJQK.dwmc
  is '单位名称';
comment on column T_YJPT_GQNWXYZBHJQK.ywxyzjjl
  is '与危险源最近距离';
comment on column T_YJPT_GQNWXYZBHJQK.add_user
  is '创建人';
comment on column T_YJPT_GQNWXYZBHJQK.add_date
  is '创建时间';
comment on column T_YJPT_GQNWXYZBHJQK.update_user
  is '修改人';
comment on column T_YJPT_GQNWXYZBHJQK.update_date
  is '修改时间';
comment on column T_YJPT_GQNWXYZBHJQK.record_status
  is '删除状态';
comment on column T_YJPT_GQNWXYZBHJQK.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GQNWXYZBHJQK.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GQNWXYZBHJQK.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GQNWXYZBHJQK.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GQNWXYZBHJQK.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_GQNWXYZBHJQK
  add constraint PK_T_YJPT_GQNWXYZBHJQK primary key (ID);





create table T_YJPT_GQNWXYZLB
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  djbid         NUMBER,
  lxdh          VARCHAR2(50),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  record_code   VARCHAR2(30)
)
;
comment on column T_YJPT_GQNWXYZLB.szd
  is '所在地';
comment on column T_YJPT_GQNWXYZLB.gq
  is '港区';
comment on column T_YJPT_GQNWXYZLB.djbid
  is '所属登记表ID';
comment on column T_YJPT_GQNWXYZLB.lxdh
  is '联系电话';
comment on column T_YJPT_GQNWXYZLB.add_user
  is '创建人';
comment on column T_YJPT_GQNWXYZLB.add_date
  is '创建时间';
comment on column T_YJPT_GQNWXYZLB.update_user
  is '修改人';
comment on column T_YJPT_GQNWXYZLB.update_date
  is '修改时间';
comment on column T_YJPT_GQNWXYZLB.record_status
  is '删除状态';
comment on column T_YJPT_GQNWXYZLB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GQNWXYZLB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GQNWXYZLB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GQNWXYZLB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GQNWXYZLB.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_GQNWXYZLB
  add constraint PK_T_YJPT_GQNWXYZLB primary key (ID);





create table T_YJPT_GQ_MT
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  mtmc          VARCHAR2(100),
  nhwtgnl       NUMBER,
  sjhwttl       NUMBER,
  sjlkttl       NUMBER,
  nlktgnl       NUMBER,
  njzxtgnl      NUMBER,
  mtsjqyss      NUMBER,
  sndttl        NUMBER,
  gisid         NUMBER,
  zyhl          VARCHAR2(17),
  mtyt          VARCHAR2(14),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  jyr           NUMBER
)
;
comment on table T_YJPT_GQ_MT
  is '码头信息';
comment on column T_YJPT_GQ_MT.id
  is 'ID';
comment on column T_YJPT_GQ_MT.szd
  is '所在地';
comment on column T_YJPT_GQ_MT.gq
  is '港区';
comment on column T_YJPT_GQ_MT.mtmc
  is '码头名称';
comment on column T_YJPT_GQ_MT.nhwtgnl
  is '年货物通过能力';
comment on column T_YJPT_GQ_MT.sjhwttl
  is '设计货物吞吐量';
comment on column T_YJPT_GQ_MT.sjlkttl
  is '设计旅客吞吐量';
comment on column T_YJPT_GQ_MT.nlktgnl
  is '年旅客通过能力';
comment on column T_YJPT_GQ_MT.njzxtgnl
  is '年集装箱通过能力';
comment on column T_YJPT_GQ_MT.mtsjqyss
  is '码头设计前沿水深';
comment on column T_YJPT_GQ_MT.sndttl
  is '上年度吞吐量';
comment on column T_YJPT_GQ_MT.gisid
  is 'GISID';
comment on column T_YJPT_GQ_MT.zyhl
  is '主要货类';
comment on column T_YJPT_GQ_MT.mtyt
  is '码头用途';
comment on column T_YJPT_GQ_MT.add_user
  is '创建人';
comment on column T_YJPT_GQ_MT.add_date
  is '创建时间';
comment on column T_YJPT_GQ_MT.update_user
  is '修改人';
comment on column T_YJPT_GQ_MT.update_date
  is '修改时间';
comment on column T_YJPT_GQ_MT.record_status
  is '删除状态';
comment on column T_YJPT_GQ_MT.sftb
  is '是否同步';
comment on column T_YJPT_GQ_MT.tbzt
  is '同步状态';
comment on column T_YJPT_GQ_MT.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GQ_MT.qylb
  is '区域类别';
comment on column T_YJPT_GQ_MT.ssqy
  is '所属区域';
comment on column T_YJPT_GQ_MT.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_GQ_MT.byzd1
  is 'BYZD1';
comment on column T_YJPT_GQ_MT.byzd2
  is 'BYZD2';
comment on column T_YJPT_GQ_MT.byzd3
  is 'BYZD3';
comment on column T_YJPT_GQ_MT.byzd4
  is 'BYZD4';
comment on column T_YJPT_GQ_MT.byzd5
  is 'BYZD5';
alter table T_YJPT_GQ_MT
  add constraint PK_T_YJPT_GQ_MT primary key (ID);





create table T_YJPT_GZTX
(
  id            NUMBER not null,
  txsj          DATE,
  txzt          CHAR(1),
  txnr          VARCHAR2(4000),
  bdid          VARCHAR2(400),
  bdlx          VARCHAR2(100),
  jsr           NUMBER,
  fsr           NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  bustype       VARCHAR2(50),
  SZD NUMBER
)
;
comment on table T_YJPT_GZTX
  is '工作提醒';
comment on column T_YJPT_GZTX.id
  is 'ID';
comment on column T_YJPT_GZTX.txsj
  is '提醒时间';
comment on column T_YJPT_GZTX.txzt
  is '提醒状态， Y开始 N关闭';
comment on column T_YJPT_GZTX.txnr
  is '提醒内容';
comment on column T_YJPT_GZTX.bdid
  is '附件ID或业务id';
comment on column T_YJPT_GZTX.bdlx
  is '附件种类';
comment on column T_YJPT_GZTX.jsr
  is '接收人';
comment on column T_YJPT_GZTX.fsr
  is '发送人';
comment on column T_YJPT_GZTX.add_user
  is '创建人';
comment on column T_YJPT_GZTX.add_date
  is '创建时间';
comment on column T_YJPT_GZTX.update_user
  is '修改人';
comment on column T_YJPT_GZTX.update_date
  is '修改时间';
comment on column T_YJPT_GZTX.record_status
  is '删除状态';
comment on column T_YJPT_GZTX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GZTX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GZTX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GZTX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GZTX.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_GZTX.bustype
  is '业务类型';
alter table T_YJPT_GZTX
  add constraint T_YJPT_GZTX_PK primary key (ID);





create table T_YJPT_JJXX
(
  id      NUMBER not null,
  sgsj    TIMESTAMP(6),
  sgdd    VARCHAR2(40),
  sgwz    VARCHAR2(40),
  sglx    VARCHAR2(40),
  sgqy    VARCHAR2(120),
  sggm    VARCHAR2(120),
  rysw    VARCHAR2(40),
  xcjy    VARCHAR2(80),
  bjr     VARCHAR2(10),
  bjrlxfs VARCHAR2(15)
)
;
comment on table T_YJPT_JJXX
  is ' 接警信息表';
comment on column T_YJPT_JJXX.id
  is '主键ID';
comment on column T_YJPT_JJXX.sgsj
  is '事故时间 ';
comment on column T_YJPT_JJXX.sgdd
  is '事故地点 ';
comment on column T_YJPT_JJXX.sgwz
  is '事故位置 ';
comment on column T_YJPT_JJXX.sglx
  is '事故类型';
comment on column T_YJPT_JJXX.sgqy
  is '事故起因';
comment on column T_YJPT_JJXX.sggm
  is '事故规模 ';
comment on column T_YJPT_JJXX.rysw
  is '事故规模 ';
comment on column T_YJPT_JJXX.xcjy
  is '现场救援 ';
comment on column T_YJPT_JJXX.bjr
  is '报警人 ';
comment on column T_YJPT_JJXX.bjrlxfs
  is '报警人联系方式  ';
alter table T_YJPT_JJXX
  add constraint PK_T_YJPT_JJXX primary key (ID);





create table T_YJPT_JSFXXWH
(
  id            NUMBER not null,
  name          VARCHAR2(255) not null,
  dwlb          VARCHAR2(120),
  szd           NUMBER,
  szgq          NUMBER,
  addr          VARCHAR2(255),
  fzr           VARCHAR2(10),
  lxr           VARCHAR2(20),
  tel           VARCHAR2(16),
  fax           VARCHAR2(16),
  email         VARCHAR2(100),
  pc            VARCHAR2(16),
  brief         VARCHAR2(255),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on column T_YJPT_JSFXXWH.id
  is '自动增长主键SEQ_T_YJPT_JSFXXWH';
comment on column T_YJPT_JSFXXWH.name
  is '单位名称';
comment on column T_YJPT_JSFXXWH.dwlb
  is '单位类别';
comment on column T_YJPT_JSFXXWH.szd
  is '所在地';
comment on column T_YJPT_JSFXXWH.szgq
  is '所在港区';
comment on column T_YJPT_JSFXXWH.addr
  is '地址';
comment on column T_YJPT_JSFXXWH.fzr
  is 'fzr';
comment on column T_YJPT_JSFXXWH.lxr
  is '联系人';
comment on column T_YJPT_JSFXXWH.tel
  is '电话';
comment on column T_YJPT_JSFXXWH.fax
  is '传真';
comment on column T_YJPT_JSFXXWH.email
  is '电子邮箱';
comment on column T_YJPT_JSFXXWH.pc
  is '邮编';
comment on column T_YJPT_JSFXXWH.brief
  is '单位情况简介';
comment on column T_YJPT_JSFXXWH.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_JSFXXWH.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_JSFXXWH.tbdyid
  is '同步对应ID';
comment on column T_YJPT_JSFXXWH.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_JSFXXWH.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_JSFXXWH.add_user
  is '创建人';
comment on column T_YJPT_JSFXXWH.add_date
  is '创建时间';
comment on column T_YJPT_JSFXXWH.update_user
  is '修改人';
comment on column T_YJPT_JSFXXWH.update_date
  is '修改时间';
comment on column T_YJPT_JSFXXWH.record_status
  is '删除状态';
comment on column T_YJPT_JSFXXWH.record_code
  is '记录角色编码';
comment on column T_YJPT_JSFXXWH.byzd1
  is '备用字段1';
comment on column T_YJPT_JSFXXWH.byzd2
  is '备用字段2';
comment on column T_YJPT_JSFXXWH.byzd3
  is '备用字段3';
comment on column T_YJPT_JSFXXWH.byzd4
  is '备用字段4';
comment on column T_YJPT_JSFXXWH.byzd5
  is '备用字段5';
alter table T_YJPT_JSFXXWH
  add primary key (ID);





create table T_YJPT_JSXMAQSC
(
  id            NUMBER not null,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  sftb          CHAR(1),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  szd           NUMBER,
  xmmc          VARCHAR2(200),
  sqdw          VARCHAR2(200),
  sqrq          TIMESTAMP(6),
  fzr           VARCHAR2(20),
  lb            VARCHAR2(20),
  lxr           VARCHAR2(20),
  dhhcz         VARCHAR2(200),
  sqsx          VARCHAR2(200),
  dwdz          VARCHAR2(200),
  yb            VARCHAR2(20),
  gcdz          VARCHAR2(200),
  gcqsj         TIMESTAMP(6),
  gczsj         TIMESTAMP(6),
  gkjsxmgk      VARCHAR2(2000),
  zywxhwpm      VARCHAR2(2000),
  szgq          NUMBER,
  gkjsdwmc      VARCHAR2(200),
  bh            VARCHAR2(20),
  jsdw          NUMBER
)
;
comment on table T_YJPT_JSXMAQSC
  is '建设项目安全审查表';
comment on column T_YJPT_JSXMAQSC.id
  is '主键';
comment on column T_YJPT_JSXMAQSC.add_user
  is '创建人';
comment on column T_YJPT_JSXMAQSC.add_date
  is '创建时间';
comment on column T_YJPT_JSXMAQSC.update_user
  is '修改人';
comment on column T_YJPT_JSXMAQSC.update_date
  is '修改时间';
comment on column T_YJPT_JSXMAQSC.record_status
  is '删除状态';
comment on column T_YJPT_JSXMAQSC.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_JSXMAQSC.tbdyid
  is '同步对应ID';
comment on column T_YJPT_JSXMAQSC.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_JSXMAQSC.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_JSXMAQSC.sftb
  is '是否同步';
comment on column T_YJPT_JSXMAQSC.szd
  is '所在地';
comment on column T_YJPT_JSXMAQSC.xmmc
  is '项目名称';
comment on column T_YJPT_JSXMAQSC.sqdw
  is '申请单位';
comment on column T_YJPT_JSXMAQSC.sqrq
  is '申请日期';
comment on column T_YJPT_JSXMAQSC.fzr
  is '负责人';
comment on column T_YJPT_JSXMAQSC.lb
  is '类别';
comment on column T_YJPT_JSXMAQSC.lxr
  is '联系人';
comment on column T_YJPT_JSXMAQSC.dhhcz
  is '电话和传真';
comment on column T_YJPT_JSXMAQSC.sqsx
  is '申请事项';
comment on column T_YJPT_JSXMAQSC.dwdz
  is '单位地址';
comment on column T_YJPT_JSXMAQSC.yb
  is '邮编';
comment on column T_YJPT_JSXMAQSC.gcdz
  is '工程地址';
comment on column T_YJPT_JSXMAQSC.gcqsj
  is '工程起时间';
comment on column T_YJPT_JSXMAQSC.gczsj
  is '工程止时间';
comment on column T_YJPT_JSXMAQSC.gkjsxmgk
  is '港口建设项目概况';
comment on column T_YJPT_JSXMAQSC.zywxhwpm
  is '装卸、储存主要危险货物品名';
comment on column T_YJPT_JSXMAQSC.szgq
  is '所在港区';
comment on column T_YJPT_JSXMAQSC.gkjsdwmc
  is '港口建设项目安全条件审查';
comment on column T_YJPT_JSXMAQSC.bh
  is '编号';
comment on column T_YJPT_JSXMAQSC.jsdw
  is '建设单位';
alter table T_YJPT_JSXMAQSC
  add constraint T_YJPT_JSXMAQSC_PK primary key (ID);





create table T_YJPT_JYRBWXX
(
  id               NUMBER(22) not null,
  bwmc             VARCHAR2(400),
  ssjyrid          NUMBER(22),
  szgqid           NUMBER(22),
  szmtid           NUMBER(22),
  bwsx             NUMBER(22),
  bwxs             NUMBER,
  bwzyyt           NUMBER(22),
  zyhbwfl          NUMBER(22),
  mtqysjss         NUMBER(22),
  mtqywhss         NUMBER(22),
  sjkbnl           NUMBER(22),
  jgkbnl           NUMBER(22),
  hckbnl           NUMBER(22),
  bwcd             NUMBER(22),
  hcnlxztj         VARCHAR2(400),
  bwlyl            NUMBER(22),
  sjnzhtgnlszjz    NUMBER(22),
  sjnzhtgnljzxwteu NUMBER(22),
  sjnzhtgnljzxwd   NUMBER(22),
  sjnzhtgnlgzwbl   NUMBER(22),
  sjnzhtgnlgzj     NUMBER(22),
  sjnzhtgnllk      NUMBER(22),
  hcnzhtgnlszjz    NUMBER(22),
  hcnzhtgnljzxwteu NUMBER(22),
  hcnzhtgnljzxwd   NUMBER(22),
  hcnzhtgnlgzwbl   NUMBER(22),
  hcnzhtgnlgzj     NUMBER(22),
  hcnzhtgnllk      NUMBER(22),
  gsnzhtgnlszjz    NUMBER(22),
  gsnzhtgnljzxwteu NUMBER(22),
  gsnzhtgnljzxwd   NUMBER(22),
  gsnzhtgnlgzwbl   NUMBER(22),
  gsnzhtgnlgzj     NUMBER(22),
  gsnzhtgnllk      NUMBER(22),
  bz               VARCHAR2(1000),
  szgq             NUMBER,
  szd              NUMBER,
  add_user         VARCHAR2(50),
  add_date         TIMESTAMP(6),
  update_user      VARCHAR2(50),
  update_date      TIMESTAMP(6),
  record_status    NUMBER default 0,
  sftb             CHAR(1),
  tbzt             CHAR(2),
  tbdyid           NUMBER,
  qylb             CHAR(1),
  ssqy             NUMBER,
  bwxs1            NUMBER,
  record_code      VARCHAR2(30),
  byzd1            VARCHAR2(100),
  byzd2            VARCHAR2(100),
  byzd3            VARCHAR2(100),
  byzd4            VARCHAR2(100),
  byzd5            VARCHAR2(100)
)
;
alter table T_YJPT_JYRBWXX
  add constraint T_YJPT_JYRBWXX_PK primary key (ID);





create table T_YJPT_JYRDRYXX
(
  id            NUMBER not null,
  xm            VARCHAR2(400),
  xb            CHAR(1),
  zwhzc         VARCHAR2(400),
  lxdh          VARCHAR2(400),
  sjhm          VARCHAR2(400),
  ssjyr         NUMBER,
  csrq          DATE,
  sfkdl         CHAR(1),
  sftb          CHAR(1),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  gkjyr         VARCHAR2(1000),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  fzzy_id       NUMBER,
  sfzh          VARCHAR2(30),
  zsmc          VARCHAR2(100),
  zsbh          VARCHAR2(100),
  fzbm          VARCHAR2(100),
  yxq           TIMESTAMP(6),
  zszl          NUMBER,
  szd           NUMBER,
  ssgq          NUMBER,
  rylx          NUMBER,
  bz            VARCHAR2(2000),
  zjlx				NUMBER
)
;
comment on table T_YJPT_JYRDRYXX
  is '经营人的人员信息';
comment on column T_YJPT_JYRDRYXX.id
  is 'ID';
comment on column T_YJPT_JYRDRYXX.xm
  is '姓名';
comment on column T_YJPT_JYRDRYXX.xb
  is '性别　男0　女1';
comment on column T_YJPT_JYRDRYXX.zwhzc
  is '职务或职称';
comment on column T_YJPT_JYRDRYXX.lxdh
  is '联系电话';
comment on column T_YJPT_JYRDRYXX.sjhm
  is '手机号码';
comment on column T_YJPT_JYRDRYXX.ssjyr
  is '所属经营人';
comment on column T_YJPT_JYRDRYXX.csrq
  is '出生日期';
comment on column T_YJPT_JYRDRYXX.sfkdl
  is '是否可登陆 , 是0　否1';
comment on column T_YJPT_JYRDRYXX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_JYRDRYXX.add_user
  is '创建人';
comment on column T_YJPT_JYRDRYXX.add_date
  is '创建时间';
comment on column T_YJPT_JYRDRYXX.update_user
  is '修改人';
comment on column T_YJPT_JYRDRYXX.update_date
  is '修改时间';
comment on column T_YJPT_JYRDRYXX.record_status
  is '删除状态';
comment on column T_YJPT_JYRDRYXX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_JYRDRYXX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_JYRDRYXX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_JYRDRYXX.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_JYRDRYXX.gkjyr
  is '港口经营人名称';
comment on column T_YJPT_JYRDRYXX.fzzy_id
  is '附证作业关联Id';
comment on column T_YJPT_JYRDRYXX.sfzh
  is '身份证号';
comment on column T_YJPT_JYRDRYXX.zsmc
  is '证书名称';
comment on column T_YJPT_JYRDRYXX.zsbh
  is '证书编号';
comment on column T_YJPT_JYRDRYXX.fzbm
  is '发证部门';
comment on column T_YJPT_JYRDRYXX.yxq
  is '有效期';
comment on column T_YJPT_JYRDRYXX.zszl
  is '证书种类';
comment on column T_YJPT_JYRDRYXX.szd
  is '所在地';
comment on column T_YJPT_JYRDRYXX.ssgq
  is '所属港区';
comment on column T_YJPT_JYRDRYXX.rylx
  is '人员类型';
comment on column T_YJPT_JYRDRYXX.bz
  is '备注';
comment on column T_YJPT_JYRDRYXX.zjlx
  is '证件类型';
alter table T_YJPT_JYRDRYXX
  add constraint T_YJPT_JYRDRYXX_PK primary key (ID);





create table T_YJPT_JYRJCXX
(
  id            NUMBER not null,
  szd           NUMBER,
  szgq          NUMBER,
  gkjyr         VARCHAR2(200),
  qyxz          VARCHAR2(20),
  yzbm          VARCHAR2(400),
  bgdz          VARCHAR2(1000),
  gkjyxkzh      VARCHAR2(400),
  fzrq          TIMESTAMP(6),
  fzjg          VARCHAR2(400),
  jyfw          VARCHAR2(4000),
  jyqy          VARCHAR2(2000),
  zyhz          VARCHAR2(200),
  fddbr         VARCHAR2(400),
  lxdh          VARCHAR2(400),
  cz            VARCHAR2(400),
  aqbmfzr       VARCHAR2(400),
  aqfzrlxdh     VARCHAR2(400),
  aqfzrsj       VARCHAR2(400),
  gsyyzzbh      VARCHAR2(400),
  tzze          NUMBER,
  zczb          NUMBER,
  gkwxhwzyfzbh  VARCHAR2(400),
  gkssbafhzsbh  VARCHAR2(400),
  bafzjg        VARCHAR2(400),
  bafzrq        TIMESTAMP(6),
  bayxq         TIMESTAMP(6),
  zywxhwpm      VARCHAR2(2000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(200),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  sfwhqy        CHAR(1),
  qylx          CHAR(1),
  fzyxq         TIMESTAMP(6),
  qyzzjgdm      VARCHAR2(50),
  sshydl        NUMBER,
  sshyz         NUMBER,
  qyaqdj        CHAR(1),
  rs            NUMBER,
  aqzgbm        VARCHAR2(50),
  aqgljg        VARCHAR2(50),
  zzagrysl      NUMBER,
  zcze          VARCHAR2(20),
  xsje          VARCHAR2(20),
  aqfzrzbdh     VARCHAR2(20),
  gjjgdm        VARCHAR2(20),
  sfzdsp        CHAR(1) default 'N' not null,
  parent_jyr_id   NUMBER,
  xzqh              NUMBER
  zdspsjq   TIMESTAMP(6),
  zdspsjz   TIMESTAMP(6)
)
;
comment on table T_YJPT_JYRJCXX
  is '经营人基础信息';
comment on column T_YJPT_JYRJCXX.id
  is 'ID';
comment on column T_YJPT_JYRJCXX.szd
  is '所在地';
comment on column T_YJPT_JYRJCXX.szgq
  is '所在港区';
comment on column T_YJPT_JYRJCXX.gkjyr
  is '港口经营人名称';
comment on column T_YJPT_JYRJCXX.qyxz
  is '企业性质';
comment on column T_YJPT_JYRJCXX.yzbm
  is '邮政编码';
comment on column T_YJPT_JYRJCXX.bgdz
  is '办公地址';
comment on column T_YJPT_JYRJCXX.gkjyxkzh
  is '港口经营许可证号';
comment on column T_YJPT_JYRJCXX.fzrq
  is '发证日期';
comment on column T_YJPT_JYRJCXX.fzjg
  is '发证机关';
comment on column T_YJPT_JYRJCXX.jyfw
  is '经营范围';
comment on column T_YJPT_JYRJCXX.jyqy
  is '经营区域';
comment on column T_YJPT_JYRJCXX.zyhz
  is '主营货种';
comment on column T_YJPT_JYRJCXX.fddbr
  is '法定代表人';
comment on column T_YJPT_JYRJCXX.lxdh
  is '联系电话';
comment on column T_YJPT_JYRJCXX.cz
  is '传真';
comment on column T_YJPT_JYRJCXX.aqbmfzr
  is '安全部门负责人';
comment on column T_YJPT_JYRJCXX.aqfzrlxdh
  is '安全部门负责人联系电话';
comment on column T_YJPT_JYRJCXX.aqfzrsj
  is '安全部门负责人手机';
comment on column T_YJPT_JYRJCXX.gsyyzzbh
  is '工商营业执照编号';
comment on column T_YJPT_JYRJCXX.tzze
  is '投资总额';
comment on column T_YJPT_JYRJCXX.zczb
  is '注册资本';
comment on column T_YJPT_JYRJCXX.gkwxhwzyfzbh
  is '港口危险货物作业附证编号';
comment on column T_YJPT_JYRJCXX.gkssbafhzsbh
  is '港口设施保安符合证书编号	 港口设施保安符合证书编号';
comment on column T_YJPT_JYRJCXX.bafzjg
  is '保安符合证书发证机关';
comment on column T_YJPT_JYRJCXX.bafzrq
  is '保安符合证书发证日期';
comment on column T_YJPT_JYRJCXX.bayxq
  is '保安符合证书有效期至';
comment on column T_YJPT_JYRJCXX.zywxhwpm
  is '作业危险货物品名';
comment on column T_YJPT_JYRJCXX.add_user
  is '创建人';
comment on column T_YJPT_JYRJCXX.add_date
  is '创建时间';
comment on column T_YJPT_JYRJCXX.update_user
  is '修改人';
comment on column T_YJPT_JYRJCXX.update_date
  is '修改时间';
comment on column T_YJPT_JYRJCXX.record_status
  is '删除状态';
comment on column T_YJPT_JYRJCXX.sftb
  is '是否同步';
comment on column T_YJPT_JYRJCXX.tbzt
  is '同步状态';
comment on column T_YJPT_JYRJCXX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_JYRJCXX.qylb
  is '区域类别';
comment on column T_YJPT_JYRJCXX.ssqy
  is '所属区域';
comment on column T_YJPT_JYRJCXX.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_JYRJCXX.byzd1
  is 'BYZD1';
comment on column T_YJPT_JYRJCXX.byzd2
  is 'BYZD2';
comment on column T_YJPT_JYRJCXX.byzd3
  is 'BYZD3';
comment on column T_YJPT_JYRJCXX.byzd4
  is 'BYZD4';
comment on column T_YJPT_JYRJCXX.byzd5
  is 'BYZD5';
comment on column T_YJPT_JYRJCXX.sfwhqy
  is '是否危货企业';
comment on column T_YJPT_JYRJCXX.qylx
  is '企业类型';
comment on column T_YJPT_JYRJCXX.fzyxq
  is '附证有效期';
comment on column T_YJPT_JYRJCXX.qyzzjgdm
  is '企业组织机构代码';
comment on column T_YJPT_JYRJCXX.sshydl
  is '所属行业大类';
comment on column T_YJPT_JYRJCXX.sshyz
  is '所属行业中类';
comment on column T_YJPT_JYRJCXX.qyaqdj
  is '企业安全等级';
comment on column T_YJPT_JYRJCXX.rs
  is '人数';
comment on column T_YJPT_JYRJCXX.aqzgbm
  is '安全主管部门';
comment on column T_YJPT_JYRJCXX.aqgljg
  is '安全管理机构';
comment on column T_YJPT_JYRJCXX.zzagrysl
  is '专职安管人员数量';
comment on column T_YJPT_JYRJCXX.zcze
  is '资产总额';
comment on column T_YJPT_JYRJCXX.xsje
  is '销售金额';
comment on column T_YJPT_JYRJCXX.aqfzrzbdh
  is '安全负责人值班电话';
comment on column T_YJPT_JYRJCXX.gjjgdm
  is '国际机构代码';
comment on column T_YJPT_JYRJCXX.sfzdsp
  is '是否自动审批';
comment on column T_YJPT_JYRJCXX.parent_jyr_id
  is '上级港口经营人';
comment on column T_YJPT_JYRJCXX.xzqh
  is '行政区划';
alter table T_YJPT_JYRJCXX
  add constraint PK_T_YJPT_JYRJCXX primary key (ID);





create table T_YJPT_JYRWXHWZYCS
(
  id            NUMBER not null,
  ssjyr         NUMBER,
  zycs          VARCHAR2(40),
  fzcsbh        VARCHAR2(40),
  qynbbh        VARCHAR2(40),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  szgq          NUMBER,
  szd           NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_JYRWXHWZYCS
  is '危险货物作业场所';
comment on column T_YJPT_JYRWXHWZYCS.id
  is 'ID';
comment on column T_YJPT_JYRWXHWZYCS.zycs
  is '作业场所';
comment on column T_YJPT_JYRWXHWZYCS.fzcsbh
  is '附证场所编号';
comment on column T_YJPT_JYRWXHWZYCS.qynbbh
  is '企业内部编号';
comment on column T_YJPT_JYRWXHWZYCS.add_user
  is '创建人';
comment on column T_YJPT_JYRWXHWZYCS.add_date
  is '创建时间';
comment on column T_YJPT_JYRWXHWZYCS.update_user
  is '修改人';
comment on column T_YJPT_JYRWXHWZYCS.update_date
  is '修改时间';
comment on column T_YJPT_JYRWXHWZYCS.record_status
  is '删除状态';
comment on column T_YJPT_JYRWXHWZYCS.sftb
  is '是否同步';
comment on column T_YJPT_JYRWXHWZYCS.tbzt
  is '同步状态';
comment on column T_YJPT_JYRWXHWZYCS.tbdyid
  is '同步对应ID';
comment on column T_YJPT_JYRWXHWZYCS.qylb
  is '区域类别';
comment on column T_YJPT_JYRWXHWZYCS.ssqy
  is '所属区域';
comment on column T_YJPT_JYRWXHWZYCS.szgq
  is '所在港区';
comment on column T_YJPT_JYRWXHWZYCS.szd
  is '所在地';
comment on column T_YJPT_JYRWXHWZYCS.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_JYRWXHWZYCS.byzd1
  is 'BYZD1';
comment on column T_YJPT_JYRWXHWZYCS.byzd2
  is 'BYZD2';
comment on column T_YJPT_JYRWXHWZYCS.byzd3
  is 'BYZD3';
comment on column T_YJPT_JYRWXHWZYCS.byzd4
  is 'BYZD4';
comment on column T_YJPT_JYRWXHWZYCS.byzd5
  is 'BYZD5';
alter table T_YJPT_JYRWXHWZYCS
  add constraint PK_T_YJPT_JYRWXHWZYCS primary key (ID);





create table T_YJPT_JYRXX_BW
(
  id            NUMBER not null,
  szd           NUMBER,
  szgq          NUMBER,
  qymc          NUMBER,
  mtmc          NUMBER,
  bwmc          VARCHAR2(100),
  bwsx          NUMBER,
  bwszsx        NUMBER,
  fwlx          NUMBER,
  tcnf          NUMBER,
  jgxs          NUMBER,
  sclx          NUMBER,
  jgysnf        NUMBER,
  qysjsh        VARCHAR2(100),
  qysjss        VARCHAR2(100),
  bwcd          VARCHAR2(100),
  wxpbw         CHAR(1),
  sjtgnl        VARCHAR2(100),
  sjkpnl        VARCHAR2(100),
  nhwtgml       VARCHAR2(100),
  nwxhwttl      VARCHAR2(100),
  zyhbwfl       NUMBER,
  jd            VARCHAR2(30),
  wd            VARCHAR2(30),
  sffz          CHAR(1),
  bwyt          VARCHAR2(30),
  zyrkfw        VARCHAR2(400),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  jtjgisdyidh   VARCHAR2(40),
  hckpnl        VARCHAR2(100),
  zwbwyt        VARCHAR2(250),
  smid VARCHAR2(32 BYTE),
  bwdm VARCHAR2(10)  
);
comment on column T_YJPT_JYRXX_BW.id  is 'ID';
comment on column T_YJPT_JYRXX_BW.szd  is '所在地';
comment on column T_YJPT_JYRXX_BW.szgq  is '所在港区';
comment on column T_YJPT_JYRXX_BW.qymc  is '企业名称';
comment on column T_YJPT_JYRXX_BW.mtmc  is '码头名称';
comment on column T_YJPT_JYRXX_BW.bwmc  is '泊位名称';
comment on column T_YJPT_JYRXX_BW.bwsx  is '泊位属性';
comment on column T_YJPT_JYRXX_BW.bwszsx  is '泊位所在水系';
comment on column T_YJPT_JYRXX_BW.fwlx  is '服务类型';
comment on column T_YJPT_JYRXX_BW.tcnf  is '投产年份';
comment on column T_YJPT_JYRXX_BW.jgxs  is '结构型式';
comment on column T_YJPT_JYRXX_BW.sclx  is '生产类型';
comment on column T_YJPT_JYRXX_BW.jgysnf  is '竣工验收年份';
comment on column T_YJPT_JYRXX_BW.qysjsh  is '前沿设计水深';
comment on column T_YJPT_JYRXX_BW.qysjss  is '前沿实际水深';
comment on column T_YJPT_JYRXX_BW.bwcd  is '泊位长度';
comment on column T_YJPT_JYRXX_BW.wxpbw  is '危险品泊位';
comment on column T_YJPT_JYRXX_BW.sjtgnl  is '设计通过能力';
comment on column T_YJPT_JYRXX_BW.sjkpnl  is '设计靠泊能力（吨级）';
comment on column T_YJPT_JYRXX_BW.nhwtgml  is '年货物通过能力';
comment on column T_YJPT_JYRXX_BW.nwxhwttl  is '年危险货物吞吐量';
comment on column T_YJPT_JYRXX_BW.zyhbwfl  is '专业化泊位分类';
comment on column T_YJPT_JYRXX_BW.jd  is '经度';
comment on column T_YJPT_JYRXX_BW.wd  is '纬度';
comment on column T_YJPT_JYRXX_BW.sffz  is '是否发证';
comment on column T_YJPT_JYRXX_BW.bwyt  is '泊位用途';
comment on column T_YJPT_JYRXX_BW.zyrkfw  is '作业认可范围';
comment on column T_YJPT_JYRXX_BW.add_user  is '创建人';
comment on column T_YJPT_JYRXX_BW.add_date  is '创建时间';
comment on column T_YJPT_JYRXX_BW.update_user  is '修改人';
comment on column T_YJPT_JYRXX_BW.update_date  is '修改时间';
comment on column T_YJPT_JYRXX_BW.record_status  is '删除状态';
comment on column T_YJPT_JYRXX_BW.sftb  is '是否同步';
comment on column T_YJPT_JYRXX_BW.tbzt  is '同步状态';
comment on column T_YJPT_JYRXX_BW.tbdyid  is '同步对应ID';
comment on column T_YJPT_JYRXX_BW.qylb  is '区域类别';
comment on column T_YJPT_JYRXX_BW.ssqy  is '所属区域';
comment on column T_YJPT_JYRXX_BW.record_code  is 'RECORD_CODE';
comment on column T_YJPT_JYRXX_BW.byzd1  is 'BYZD1';
comment on column T_YJPT_JYRXX_BW.byzd2  is 'BYZD2';
comment on column T_YJPT_JYRXX_BW.byzd3  is 'BYZD3';
comment on column T_YJPT_JYRXX_BW.byzd4  is 'BYZD4';
comment on column T_YJPT_JYRXX_BW.hckpnl  is '核查靠泊能力';
comment on column T_YJPT_JYRXX_BW.zwbwyt  is '泊位用途显示';
comment on column T_YJPT_JYRXX_BW.smid is '地图ID';
comment on column T_YJPT_JYRXX_BW.bwdm is '海事泊位代码';
alter table T_YJPT_JYRXX_BW
  add constraint PK_T_YJPT_BW primary key (ID);





create table T_YJPT_JYRXX_CK
(
  id            NUMBER not null,
  ssjyr         NUMBER,
  szd           NUMBER,
  gq            NUMBER,
  mt            NUMBER,
  qymc          VARCHAR2(200),
  ckmc          VARCHAR2(200),
  wxpck         VARCHAR2(1),
  ckyt          VARCHAR2(7),
  ckgs          NUMBER,
  ythgcgrj      NUMBER,
  scyckmj       NUMBER,
  wxpckmj       NUMBER,
  scyckrj       NUMBER,
  ykrj          NUMBER,
  cpyrj         NUMBER,
  gisid         NUMBER,
  jd            VARCHAR2(20),
  wd            VARCHAR2(20),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zwckyt        VARCHAR2(200)
)
;
comment on table T_YJPT_JYRXX_CK
  is '仓库信息';
comment on column T_YJPT_JYRXX_CK.id
  is 'ID';
comment on column T_YJPT_JYRXX_CK.ssjyr
  is '所属经营人';
comment on column T_YJPT_JYRXX_CK.szd
  is '所在地(港口)';
comment on column T_YJPT_JYRXX_CK.gq
  is '港区';
comment on column T_YJPT_JYRXX_CK.mt
  is '码头';
comment on column T_YJPT_JYRXX_CK.qymc
  is '企业名称';
comment on column T_YJPT_JYRXX_CK.ckmc
  is '仓库名称';
comment on column T_YJPT_JYRXX_CK.wxpck
  is '危险品仓库';
comment on column T_YJPT_JYRXX_CK.ckyt
  is '仓库用途';
comment on column T_YJPT_JYRXX_CK.ckgs
  is '仓库个数';
comment on column T_YJPT_JYRXX_CK.ythgcgrj
  is '液体化工储罐容积';
comment on column T_YJPT_JYRXX_CK.scyckmj
  is '生产用仓库面积';
comment on column T_YJPT_JYRXX_CK.wxpckmj
  is '危险品仓库面积';
comment on column T_YJPT_JYRXX_CK.scyckrj
  is '生产用仓库容积';
comment on column T_YJPT_JYRXX_CK.ykrj
  is '油库容积';
comment on column T_YJPT_JYRXX_CK.cpyrj
  is '成品油容积';
comment on column T_YJPT_JYRXX_CK.gisid
  is '交通局GIS对应ID号';
comment on column T_YJPT_JYRXX_CK.jd
  is '经度';
comment on column T_YJPT_JYRXX_CK.wd
  is '纬度';
comment on column T_YJPT_JYRXX_CK.add_user
  is '创建人';
comment on column T_YJPT_JYRXX_CK.add_date
  is '创建时间';
comment on column T_YJPT_JYRXX_CK.update_user
  is '修改人';
comment on column T_YJPT_JYRXX_CK.update_date
  is '修改时间';
comment on column T_YJPT_JYRXX_CK.record_status
  is '删除状态';
comment on column T_YJPT_JYRXX_CK.sftb
  is '是否同步';
comment on column T_YJPT_JYRXX_CK.tbzt
  is '同步状态';
comment on column T_YJPT_JYRXX_CK.tbdyid
  is '同步对应ID';
comment on column T_YJPT_JYRXX_CK.qylb
  is '区域类别';
comment on column T_YJPT_JYRXX_CK.ssqy
  is '所属区域';
comment on column T_YJPT_JYRXX_CK.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_JYRXX_CK.byzd1
  is 'BYZD1';
comment on column T_YJPT_JYRXX_CK.byzd2
  is 'BYZD2';
comment on column T_YJPT_JYRXX_CK.byzd3
  is 'BYZD3';
comment on column T_YJPT_JYRXX_CK.byzd4
  is 'BYZD4';
comment on column T_YJPT_JYRXX_CK.byzd5
  is 'BYZD5';
comment on column T_YJPT_JYRXX_CK.zwckyt
  is '仓库用途显示';
alter table T_YJPT_JYRXX_CK
  add constraint PK_T_YJPT_JYRXX_CK primary key (ID);





create table T_YJPT_JYRXX_DC
(
  id            NUMBER not null,
  szd           NUMBER,
  szgq          NUMBER,
  qymc          NUMBER,
  mtmc          NUMBER,
  dcmc          VARCHAR2(100),
  scydcyt       VARCHAR2(100),
  dczmj         NUMBER,
  dczrl         NUMBER,
  jzxmj         NUMBER,
  jzxdcdcnl     NUMBER,
  wxpxdcmj      NUMBER,
  wxpxdcdcnl    NUMBER,
  jd            VARCHAR2(30),
  wd            VARCHAR2(30),
  jtjgisdyidh   VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  wxpdc         CHAR(1),
  byzd5         VARCHAR2(100),
  zwdcyt        VARCHAR2(200)
)
;
comment on column T_YJPT_JYRXX_DC.id
  is 'ID';
comment on column T_YJPT_JYRXX_DC.szd
  is '所在地';
comment on column T_YJPT_JYRXX_DC.szgq
  is '所在港区';
comment on column T_YJPT_JYRXX_DC.qymc
  is '企业名称';
comment on column T_YJPT_JYRXX_DC.mtmc
  is '码头名称';
comment on column T_YJPT_JYRXX_DC.dcmc
  is '堆场名称';
comment on column T_YJPT_JYRXX_DC.scydcyt
  is '堆场用途';
comment on column T_YJPT_JYRXX_DC.dczmj
  is '堆场总面积（平方米）';
comment on column T_YJPT_JYRXX_DC.dczrl
  is '堆场总容量（吨）';
comment on column T_YJPT_JYRXX_DC.jzxmj
  is '集装箱堆场面积（平方米）';
comment on column T_YJPT_JYRXX_DC.jzxdcdcnl
  is '集装箱堆场堆存面积（平方米）';
comment on column T_YJPT_JYRXX_DC.wxpxdcmj
  is '危险品堆场面积（平方米）';
comment on column T_YJPT_JYRXX_DC.wxpxdcdcnl
  is '危险品堆场堆存能力（TEU）';
comment on column T_YJPT_JYRXX_DC.jd
  is '经度';
comment on column T_YJPT_JYRXX_DC.wd
  is '纬度';
comment on column T_YJPT_JYRXX_DC.jtjgisdyidh
  is '交通局GIS对应ID号';
comment on column T_YJPT_JYRXX_DC.add_user
  is '创建人';
comment on column T_YJPT_JYRXX_DC.add_date
  is '创建时间';
comment on column T_YJPT_JYRXX_DC.update_user
  is '修改人';
comment on column T_YJPT_JYRXX_DC.update_date
  is '修改时间';
comment on column T_YJPT_JYRXX_DC.record_status
  is '删除状态';
comment on column T_YJPT_JYRXX_DC.sftb
  is '是否同步';
comment on column T_YJPT_JYRXX_DC.tbzt
  is '同步状态';
comment on column T_YJPT_JYRXX_DC.tbdyid
  is '同步对应ID';
comment on column T_YJPT_JYRXX_DC.qylb
  is '区域类别';
comment on column T_YJPT_JYRXX_DC.ssqy
  is '所属区域';
comment on column T_YJPT_JYRXX_DC.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_JYRXX_DC.byzd1
  is 'BYZD1';
comment on column T_YJPT_JYRXX_DC.byzd2
  is 'BYZD2';
comment on column T_YJPT_JYRXX_DC.byzd3
  is 'BYZD3';
comment on column T_YJPT_JYRXX_DC.byzd4
  is 'BYZD4';
comment on column T_YJPT_JYRXX_DC.wxpdc
  is '危险品堆场';
comment on column T_YJPT_JYRXX_DC.byzd5
  is 'BYZD5';
comment on column T_YJPT_JYRXX_DC.zwdcyt
  is '堆场用途显示';
alter table T_YJPT_JYRXX_DC
  add constraint PK_T_YJPT_JYRXX_DC primary key (ID);





create table T_YJPT_JYRXX_NSB
(
  id            NUMBER not null,
  nsid          NUMBER,
  jyr           NUMBER,
  nsr           VARCHAR2(50),
  nssj          DATE,
  nsyj          VARCHAR2(200),
  nsjg          VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  nsns          NUMBER,
  byzd5         VARCHAR2(100),
  fzbh          VARCHAR2(100),
  SZD NUMBER
)
;
comment on column T_YJPT_JYRXX_NSB.fzbh
  is '附证编号';
alter table T_YJPT_JYRXX_NSB
  add constraint PK_T_YJPT_JYR_NSB primary key (ID);





create table T_YJPT_JZYJJYDWRYHZ
(
  id            NUMBER not null,
  xh            NUMBER,
  qymc          VARCHAR2(50),
  xm            VARCHAR2(50),
  nl            NUMBER,
  sj            VARCHAR2(50),
  gzgw          VARCHAR2(50),
  jytc          VARCHAR2(50),
  add_user      NUMBER,
  add_date      TIMESTAMP(6),
  update_user   NUMBER,
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_JZYJJYDWRYHZ
  is '专业应急救援队伍 子表（兼职队伍的人员列表）';
alter table T_YJPT_JZYJJYDWRYHZ
  add constraint T_YJPT_JZYJJYDWRYHZ_PK primary key (ID);





create table T_YJPT_LOG
(
  id            NUMBER not null,
  menu_code     NUMBER,
  log_user      NUMBER,
  session_id    VARCHAR2(100),
  step          NUMBER(22,2),
  log_time      DATE,
  log_method    VARCHAR2(100),
  log_result    CHAR(1),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  logout_time   DATE,
  business_id   VARCHAR2(200),
  SZD NUMBER
)
;
comment on column T_YJPT_LOG.id
  is 'ID';
comment on column T_YJPT_LOG.menu_code
  is '菜单编号';
comment on column T_YJPT_LOG.log_user
  is '操作用户';
comment on column T_YJPT_LOG.session_id
  is 'SESSION ID';
comment on column T_YJPT_LOG.step
  is '操作步骤';
comment on column T_YJPT_LOG.log_time
  is '操作时间';
comment on column T_YJPT_LOG.log_method
  is '调用方法';
comment on column T_YJPT_LOG.log_result
  is '返回结果，1：成功；0：失败';
comment on column T_YJPT_LOG.add_user
  is '创建人';
comment on column T_YJPT_LOG.add_date
  is '创建时间';
comment on column T_YJPT_LOG.update_user
  is '修改人';
comment on column T_YJPT_LOG.update_date
  is '修改时间';
comment on column T_YJPT_LOG.record_status
  is '删除状态';
comment on column T_YJPT_LOG.sftb
  is '是否同步';
comment on column T_YJPT_LOG.tbzt
  is '同步状态';
comment on column T_YJPT_LOG.tbdyid
  is '同步对应ID';
comment on column T_YJPT_LOG.qylb
  is '区域类别';
comment on column T_YJPT_LOG.ssqy
  is '所属区域';
comment on column T_YJPT_LOG.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_LOG.byzd1
  is 'BYZD1';
comment on column T_YJPT_LOG.byzd2
  is 'BYZD2';
comment on column T_YJPT_LOG.byzd3
  is 'BYZD3';
comment on column T_YJPT_LOG.byzd4
  is 'BYZD4';
comment on column T_YJPT_LOG.byzd5
  is 'BYZD5';
comment on column T_YJPT_LOG.logout_time
  is '登出时间';
comment on column T_YJPT_LOG.business_id
  is '业务ID';
alter table T_YJPT_LOG
  add primary key (ID);





create table T_YJPT_MEM
(
  id          NUMBER not null,
  r_num       NUMBER,
  r_char      VARCHAR2(255),
  type        VARCHAR2(10),
  userid      NUMBER,
  update_time TIMESTAMP(0)
)
;
comment on column T_YJPT_MEM.id
  is '主键，自增';
comment on column T_YJPT_MEM.r_num
  is '数字型关联字段';
comment on column T_YJPT_MEM.r_char
  is '字符串型管理字段';
comment on column T_YJPT_MEM.type
  is '记忆类型，一般与功能对应';
comment on column T_YJPT_MEM.userid
  is '用户ID';
comment on column T_YJPT_MEM.update_time
  is '更新时间，可用于排序';
alter table T_YJPT_MEM
  add constraint T_YJPT_MEM_PK primary key (ID);





create table T_YJPT_MENU
(
  id            NUMBER not null,
  t_y_id        NUMBER,
  name          VARCHAR2(50),
  code          VARCHAR2(16),
  type          VARCHAR2(1) not null,
  path          VARCHAR2(100),
  pid           NUMBER,
  order_no      NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  branch        CHAR(1),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on column T_YJPT_MENU.t_y_id
  is 'ID';
comment on column T_YJPT_MENU.name
  is '功能名称';
comment on column T_YJPT_MENU.code
  is '功能ID';
comment on column T_YJPT_MENU.type
  is '类型,0:主菜单;1:普通应用;2:地图应用;3:菜单按钮';
comment on column T_YJPT_MENU.path
  is '功能路径';
comment on column T_YJPT_MENU.pid
  is '父ID';
comment on column T_YJPT_MENU.order_no
  is '排序';
comment on column T_YJPT_MENU.add_user
  is '创建人';
comment on column T_YJPT_MENU.add_date
  is '创建时间';
comment on column T_YJPT_MENU.update_user
  is '修改人';
comment on column T_YJPT_MENU.update_date
  is '修改时间';
comment on column T_YJPT_MENU.record_status
  is '删除状态';
comment on column T_YJPT_MENU.branch
  is '是否分支';
comment on column T_YJPT_MENU.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_MENU.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_MENU.tbdyid
  is '同步对应ID';
comment on column T_YJPT_MENU.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_MENU.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_MENU
  add constraint T_YJPT_MENU_PK primary key (ID);





create table T_YJPT_MT
(
  id            NUMBER not null,
  gkjyr         NUMBER,
  gkmtmc        VARCHAR2(50),
  szgq          NUMBER,
  mtqysjss      VARCHAR2(50),
  bwgs          VARCHAR2(50),
  mtyt          VARCHAR2(50),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
alter table T_YJPT_MT
  add constraint T_YJPT_MT_PK primary key (ID);





create table T_YJPT_NORULE
(
  no_rule_type VARCHAR2(20) not null,
  perfix       VARCHAR2(20) not null,
  suffix       VARCHAR2(20) not null,
  separator    VARCHAR2(1),
  digit        NUMBER default 3 not null,
  remark       VARCHAR2(100)
)
;
comment on column T_YJPT_NORULE.no_rule_type
  is '编号规则类型';
comment on column T_YJPT_NORULE.perfix
  is '编号前缀';
comment on column T_YJPT_NORULE.suffix
  is '编号后缀，如yyyyMM或yyMMdd之类';
comment on column T_YJPT_NORULE.separator
  is '分隔符';
comment on column T_YJPT_NORULE.digit
  is '数字位数<=10';
comment on column T_YJPT_NORULE.remark
  is '备注';
alter table T_YJPT_NORULE
  add primary key (NO_RULE_TYPE);





create table T_YJPT_QSK
(
  id            NUMBER not null,
  tbdw          VARCHAR2(40),
  tbsj          DATE,
  qskmc         VARCHAR2(40),
  dlwzzb        VARCHAR2(40),
  lxdh          VARCHAR2(40),
  gldw          VARCHAR2(40),
  pjqsl         NUMBER,
  yt            VARCHAR2(40),
  szyq          VARCHAR2(40),
  gyrk          NUMBER,
  tbr           VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  szd           NUMBER,
  ssqy          NUMBER,
  gq            NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  mapid         NUMBER
)
;
comment on table T_YJPT_QSK
  is '取水口信息';
comment on column T_YJPT_QSK.id
  is 'id';
comment on column T_YJPT_QSK.tbdw
  is '填报单位';
comment on column T_YJPT_QSK.tbsj
  is '填报时间';
comment on column T_YJPT_QSK.qskmc
  is '取水口名称';
comment on column T_YJPT_QSK.dlwzzb
  is '地理位置坐标';
comment on column T_YJPT_QSK.lxdh
  is '联系电话';
comment on column T_YJPT_QSK.gldw
  is '管理单位';
comment on column T_YJPT_QSK.pjqsl
  is '平均取水量';
comment on column T_YJPT_QSK.yt
  is '用途';
comment on column T_YJPT_QSK.szyq
  is '水质要求';
comment on column T_YJPT_QSK.gyrk
  is '供应人口';
comment on column T_YJPT_QSK.tbr
  is '填报人';
comment on column T_YJPT_QSK.add_user
  is 'ADD_USER';
comment on column T_YJPT_QSK.add_date
  is 'ADD_DATE';
comment on column T_YJPT_QSK.update_user
  is 'UPDATE_USER';
comment on column T_YJPT_QSK.update_date
  is 'UPDATE_DATE';
comment on column T_YJPT_QSK.record_status
  is 'RECORD_STATUS';
comment on column T_YJPT_QSK.sftb
  is 'SFTB';
comment on column T_YJPT_QSK.tbzt
  is 'TBZT';
comment on column T_YJPT_QSK.tbdyid
  is 'TBDYID';
comment on column T_YJPT_QSK.qylb
  is 'QYLB';
comment on column T_YJPT_QSK.szd
  is 'SZD';
comment on column T_YJPT_QSK.ssqy
  is 'SSQY';
comment on column T_YJPT_QSK.gq
  is 'GQ';
comment on column T_YJPT_QSK.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_QSK.byzd1
  is 'BYZD1';
comment on column T_YJPT_QSK.byzd2
  is 'BYZD2';
comment on column T_YJPT_QSK.byzd3
  is 'BYZD3';
comment on column T_YJPT_QSK.byzd4
  is 'BYZD4';
comment on column T_YJPT_QSK.byzd5
  is 'BYZD5';
alter table T_YJPT_QSK
  add constraint PK_T_YJPT_QSK primary key (ID);





create table T_YJPT_ROLE
(
  id            NUMBER not null,
  code          VARCHAR2(30),
  name          VARCHAR2(50),
  remark        VARCHAR2(200),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  role_type     VARCHAR2(10),
  SZD NUMBER
)
;
comment on column T_YJPT_ROLE.code
  is '角色编号';
comment on column T_YJPT_ROLE.name
  is '角色名称';
comment on column T_YJPT_ROLE.remark
  is '备注';
comment on column T_YJPT_ROLE.add_user
  is '创建人';
comment on column T_YJPT_ROLE.add_date
  is '创建时间';
comment on column T_YJPT_ROLE.update_user
  is '修改人';
comment on column T_YJPT_ROLE.update_date
  is '修改时间';
comment on column T_YJPT_ROLE.record_status
  is '删除状态';
comment on column T_YJPT_ROLE.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_ROLE.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_ROLE.tbdyid
  is '同步对应ID';
comment on column T_YJPT_ROLE.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_ROLE.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_ROLE.record_code
  is '记录代码';
comment on column T_YJPT_ROLE.byzd1
  is '备用字段1';
comment on column T_YJPT_ROLE.byzd2
  is '备用字段2';
comment on column T_YJPT_ROLE.byzd3
  is '备用字段3';
comment on column T_YJPT_ROLE.byzd4
  is '备用字段4';
comment on column T_YJPT_ROLE.byzd5
  is '备用字段5';
alter table T_YJPT_ROLE
  add constraint T_YJPT_ROLE_PK primary key (ID);





create table T_YJPT_ROLE_BUTTON
(
  role   NUMBER not null,
  button NUMBER not null
)
;
alter table T_YJPT_ROLE_BUTTON
  add constraint T_YJPT_ROLE_BUTTON_PK primary key (ROLE, BUTTON);





create table T_YJPT_ROLE_MENU
(
  role NUMBER(19) not null,
  menu NUMBER(19) not null
)
;
alter table T_YJPT_ROLE_MENU
  add constraint T_YJPT_ROLE_MENU_PK primary key (ROLE, MENU);





create table T_YJPT_ROLE_USER
(
  roleid NUMBER not null,
  userid NUMBER not null
)
;
alter table T_YJPT_ROLE_USER
  add constraint T_YJPT_ROLE_USER_PK primary key (ROLEID, USERID);





create table T_YJPT_RYQKHZ
(
  id            NUMBER not null,
  xm            VARCHAR2(20),
  sfzh          VARCHAR2(40),
  qymc          VARCHAR2(40),
  zw            VARCHAR2(40),
  rylx          VARCHAR2(40),
  bz            VARCHAR2(400),
  szgq          NUMBER,
  szd           NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_RYQKHZ
  is '人员情况汇总表';
comment on column T_YJPT_RYQKHZ.id
  is 'ID';
comment on column T_YJPT_RYQKHZ.xm
  is '姓名';
comment on column T_YJPT_RYQKHZ.sfzh
  is '身份证号';
comment on column T_YJPT_RYQKHZ.qymc
  is '企业名称';
comment on column T_YJPT_RYQKHZ.zw
  is '职务';
comment on column T_YJPT_RYQKHZ.rylx
  is '人员类型';
comment on column T_YJPT_RYQKHZ.bz
  is '备注';
comment on column T_YJPT_RYQKHZ.szgq
  is '所在港区';
comment on column T_YJPT_RYQKHZ.szd
  is '所在地';
comment on column T_YJPT_RYQKHZ.add_user
  is '创建人';
comment on column T_YJPT_RYQKHZ.add_date
  is '创建时间';
comment on column T_YJPT_RYQKHZ.update_user
  is '修改人';
comment on column T_YJPT_RYQKHZ.update_date
  is '修改时间';
comment on column T_YJPT_RYQKHZ.record_status
  is '删除状态';
comment on column T_YJPT_RYQKHZ.sftb
  is 'SFTB';
comment on column T_YJPT_RYQKHZ.tbzt
  is 'TBZT';
comment on column T_YJPT_RYQKHZ.tbdyid
  is 'TBDYID';
comment on column T_YJPT_RYQKHZ.qylb
  is 'QYLB';
comment on column T_YJPT_RYQKHZ.ssqy
  is 'SSQY';
comment on column T_YJPT_RYQKHZ.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_RYQKHZ.byzd1
  is 'BYZD1';
comment on column T_YJPT_RYQKHZ.byzd2
  is 'BYZD2';
comment on column T_YJPT_RYQKHZ.byzd3
  is 'BYZD3';
comment on column T_YJPT_RYQKHZ.byzd4
  is 'BYZD4';
comment on column T_YJPT_RYQKHZ.byzd5
  is 'BYZD5';
alter table T_YJPT_RYQKHZ
  add constraint PK_T_YJPT_RYQKHZ primary key (ID);





create table T_YJPT_RYQKHZ_ZS
(
  id            NUMBER not null,
  ryid          VARCHAR2(40),
  zsmc          VARCHAR2(100),
  zszl          VARCHAR2(40),
  zsbh          VARCHAR2(40),
  yxq           DATE,
  bz            VARCHAR2(400),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_RYQKHZ_ZS
  is '人员情况汇总表子表——证书表';
comment on column T_YJPT_RYQKHZ_ZS.id
  is 'ID';
comment on column T_YJPT_RYQKHZ_ZS.ryid
  is '身份证号';
comment on column T_YJPT_RYQKHZ_ZS.zsmc
  is '证书名称';
comment on column T_YJPT_RYQKHZ_ZS.zszl
  is '证书种类';
comment on column T_YJPT_RYQKHZ_ZS.zsbh
  is '证书编号';
comment on column T_YJPT_RYQKHZ_ZS.yxq
  is '有效期';
comment on column T_YJPT_RYQKHZ_ZS.bz
  is '备注';
comment on column T_YJPT_RYQKHZ_ZS.add_user
  is '创建人';
comment on column T_YJPT_RYQKHZ_ZS.add_date
  is '创建时间';
comment on column T_YJPT_RYQKHZ_ZS.update_user
  is '修改人';
comment on column T_YJPT_RYQKHZ_ZS.update_date
  is '修改时间';
comment on column T_YJPT_RYQKHZ_ZS.record_status
  is '删除状态';
comment on column T_YJPT_RYQKHZ_ZS.sftb
  is 'SFTB';
comment on column T_YJPT_RYQKHZ_ZS.tbzt
  is 'TBZT';
comment on column T_YJPT_RYQKHZ_ZS.tbdyid
  is 'TBDYID';
comment on column T_YJPT_RYQKHZ_ZS.qylb
  is 'QYLB';
comment on column T_YJPT_RYQKHZ_ZS.ssqy
  is 'SSQY';
comment on column T_YJPT_RYQKHZ_ZS.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_RYQKHZ_ZS.byzd1
  is 'BYZD1';
comment on column T_YJPT_RYQKHZ_ZS.byzd2
  is 'BYZD2';
comment on column T_YJPT_RYQKHZ_ZS.byzd3
  is 'BYZD3';
comment on column T_YJPT_RYQKHZ_ZS.byzd4
  is 'BYZD4';
comment on column T_YJPT_RYQKHZ_ZS.byzd5
  is 'BYZD5';
alter table T_YJPT_RYQKHZ_ZS
  add constraint PK_T_YJPT_RYQKHZ_ZS primary key (ID);





create table T_YJPT_SGALGL
(
  id             NUMBER not null,
  gq             NUMBER,
  szd            NUMBER,
  bh             VARCHAR2(100),
  zbjg           VARCHAR2(100),
  pzjg           VARCHAR2(100),
  pzwh           VARCHAR2(100),
  yxqz           TIMESTAMP(6),
  tbdw           VARCHAR2(100),
  accidenttime   TIMESTAMP(6),
  sgfsbw         NUMBER,
  sgdwmc         NUMBER,
  moneyloss      NUMBER,
  deathnum       NUMBER,
  injurynum      NUMBER,
  sgjyjg         VARCHAR2(2000),
  sgyy           VARCHAR2(2000),
  qjjyqk         VARCHAR2(2000),
  personliable   VARCHAR2(50),
  personnum      NUMBER,
  business       VARCHAR2(50),
  linkman        VARCHAR2(50),
  tel            VARCHAR2(50),
  receivecompany VARCHAR2(50),
  phone          VARCHAR2(50),
  fax            VARCHAR2(50),
  chargeman      VARCHAR2(50),
  writeman       VARCHAR2(50),
  linktel        VARCHAR2(50),
  writedate      TIMESTAMP(6),
  add_user       NUMBER,
  add_date       TIMESTAMP(6),
  update_user    NUMBER,
  update_date    TIMESTAMP(6),
  record_status  NUMBER default 0,
  sftb           CHAR(1),
  tbzt           CHAR(1),
  tbdyid         NUMBER,
  qylb           CHAR(1),
  ssqy           NUMBER,
  record_code    VARCHAR2(30),
  byzd1          VARCHAR2(100),
  byzd2          VARCHAR2(100),
  byzd3          VARCHAR2(100),
  byzd4          VARCHAR2(100),
  byzd5          VARCHAR2(100),
  sgdj           NUMBER,
  sglx           NUMBER,
  bwzyyt         NUMBER
)
;
comment on table T_YJPT_SGALGL
  is '事故案例管理';
comment on column T_YJPT_SGALGL.id
  is 'ID';
comment on column T_YJPT_SGALGL.gq
  is '港区（事故发生港区）';
comment on column T_YJPT_SGALGL.szd
  is '所在地（事故发生地市）';
comment on column T_YJPT_SGALGL.bh
  is '表号';
comment on column T_YJPT_SGALGL.zbjg
  is '制表机关';
comment on column T_YJPT_SGALGL.pzjg
  is '批准机关';
comment on column T_YJPT_SGALGL.pzwh
  is '批准文号';
comment on column T_YJPT_SGALGL.yxqz
  is '有效期至';
comment on column T_YJPT_SGALGL.tbdw
  is '填表单位';
comment on column T_YJPT_SGALGL.accidenttime
  is '事故发生时间';
comment on column T_YJPT_SGALGL.sgfsbw
  is '事故发生泊位';
comment on column T_YJPT_SGALGL.sgdwmc
  is '事故单位名称';
comment on column T_YJPT_SGALGL.moneyloss
  is '直接经济损失（万元）';
comment on column T_YJPT_SGALGL.deathnum
  is '死亡人员数量';
comment on column T_YJPT_SGALGL.injurynum
  is '重伤亡人员数量';
comment on column T_YJPT_SGALGL.sgjyjg
  is '事故简要经过';
comment on column T_YJPT_SGALGL.sgyy
  is '事故原因的初步分析';
comment on column T_YJPT_SGALGL.qjjyqk
  is '抢救救援情况';
comment on column T_YJPT_SGALGL.personliable
  is '责任人';
comment on column T_YJPT_SGALGL.personnum
  is '职工人数（人）';
comment on column T_YJPT_SGALGL.business
  is '注册经营业务';
comment on column T_YJPT_SGALGL.linkman
  is '事故单位联系人';
comment on column T_YJPT_SGALGL.tel
  is '联系电话（手机）';
comment on column T_YJPT_SGALGL.receivecompany
  is '报表接受单位';
comment on column T_YJPT_SGALGL.phone
  is '电话';
comment on column T_YJPT_SGALGL.fax
  is '传真';
comment on column T_YJPT_SGALGL.chargeman
  is '单位负责人';
comment on column T_YJPT_SGALGL.writeman
  is '填写人';
comment on column T_YJPT_SGALGL.linktel
  is '联系电话';
comment on column T_YJPT_SGALGL.writedate
  is '填写日期';
comment on column T_YJPT_SGALGL.add_user
  is '创建人';
comment on column T_YJPT_SGALGL.add_date
  is '创建时间';
comment on column T_YJPT_SGALGL.update_user
  is '修改人';
comment on column T_YJPT_SGALGL.update_date
  is '修改时间';
comment on column T_YJPT_SGALGL.record_status
  is '记录状态';
comment on column T_YJPT_SGALGL.sftb
  is '是否同步';
comment on column T_YJPT_SGALGL.tbzt
  is '同步状态';
comment on column T_YJPT_SGALGL.tbdyid
  is '同步对应ID';
comment on column T_YJPT_SGALGL.qylb
  is '区域类别';
comment on column T_YJPT_SGALGL.ssqy
  is '所属区域';
comment on column T_YJPT_SGALGL.record_code
  is '记录代码';
comment on column T_YJPT_SGALGL.byzd1
  is '备用字段1';
comment on column T_YJPT_SGALGL.byzd2
  is '备用字段2';
comment on column T_YJPT_SGALGL.byzd3
  is '备用字段3';
comment on column T_YJPT_SGALGL.byzd4
  is '备用字段4';
comment on column T_YJPT_SGALGL.byzd5
  is '备用字段5';
comment on column T_YJPT_SGALGL.sgdj
  is '事故等级';
comment on column T_YJPT_SGALGL.bwzyyt
  is '泊位用途';
alter table T_YJPT_SGALGL
  add constraint T_YJPT_SGALGL_PKID primary key (ID);





create table T_YJPT_SGALGL_WZDD
(
  id            NUMBER not null,
  wzid          NUMBER,
  ssfl          NUMBER,
  wzfl          NUMBER,
  ssmc          VARCHAR2(400),
  sl            NUMBER,
  ggxh          VARCHAR2(50),
  dj            NUMBER,
  sccj          VARCHAR2(50),
  synx          NUMBER,
  ccrq          DATE,
  gmrq          DATE,
  gldw          VARCHAR2(50),
  cfcs          VARCHAR2(50),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zyfz_id       NUMBER,
  yxq           TIMESTAMP(6),
  sldw          VARCHAR2(10),
  bz            VARCHAR2(50),
  gkdw          NUMBER,
  sgalglid      NUMBER,
  SZD NUMBER
)
;
comment on table T_YJPT_SGALGL_WZDD
  is '事故案例管理物资调度';
comment on column T_YJPT_SGALGL_WZDD.id
  is 'ID';
comment on column T_YJPT_SGALGL_WZDD.wzid
  is '事故案例管理id';
comment on column T_YJPT_SGALGL_WZDD.ssfl
  is '所属分类';
comment on column T_YJPT_SGALGL_WZDD.wzfl
  is '物资分类';
comment on column T_YJPT_SGALGL_WZDD.ssmc
  is '设施名称';
comment on column T_YJPT_SGALGL_WZDD.sl
  is '数量';
comment on column T_YJPT_SGALGL_WZDD.ggxh
  is '规格型号';
comment on column T_YJPT_SGALGL_WZDD.dj
  is '单价';
comment on column T_YJPT_SGALGL_WZDD.sccj
  is '生产厂家';
comment on column T_YJPT_SGALGL_WZDD.synx
  is '使用年限';
comment on column T_YJPT_SGALGL_WZDD.ccrq
  is '出厂日期';
comment on column T_YJPT_SGALGL_WZDD.gmrq
  is '购买日期';
comment on column T_YJPT_SGALGL_WZDD.gldw
  is '管理单位';
comment on column T_YJPT_SGALGL_WZDD.cfcs
  is '存放场所';
comment on column T_YJPT_SGALGL_WZDD.sftb
  is '是否同步';
comment on column T_YJPT_SGALGL_WZDD.tbzt
  is '同步状态';
comment on column T_YJPT_SGALGL_WZDD.tbdyid
  is '同步对应ID';
comment on column T_YJPT_SGALGL_WZDD.qylb
  is '区域类别';
comment on column T_YJPT_SGALGL_WZDD.ssqy
  is '所属区域';
comment on column T_YJPT_SGALGL_WZDD.add_user
  is '记录创建人';
comment on column T_YJPT_SGALGL_WZDD.add_date
  is '记录创建时间';
comment on column T_YJPT_SGALGL_WZDD.update_date
  is '录更新时间';
comment on column T_YJPT_SGALGL_WZDD.yxq
  is '有效期';
comment on column T_YJPT_SGALGL_WZDD.sldw
  is '数量单位';
comment on column T_YJPT_SGALGL_WZDD.bz
  is '备注';
comment on column T_YJPT_SGALGL_WZDD.gkdw
  is '港口单位';
alter table T_YJPT_SGALGL_WZDD
  add constraint T_YJPT_SGALGL_WZDD_PK primary key (ID);





create table T_YJPT_TASK
(
  id             NUMBER not null,
  task_id        VARCHAR2(100),
  bus_id         VARCHAR2(100),
  step           VARCHAR2(10),
  state          VARCHAR2(1),
  start_time     TIMESTAMP(6),
  start_user     VARCHAR2(30),
  curr_name      VARCHAR2(100),
  runner         VARCHAR2(100),
  run_time       TIMESTAMP(6),
  audit_time     TIMESTAMP(6),
  audit_msg      VARCHAR2(2000),
  audit_result   VARCHAR2(100),
  add_user       VARCHAR2(50),
  add_date       TIMESTAMP(6),
  update_user    VARCHAR2(50),
  update_date    TIMESTAMP(6),
  record_status  NUMBER default 0,
  sftb           CHAR(1),
  tbzt           CHAR(1),
  tbdyid         NUMBER,
  qylb           CHAR(1),
  ssqy           NUMBER,
  record_code    VARCHAR2(30),
  byzd1          VARCHAR2(100),
  byzd2          VARCHAR2(100),
  byzd3          VARCHAR2(100),
  byzd4          VARCHAR2(100),
  byzd5          VARCHAR2(100),
  bus_key        VARCHAR2(100),
  audit_user     VARCHAR2(100),
  task_key       VARCHAR2(100),
  role_code      VARCHAR2(60),
  audit_username VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_TASK
  is '工作信息表';
alter table T_YJPT_TASK
  add constraint T_YJPT_TASK_PK primary key (ID);





create table T_YJPT_USER
(
  id                  NUMBER not null,
  code                VARCHAR2(20),
  name                VARCHAR2(100),
  password            VARCHAR2(50),
  add_user            VARCHAR2(50),
  add_date            TIMESTAMP(6),
  update_user         VARCHAR2(50),
  update_date         TIMESTAMP(6),
  record_status       NUMBER default 0,
  jyrryxxid           NUMBER,
  sftb                CHAR(1),
  tbzt                CHAR(1),
  tbdyid              NUMBER,
  qylb                CHAR(1),
  ssqy                NUMBER,
  szcsid              NUMBER,
  szdsmz              VARCHAR2(400),
  ssjgid              NUMBER,
  ssjgmz              VARCHAR2(400),
  sfaqfzr             CHAR(1) default 'N',
  sfyxdl              CHAR(1) default 'N',
  lxdh                VARCHAR2(400),
  cz                  VARCHAR2(400),
  yx                  VARCHAR2(400),
  bgdz                VARCHAR2(400),
  record_code         VARCHAR2(30),
  byzd1               VARCHAR2(100),
  byzd2               VARCHAR2(100),
  byzd3               VARCHAR2(100),
  byzd4               VARCHAR2(400),
  byzd5               VARCHAR2(400),
  sfjyr               CHAR(1) default 'N',
   sfcd               CHAR(1) default 'N',
  sfjcry              CHAR(1) default 'N',
  birth               DATE,
  sex                 VARCHAR2(2),
  political_landscape VARCHAR2(20),
  education           VARCHAR2(20),
  organization        VARCHAR2(20),
  update_type         VARCHAR2(20),
  position            VARCHAR2(20),
  sfyxzysq            CHAR(1) default 'N',
  sfyxckdt            CHAR(1) default 'N' not null,
  aqpjjgid            NUMBER,
  jsdwid              NUMBER,
  SZD NUMBER
)
;
comment on column T_YJPT_USER.code
  is '登录编号';
comment on column T_YJPT_USER.name
  is '用户名';
comment on column T_YJPT_USER.password
  is '密码';
comment on column T_YJPT_USER.add_user
  is '创建人';
comment on column T_YJPT_USER.add_date
  is '创建时间';
comment on column T_YJPT_USER.update_user
  is '修改人';
comment on column T_YJPT_USER.update_date
  is '修改时间';
comment on column T_YJPT_USER.record_status
  is '删除状态';
comment on column T_YJPT_USER.jyrryxxid
  is '经营人的人员信息';
comment on column T_YJPT_USER.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_USER.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_USER.tbdyid
  is '同步对应ID';
comment on column T_YJPT_USER.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_USER.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_USER.szcsid
  is '所在地市ID';
comment on column T_YJPT_USER.szdsmz
  is '所在地市名字';
comment on column T_YJPT_USER.ssjgid
  is '所属机构ID';
comment on column T_YJPT_USER.ssjgmz
  is '所属机构名字';
comment on column T_YJPT_USER.sfaqfzr
  is '是否安全负责人, Y或者N';
comment on column T_YJPT_USER.sfyxdl
  is '是否允许登录 Y或者N';
comment on column T_YJPT_USER.lxdh
  is '联系电话';
comment on column T_YJPT_USER.cz
  is '传真';
comment on column T_YJPT_USER.yx
  is '邮箱';
comment on column T_YJPT_USER.bgdz
  is '办公地址';
comment on column T_YJPT_USER.sfjyr
  is '是否经营人，Y或者N';
comment on column T_YJPT_USER.sfjcry
  is '是否监察人员';
comment on column T_YJPT_USER.sfyxzysq
  is '是否允许作业申请';
comment on column T_YJPT_USER.sfyxckdt
  is '是否允许查看地图';
comment on column T_YJPT_USER.aqpjjgid
  is '安全评价机构ID';
comment on column T_YJPT_USER.jsdwid
  is '建设单位ID';
alter table T_YJPT_USER
  add constraint T_YJPT_USER_PK primary key (ID);





create table T_YJPT_WORKING_CALENDAR
(
  working_date VARCHAR2(8) not null,
  is_working   VARCHAR2(1) default 'N' not null
)
;
comment on column T_YJPT_WORKING_CALENDAR.working_date
  is '工作日YYYYMMDD';
comment on column T_YJPT_WORKING_CALENDAR.is_working
  is '是否工作日(Y/N)';
alter table T_YJPT_WORKING_CALENDAR
  add primary key (WORKING_DATE);





create table T_YJPT_WXHWGKZYRKZNSSQB
(
  id                  NUMBER not null,
  sqdw                VARCHAR2(50),
  dwdz                VARCHAR2(50),
  dwyzbm              NUMBER,
  sycsdz              VARCHAR2(50),
  sycsyzbm            NUMBER,
  zyfzr               VARCHAR2(50),
  lxdh                VARCHAR2(50),
  cyryrs              NUMBER,
  clsj                TIMESTAMP(6),
  jjlx                VARCHAR2(50),
  zzaqscglryrs        NUMBER,
  fgaqfzr             VARCHAR2(50),
  gyxt                VARCHAR2(50),
  yswh                VARCHAR2(200),
  tcrq                TIMESTAMP(6),
  sngdzcjz            NUMBER,
  snxssr              NUMBER,
  yaqsyxkzzsbh        VARCHAR2(200),
  sqxs                NUMBER,
  mc1                 VARCHAR2(50),
  zyfzr1              VARCHAR2(50),
  dz1                 VARCHAR2(50),
  yzbm1               NUMBER,
  zzjgdm              NUMBER,
  zyfzr2              VARCHAR2(50),
  lsgx                VARCHAR2(50),
  qymc                VARCHAR2(50),
  zcdz                VARCHAR2(50),
  sydwxhxppz          VARCHAR2(50),
  jsxmwxjgjhzkj       VARCHAR2(50),
  gbgyjsdaqsctjcszdyx VARCHAR2(50),
  jbr                 VARCHAR2(50),
  blrq                TIMESTAMP(6),
  szd                 NUMBER,
  gq                  NUMBER,
  jbrdh               VARCHAR2(400),
  jbryx               VARCHAR2(400),
  rkzbh               VARCHAR2(1000),
  rkzkssj             DATE,
  rkzjssj             DATE,
  zycs                VARCHAR2(1000),
  sqwxhwzl            VARCHAR2(4000),
  sqdwyj              VARCHAR2(4000),
  sqr                 VARCHAR2(400),
  sqsj                DATE,
  ywksyj              VARCHAR2(4000),
  ywksfzr             VARCHAR2(400),
  ywksrq              DATE,
  ldyj                VARCHAR2(4000),
  ldr                 VARCHAR2(400),
  ldrq                DATE,
  add_user            VARCHAR2(50),
  add_date            TIMESTAMP(6),
  update_user         VARCHAR2(50),
  update_date         TIMESTAMP(6),
  record_status       NUMBER default 0,
  sftb                CHAR(1),
  tbzt                CHAR(1),
  tbdyid              NUMBER,
  qylb                CHAR(1),
  ssqy                NUMBER,
  record_code         VARCHAR2(30),
  byzd1               VARCHAR2(100),
  byzd2               VARCHAR2(100),
  byzd3               VARCHAR2(100),
  byzd4               VARCHAR2(100),
  byzd5               VARCHAR2(100)
)
;
comment on table T_YJPT_WXHWGKZYRKZNSSQB
  is '危险货物港口作业申请';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sqdw
  is '单位名称';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.dwdz
  is '单位地址';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.dwyzbm
  is '邮政编码';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sycsdz
  is '使用场所地址';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sycsyzbm
  is '邮政编码';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.zyfzr
  is '主要负责人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.lxdh
  is '联系电话';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.cyryrs
  is '从业人员人数';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.clsj
  is '成立日期';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.jjlx
  is '经济类型';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.zzaqscglryrs
  is '专职安全生产管理人员人数';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.fgaqfzr
  is '分管安全负责人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.gyxt
  is '工艺系统';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.yswh
  is '验收文号';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.tcrq
  is '投产日期';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sngdzcjz
  is '上年固定资产净值（万元）';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.snxssr
  is '上年销售收入（万元）';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.yaqsyxkzzsbh
  is '原安全使用许可证证书编号';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sqxs
  is '原安全使用许可证证书编号';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.mc1
  is '申请上次单位名称';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.zyfzr1
  is '申请上次单位主要负责人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.dz1
  is '申请上次单位地址';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.yzbm1
  is '申请上次单位邮政编码';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.zzjgdm
  is '申请上次单位组织机构代码';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.zyfzr2
  is '主要负责人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.lsgx
  is '隶属关系';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.qymc
  is '企业名称';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.zcdz
  is '注册地址';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sydwxhxppz
  is '使用的危险化学品品种';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.jsxmwxjgjhzkj
  is '建设项目为新建、改建或者扩建';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.gbgyjsdaqsctjcszdyx
  is '改变工艺技术对安全生产条件产生重大影响';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.jbr
  is '经办人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.blrq
  is '办理日起';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.szd
  is '所在地';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.gq
  is '港区';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.jbrdh
  is '经办人电话';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.jbryx
  is '经办人邮箱';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.rkzkssj
  is '认可证开始时间';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.rkzjssj
  is '认可证结束时间';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sqwxhwzl
  is '申请危险货物种类';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sqdwyj
  is '申请单位意见';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sqr
  is '申请人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.sqsj
  is '申请时间';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.ywksyj
  is '业务科室意见';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.ywksfzr
  is '业务科室负责人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.ywksrq
  is '业务科室日期';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.ldyj
  is '领导意见';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.ldr
  is '领导人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.ldrq
  is '领导日期';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.add_user
  is '创建人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.add_date
  is '创建时间';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.update_user
  is '修改人';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.update_date
  is '修改时间';
comment on column T_YJPT_WXHWGKZYRKZNSSQB.record_status
  is '删除状态';
alter table T_YJPT_WXHWGKZYRKZNSSQB
  add primary key (ID);





create table T_YJPT_WXHWGKZYSBD
(
  id            NUMBER not null,
  zywtr         VARCHAR2(100),
  xcglfzr       VARCHAR2(20),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  gq            NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  bh            VARCHAR2(50),
  szd           NUMBER,
  zydw          VARCHAR2(200),
  cm            VARCHAR2(200),
  wxplb         VARCHAR2(200),
  wxwpmc        VARCHAR2(200),
  wpbh          VARCHAR2(200),
  JSPM           VARCHAR2(200),
  zysl          NUMBER(*,3),
  lhxz          VARCHAR2(2000),
  zysj          TIMESTAMP(6),
  zydd          VARCHAR2(20),
  aqffcs        VARCHAR2(2000),
  bgr           VARCHAR2(40),
  lxfs          VARCHAR2(400),
  bgsj          TIMESTAMP(6),
  zyddqybh      VARCHAR2(20),
  szgq          NUMBER,
  kpsj          TIMESTAMP(6),
  zylx          VARCHAR2(100),
  sg            VARCHAR2(100),
  xg            VARCHAR2(100),
  kgsj          TIMESTAMP(6),
  wgsj          TIMESTAMP(6),
  kgzt          CHAR(1),
  wgzt          CHAR(1),
  gjbh          VARCHAR2(100),
  zysjq         TIMESTAMP(6),
  zysjz         TIMESTAMP(6),
  qxzysj        TIMESTAMP(6),
  zyddssjyr     NUMBER,
  zyddqt        VARCHAR2(50),
  wxhwmcbh      VARCHAR2(200),
  inorout       CHAR(1),
  hwzl         NUMBER,
  jzxsl       VARCHAR2(15),
  hwxs		VARCHAR2(100),
  hc             VARCHAR2(40),
  cbbh          VARCHAR2(20),
  sbdbh         VARCHAR2(255),
  cnno          VARCHAR2(100),
  merge           VARCHAR2(10),
  hzwxx       NUMBER,
  dxdj            NUMBER,
  wrlb               NUMBER,
  mao             VARCHAR2(10),
  SL20C     NUMBER,
  SL40C     NUMBER,
  SL45C     NUMBER,
  SLSPC     NUMBER,
  SL20T     NUMBER,
  SL40T     NUMBER,
  TEU     NUMBER,
  BZ VARCHAR2(20),
  JZXXH	VARHCAR2(500)
);
comment on table T_YJPT_WXHWGKZYSBD
  is '危险货物港口作业申请';
comment on column T_YJPT_WXHWGKZYSBD.id
  is 'ID';
comment on column T_YJPT_WXHWGKZYSBD.zywtr
  is '作业委托人';
comment on column T_YJPT_WXHWGKZYSBD.xcglfzr
  is '现场管理负责人';
comment on column T_YJPT_WXHWGKZYSBD.add_user
  is '创建人';
comment on column T_YJPT_WXHWGKZYSBD.add_date
  is '创建时间';
comment on column T_YJPT_WXHWGKZYSBD.update_user
  is '修改人';
comment on column T_YJPT_WXHWGKZYSBD.update_date
  is '修改时间';
comment on column T_YJPT_WXHWGKZYSBD.record_status
  is '删除状态';
comment on column T_YJPT_WXHWGKZYSBD.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_WXHWGKZYSBD.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_WXHWGKZYSBD.tbdyid
  is '同步对应ID';
comment on column T_YJPT_WXHWGKZYSBD.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_WXHWGKZYSBD.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_WXHWGKZYSBD.bh
  is '编号';
comment on column T_YJPT_WXHWGKZYSBD.szd
  is '所在地';
comment on column T_YJPT_WXHWGKZYSBD.zydw
  is '作业单位';
comment on column T_YJPT_WXHWGKZYSBD.cm
  is '船名';
comment on column T_YJPT_WXHWGKZYSBD.wxplb
  is '危险品类别';
comment on column T_YJPT_WXHWGKZYSBD.wxwpmc
  is '危险物品名称';
comment on column T_YJPT_WXHWGKZYSBD.wpbh
  is '物品编号';
comment on column T_YJPT_WXHWGKZYSBD.jspm
  is '技术品名';
comment on column T_YJPT_WXHWGKZYSBD.zysl
  is '作业数量（吨）';
comment on column T_YJPT_WXHWGKZYSBD.lhxz
  is '理化性质';
comment on column T_YJPT_WXHWGKZYSBD.zysj
  is '作业时间';
comment on column T_YJPT_WXHWGKZYSBD.zydd
  is '作业地点';
comment on column T_YJPT_WXHWGKZYSBD.aqffcs
  is '安全防范措施';
comment on column T_YJPT_WXHWGKZYSBD.bgr
  is '报告人';
comment on column T_YJPT_WXHWGKZYSBD.lxfs
  is '联系方式';
comment on column T_YJPT_WXHWGKZYSBD.bgsj
  is '报告时间';
comment on column T_YJPT_WXHWGKZYSBD.zyddqybh
  is '作业场所选择企业内部编号';
comment on column T_YJPT_WXHWGKZYSBD.kpsj
  is '靠泊时间';
comment on column T_YJPT_WXHWGKZYSBD.zylx
  is '作业类型';
comment on column T_YJPT_WXHWGKZYSBD.sg
  is '上港';
comment on column T_YJPT_WXHWGKZYSBD.xg
  is '下港';
comment on column T_YJPT_WXHWGKZYSBD.kgsj
  is '开工时间';
comment on column T_YJPT_WXHWGKZYSBD.wgsj
  is '完工时间';
comment on column T_YJPT_WXHWGKZYSBD.kgzt
  is '开工状态';
comment on column T_YJPT_WXHWGKZYSBD.wgzt
  is '完工状态';
comment on column T_YJPT_WXHWGKZYSBD.gjbh
  is '国际编号';
comment on column T_YJPT_WXHWGKZYSBD.zysjq
  is '作业时间起';
comment on column T_YJPT_WXHWGKZYSBD.zysjz
  is '作业时间止';
comment on column T_YJPT_WXHWGKZYSBD.qxzysj
  is '取消作业时间';
comment on column T_YJPT_WXHWGKZYSBD.zyddssjyr
  is '作业地点对应的经营人';
comment on column T_YJPT_WXHWGKZYSBD.zyddqt
  is '作业地点其他的选项';
comment on column T_YJPT_WXHWGKZYSBD.wxhwmcbh
  is '危险货物品种编号';
comment on column T_YJPT_WXHWGKZYSBD.inorout
  is '进或者出港';
comment on column T_YJPT_WXHWGKZYSBD.hwzl
  is '货物种类';
comment on column T_YJPT_WXHWGKZYSBD.jzxsl
  is '集装箱数量';
comment on column T_YJPT_WXHWGKZYSBD.hwxs
  is '货物形式';
comment on column T_YJPT_WXHWGKZYSBD.hc
  is '航次';
comment on column T_YJPT_WXHWGKZYSBD.cbbh 
  is '船舶编号';
comment on column T_YJPT_WXHWGKZYSBD.sbdbh
  is '申报单编号';
comment on column T_YJPT_WXHWGKZYSBD.merge
  is '比对结果';
comment on column T_YJPT_WXHWGKZYSBD.cnno
  is '物品CN编码';
comment on column T_YJPT_WXHWGKZYSBD.hzwxx
  is '火灾危险性';
comment on column T_YJPT_WXHWGKZYSBD.dxdj
  is '毒性等级';
comment on column T_YJPT_WXHWGKZYSBD.wrlb
  is '污染类别';
comment on column T_YJPT_WXHWGKZYSBD.mao
  is '内贸外贸';
COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.SL20C 
 IS '20''集装箱数量';
COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.SL40C 
 IS '40''集装箱数量';
COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.SL45C
 IS '45''集装箱数量';
COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.SLSPC
 IS '特种集装箱数量';
COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.SL20T 
 IS '20''罐柜数量';
COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.SL40T 
 IS '40''罐柜数量';
COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.TEU
 IS 'TEU';
 COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.bz
 IS '包装 ';
 COMMENT ON COLUMN T_YJPT_WXHWGKZYSBD.jzxxh
 IS '集装箱箱号 ';
 
alter table T_YJPT_WXHWGKZYSBD
  add constraint T_YJPT_WXHWGKZYSBD_PK primary key (ID);





create table T_YJPT_WXHWGKZYSBD_BG
(
  id            NUMBER not null,
  zysq          NUMBER,
  cm            VARCHAR2(200),
  zysl          NUMBER(*,3),
  zysjq         TIMESTAMP(6),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 1,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zysjz         TIMESTAMP(6),
  szd         NUMBER,
  cbbh      VARCHAR2(20)
)
;
comment on table T_YJPT_WXHWGKZYSBD_BG
  is '危货作业变更子表';
comment on column T_YJPT_WXHWGKZYSBD_BG.id
  is 'ID';
comment on column T_YJPT_WXHWGKZYSBD_BG.zysq
  is '关联的作业申请id';
comment on column T_YJPT_WXHWGKZYSBD_BG.cm
  is '船名';
comment on column T_YJPT_WXHWGKZYSBD_BG.zysl
  is '作业数量(吨)';
comment on column T_YJPT_WXHWGKZYSBD_BG.zysjq
  is '作业时间起';
comment on column T_YJPT_WXHWGKZYSBD_BG.add_user
  is '创建人';
comment on column T_YJPT_WXHWGKZYSBD_BG.add_date
  is '创建时间';
comment on column T_YJPT_WXHWGKZYSBD_BG.update_user
  is '修改人';
comment on column T_YJPT_WXHWGKZYSBD_BG.update_date
  is '修改时间';
comment on column T_YJPT_WXHWGKZYSBD_BG.record_status
  is '删除状态';
comment on column T_YJPT_WXHWGKZYSBD_BG.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_WXHWGKZYSBD_BG.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_WXHWGKZYSBD_BG.tbdyid
  is '同步对应ID';
comment on column T_YJPT_WXHWGKZYSBD_BG.zysjz
  is '作业时间止';
comment on column T_YJPT_WXHWGKZYSBD_BG.cbbh
  is '船舶编号';
alter table T_YJPT_WXHWGKZYSBD_BG
  add constraint T_YJPT_WXHWGKZYSBD_BG primary key (ID);





create table T_YJPT_WXHWPMB
(
  id            NUMBER not null,
  bh            VARCHAR2(10),
  mchsm         VARCHAR2(200),
  ywmc          VARCHAR2(500),
  lbhxb         VARCHAR2(100),
  cywxx         VARCHAR2(100),
  bzlb          VARCHAR2(50),
  bz            VARCHAR2(200),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10) default '0',
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  sftb          CHAR(1),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(200),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  lhxz          VARCHAR2(512),
  aqffcs        VARCHAR2(1000),
  szd           NUMBER,
  hzwxx      NUMBER,
  dxdj          NUMBER,
  wrlb          NUMBER
)
;
comment on column T_YJPT_WXHWPMB.id
  is 'ID';
comment on column T_YJPT_WXHWPMB.bh
  is '编号';
comment on column T_YJPT_WXHWPMB.mchsm
  is '名称和说明';
comment on column T_YJPT_WXHWPMB.ywmc
  is '英文名称';
comment on column T_YJPT_WXHWPMB.lbhxb
  is '类别和项别';
comment on column T_YJPT_WXHWPMB.cywxx
  is '次要危险性';
comment on column T_YJPT_WXHWPMB.bzlb
  is '包装类别';
comment on column T_YJPT_WXHWPMB.bz
  is '备注';
comment on column T_YJPT_WXHWPMB.add_user
  is '创建人';
comment on column T_YJPT_WXHWPMB.add_date
  is '创建时间';
comment on column T_YJPT_WXHWPMB.update_user
  is '修改人';
comment on column T_YJPT_WXHWPMB.update_date
  is '修改时间';
comment on column T_YJPT_WXHWPMB.record_status
  is '删除状态';
comment on column T_YJPT_WXHWPMB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_WXHWPMB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_WXHWPMB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_WXHWPMB.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_WXHWPMB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_WXHWPMB.lhxz
  is '理化性质';
comment on column T_YJPT_WXHWPMB.aqffcs
  is '防范措施';
comment on column T_YJPT_WXHWPMB.szd
  is 'SZD';
comment on column T_YJPT_WXHWPMB.hzwxx
  is '火灾危险性';
comment on column T_YJPT_WXHWPMB.dxdj
  is '毒性等级';
comment on column T_YJPT_WXHWPMB.wrlb
  is '污染类别';
alter table T_YJPT_WXHWPMB
  add constraint PK_T_YJPT_WXHWPMB primary key (ID);





create table T_YJPT_YJJYNLJBQK
(
  id             NUMBER not null,
  szd            NUMBER,
  gq             NUMBER,
  zywxys_id      NUMBER,
  wxhz           VARCHAR2(1000),
  zhyjya_f       CHAR(1),
  zxyjya_f       CHAR(1),
  zxyjya_gs      NUMBER,
  fnrhwzczfa_f   CHAR(1),
  fnrhwzczfa_gs  NUMBER,
  zyjyqcpm       VARCHAR2(1000),
  dqjyzdjjyjl_f  CHAR(1),
  yjjywztz_f     CHAR(1),
  zyyjjydw_f     CHAR(1),
  zyyjjydw_rs    NUMBER,
  zyyjjydw_clsj  TIMESTAMP(6),
  zyyjjydw_fzr   VARCHAR2(400),
  zyyjjydw_fzrsj VARCHAR2(400),
  jzyjjydw_f     CHAR(1),
  jzyjjydw_rs    NUMBER,
  jzyjjydw_clsj  TIMESTAMP(6),
  jzyjjydw_fzr   VARCHAR2(400),
  jzyjjydw_fzrsj VARCHAR2(400),
  jyxz           VARCHAR2(1000),
  yjjyzjk_f      CHAR(1),
  yjjyzjk_rs     NUMBER,
  yjjyzjk_zylx   VARCHAR2(1000),
  tbr            VARCHAR2(100),
  tbrlxdh        VARCHAR2(30),
  add_user       VARCHAR2(50),
  add_date       TIMESTAMP(6),
  update_user    VARCHAR2(50),
  update_date    TIMESTAMP(6),
  record_status  NUMBER default 0,
  sftb           CHAR(1),
  tbzt           CHAR(1),
  tbdyid         NUMBER,
  qylb           CHAR(1),
  ssqy           NUMBER,
  record_code    VARCHAR2(30),
  byzd1          VARCHAR2(100),
  byzd2          VARCHAR2(100),
  byzd3          VARCHAR2(100),
  byzd4          VARCHAR2(100),
  byzd5          VARCHAR2(100),
  qymc           NUMBER,
  xxdz           VARCHAR2(200),
  qyfzr          VARCHAR2(200),
  lxdh           VARCHAR2(200),
  hjwr           VARCHAR2(2),
  yr             VARCHAR2(2),
  yb             VARCHAR2(20),
  qt             VARCHAR2(2),
  qtnr           VARCHAR2(400)
)
;
comment on column T_YJPT_YJJYNLJBQK.id
  is 'ID';
comment on column T_YJPT_YJJYNLJBQK.szd
  is '所在地';
comment on column T_YJPT_YJJYNLJBQK.gq
  is '港区';
comment on column T_YJPT_YJJYNLJBQK.zywxys_id
  is '主要危险因素';
comment on column T_YJPT_YJJYNLJBQK.wxhz
  is '危险货种';
comment on column T_YJPT_YJJYNLJBQK.zhyjya_f
  is '综合应急救援预案';
comment on column T_YJPT_YJJYNLJBQK.zxyjya_f
  is '专项应急救援预案';
comment on column T_YJPT_YJJYNLJBQK.zxyjya_gs
  is '专项应急救援预案个数';
comment on column T_YJPT_YJJYNLJBQK.fnrhwzczfa_f
  is '分内容和物种处置方案';
comment on column T_YJPT_YJJYNLJBQK.fnrhwzczfa_gs
  is '分内容和物种处置方案个数';
comment on column T_YJPT_YJJYNLJBQK.zyjyqcpm
  is '主要救援器材品名';
comment on column T_YJPT_YJJYNLJBQK.dqjyzdjjyjl_f
  is '定期检验制度及检验记录';
comment on column T_YJPT_YJJYNLJBQK.yjjywztz_f
  is '应急救援物资台帐';
comment on column T_YJPT_YJJYNLJBQK.zyyjjydw_f
  is '专业应急救援队伍';
comment on column T_YJPT_YJJYNLJBQK.zyyjjydw_rs
  is '专业应急救援队伍人数';
comment on column T_YJPT_YJJYNLJBQK.zyyjjydw_clsj
  is '专业应急救援队伍成立时间';
comment on column T_YJPT_YJJYNLJBQK.zyyjjydw_fzr
  is '专业应急救援队伍负责人';
comment on column T_YJPT_YJJYNLJBQK.zyyjjydw_fzrsj
  is '专业应急救援队伍负责人手机';
comment on column T_YJPT_YJJYNLJBQK.jzyjjydw_f
  is '兼职应急救援队伍';
comment on column T_YJPT_YJJYNLJBQK.jzyjjydw_rs
  is '兼职应急救援队伍人数';
comment on column T_YJPT_YJJYNLJBQK.jzyjjydw_clsj
  is '兼职应急救援队伍成立时间';
comment on column T_YJPT_YJJYNLJBQK.jzyjjydw_fzr
  is '兼职应急救援队伍负责人';
comment on column T_YJPT_YJJYNLJBQK.jzyjjydw_fzrsj
  is '兼职应急救援队伍手机';
comment on column T_YJPT_YJJYNLJBQK.jyxz
  is '救援小组概述';
comment on column T_YJPT_YJJYNLJBQK.yjjyzjk_f
  is '应急救援专家库';
comment on column T_YJPT_YJJYNLJBQK.yjjyzjk_rs
  is '应急救援专家库人数';
comment on column T_YJPT_YJJYNLJBQK.yjjyzjk_zylx
  is '专业类型';
comment on column T_YJPT_YJJYNLJBQK.tbr
  is '填表人';
comment on column T_YJPT_YJJYNLJBQK.tbrlxdh
  is '填表人联系电话';
comment on column T_YJPT_YJJYNLJBQK.add_user
  is '创建人';
comment on column T_YJPT_YJJYNLJBQK.add_date
  is '创建时间';
comment on column T_YJPT_YJJYNLJBQK.update_user
  is '修改人';
comment on column T_YJPT_YJJYNLJBQK.update_date
  is '修改时间';
comment on column T_YJPT_YJJYNLJBQK.record_status
  is '删除状态';
comment on column T_YJPT_YJJYNLJBQK.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_YJJYNLJBQK.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_YJJYNLJBQK.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJJYNLJBQK.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_YJJYNLJBQK.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_YJJYNLJBQK.record_code
  is '记录代码';
comment on column T_YJPT_YJJYNLJBQK.byzd1
  is '备用字段1';
comment on column T_YJPT_YJJYNLJBQK.byzd2
  is '备用字段2';
comment on column T_YJPT_YJJYNLJBQK.byzd3
  is '备用字段3';
comment on column T_YJPT_YJJYNLJBQK.byzd4
  is '备用字段4';
comment on column T_YJPT_YJJYNLJBQK.byzd5
  is '备用字段5';
comment on column T_YJPT_YJJYNLJBQK.qymc
  is '企业名称';
comment on column T_YJPT_YJJYNLJBQK.xxdz
  is '详细地址';
comment on column T_YJPT_YJJYNLJBQK.qyfzr
  is '企业负责人';
comment on column T_YJPT_YJJYNLJBQK.lxdh
  is '联系电话';
comment on column T_YJPT_YJJYNLJBQK.hjwr
  is '环境污染';
comment on column T_YJPT_YJJYNLJBQK.yr
  is '易燃 ';
comment on column T_YJPT_YJJYNLJBQK.yb
  is '易爆';
comment on column T_YJPT_YJJYNLJBQK.qt
  is '其他';
comment on column T_YJPT_YJJYNLJBQK.qtnr
  is '其他内容';
alter table T_YJPT_YJJYNLJBQK
  add constraint T_YJPT_YJJYNLJBQK_PK primary key (ID);





create table T_YJPT_YJJYZBXX
(
  id            NUMBER not null,
  zbbh          NUMBER,
  zbmc          VARCHAR2(30),
  dwmc          VARCHAR2(30),
  dz            VARCHAR2(50),
  lxfs          VARCHAR2(30),
  sl            NUMBER,
  bz            VARCHAR2(50),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on column T_YJPT_YJJYZBXX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_YJJYZBXX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_YJJYZBXX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJJYZBXX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_YJJYZBXX.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_YJJYZBXX
  add constraint T_YJPT_YJJYZBXX_PK primary key (ID);





create table T_YJPT_YJPX
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  qymc          NUMBER,
  pxsj          TIMESTAMP(6),
  pxdd          VARCHAR2(50),
  pxskr         VARCHAR2(50),
  pxdx          VARCHAR2(50),
  pxnr          VARCHAR2(1024),
  pxks          NUMBER,
  pxcjrs        NUMBER,
  pxxs          NUMBER,
  pxryqz        VARCHAR2(200),
  pxxczp        VARCHAR2(200),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zzbm          VARCHAR2(100),
  tbsj          TIMESTAMP(6),
  tbr           VARCHAR2(100),
  pxmc          VARCHAR2(100),
  zzz1          VARCHAR2(50),
  zzxs1         CHAR(1),
  zzz2          VARCHAR2(50),
  zzxs2         CHAR(1),
  zzz3          VARCHAR2(50),
  zzxs3         CHAR(1),
  zzz4          VARCHAR2(50),
  zzxs4         CHAR(1),
  zzz5          VARCHAR2(50),
  zzxs5         CHAR(1)
)
;
comment on table T_YJPT_YJPX
  is '应急培训表';
comment on column T_YJPT_YJPX.szd
  is '所在地';
comment on column T_YJPT_YJPX.gq
  is '所在港区';
comment on column T_YJPT_YJPX.qymc
  is '企业名称';
comment on column T_YJPT_YJPX.pxsj
  is '培训时间';
comment on column T_YJPT_YJPX.pxdd
  is '培训地点';
comment on column T_YJPT_YJPX.pxskr
  is '授课人';
comment on column T_YJPT_YJPX.pxdx
  is '培训对象';
comment on column T_YJPT_YJPX.pxnr
  is '培训内容';
comment on column T_YJPT_YJPX.pxks
  is '培训课时';
comment on column T_YJPT_YJPX.pxcjrs
  is '参加人数';
comment on column T_YJPT_YJPX.pxxs
  is '培训形式';
comment on column T_YJPT_YJPX.pxryqz
  is '培训人员签字';
comment on column T_YJPT_YJPX.pxxczp
  is '培训现场图片';
comment on column T_YJPT_YJPX.add_user
  is '创建人';
comment on column T_YJPT_YJPX.add_date
  is '创建时间';
comment on column T_YJPT_YJPX.update_user
  is '修改人';
comment on column T_YJPT_YJPX.update_date
  is '修改时间';
comment on column T_YJPT_YJPX.record_status
  is '删除状态';
comment on column T_YJPT_YJPX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_YJPX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_YJPX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJPX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_YJPX.ssqy
  is '所属区域';
comment on column T_YJPT_YJPX.record_code
  is '记录代码';
comment on column T_YJPT_YJPX.byzd1
  is '备用字段1';
comment on column T_YJPT_YJPX.byzd2
  is '备用字段2';
comment on column T_YJPT_YJPX.byzd3
  is '备用字段3';
comment on column T_YJPT_YJPX.byzd4
  is '备用字段4';
comment on column T_YJPT_YJPX.byzd5
  is '备用字段5';
comment on column T_YJPT_YJPX.zzz1
  is '组织者1';
comment on column T_YJPT_YJPX.zzxs1
  is '组织形式1';
comment on column T_YJPT_YJPX.zzz2
  is '组织者2';
comment on column T_YJPT_YJPX.zzxs2
  is '组织形式2';
comment on column T_YJPT_YJPX.zzz3
  is '组织者3';
comment on column T_YJPT_YJPX.zzxs3
  is '组织形式3';
comment on column T_YJPT_YJPX.zzz4
  is '组织者4';
comment on column T_YJPT_YJPX.zzxs4
  is '组织形式4';
comment on column T_YJPT_YJPX.zzz5
  is '组织者5';
comment on column T_YJPT_YJPX.zzxs5
  is '组织形式5';
alter table T_YJPT_YJPX
  add constraint T_YJPT_YJPX_PK primary key (ID);





create table T_YJPT_YJWL
(
  id            NUMBER not null,
  name          VARCHAR2(100),
  type          VARCHAR2(50),
  address       VARCHAR2(100),
  tel           VARCHAR2(50),
  remark        VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  szd           NUMBER,
  gq            NUMBER
)
;
comment on table T_YJPT_YJWL
  is '应急网络';
comment on column T_YJPT_YJWL.id
  is 'ID';
comment on column T_YJPT_YJWL.name
  is '名称';
comment on column T_YJPT_YJWL.type
  is '类型';
comment on column T_YJPT_YJWL.address
  is '地址';
comment on column T_YJPT_YJWL.tel
  is '电话';
comment on column T_YJPT_YJWL.remark
  is '备注';
comment on column T_YJPT_YJWL.add_user
  is 'ADD_USER';
comment on column T_YJPT_YJWL.add_date
  is 'ADD_DATE';
comment on column T_YJPT_YJWL.update_user
  is 'UPDATE_USER';
comment on column T_YJPT_YJWL.update_date
  is 'UPDATE_DATE';
comment on column T_YJPT_YJWL.record_status
  is 'RECORD_STATUS';
comment on column T_YJPT_YJWL.sftb
  is 'SFTB';
comment on column T_YJPT_YJWL.tbzt
  is 'TBZT';
comment on column T_YJPT_YJWL.tbdyid
  is 'TBDYID';
comment on column T_YJPT_YJWL.qylb
  is 'QYLB';
comment on column T_YJPT_YJWL.ssqy
  is 'SSQY';
comment on column T_YJPT_YJWL.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_YJWL.byzd1
  is 'BYZD1';
comment on column T_YJPT_YJWL.byzd2
  is 'BYZD2';
comment on column T_YJPT_YJWL.byzd3
  is 'BYZD3';
comment on column T_YJPT_YJWL.byzd4
  is 'BYZD4';
comment on column T_YJPT_YJWL.byzd5
  is 'BYZD5';
comment on column T_YJPT_YJWL.szd
  is '所在地';
comment on column T_YJPT_YJWL.gq
  is '所在港区';
alter table T_YJPT_YJWL
  add constraint PK_T_YJPT_YJWL primary key (ID);





create table T_YJPT_YJWZ
(
  id            NUMBER not null,
  gkdw          NUMBER,
  gq            NUMBER,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  szd           NUMBER,
  lxr           VARCHAR2(100),
  lxdh          VARCHAR2(100),
  szdgkj        VARCHAR2(200),
  bz            VARCHAR2(50)
)
;
comment on table T_YJPT_YJWZ
  is '应急物资信息';
comment on column T_YJPT_YJWZ.id
  is 'ID';
comment on column T_YJPT_YJWZ.gkdw
  is '港口单位';
comment on column T_YJPT_YJWZ.gq
  is '港区';
comment on column T_YJPT_YJWZ.sftb
  is '是否同步';
comment on column T_YJPT_YJWZ.tbzt
  is '同步状态';
comment on column T_YJPT_YJWZ.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJWZ.qylb
  is '区域类别';
comment on column T_YJPT_YJWZ.ssqy
  is '所属区域';
comment on column T_YJPT_YJWZ.add_user
  is '创建人';
comment on column T_YJPT_YJWZ.add_date
  is '创建时间';
comment on column T_YJPT_YJWZ.update_user
  is '修改人';
comment on column T_YJPT_YJWZ.update_date
  is '修改时间';
comment on column T_YJPT_YJWZ.record_status
  is '删除状态';
comment on column T_YJPT_YJWZ.szd
  is '所在地';
comment on column T_YJPT_YJWZ.lxr
  is '联系人';
comment on column T_YJPT_YJWZ.lxdh
  is '电话';
comment on column T_YJPT_YJWZ.szdgkj
  is '所在地港口局';
comment on column T_YJPT_YJWZ.bz
  is '备注';
alter table T_YJPT_YJWZ
  add constraint T_YJPT_YJWZ_PK primary key (ID);





create table T_YJPT_YJWZ_FLXX
(
  id            NUMBER not null,
  wzid          NUMBER,
  ssfl          NUMBER,
  wzfl          NUMBER,
  ssmc          VARCHAR2(400),
  sl            NUMBER,
  ggxh          VARCHAR2(50),
  dj            NUMBER,
  sccj          VARCHAR2(50),
  synx          NUMBER,
  ccrq          DATE,
  gmrq          DATE,
  gldw          VARCHAR2(50),
  cfcs          VARCHAR2(50),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zyfz_id       NUMBER,
  yxq           TIMESTAMP(6),
  sldw          VARCHAR2(10),
  bz            VARCHAR2(50),
  gkdw          NUMBER,
  SZD NUMBER
)
;
comment on table T_YJPT_YJWZ_FLXX
  is '应急物资子表（应急设施分类信息）';
comment on column T_YJPT_YJWZ_FLXX.id
  is 'ID';
comment on column T_YJPT_YJWZ_FLXX.wzid
  is '物资信息ID';
comment on column T_YJPT_YJWZ_FLXX.ssfl
  is '所属分类';
comment on column T_YJPT_YJWZ_FLXX.wzfl
  is '物资分类';
comment on column T_YJPT_YJWZ_FLXX.ssmc
  is '设施名称';
comment on column T_YJPT_YJWZ_FLXX.sl
  is '数量';
comment on column T_YJPT_YJWZ_FLXX.ggxh
  is '规格型号';
comment on column T_YJPT_YJWZ_FLXX.dj
  is '单价';
comment on column T_YJPT_YJWZ_FLXX.sccj
  is '生产厂家';
comment on column T_YJPT_YJWZ_FLXX.synx
  is '使用年限';
comment on column T_YJPT_YJWZ_FLXX.ccrq
  is '出厂日期';
comment on column T_YJPT_YJWZ_FLXX.gmrq
  is '购买日期';
comment on column T_YJPT_YJWZ_FLXX.gldw
  is '管理单位';
comment on column T_YJPT_YJWZ_FLXX.cfcs
  is '存放场所';
comment on column T_YJPT_YJWZ_FLXX.sftb
  is '是否同步';
comment on column T_YJPT_YJWZ_FLXX.tbzt
  is '同步状态';
comment on column T_YJPT_YJWZ_FLXX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJWZ_FLXX.qylb
  is '区域类别';
comment on column T_YJPT_YJWZ_FLXX.ssqy
  is '所属区域';
comment on column T_YJPT_YJWZ_FLXX.add_user
  is '记录创建人';
comment on column T_YJPT_YJWZ_FLXX.add_date
  is '记录创建时间';
comment on column T_YJPT_YJWZ_FLXX.update_user
  is '记录更新人';
comment on column T_YJPT_YJWZ_FLXX.update_date
  is '录更新时间';
comment on column T_YJPT_YJWZ_FLXX.zyfz_id
  is '作业附证id';
comment on column T_YJPT_YJWZ_FLXX.yxq
  is '有效期';
comment on column T_YJPT_YJWZ_FLXX.sldw
  is '数量单位';
comment on column T_YJPT_YJWZ_FLXX.bz
  is '备注';
comment on column T_YJPT_YJWZ_FLXX.gkdw
  is '港口单位';
alter table T_YJPT_YJWZ_FLXX
  add constraint T_YJPT_YJWZ_FLXX_PK primary key (ID);





create table T_YJPT_YJYA
(
  id            NUMBER not null,
  yamc          VARCHAR2(100),
  yajb          NUMBER,
  zzdw          NUMBER,
  zdsj          DATE,
  xdsj          DATE,
  yags          VARCHAR2(1000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  gq            NUMBER,
  szd           NUMBER,
  sfxd          CHAR(1),
  sfba          CHAR(1),
  sfpx          CHAR(1),
  sfpxjl        CHAR(1),
  sfyl          CHAR(1),
  sfyljl        CHAR(1),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  wh            VARCHAR2(100),
  zyfz_id       NUMBER,
  qymc          NUMBER,
  fbsj          TIMESTAMP(6),
  tbr           VARCHAR2(100),
  tbrlxdh       VARCHAR2(20),
  gkdw          VARCHAR2(200),
  dwaddress     VARCHAR2(100),
  jjtype        NUMBER,
  cyryrs        VARCHAR2(100),
  yzbm          VARCHAR2(100),
  zczj          NUMBER,
  zyfzr         VARCHAR2(100),
  dh            VARCHAR2(100),
  dzemail       VARCHAR2(100),
  bzdate        TIMESTAMP(6),
  versionno     VARCHAR2(100),
  fax           VARCHAR2(30),
  cyry          VARCHAR2(30)
)
;
comment on column T_YJPT_YJYA.yamc
  is '预案名称';
comment on column T_YJPT_YJYA.yajb
  is '预案级别';
comment on column T_YJPT_YJYA.zzdw
  is '制作单位';
comment on column T_YJPT_YJYA.zdsj
  is '制定时间';
comment on column T_YJPT_YJYA.xdsj
  is '修订时间';
comment on column T_YJPT_YJYA.yags
  is '预案概述';
comment on column T_YJPT_YJYA.add_user
  is '创建人';
comment on column T_YJPT_YJYA.add_date
  is '创建时间';
comment on column T_YJPT_YJYA.update_user
  is '修改人';
comment on column T_YJPT_YJYA.update_date
  is '修改时间';
comment on column T_YJPT_YJYA.record_status
  is '删除状态';
comment on column T_YJPT_YJYA.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_YJYA.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_YJYA.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJYA.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_YJYA.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_YJYA.gq
  is '港区';
comment on column T_YJPT_YJYA.szd
  is '所在地';
comment on column T_YJPT_YJYA.sfxd
  is '是否根据实际情况进行预案的修订Y/N';
comment on column T_YJPT_YJYA.sfba
  is '是否已在上级主管部门备案Y/N';
comment on column T_YJPT_YJYA.sfpx
  is '是否组织从业人员进行预案的培训Y/N';
comment on column T_YJPT_YJYA.sfpxjl
  is '是否有相关的培训计划及记录Y/N';
comment on column T_YJPT_YJYA.sfyl
  is '是否对预案进行演练Y/N';
comment on column T_YJPT_YJYA.sfyljl
  is '是否有演练计划及记录Y/N';
comment on column T_YJPT_YJYA.record_code
  is '记录代码';
comment on column T_YJPT_YJYA.byzd1
  is '备用字段1';
comment on column T_YJPT_YJYA.byzd2
  is '备用字段2';
comment on column T_YJPT_YJYA.byzd3
  is '备用字段3';
comment on column T_YJPT_YJYA.byzd4
  is '备用字段4';
comment on column T_YJPT_YJYA.byzd5
  is '备用字段5';
comment on column T_YJPT_YJYA.wh
  is '文号';
comment on column T_YJPT_YJYA.zyfz_id
  is '作业附证Id';
comment on column T_YJPT_YJYA.qymc
  is '企业名称';
comment on column T_YJPT_YJYA.fbsj
  is '发布时间';
comment on column T_YJPT_YJYA.tbr
  is '填表人';
comment on column T_YJPT_YJYA.tbrlxdh
  is '填表人联系电话';
comment on column T_YJPT_YJYA.gkdw
  is '港口单位';
comment on column T_YJPT_YJYA.dwaddress
  is '单位地址';
comment on column T_YJPT_YJYA.jjtype
  is '经济类型';
comment on column T_YJPT_YJYA.cyryrs
  is '从业人员人数';
comment on column T_YJPT_YJYA.yzbm
  is '邮政编码';
comment on column T_YJPT_YJYA.zczj
  is '注册资金';
comment on column T_YJPT_YJYA.zyfzr
  is '主要负责人';
comment on column T_YJPT_YJYA.dh
  is '电话';
comment on column T_YJPT_YJYA.dzemail
  is '电子信箱';
comment on column T_YJPT_YJYA.bzdate
  is '编制日期';
comment on column T_YJPT_YJYA.versionno
  is '版本号';
comment on column T_YJPT_YJYA.fax
  is '传真';
comment on column T_YJPT_YJYA.cyry
  is '从业人员';
alter table T_YJPT_YJYA
  add constraint T_YJPT_YJYA_PK primary key (ID);





create table T_YJPT_YJYABA
(
  id            NUMBER(22) not null,
  szd           NUMBER,
  gq            NUMBER,
  dwname        NUMBER,
  dwaddress     VARCHAR2(100),
  jjlx          NUMBER,
  cyryrs        VARCHAR2(100),
  yzbm          VARCHAR2(100),
  zczj          NUMBER,
  zyfzr         VARCHAR2(100),
  dh            VARCHAR2(100),
  dzemail       VARCHAR2(100),
  bzdate        TIMESTAMP(6),
  versionno     VARCHAR2(100),
  bbya          VARCHAR2(4000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  txr           VARCHAR2(50),
  txsj          TIMESTAMP(6),
  record_code   VARCHAR2(20),
  jjtype        NUMBER,
  fax           VARCHAR2(30),
  cyry          VARCHAR2(30),
  yamc          VARCHAR2(100),
  babh          VARCHAR2(100),
  bamc          VARCHAR2(100),
  bayxq         TIMESTAMP(6)
)
;
comment on table T_YJPT_YJYABA
  is '应急预案备案,应急预案备案表中“附件上传”存到公用代码中为附件类型';
comment on column T_YJPT_YJYABA.id
  is '应急预案备案编号';
comment on column T_YJPT_YJYABA.szd
  is '所在地';
comment on column T_YJPT_YJYABA.gq
  is '港区';
comment on column T_YJPT_YJYABA.dwname
  is '单位名称';
comment on column T_YJPT_YJYABA.dwaddress
  is '单位地址';
comment on column T_YJPT_YJYABA.jjlx
  is '经济类型';
comment on column T_YJPT_YJYABA.cyryrs
  is '从业人员人数';
comment on column T_YJPT_YJYABA.yzbm
  is '邮政编码';
comment on column T_YJPT_YJYABA.zczj
  is '注册资金';
comment on column T_YJPT_YJYABA.zyfzr
  is '主要负责人';
comment on column T_YJPT_YJYABA.dh
  is '电话';
comment on column T_YJPT_YJYABA.dzemail
  is '电子信箱';
comment on column T_YJPT_YJYABA.bzdate
  is '编制日期';
comment on column T_YJPT_YJYABA.versionno
  is '版本号';
comment on column T_YJPT_YJYABA.bbya
  is '报备预案';
comment on column T_YJPT_YJYABA.add_user
  is '创建人';
comment on column T_YJPT_YJYABA.add_date
  is '创建时间';
comment on column T_YJPT_YJYABA.update_user
  is '修改人';
comment on column T_YJPT_YJYABA.update_date
  is '修改时间';
comment on column T_YJPT_YJYABA.record_status
  is '删除状态';
comment on column T_YJPT_YJYABA.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_YJYABA.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_YJYABA.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJYABA.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_YJYABA.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_YJYABA.txr
  is '填写人';
comment on column T_YJPT_YJYABA.txsj
  is '填写时间';
comment on column T_YJPT_YJYABA.record_code
  is '记录编码';
comment on column T_YJPT_YJYABA.yamc
  is '预案名称';
comment on column T_YJPT_YJYABA.babh
  is '备案编号';
comment on column T_YJPT_YJYABA.bamc
  is '备案名称';
comment on column T_YJPT_YJYABA.bayxq
  is '备案有效期';
alter table T_YJPT_YJYABA
  add constraint T_YJPT_YJYABA_PK primary key (ID);





create table T_YJPT_YJYL
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  qymc          NUMBER,
  ylmc          VARCHAR2(100),
  ylsj          TIMESTAMP(6),
  yldd          VARCHAR2(200),
  ylzzz         VARCHAR2(100),
  ylcjr         VARCHAR2(100),
  ylnr          VARCHAR2(4000),
  ylsc          NUMBER,
  ylcjrs        NUMBER,
  ylzzbm        VARCHAR2(200),
  ylxs          NUMBER,
  ylryqd        VARCHAR2(100),
  ylzp          VARCHAR2(200),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  ylgjz         VARCHAR2(100),
  tbsj          TIMESTAMP(6),
  tbr           VARCHAR2(100),
  zzz1          VARCHAR2(50),
  zzxs1         CHAR(1),
  zzz2          VARCHAR2(50),
  zzxs2         CHAR(1),
  zzz3          VARCHAR2(50),
  zzxs3         CHAR(1),
  zzz4          VARCHAR2(50),
  zzxs4         CHAR(1),
  zzz5          VARCHAR2(50),
  zzxs5         CHAR(1)
)
;
comment on table T_YJPT_YJYL
  is '应急演练表';
comment on column T_YJPT_YJYL.id
  is '主键';
comment on column T_YJPT_YJYL.szd
  is '所在地';
comment on column T_YJPT_YJYL.gq
  is '所在港区';
comment on column T_YJPT_YJYL.qymc
  is '企业名称';
comment on column T_YJPT_YJYL.ylmc
  is '演练名称';
comment on column T_YJPT_YJYL.ylsj
  is '演练时间';
comment on column T_YJPT_YJYL.yldd
  is '演练地点';
comment on column T_YJPT_YJYL.ylzzz
  is '演练组织者';
comment on column T_YJPT_YJYL.ylcjr
  is '演练参加人';
comment on column T_YJPT_YJYL.ylnr
  is '演练内容';
comment on column T_YJPT_YJYL.ylsc
  is '演练时长';
comment on column T_YJPT_YJYL.ylcjrs
  is '演练参加人数';
comment on column T_YJPT_YJYL.ylzzbm
  is '组织部门';
comment on column T_YJPT_YJYL.ylxs
  is '演练形式';
comment on column T_YJPT_YJYL.ylryqd
  is '演练人员签到';
comment on column T_YJPT_YJYL.ylzp
  is '演练图片';
comment on column T_YJPT_YJYL.add_user
  is '创建人';
comment on column T_YJPT_YJYL.add_date
  is '创建时间';
comment on column T_YJPT_YJYL.update_user
  is '修改人';
comment on column T_YJPT_YJYL.update_date
  is '修改时间';
comment on column T_YJPT_YJYL.record_status
  is '删除状态';
comment on column T_YJPT_YJYL.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_YJYL.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_YJYL.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJYL.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_YJYL.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_YJYL.record_code
  is '记录代码';
comment on column T_YJPT_YJYL.byzd1
  is '备用字段1';
comment on column T_YJPT_YJYL.byzd2
  is '备用字段2';
comment on column T_YJPT_YJYL.byzd3
  is '备用字段3';
comment on column T_YJPT_YJYL.byzd4
  is '备用字段4';
comment on column T_YJPT_YJYL.byzd5
  is '备用字段5';
comment on column T_YJPT_YJYL.zzz1
  is '组织者1';
comment on column T_YJPT_YJYL.zzxs1
  is '组织形式1';
comment on column T_YJPT_YJYL.zzz2
  is '组织者2';
comment on column T_YJPT_YJYL.zzxs2
  is '组织形式2';
comment on column T_YJPT_YJYL.zzz3
  is '组织者3';
comment on column T_YJPT_YJYL.zzxs3
  is '组织形式3';
comment on column T_YJPT_YJYL.zzz4
  is '组织者4';
comment on column T_YJPT_YJYL.zzxs4
  is '组织形式4';
comment on column T_YJPT_YJYL.zzz5
  is '组织者5';
comment on column T_YJPT_YJYL.zzxs5
  is '组织形式5';
alter table T_YJPT_YJYL
  add constraint T_YJPT_YJYL_PK primary key (ID);





create table T_YJPT_YJYX
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  qymc          NUMBER,
  yxsj          TIMESTAMP(6),
  yxmc          VARCHAR2(200),
  yxdd          VARCHAR2(200),
  yxzzz         VARCHAR2(100),
  yxcjr         VARCHAR2(200),
  yxgjz         VARCHAR2(100),
  yxnr          VARCHAR2(1000),
  yxsc          NUMBER,
  yxcjrs        NUMBER,
  yxzzbm        VARCHAR2(100),
  yxxs          NUMBER,
  yxryqd        VARCHAR2(100),
  yxzp          VARCHAR2(40),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  tbsj          TIMESTAMP(6),
  tbr           VARCHAR2(100),
  zzz1          VARCHAR2(50),
  zzxs1         CHAR(1),
  zzz2          VARCHAR2(50),
  zzxs2         CHAR(1),
  zzz3          VARCHAR2(50),
  zzxs3         CHAR(1),
  zzz4          VARCHAR2(50),
  zzxs4         CHAR(1),
  zzz5          VARCHAR2(50),
  zzxs5         CHAR(1),
  gkdw          VARCHAR2(200)
)
;
comment on table T_YJPT_YJYX
  is '应急演习表';
comment on column T_YJPT_YJYX.id
  is '主键';
comment on column T_YJPT_YJYX.szd
  is '所在地';
comment on column T_YJPT_YJYX.gq
  is '所在港区';
comment on column T_YJPT_YJYX.qymc
  is '企业名称';
comment on column T_YJPT_YJYX.yxsj
  is '演习时间';
comment on column T_YJPT_YJYX.yxmc
  is '演习名称';
comment on column T_YJPT_YJYX.yxdd
  is '演习地点';
comment on column T_YJPT_YJYX.yxzzz
  is '演习组织者';
comment on column T_YJPT_YJYX.yxcjr
  is '演习参加人(导入一个附件)';
comment on column T_YJPT_YJYX.yxgjz
  is '关键字';
comment on column T_YJPT_YJYX.yxnr
  is '演习内容';
comment on column T_YJPT_YJYX.yxsc
  is '演习时长';
comment on column T_YJPT_YJYX.yxcjrs
  is '演习参加人数';
comment on column T_YJPT_YJYX.yxzzbm
  is '演习组织部门';
comment on column T_YJPT_YJYX.yxxs
  is '演习形式';
comment on column T_YJPT_YJYX.yxryqd
  is '演习人员签到表';
comment on column T_YJPT_YJYX.yxzp
  is '演习照片';
comment on column T_YJPT_YJYX.add_user
  is '创建人';
comment on column T_YJPT_YJYX.add_date
  is '创建时间';
comment on column T_YJPT_YJYX.update_user
  is '修改人';
comment on column T_YJPT_YJYX.update_date
  is '修改时间';
comment on column T_YJPT_YJYX.record_status
  is '删除状态';
comment on column T_YJPT_YJYX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_YJYX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_YJYX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJYX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_YJYX.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_YJYX.record_code
  is '记录代码';
comment on column T_YJPT_YJYX.byzd1
  is '备用字段1';
comment on column T_YJPT_YJYX.byzd2
  is '备用字段2';
comment on column T_YJPT_YJYX.byzd3
  is '备用字段3';
comment on column T_YJPT_YJYX.byzd4
  is '备用字段4';
comment on column T_YJPT_YJYX.byzd5
  is '备用字段5';
comment on column T_YJPT_YJYX.zzz1
  is '组织者1';
comment on column T_YJPT_YJYX.zzxs1
  is '组织形式1';
comment on column T_YJPT_YJYX.zzz2
  is '组织者2';
comment on column T_YJPT_YJYX.zzxs2
  is '组织形式2';
comment on column T_YJPT_YJYX.zzz3
  is '组织者3';
comment on column T_YJPT_YJYX.zzxs3
  is '组织形式3';
comment on column T_YJPT_YJYX.zzz4
  is '组织者4';
comment on column T_YJPT_YJYX.zzxs4
  is '组织形式4';
comment on column T_YJPT_YJYX.zzz5
  is '组织者5';
comment on column T_YJPT_YJYX.zzxs5
  is '组织形式5';
alter table T_YJPT_YJYX
  add constraint T_YJPT_YJYX_PK primary key (ID);





create table T_YJPT_YJZJK
(
  id            NUMBER(22) not null,
  szgq          NUMBER,
  szd           NUMBER,
  xm            VARCHAR2(10),
  xb            VARCHAR2(10),
  mz            VARCHAR2(10),
  sfzh          VARCHAR2(20),
  csny          TIMESTAMP(6),
  xjzd          VARCHAR2(100),
  jtdh          VARCHAR2(20),
  gzdw          VARCHAR2(100),
  gzdh          VARCHAR2(20),
  dwdz          VARCHAR2(100),
  szbm          VARCHAR2(100),
  zw            VARCHAR2(50),
  jszc          VARCHAR2(50),
  zgxl          VARCHAR2(50),
  sxzy1         VARCHAR2(50),
  sxzy2         VARCHAR2(50),
  byyx          VARCHAR2(100),
  xcszy         VARCHAR2(50),
  zclb          VARCHAR2(50),
  gzjl          VARCHAR2(1000),
  zyyj          VARCHAR2(1000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER(22),
  qylb          CHAR(1),
  ssqy          NUMBER(22),
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  scjyhz        VARCHAR2(100),
  sfsygkj       CHAR(1)
)
;
comment on table T_YJPT_YJZJK
  is '应急专家库';
comment on column T_YJPT_YJZJK.id
  is 'ID';
comment on column T_YJPT_YJZJK.szgq
  is '所在港区';
comment on column T_YJPT_YJZJK.szd
  is '所在地';
comment on column T_YJPT_YJZJK.xm
  is '姓名';
comment on column T_YJPT_YJZJK.xb
  is '性别';
comment on column T_YJPT_YJZJK.mz
  is '民族';
comment on column T_YJPT_YJZJK.sfzh
  is '身份证号';
comment on column T_YJPT_YJZJK.csny
  is '出生年月';
comment on column T_YJPT_YJZJK.xjzd
  is '现居住地';
comment on column T_YJPT_YJZJK.jtdh
  is '家庭电话';
comment on column T_YJPT_YJZJK.gzdw
  is '工作单位';
comment on column T_YJPT_YJZJK.gzdh
  is '工作电话';
comment on column T_YJPT_YJZJK.dwdz
  is '单位地址';
comment on column T_YJPT_YJZJK.szbm
  is '所在部门';
comment on column T_YJPT_YJZJK.zw
  is '职务';
comment on column T_YJPT_YJZJK.jszc
  is '技术职称';
comment on column T_YJPT_YJZJK.zgxl
  is '最高学历';
comment on column T_YJPT_YJZJK.sxzy1
  is '所学专业1';
comment on column T_YJPT_YJZJK.sxzy2
  is '所学专业2';
comment on column T_YJPT_YJZJK.byyx
  is '毕业院校';
comment on column T_YJPT_YJZJK.xcszy
  is '先从事专业';
comment on column T_YJPT_YJZJK.zclb
  is '专长类别';
comment on column T_YJPT_YJZJK.gzjl
  is '工作简历';
comment on column T_YJPT_YJZJK.zyyj
  is '主要业绩';
comment on column T_YJPT_YJZJK.add_user
  is '创建人';
comment on column T_YJPT_YJZJK.add_date
  is '创建时间';
comment on column T_YJPT_YJZJK.update_user
  is '修改人';
comment on column T_YJPT_YJZJK.update_date
  is '修改时间';
comment on column T_YJPT_YJZJK.record_status
  is '记录状态';
comment on column T_YJPT_YJZJK.sftb
  is '是否同步';
comment on column T_YJPT_YJZJK.tbzt
  is '同步状态';
comment on column T_YJPT_YJZJK.tbdyid
  is '同步对应ID';
comment on column T_YJPT_YJZJK.qylb
  is '区域类别';
comment on column T_YJPT_YJZJK.ssqy
  is '所属区域';
comment on column T_YJPT_YJZJK.record_code
  is '记录代码';
comment on column T_YJPT_YJZJK.byzd1
  is '备用字段1';
comment on column T_YJPT_YJZJK.byzd2
  is '备用字段2';
comment on column T_YJPT_YJZJK.byzd3
  is '备用字段3';
comment on column T_YJPT_YJZJK.byzd4
  is '备用字段4';
comment on column T_YJPT_YJZJK.byzd5
  is '备用字段5';
comment on column T_YJPT_YJZJK.scjyhz
  is '擅长救援货种';
comment on column T_YJPT_YJZJK.sfsygkj
  is '是否属于港口局';
alter table T_YJPT_YJZJK
  add constraint T_YJPT_YJZJK_PK primary key (ID);





create table T_YJPT_ZBHJJBQK
(
  id            NUMBER not null,
  dwlx          VARCHAR2(10),
  sl            NUMBER,
  dwmc          VARCHAR2(40),
  ywxyzjjl      NUMBER,
  sscg          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  szd           NUMBER,
  ssqy          NUMBER,
  gq            NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100)
)
;
comment on table T_YJPT_ZBHJJBQK
  is '周边环境基本情况';
comment on column T_YJPT_ZBHJJBQK.id
  is 'ID';
comment on column T_YJPT_ZBHJJBQK.dwlx
  is '单位类型';
comment on column T_YJPT_ZBHJJBQK.sl
  is '数量';
comment on column T_YJPT_ZBHJJBQK.dwmc
  is '单位名称';
comment on column T_YJPT_ZBHJJBQK.ywxyzjjl
  is '与危险源最近距离';
comment on column T_YJPT_ZBHJJBQK.sscg
  is '所属储罐';
comment on column T_YJPT_ZBHJJBQK.add_user
  is 'ADD_USER';
comment on column T_YJPT_ZBHJJBQK.add_date
  is 'ADD_DATE';
comment on column T_YJPT_ZBHJJBQK.update_user
  is 'UPDATE_USER';
comment on column T_YJPT_ZBHJJBQK.update_date
  is 'UPDATE_DATE';
comment on column T_YJPT_ZBHJJBQK.record_status
  is 'RECORD_STATUS';
comment on column T_YJPT_ZBHJJBQK.sftb
  is 'SFTB';
comment on column T_YJPT_ZBHJJBQK.tbzt
  is 'TBZT';
comment on column T_YJPT_ZBHJJBQK.tbdyid
  is 'TBDYID';
comment on column T_YJPT_ZBHJJBQK.qylb
  is 'QYLB';
comment on column T_YJPT_ZBHJJBQK.szd
  is 'SZD';
comment on column T_YJPT_ZBHJJBQK.ssqy
  is 'SSQY';
comment on column T_YJPT_ZBHJJBQK.gq
  is 'GQ';
comment on column T_YJPT_ZBHJJBQK.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_ZBHJJBQK.byzd1
  is 'BYZD1';
comment on column T_YJPT_ZBHJJBQK.byzd2
  is 'BYZD2';
comment on column T_YJPT_ZBHJJBQK.byzd3
  is 'BYZD3';
comment on column T_YJPT_ZBHJJBQK.byzd4
  is 'BYZD4';
comment on column T_YJPT_ZBHJJBQK.byzd5
  is 'BYZD5';
alter table T_YJPT_ZBHJJBQK
  add constraint PK_T_YJPT_ZBHJJBQK primary key (ID);





create table T_YJPT_ZC
(
  id            NUMBER not null,
  szd           VARCHAR2(50),
  szgq          VARCHAR2(50),
  qymc          VARCHAR2(50),
  dwdz          VARCHAR2(200),
  aqfzr         VARCHAR2(50),
  lxdh          VARCHAR2(50),
  cz            VARCHAR2(50),
  ccyhs         NUMBER,
  zgs           NUMBER,
  zgl           NUMBER,
  wzgyy         VARCHAR2(50),
  txr           VARCHAR2(50),
  txsj          DATE,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(200),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  jcsj          TIMESTAMP(6)
)
;
comment on table T_YJPT_ZC
  is '自查';
comment on column T_YJPT_ZC.id
  is 'ID';
comment on column T_YJPT_ZC.szd
  is '所在地';
comment on column T_YJPT_ZC.szgq
  is '所在港区';
comment on column T_YJPT_ZC.qymc
  is '企业名称';
comment on column T_YJPT_ZC.dwdz
  is '单位地址';
comment on column T_YJPT_ZC.aqfzr
  is '安全负责人';
comment on column T_YJPT_ZC.lxdh
  is '联系电话';
comment on column T_YJPT_ZC.cz
  is '传真';
comment on column T_YJPT_ZC.ccyhs
  is '查出隐患数';
comment on column T_YJPT_ZC.zgs
  is '整改数';
comment on column T_YJPT_ZC.zgl
  is '整改率';
comment on column T_YJPT_ZC.wzgyy
  is '未整改原因';
comment on column T_YJPT_ZC.txr
  is '填写人';
comment on column T_YJPT_ZC.txsj
  is '填写时间';
comment on column T_YJPT_ZC.add_user
  is 'ADD_USER';
comment on column T_YJPT_ZC.add_date
  is 'ADD_DATE';
comment on column T_YJPT_ZC.update_user
  is 'UPDATE_USER';
comment on column T_YJPT_ZC.update_date
  is 'UPDATE_DATE';
comment on column T_YJPT_ZC.record_status
  is 'RECORD_STATUS';
comment on column T_YJPT_ZC.sftb
  is 'SFTB';
comment on column T_YJPT_ZC.tbzt
  is 'TBZT';
comment on column T_YJPT_ZC.tbdyid
  is 'TBDYID';
comment on column T_YJPT_ZC.qylb
  is 'QYLB';
comment on column T_YJPT_ZC.ssqy
  is 'SSQY';
comment on column T_YJPT_ZC.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_ZC.byzd1
  is 'BYZD1';
comment on column T_YJPT_ZC.byzd2
  is 'BYZD2';
comment on column T_YJPT_ZC.byzd3
  is 'BYZD3';
comment on column T_YJPT_ZC.byzd4
  is 'BYZD4';
comment on column T_YJPT_ZC.byzd5
  is 'BYZD5';
comment on column T_YJPT_ZC.jcsj
  is '检查时间';
alter table T_YJPT_ZC
  add constraint T_YJPT_ZC_PK primary key (ID);





create table T_YJPT_ZCYH
(
  id            NUMBER not null,
  sszc          VARCHAR2(50),
  xmmc          VARCHAR2(100),
  szwz          VARCHAR2(50),
  yhms          VARCHAR2(400),
  zghjkcs       VARCHAR2(200),
  jcrq          DATE,
  jcry          VARCHAR2(50),
  jclb          VARCHAR2(50),
  yhdl          VARCHAR2(50),
  yhzl          VARCHAR2(50),
  zgfzbm        VARCHAR2(50),
  zgfzr         VARCHAR2(50),
  jhwcsj        DATE,
  mqzt          VARCHAR2(50),
  fcsj          DATE,
  fcry          VARCHAR2(50),
  jb            VARCHAR2(50),
  zgtrzj        NUMBER,
  fcysqk        VARCHAR2(50),
  sbrq          DATE,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  yhfl          CHAR(1),
  yhqy          CHAR(1),
  byzd5         VARCHAR2(100),
  sssg          VARCHAR2(50),
  fxrq          TIMESTAMP(6),
  bz 			 VARCHAR2(500),
  wzgyy VARCHAR2(500),
  yjffcs VARCHAR2(500),
  SZD NUMBER
)
;
comment on table T_YJPT_ZCYH
  is '自查隐患';
comment on column T_YJPT_ZCYH.id
  is 'ID';
comment on column T_YJPT_ZCYH.sszc
  is '所属自查表';
comment on column T_YJPT_ZCYH.xmmc
  is '项目名称';
comment on column T_YJPT_ZCYH.szwz
  is '所在位置';
comment on column T_YJPT_ZCYH.yhms
  is '隐患描述';
comment on column T_YJPT_ZCYH.zghjkcs
  is '整改或监控措施';
comment on column T_YJPT_ZCYH.jcrq
  is '检查日期';
comment on column T_YJPT_ZCYH.jcry
  is '检察人员';
comment on column T_YJPT_ZCYH.jclb
  is '检查类别';
comment on column T_YJPT_ZCYH.yhdl
  is '隐患大类';
comment on column T_YJPT_ZCYH.yhzl
  is '隐患中类';
comment on column T_YJPT_ZCYH.zgfzbm
  is '整改负责部门';
comment on column T_YJPT_ZCYH.zgfzr
  is '整改负责人';
comment on column T_YJPT_ZCYH.jhwcsj
  is '计划完成时间';
comment on column T_YJPT_ZCYH.mqzt
  is '目前状态';
comment on column T_YJPT_ZCYH.fcsj
  is '复查时间';
comment on column T_YJPT_ZCYH.fcry
  is '复查人员';
comment on column T_YJPT_ZCYH.jb
  is '级别';
comment on column T_YJPT_ZCYH.zgtrzj
  is '整改投入资金';
comment on column T_YJPT_ZCYH.fcysqk
  is '复查验收情况';
comment on column T_YJPT_ZCYH.sbrq
  is '上报日期';
comment on column T_YJPT_ZCYH.add_user
  is 'ADD_USER';
comment on column T_YJPT_ZCYH.add_date
  is 'ADD_DATE';
comment on column T_YJPT_ZCYH.update_user
  is 'UPDATE_USER';
comment on column T_YJPT_ZCYH.update_date
  is 'UPDATE_DATE';
comment on column T_YJPT_ZCYH.record_status
  is 'RECORD_STATUS';
comment on column T_YJPT_ZCYH.sftb
  is 'SFTB';
comment on column T_YJPT_ZCYH.tbzt
  is 'TBZT';
comment on column T_YJPT_ZCYH.tbdyid
  is 'TBDYID';
comment on column T_YJPT_ZCYH.qylb
  is 'QYLB';
comment on column T_YJPT_ZCYH.ssqy
  is 'SSQY';
comment on column T_YJPT_ZCYH.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_ZCYH.byzd1
  is 'BYZD1';
comment on column T_YJPT_ZCYH.byzd2
  is 'BYZD2';
comment on column T_YJPT_ZCYH.byzd3
  is 'BYZD3';
comment on column T_YJPT_ZCYH.byzd4
  is 'BYZD4';
comment on column T_YJPT_ZCYH.yhfl
  is '隐患分类';
comment on column T_YJPT_ZCYH.yhqy
  is '隐患区域';
comment on column T_YJPT_ZCYH.byzd5
  is 'BYZD4';
comment on column T_YJPT_ZCYH.sssg
  is '所属重大事故';
comment on column T_YJPT_ZCYH.fxrq
  is '发现日期';
 comment on column T_YJPT_ZCYH.bz  is '备注';
 comment on column T_YJPT_ZCYH.wzgyy  is '未整改原因';
 comment on column T_YJPT_ZCYH.yjffcs  is '应急防范措施';
alter table T_YJPT_ZCYH
  add constraint T_YJPT_ZCYH_PK primary key (ID);





create table T_YJPT_ZDSGYHPCZGBA
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  tbdw          NUMBER,
  xmmc          VARCHAR2(100),
  sgyhms        VARCHAR2(2000),
  yhzgcs        VARCHAR2(400),
  yhzgxg        VARCHAR2(400),
  yhpcsj        TIMESTAMP(6),
  zgwcsj        TIMESTAMP(6),
  zgfzr         VARCHAR2(100),
  lxdh          VARCHAR2(100),
  jdr           VARCHAR2(100),
  jdrlxdh       VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  tbr           VARCHAR2(100),
  tbsj          TIMESTAMP(6),
  record_code   VARCHAR2(30),
  babh          VARCHAR2(100),
  bamc          VARCHAR2(100),
  bayxq         TIMESTAMP(6)
)
;
comment on table T_YJPT_ZDSGYHPCZGBA
  is '重大事故隐患排查整改备案,重大事故隐患排查整改备案表中“事故隐患照片”、“隐患整改照片”存到公用代码中为附件类型';
comment on column T_YJPT_ZDSGYHPCZGBA.id
  is 'ID';
comment on column T_YJPT_ZDSGYHPCZGBA.szd
  is '所在地';
comment on column T_YJPT_ZDSGYHPCZGBA.gq
  is '港区';
comment on column T_YJPT_ZDSGYHPCZGBA.tbdw
  is '填报单位';
comment on column T_YJPT_ZDSGYHPCZGBA.xmmc
  is '项目名称';
comment on column T_YJPT_ZDSGYHPCZGBA.sgyhms
  is '事故隐患描述';
comment on column T_YJPT_ZDSGYHPCZGBA.yhzgcs
  is '隐患整改措施';
comment on column T_YJPT_ZDSGYHPCZGBA.yhzgxg
  is '隐患整改效果';
comment on column T_YJPT_ZDSGYHPCZGBA.yhpcsj
  is '隐患排查时间';
comment on column T_YJPT_ZDSGYHPCZGBA.zgwcsj
  is '整改完成时间';
comment on column T_YJPT_ZDSGYHPCZGBA.zgfzr
  is '整改负责人';
comment on column T_YJPT_ZDSGYHPCZGBA.lxdh
  is '联系电话';
comment on column T_YJPT_ZDSGYHPCZGBA.jdr
  is '监督人';
comment on column T_YJPT_ZDSGYHPCZGBA.jdrlxdh
  is '监督人联系电话';
comment on column T_YJPT_ZDSGYHPCZGBA.add_user
  is '创建人';
comment on column T_YJPT_ZDSGYHPCZGBA.add_date
  is '创建时间';
comment on column T_YJPT_ZDSGYHPCZGBA.update_user
  is '修改人';
comment on column T_YJPT_ZDSGYHPCZGBA.update_date
  is '修改时间';
comment on column T_YJPT_ZDSGYHPCZGBA.record_status
  is '删除状态';
comment on column T_YJPT_ZDSGYHPCZGBA.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_ZDSGYHPCZGBA.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_ZDSGYHPCZGBA.tbdyid
  is '同步对应ID';
comment on column T_YJPT_ZDSGYHPCZGBA.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_ZDSGYHPCZGBA.ssqy
  is '所属区域，关联组织架构表的主键';
comment on column T_YJPT_ZDSGYHPCZGBA.tbr
  is '填表人';
comment on column T_YJPT_ZDSGYHPCZGBA.tbsj
  is 't填表时间';
comment on column T_YJPT_ZDSGYHPCZGBA.babh
  is '备案编号';
comment on column T_YJPT_ZDSGYHPCZGBA.bamc
  is '备用名称';
comment on column T_YJPT_ZDSGYHPCZGBA.bayxq
  is '备案有效期';
alter table T_YJPT_ZDSGYHPCZGBA
  add constraint PK_T_YJPT_ZDSGYHPCZGBA primary key (ID);





create table T_YJPT_ZLBZJDHXPXX
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  zlbid         NUMBER,
  wxyid         NUMBER,
  mc            VARCHAR2(50),
  sl            VARCHAR2(50),
  wxybh         VARCHAR2(50),
  czyhlx        VARCHAR2(100),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  record_code   VARCHAR2(30)
)
;
comment on column T_YJPT_ZLBZJDHXPXX.id
  is 'ID';
comment on column T_YJPT_ZLBZJDHXPXX.szd
  is '所在地';
comment on column T_YJPT_ZLBZJDHXPXX.gq
  is '港区';
comment on column T_YJPT_ZLBZJDHXPXX.zlbid
  is '所属总览表ID';
comment on column T_YJPT_ZLBZJDHXPXX.wxyid
  is '危险源ID';
comment on column T_YJPT_ZLBZJDHXPXX.mc
  is '剧毒化学品名称';
comment on column T_YJPT_ZLBZJDHXPXX.sl
  is '剧毒化学品数量';
comment on column T_YJPT_ZLBZJDHXPXX.wxybh
  is '危险源编号';
comment on column T_YJPT_ZLBZJDHXPXX.czyhlx
  is '存在隐患类型';
comment on column T_YJPT_ZLBZJDHXPXX.add_user
  is '创建人';
comment on column T_YJPT_ZLBZJDHXPXX.add_date
  is '创建时间';
comment on column T_YJPT_ZLBZJDHXPXX.update_user
  is '修改人';
comment on column T_YJPT_ZLBZJDHXPXX.update_date
  is '修改时间';
comment on column T_YJPT_ZLBZJDHXPXX.record_status
  is '删除状态';
comment on column T_YJPT_ZLBZJDHXPXX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_ZLBZJDHXPXX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_ZLBZJDHXPXX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_ZLBZJDHXPXX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_ZLBZJDHXPXX.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_ZLBZJDHXPXX
  add constraint PK_T_YJPT_ZLBZJDHXPXX primary key (ID);





create table T_YJPT_ZLBZZDWXYXX
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  zlbid         NUMBER,
  wxymc         VARCHAR2(50),
  wxysl         VARCHAR2(50),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status VARCHAR2(10),
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  record_code   VARCHAR2(30)
)
;
comment on column T_YJPT_ZLBZZDWXYXX.id
  is 'ID';
comment on column T_YJPT_ZLBZZDWXYXX.szd
  is '所在地';
comment on column T_YJPT_ZLBZZDWXYXX.gq
  is '港区';
comment on column T_YJPT_ZLBZZDWXYXX.zlbid
  is '所属总览表ID';
comment on column T_YJPT_ZLBZZDWXYXX.wxymc
  is '危险源名称';
comment on column T_YJPT_ZLBZZDWXYXX.wxysl
  is '危险源数量';
comment on column T_YJPT_ZLBZZDWXYXX.add_user
  is '创建人';
comment on column T_YJPT_ZLBZZDWXYXX.add_date
  is '创建时间';
comment on column T_YJPT_ZLBZZDWXYXX.update_user
  is '修改人';
comment on column T_YJPT_ZLBZZDWXYXX.update_date
  is '修改时间';
comment on column T_YJPT_ZLBZZDWXYXX.record_status
  is '删除状态';
comment on column T_YJPT_ZLBZZDWXYXX.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_ZLBZZDWXYXX.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_ZLBZZDWXYXX.tbdyid
  is '同步对应ID';
comment on column T_YJPT_ZLBZZDWXYXX.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_ZLBZZDWXYXX.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_ZLBZZDWXYXX
  add constraint PK_T_YJPT_ZLBZZDWXYXX primary key (ID);





create table T_YJPT_ZYWXYS
(
  id            NUMBER not null,
  qy_id         NUMBER,
  hjwr          CHAR(1),
  yr            CHAR(1),
  yb            CHAR(1),
  qt            CHAR(1),
  qtnr          VARCHAR2(1000),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_ZYWXYS
  is '主要危险源';
comment on column T_YJPT_ZYWXYS.id
  is 'ID';
comment on column T_YJPT_ZYWXYS.qy_id
  is '企业编号';
comment on column T_YJPT_ZYWXYS.hjwr
  is '环境污染';
comment on column T_YJPT_ZYWXYS.yr
  is '易燃';
comment on column T_YJPT_ZYWXYS.yb
  is '易爆';
comment on column T_YJPT_ZYWXYS.qt
  is '其他';
comment on column T_YJPT_ZYWXYS.qtnr
  is '其他内容';
comment on column T_YJPT_ZYWXYS.add_user
  is '创建人';
comment on column T_YJPT_ZYWXYS.add_date
  is '创建时间';
comment on column T_YJPT_ZYWXYS.update_user
  is '修改人';
comment on column T_YJPT_ZYWXYS.update_date
  is '修改时间';
comment on column T_YJPT_ZYWXYS.record_status
  is '删除状态';
comment on column T_YJPT_ZYWXYS.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_ZYWXYS.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_ZYWXYS.tbdyid
  is '同步对应ID';
comment on column T_YJPT_ZYWXYS.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_ZYWXYS.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_ZYWXYS
  add constraint T_YJPT_ZYWXYS_PK primary key (ID);





create table T_YJPT_ZYYJJYDW
(
  id            NUMBER not null,
  szd           NUMBER,
  gq            NUMBER,
  qymc          NUMBER,
  zyyjdwryrs    NUMBER,
  jzyjdwryrs    NUMBER,
  add_user      NUMBER,
  add_date      TIMESTAMP(6),
  update_user   NUMBER,
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zy_fzr        VARCHAR2(100),
  zy_zf         VARCHAR2(100),
  zy_bgsdh      VARCHAR2(30),
  jz_fzr        VARCHAR2(30),
  jz_zw         VARCHAR2(30),
  jz_bgsdh      VARCHAR2(100),
  jz_sj         VARCHAR2(30),
  jyxz          VARCHAR2(200),
  zy_sj         VARCHAR2(30)
)
;
comment on table T_YJPT_ZYYJJYDW
  is '应急队伍主表';
comment on column T_YJPT_ZYYJJYDW.zy_fzr
  is '专业负责人';
comment on column T_YJPT_ZYYJJYDW.zy_zf
  is '专业职务';
comment on column T_YJPT_ZYYJJYDW.zy_bgsdh
  is '办公室电话';
comment on column T_YJPT_ZYYJJYDW.jz_fzr
  is '兼职负责人';
comment on column T_YJPT_ZYYJJYDW.jz_zw
  is '职务';
comment on column T_YJPT_ZYYJJYDW.jz_bgsdh
  is '办公室电话';
comment on column T_YJPT_ZYYJJYDW.jz_sj
  is '手机';
comment on column T_YJPT_ZYYJJYDW.jyxz
  is '救援小组';
comment on column T_YJPT_ZYYJJYDW.zy_sj
  is '专业负责人的手机';
alter table T_YJPT_ZYYJJYDW
  add constraint T_YJPT_ZYYJJYDW_PK primary key (ID);





create table T_YJPT_ZYYJJYDWRYHZ
(
  id            NUMBER not null,
  xh            NUMBER,
  qymc          VARCHAR2(50),
  xm            VARCHAR2(50),
  nl            NUMBER,
  sj            VARCHAR2(50),
  jytc          VARCHAR2(50),
  zjydwzrhz     VARCHAR2(50),
  add_user      NUMBER,
  add_date      TIMESTAMP(6),
  update_user   NUMBER,
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  SZD NUMBER
)
;
comment on table T_YJPT_ZYYJJYDWRYHZ
  is '专业应急救援队伍子表（专业救援 人员表）';
alter table T_YJPT_ZYYJJYDWRYHZ
  add constraint T_YJPT_ZYYJJYDWRYHZ_PK primary key (ID);





create table T_YJPT_ZZJG
(
  id            NUMBER not null,
  name          VARCHAR2(400),
  code          VARCHAR2(400),
  fid           NUMBER,
  ms            VARCHAR2(4000),
  branch        CHAR(1),
  qylb          CHAR(1),
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0
)
;
comment on table T_YJPT_ZZJG
  is '组织架构';
comment on column T_YJPT_ZZJG.id
  is 'ID';
comment on column T_YJPT_ZZJG.name
  is '组织名称';
comment on column T_YJPT_ZZJG.code
  is '组织编码';
comment on column T_YJPT_ZZJG.fid
  is '父ID';
comment on column T_YJPT_ZZJG.ms
  is '描述';
comment on column T_YJPT_ZZJG.branch
  is '是否分支 是Y 否N';
comment on column T_YJPT_ZZJG.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_ZZJG.add_user
  is '创建人';
comment on column T_YJPT_ZZJG.add_date
  is '创建时间';
comment on column T_YJPT_ZZJG.update_user
  is '修改人';
comment on column T_YJPT_ZZJG.update_date
  is '修改时间';
comment on column T_YJPT_ZZJG.record_status
  is '删除状态';
alter table T_YJPT_ZZJG
  add constraint PK_T_YJPT_ZZJG primary key (ID);


-- activiti

create table ACT_HI_PROCINST (
    ID_ NVARCHAR2(64) not null,
    PROC_INST_ID_ NVARCHAR2(64) not null,
    BUSINESS_KEY_ NVARCHAR2(255),
    PROC_DEF_ID_ NVARCHAR2(64) not null,
    START_TIME_ TIMESTAMP(6) not null,
    END_TIME_ TIMESTAMP(6),
    DURATION_ NUMBER(19,0),
    START_USER_ID_ NVARCHAR2(255),
    START_ACT_ID_ NVARCHAR2(255),
    END_ACT_ID_ NVARCHAR2(255),
    SUPER_PROCESS_INSTANCE_ID_ NVARCHAR2(64),
    DELETE_REASON_ NVARCHAR2(2000),
    primary key (ID_),
    unique (PROC_INST_ID_)
);

create table ACT_HI_ACTINST (
    ID_ NVARCHAR2(64) not null,
    PROC_DEF_ID_ NVARCHAR2(64) not null,
    PROC_INST_ID_ NVARCHAR2(64) not null,
    EXECUTION_ID_ NVARCHAR2(64) not null,
    ACT_ID_ NVARCHAR2(255) not null,
    TASK_ID_ NVARCHAR2(64),
    CALL_PROC_INST_ID_ NVARCHAR2(64),
    ACT_NAME_ NVARCHAR2(255),
    ACT_TYPE_ NVARCHAR2(255) not null,
    ASSIGNEE_ NVARCHAR2(255),
    START_TIME_ TIMESTAMP(6) not null,
    END_TIME_ TIMESTAMP(6),
    DURATION_ NUMBER(19,0),
    primary key (ID_)
);

create table ACT_HI_TASKINST (
    ID_ NVARCHAR2(64) not null,
    PROC_DEF_ID_ NVARCHAR2(64),
    TASK_DEF_KEY_ NVARCHAR2(255),
    PROC_INST_ID_ NVARCHAR2(64),
    EXECUTION_ID_ NVARCHAR2(64),
    PARENT_TASK_ID_ NVARCHAR2(64),
    NAME_ NVARCHAR2(255),
    DESCRIPTION_ NVARCHAR2(2000),
    OWNER_ NVARCHAR2(255),
    ASSIGNEE_ NVARCHAR2(255),
    START_TIME_ TIMESTAMP(6) not null,
    CLAIM_TIME_ TIMESTAMP(6),
    END_TIME_ TIMESTAMP(6),
    DURATION_ NUMBER(19,0),
    DELETE_REASON_ NVARCHAR2(2000),
    PRIORITY_ INTEGER,
    DUE_DATE_ TIMESTAMP(6),
    FORM_KEY_ NVARCHAR2(255),
    primary key (ID_)
);

create table ACT_HI_VARINST (
    ID_ NVARCHAR2(64) not null,
    PROC_INST_ID_ NVARCHAR2(64),
    EXECUTION_ID_ NVARCHAR2(64),
    TASK_ID_ NVARCHAR2(64),
    NAME_ NVARCHAR2(255) not null,
    VAR_TYPE_ NVARCHAR2(100),
    REV_ INTEGER,
    BYTEARRAY_ID_ NVARCHAR2(64),
    DOUBLE_ NUMBER(*,10),
    LONG_ NUMBER(19,0),
    TEXT_ NVARCHAR2(2000),
    TEXT2_ NVARCHAR2(2000),
    primary key (ID_)
);

create table ACT_HI_DETAIL (
    ID_ NVARCHAR2(64) not null,
    TYPE_ NVARCHAR2(255) not null,
    PROC_INST_ID_ NVARCHAR2(64),
    EXECUTION_ID_ NVARCHAR2(64),
    TASK_ID_ NVARCHAR2(64),
    ACT_INST_ID_ NVARCHAR2(64),
    NAME_ NVARCHAR2(255) not null,
    VAR_TYPE_ NVARCHAR2(64),
    REV_ INTEGER,
    TIME_ TIMESTAMP(6) not null,
    BYTEARRAY_ID_ NVARCHAR2(64),
    DOUBLE_ NUMBER(*,10),
    LONG_ NUMBER(19,0),
    TEXT_ NVARCHAR2(2000),
    TEXT2_ NVARCHAR2(2000),
    primary key (ID_)
);

create table ACT_HI_COMMENT (
    ID_ NVARCHAR2(64) not null,
    TYPE_ NVARCHAR2(255),
    TIME_ TIMESTAMP(6) not null,
    USER_ID_ NVARCHAR2(255),
    TASK_ID_ NVARCHAR2(64),
    PROC_INST_ID_ NVARCHAR2(64),
    ACTION_ NVARCHAR2(255),
    MESSAGE_ NVARCHAR2(2000),
    FULL_MSG_ BLOB,
    primary key (ID_)
);

create table ACT_HI_ATTACHMENT (
    ID_ NVARCHAR2(64) not null,
    REV_ INTEGER,
    USER_ID_ NVARCHAR2(255),
    NAME_ NVARCHAR2(255),
    DESCRIPTION_ NVARCHAR2(2000),
    TYPE_ NVARCHAR2(255),
    TASK_ID_ NVARCHAR2(64),
    PROC_INST_ID_ NVARCHAR2(64),
    URL_ NVARCHAR2(2000),
    CONTENT_ID_ NVARCHAR2(64),
    primary key (ID_)
);

create table ACT_HI_IDENTITYLINK (
    ID_ NVARCHAR2(64),
    GROUP_ID_ NVARCHAR2(255),
    TYPE_ NVARCHAR2(255),
    USER_ID_ NVARCHAR2(255),
    TASK_ID_ NVARCHAR2(64),
    PROC_INST_ID_ NVARCHAR2(64),
    primary key (ID_)
);

create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
create index ACT_IDX_HI_ACT_INST_START on ACT_HI_ACTINST(START_TIME_);
create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
create index ACT_IDX_HI_IDENT_LNK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
create index ACT_IDX_HI_IDENT_LNK_PROCINST on ACT_HI_IDENTITYLINK(PROC_INST_ID_);

-- see http://stackoverflow.com/questions/675398/how-can-i-constrain-multiple-columns-to-prevent-duplicates-but-ignore-null-value
create unique index ACT_UNIQ_HI_BUS_KEY on ACT_HI_PROCINST
   (case when BUSINESS_KEY_ is null then null else PROC_DEF_ID_ end,
    case when BUSINESS_KEY_ is null then null else BUSINESS_KEY_ end);

create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
create index ACT_IDX_HI_ACT_INST_EXEC on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_);

create table ACT_GE_PROPERTY (
    NAME_ NVARCHAR2(64),
    VALUE_ NVARCHAR2(300),
    REV_ INTEGER,
    primary key (NAME_)
);

insert into ACT_GE_PROPERTY
values ('schema.version', '5.14', 1);

insert into ACT_GE_PROPERTY
values ('schema.history', 'create(5.14)', 1);

insert into ACT_GE_PROPERTY
values ('next.dbid', '1', 1);

create table ACT_GE_BYTEARRAY (
    ID_ NVARCHAR2(64),
    REV_ INTEGER,
    NAME_ NVARCHAR2(255),
    DEPLOYMENT_ID_ NVARCHAR2(64),
    BYTES_ BLOB,
    GENERATED_ NUMBER(1,0) CHECK (GENERATED_ IN (1,0)),
    primary key (ID_)
);

create table ACT_RE_DEPLOYMENT (
    ID_ NVARCHAR2(64),
    NAME_ NVARCHAR2(255),
    CATEGORY_ NVARCHAR2(255),
    DEPLOY_TIME_ TIMESTAMP(6),
    primary key (ID_)
);

create table ACT_RE_MODEL (
    ID_ NVARCHAR2(64) not null,
    REV_ INTEGER,
    NAME_ NVARCHAR2(255),
    KEY_ NVARCHAR2(255),
    CATEGORY_ NVARCHAR2(255),
    CREATE_TIME_ TIMESTAMP(6),
    LAST_UPDATE_TIME_ TIMESTAMP(6),
    VERSION_ INTEGER,
    META_INFO_ NVARCHAR2(2000),
    DEPLOYMENT_ID_ NVARCHAR2(64),
    EDITOR_SOURCE_VALUE_ID_ NVARCHAR2(64),
    EDITOR_SOURCE_EXTRA_VALUE_ID_ NVARCHAR2(64),
    primary key (ID_)
);

create table ACT_RU_EXECUTION (
    ID_ NVARCHAR2(64),
    REV_ INTEGER,
    PROC_INST_ID_ NVARCHAR2(64),
    BUSINESS_KEY_ NVARCHAR2(255),
    PARENT_ID_ NVARCHAR2(64),
    PROC_DEF_ID_ NVARCHAR2(64),
    SUPER_EXEC_ NVARCHAR2(64),
    ACT_ID_ NVARCHAR2(255),
    IS_ACTIVE_ NUMBER(1,0) CHECK (IS_ACTIVE_ IN (1,0)),
    IS_CONCURRENT_ NUMBER(1,0) CHECK (IS_CONCURRENT_ IN (1,0)),
    IS_SCOPE_ NUMBER(1,0) CHECK (IS_SCOPE_ IN (1,0)),
    IS_EVENT_SCOPE_ NUMBER(1,0) CHECK (IS_EVENT_SCOPE_ IN (1,0)),
    SUSPENSION_STATE_ INTEGER,
    CACHED_ENT_STATE_ INTEGER,
    primary key (ID_)
);

create table ACT_RU_JOB (
    ID_ NVARCHAR2(64) NOT NULL,
    REV_ INTEGER,
    TYPE_ NVARCHAR2(255) NOT NULL,
    LOCK_EXP_TIME_ TIMESTAMP(6),
    LOCK_OWNER_ NVARCHAR2(255),
    EXCLUSIVE_ NUMBER(1,0) CHECK (EXCLUSIVE_ IN (1,0)),
    EXECUTION_ID_ NVARCHAR2(64),
    PROCESS_INSTANCE_ID_ NVARCHAR2(64),
    PROC_DEF_ID_ NVARCHAR2(64),
    RETRIES_ INTEGER,
    EXCEPTION_STACK_ID_ NVARCHAR2(64),
    EXCEPTION_MSG_ NVARCHAR2(2000),
    DUEDATE_ TIMESTAMP(6),
    REPEAT_ NVARCHAR2(255),
    HANDLER_TYPE_ NVARCHAR2(255),
    HANDLER_CFG_ NVARCHAR2(2000),
    primary key (ID_)
);

create table ACT_RE_PROCDEF (
    ID_ NVARCHAR2(64) NOT NULL,
    REV_ INTEGER,
    CATEGORY_ NVARCHAR2(255),
    NAME_ NVARCHAR2(255),
    KEY_ NVARCHAR2(255) NOT NULL,
    VERSION_ INTEGER NOT NULL,
    DEPLOYMENT_ID_ NVARCHAR2(64),
    RESOURCE_NAME_ NVARCHAR2(2000),
    DGRM_RESOURCE_NAME_ varchar(4000),
    DESCRIPTION_ NVARCHAR2(2000),
    HAS_START_FORM_KEY_ NUMBER(1,0) CHECK (HAS_START_FORM_KEY_ IN (1,0)),
    SUSPENSION_STATE_ INTEGER,
    primary key (ID_)
);

create table ACT_RU_TASK (
    ID_ NVARCHAR2(64),
    REV_ INTEGER,
    EXECUTION_ID_ NVARCHAR2(64),
    PROC_INST_ID_ NVARCHAR2(64),
    PROC_DEF_ID_ NVARCHAR2(64),
    NAME_ NVARCHAR2(255),
    PARENT_TASK_ID_ NVARCHAR2(64),
    DESCRIPTION_ NVARCHAR2(2000),
    TASK_DEF_KEY_ NVARCHAR2(255),
    OWNER_ NVARCHAR2(255),
    ASSIGNEE_ NVARCHAR2(255),
    DELEGATION_ NVARCHAR2(64),
    PRIORITY_ INTEGER,
    CREATE_TIME_ TIMESTAMP(6),
    DUE_DATE_ TIMESTAMP(6),
    SUSPENSION_STATE_ INTEGER,
    primary key (ID_)
);

create table ACT_RU_IDENTITYLINK (
    ID_ NVARCHAR2(64),
    REV_ INTEGER,
    GROUP_ID_ NVARCHAR2(255),
    TYPE_ NVARCHAR2(255),
    USER_ID_ NVARCHAR2(255),
    TASK_ID_ NVARCHAR2(64),
    PROC_INST_ID_ NVARCHAR2(64),
    PROC_DEF_ID_ NVARCHAR2(64),
    primary key (ID_)
);

create table ACT_RU_VARIABLE (
    ID_ NVARCHAR2(64) not null,
    REV_ INTEGER,
    TYPE_ NVARCHAR2(255) not null,
    NAME_ NVARCHAR2(255) not null,
    EXECUTION_ID_ NVARCHAR2(64),
    PROC_INST_ID_ NVARCHAR2(64),
    TASK_ID_ NVARCHAR2(64),
    BYTEARRAY_ID_ NVARCHAR2(64),
    DOUBLE_ NUMBER(*,10),
    LONG_ NUMBER(19,0),
    TEXT_ NVARCHAR2(2000),
    TEXT2_ NVARCHAR2(2000),
    primary key (ID_)
);

create table ACT_RU_EVENT_SUBSCR (
    ID_ NVARCHAR2(64) not null,
    REV_ integer,
    EVENT_TYPE_ NVARCHAR2(255) not null,
    EVENT_NAME_ NVARCHAR2(255),
    EXECUTION_ID_ NVARCHAR2(64),
    PROC_INST_ID_ NVARCHAR2(64),
    ACTIVITY_ID_ NVARCHAR2(64),
    CONFIGURATION_ NVARCHAR2(255),
    CREATED_ TIMESTAMP(6) not null,
    primary key (ID_)
);

create index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION(BUSINESS_KEY_);
create index ACT_IDX_TASK_CREATE on ACT_RU_TASK(CREATE_TIME_);
create index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK(USER_ID_);
create index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK(GROUP_ID_);
create index ACT_IDX_EVENT_SUBSCR_CONFIG_ on ACT_RU_EVENT_SUBSCR(CONFIGURATION_);
create index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE(TASK_ID_);

create index ACT_IDX_BYTEAR_DEPL on ACT_GE_BYTEARRAY(DEPLOYMENT_ID_);
alter table ACT_GE_BYTEARRAY
    add constraint ACT_FK_BYTEARR_DEPL
    foreign key (DEPLOYMENT_ID_) 
    references ACT_RE_DEPLOYMENT (ID_);

alter table ACT_RE_PROCDEF
    add constraint ACT_UNIQ_PROCDEF
    unique (KEY_,VERSION_);
    
create index ACT_IDX_EXE_PROCINST on ACT_RU_EXECUTION(PROC_INST_ID_);
alter table ACT_RU_EXECUTION
    add constraint ACT_FK_EXE_PROCINST
    foreign key (PROC_INST_ID_) 
    references ACT_RU_EXECUTION (ID_);

create index ACT_IDX_EXE_PARENT on ACT_RU_EXECUTION(PARENT_ID_);
alter table ACT_RU_EXECUTION
    add constraint ACT_FK_EXE_PARENT
    foreign key (PARENT_ID_) 
    references ACT_RU_EXECUTION (ID_);
    
create index ACT_IDX_EXE_SUPER on ACT_RU_EXECUTION(SUPER_EXEC_);
alter table ACT_RU_EXECUTION
    add constraint ACT_FK_EXE_SUPER
    foreign key (SUPER_EXEC_) 
    references ACT_RU_EXECUTION (ID_);
    
create index ACT_IDX_EXE_PROCDEF on ACT_RU_EXECUTION(PROC_DEF_ID_);
alter table ACT_RU_EXECUTION
    add constraint ACT_FK_EXE_PROCDEF 
    foreign key (PROC_DEF_ID_) 
    references ACT_RE_PROCDEF (ID_);    

create index ACT_IDX_TSKASS_TASK on ACT_RU_IDENTITYLINK(TASK_ID_);
alter table ACT_RU_IDENTITYLINK
    add constraint ACT_FK_TSKASS_TASK
    foreign key (TASK_ID_) 
    references ACT_RU_TASK (ID_);

create index ACT_IDX_ATHRZ_PROCEDEF  on ACT_RU_IDENTITYLINK(PROC_DEF_ID_);
alter table ACT_RU_IDENTITYLINK
    add constraint ACT_FK_ATHRZ_PROCEDEF
    foreign key (PROC_DEF_ID_) 
    references ACT_RE_PROCDEF (ID_);
    
create index ACT_IDX_IDL_PROCINST on ACT_RU_IDENTITYLINK(PROC_INST_ID_);
alter table ACT_RU_IDENTITYLINK
    add constraint ACT_FK_IDL_PROCINST
    foreign key (PROC_INST_ID_) 
    references ACT_RU_EXECUTION (ID_);    

create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);
alter table ACT_RU_TASK
    add constraint ACT_FK_TASK_EXE
    foreign key (EXECUTION_ID_)
    references ACT_RU_EXECUTION (ID_);
    
create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);
alter table ACT_RU_TASK
    add constraint ACT_FK_TASK_PROCINST
    foreign key (PROC_INST_ID_)
    references ACT_RU_EXECUTION (ID_);
    
create index ACT_IDX_TASK_PROCDEF on ACT_RU_TASK(PROC_DEF_ID_);
alter table ACT_RU_TASK
  add constraint ACT_FK_TASK_PROCDEF
  foreign key (PROC_DEF_ID_)
  references ACT_RE_PROCDEF (ID_);
  
create index ACT_IDX_VAR_EXE on ACT_RU_VARIABLE(EXECUTION_ID_);
alter table ACT_RU_VARIABLE 
    add constraint ACT_FK_VAR_EXE
    foreign key (EXECUTION_ID_) 
    references ACT_RU_EXECUTION (ID_);

create index ACT_IDX_VAR_PROCINST on ACT_RU_VARIABLE(PROC_INST_ID_);
alter table ACT_RU_VARIABLE
    add constraint ACT_FK_VAR_PROCINST
    foreign key (PROC_INST_ID_)
    references ACT_RU_EXECUTION(ID_);

create index ACT_IDX_VAR_BYTEARRAY on ACT_RU_VARIABLE(BYTEARRAY_ID_);
alter table ACT_RU_VARIABLE 
    add constraint ACT_FK_VAR_BYTEARRAY 
    foreign key (BYTEARRAY_ID_) 
    references ACT_GE_BYTEARRAY (ID_);

create index ACT_IDX_JOB_EXCEPTION on ACT_RU_JOB(EXCEPTION_STACK_ID_);
alter table ACT_RU_JOB 
    add constraint ACT_FK_JOB_EXCEPTION
    foreign key (EXCEPTION_STACK_ID_) 
    references ACT_GE_BYTEARRAY (ID_);
    
create index ACT_IDX_EVENT_SUBSCR on ACT_RU_EVENT_SUBSCR(EXECUTION_ID_);
alter table ACT_RU_EVENT_SUBSCR
    add constraint ACT_FK_EVENT_EXEC
    foreign key (EXECUTION_ID_)
    references ACT_RU_EXECUTION(ID_);

create index ACT_IDX_MODEL_SOURCE on ACT_RE_MODEL(EDITOR_SOURCE_VALUE_ID_);
alter table ACT_RE_MODEL 
    add constraint ACT_FK_MODEL_SOURCE 
    foreign key (EDITOR_SOURCE_VALUE_ID_) 
    references ACT_GE_BYTEARRAY (ID_);

create index ACT_IDX_MODEL_SOURCE_EXTRA on ACT_RE_MODEL(EDITOR_SOURCE_EXTRA_VALUE_ID_);
alter table ACT_RE_MODEL 
    add constraint ACT_FK_MODEL_SOURCE_EXTRA 
    foreign key (EDITOR_SOURCE_EXTRA_VALUE_ID_) 
    references ACT_GE_BYTEARRAY (ID_);
    
create index ACT_IDX_MODEL_DEPLOYMENT on ACT_RE_MODEL(DEPLOYMENT_ID_);    
alter table ACT_RE_MODEL 
    add constraint ACT_FK_MODEL_DEPLOYMENT 
    foreign key (DEPLOYMENT_ID_) 
    references ACT_RE_DEPLOYMENT (ID_);        
    
-- see http://stackoverflow.com/questions/675398/how-can-i-constrain-multiple-columns-to-prevent-duplicates-but-ignore-null-value
create unique index ACT_UNIQ_RU_BUS_KEY on ACT_RU_EXECUTION
   (case when BUSINESS_KEY_ is null then null else PROC_DEF_ID_ end,
    case when BUSINESS_KEY_ is null then null else BUSINESS_KEY_ end);

create table T_YJPT_GQNWXYDJBAB_FLOW
(
  id             NUMBER not null,
  gqnwxydjbab_id NUMBER not null,
  add_user       VARCHAR2(50),
  add_date       TIMESTAMP(6),
  update_user    VARCHAR2(50),
  update_date    TIMESTAMP(6),
  record_status  VARCHAR2(10),
  sftb           CHAR(1),
  tbzt           CHAR(1),
  tbdyid         NUMBER,
  qylb           CHAR(1),
  ssqy           NUMBER,
  record_code    VARCHAR2(30),
  byzd1          VARCHAR2(100),
  byzd2          VARCHAR2(100),
  byzd3          VARCHAR2(100),
  byzd4          VARCHAR2(100),
  byzd5          VARCHAR2(100),
  SZD NUMBER
);
ALTER TABLE T_YJPT_GQNWXYDJBAB_FLOW  ADD PRIMARY KEY (ID);

CREATE TABLE T_YJPT_WF_PROP(
	ID NUMBER NOT NULL,
	SZD NUMBER, 
	WF_KEY VARCHAR2(50 BYTE), 
	WF_NAME VARCHAR2(50 BYTE), 
	ACITIVTY VARCHAR2(50 BYTE),
	ACITIVTY_NAME VARCHAR2(100 BYTE), 
	NAME VARCHAR2(100 BYTE), 
	VALUE VARCHAR2(100 BYTE), 
	DISP VARCHAR2(200 BYTE), 
	ADD_USER VARCHAR2(50 BYTE), 
	ADD_DATE TIMESTAMP (6), 
	UPDATE_USER VARCHAR2(50 BYTE), 
	UPDATE_DATE TIMESTAMP (6), 
	RECORD_STATUS NUMBER DEFAULT 1, 
	SFTB CHAR(1 BYTE), 
	TBZT CHAR(1 BYTE), 
	TBDYID NUMBER, 
	QYLB CHAR(1 BYTE), 
	SSQY NUMBER, 
	RECORD_CODE VARCHAR2(30 BYTE), 
	BYZD1 VARCHAR2(100 BYTE), 
	BYZD2 VARCHAR2(100 BYTE), 
	BYZD3 VARCHAR2(100 BYTE), 
	BYZD4 VARCHAR2(100 BYTE), 
	BYZD5 VARCHAR2(100 BYTE)
);
COMMENT ON COLUMN T_YJPT_WF_PROP.ID IS 'ID';
COMMENT ON COLUMN T_YJPT_WF_PROP.WF_KEY IS '流程主键';
COMMENT ON COLUMN T_YJPT_WF_PROP.WF_NAME IS '流程名称';
COMMENT ON COLUMN T_YJPT_WF_PROP.ACITIVTY IS '活动';
COMMENT ON COLUMN T_YJPT_WF_PROP.ACITIVTY_NAME IS '活动名称';
COMMENT ON COLUMN T_YJPT_WF_PROP.NAME IS '属性名称';
COMMENT ON COLUMN T_YJPT_WF_PROP.VALUE IS '属性值';
COMMENT ON COLUMN T_YJPT_WF_PROP.DISP IS '描述';
ALTER TABLE T_YJPT_WF_PROP  ADD PRIMARY KEY (ID);

create table T_YJPT_DCZXJC
(
  id            NUMBER not null,
  ggmc          VARCHAR2(100),
  ggnr          VARCHAR2(2000),
  ggid          NUMBER,
  yhs           NUMBER,
  zgs           NUMBER,
  zgl           VARCHAR2(30),
  zgzj          NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  szd           NUMBER
);
comment on table T_YJPT_DCZXJC  is '专项检查';
-- Add comments to the columns 
comment on column T_YJPT_DCZXJC.id  is 'ID';
comment on column T_YJPT_DCZXJC.ggmc  is '公告名称';
comment on column T_YJPT_DCZXJC.ggnr  is '公告内容';
comment on column T_YJPT_DCZXJC.ggid  is '公告id';
comment on column T_YJPT_DCZXJC.yhs  is '隐患数';
comment on column T_YJPT_DCZXJC.zgs  is '整改数';
comment on column T_YJPT_DCZXJC.zgl  is '整改率';
comment on column T_YJPT_DCZXJC.zgzj  is '整改资金';
comment on column T_YJPT_DCZXJC.add_user  is 'ADD_USER';
comment on column T_YJPT_DCZXJC.add_date  is 'ADD_DATE';
comment on column T_YJPT_DCZXJC.update_user  is 'UPDATE_USER';
comment on column T_YJPT_DCZXJC.update_date  is 'UPDATE_DATE';
comment on column T_YJPT_DCZXJC.record_status  is 'RECORD_STATUS';
comment on column T_YJPT_DCZXJC.sftb  is 'SFTB';
comment on column T_YJPT_DCZXJC.tbzt  is 'TBZT';
comment on column T_YJPT_DCZXJC.tbdyid  is 'TBDYID';
comment on column T_YJPT_DCZXJC.qylb  is 'QYLB';
comment on column T_YJPT_DCZXJC.ssqy  is 'SSQY';
comment on column T_YJPT_DCZXJC.record_code  is 'RECORD_CODE';
comment on column T_YJPT_DCZXJC.byzd1  is 'BYZD1';
comment on column T_YJPT_DCZXJC.byzd2  is 'BYZD2';
comment on column T_YJPT_DCZXJC.byzd3  is 'BYZD3';
comment on column T_YJPT_DCZXJC.byzd4  is 'BYZD4';
comment on column T_YJPT_DCZXJC.byzd5  is 'BYZD5';
alter table T_YJPT_DCZXJC  add constraint T_YJPT_DCZXJC primary key (ID);



-- 海事对接
CREATE TABLE T_HS_SB (
SBDBH VARCHAR2(20) NOT NULL ,
CBBH VARCHAR2(20) NULL ,
BWDM VARCHAR2(10) NULL ,
HC VARCHAR2(20) NULL ,
KSZYSJ TIMESTAMP(0)  NULL ,
JSZYSJ TIMESTAMP(0)  NULL ,
LZBZ CHAR(1) NULL 
);
COMMENT ON COLUMN T_HS_SB.SBDBH IS '申报单编号';
COMMENT ON COLUMN T_HS_SB.CBBH IS '船舶编号';
COMMENT ON COLUMN T_HS_SB.BWDM IS '泊位代码';
COMMENT ON COLUMN T_HS_SB.HC IS '航次';
COMMENT ON COLUMN T_HS_SB.KSZYSJ IS '开始作业时间';
COMMENT ON COLUMN T_HS_SB.LZBZ IS '流转标志';
alter table T_HS_SB  add constraint T_HS_SB_PK primary key (SBDBH);
-- 海事申报货物表
CREATE TABLE T_HS_SB_HW (
id VARCHAR2(40) NOT NULL,
SBDBH VARCHAR2(20) NOT NULL ,
WGUNBH VARCHAR2(10) NULL ,
WGCNBH VARCHAR2(10) NULL ,
WGMC VARCHAR2(10) NULL ,
ZZL DECIMAL(16,3) NULL
);
alter table T_HS_SB_HW  add constraint T_HS_SB_HW_PK primary key (id);

-- 海事港口申报映射关系表
CREATE TABLE T_HS_GKMAP(
GKSBBH NUMBER NOT NULL ,
HSSBBH VARCHAR2(20) NOT NULL ,
PRIMARY KEY (GKSBBH, HSSBBH)
);

-- 附证关联的字表
create table T_YJPT_GKWXHWZYFZBLHHZZB
(
  id            NUMBER not null,
  fzid          NUMBER,
  ryid          NUMBER,
  zdid          NUMBER,
  ssid          NUMBER,
  yaid          NUMBER,
  szd           NUMBER,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  ssqy          NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(2000)
);

--Add comments to the table 
comment on table T_YJPT_GKWXHWZYFZBLHHZZB
  is '附证关联的子表记录';
--Add comments to the columns 
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.szd
  is '所在地';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.add_user
  is '创建人';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.add_date
  is '创建时间';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.update_user
  is '修改人';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.update_date
  is '修改时间';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.record_status
  is '删除状态';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.sftb
  is '是否同步 Y或者N';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.tbzt
  is '同步状态 已同步Y， 未同步N';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.tbdyid
  is '同步对应ID';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.qylb
  is '区域类别，省级还是市级';
comment on column T_YJPT_GKWXHWZYFZBLHHZZB.ssqy
  is '所属区域，关联组织架构表的主键';
alter table T_YJPT_GKWXHWZYFZBLHHZZB
  add constraint T_YJPT_GKWXHWZYFZBLHHZZB_PK primary key (ID);
  
create table T_YJPT_JYRSHXX
(
  id                      NUMBER NOT NULL,
  gnmk               VARCHAR2(10),
  zd                         VARCHAR2(20),
  ssid        	         NUMBER,
  sfsh						CHAR(1),
  shr							VARCHAR2(100),
  shrq					TIMESTAMP(6),
  shyj					VARCHAR2(500),
  add_user             VARCHAR2(50),
  add_date             TIMESTAMP(6),
  update_user          VARCHAR2(50),
  update_date          TIMESTAMP(6),
  record_status        NUMBER default 1,
  sftb                 CHAR(1),
  tbzt                 CHAR(1),
  tbdyid               NUMBER,
  qylb                 CHAR(1),
  ssqy                NUMBER,
  record_code          VARCHAR2(30),
  byzd1                VARCHAR2(100),
  byzd2                VARCHAR2(100),
  byzd3                VARCHAR2(100),
  byzd4                VARCHAR2(100),
  byzd5                VARCHAR2(100),
  szd                     NUMBER
);
comment on table T_YJPT_JYRSHXX is '页面审核信息';
comment on column T_YJPT_JYRSHXX.id  is 'ID';
comment on column T_YJPT_JYRSHXX.gnmk  is '功能模塊';
comment on column T_YJPT_JYRSHXX.zd  is '字段';
comment on column T_YJPT_JYRSHXX.ssid  is '所屬id';
comment on column T_YJPT_JYRSHXX.sfsh  is '審核狀態';
comment on column T_YJPT_JYRSHXX.shr  is '審核人';
comment on column T_YJPT_JYRSHXX.shrq  is '審核日期';
comment on column T_YJPT_JYRSHXX.shyj  is '審核意見';
comment on column T_YJPT_JYRSHXX.add_user  is 'ADD_USER';
comment on column T_YJPT_JYRSHXX.add_date  is 'ADD_DATE';
comment on column T_YJPT_JYRSHXX.update_user  is 'UPDATE_USER';
comment on column T_YJPT_JYRSHXX.update_date  is 'UPDATE_DATE';
comment on column T_YJPT_JYRSHXX.record_status  is 'RECORD_STATUS';
comment on column T_YJPT_JYRSHXX.sftb  is 'SFTB';
comment on column T_YJPT_JYRSHXX.tbzt  is 'TBZT';
comment on column T_YJPT_JYRSHXX.tbdyid  is 'TBDYID';
comment on column T_YJPT_JYRSHXX.qylb  is 'QYLB';
comment on column T_YJPT_JYRSHXX.ssqy  is 'SSQY';
comment on column T_YJPT_JYRSHXX.record_code  is 'RECORD_CODE';
comment on column T_YJPT_JYRSHXX.byzd1  is 'BYZD1';
comment on column T_YJPT_JYRSHXX.byzd2  is 'BYZD2';
comment on column T_YJPT_JYRSHXX.byzd3  is 'BYZD3';
comment on column T_YJPT_JYRSHXX.byzd4  is 'BYZD4';
comment on column T_YJPT_JYRSHXX.byzd5  is 'BYZD5';
alter table T_YJPT_JYRSHXX
  add constraint T_YJPT_JYRSHXX_PK primary key (ID);
  create table T_HS_GKBD
(
  gksbbh NUMBER not null,
  hssbbh VARCHAR2(20) not null,
  name   VARCHAR2(20) not null,
  gkj    VARCHAR2(200),
  hs     VARCHAR2(100),
  zt     CHAR(1),
  xh     VARCHAR2(20)
);
alter table T_HS_GKBD
  add primary key (GKSBBH, HSSBBH, NAME);
  comment on table T_HS_GKBD
  is '海事比对数据';
--Add comments to the columns 
comment on column T_HS_GKBD.gksbbh
  is '港口申报单编号';
  comment on column T_HS_GKBD.hssbbh
  is '海事申报单编号';
  comment on column T_HS_GKBD.name
  is '名称';
  comment on column T_HS_GKBD.gkj
  is '港口字段值';
  comment on column T_HS_GKBD.hs
  is '海事字段值';
  comment on column T_HS_GKBD.zt
  is '状态：0：海事未申报 ；1：异常；2：正常';
  comment on column T_HS_GKBD.xh
  is '序号';
  
 --集装箱公司已经申报过得货种
 create table T_YJPT_JZXYSBHZ
(
  id number not null,
  bh VARCHAR2(10) ,
  mc VARCHAR2(200) ,
  cn   VARCHAR2(20) ,
  un    VARCHAR2(20),
  lb   VARCHAR2(10),
  zt     CHAR(1),
  jyr number，
  bz     VARCHAR2(20)
);
alter table T_YJPT_JZXYSBHZ
  add constraint T_YJPT_JZXYSBHZ_PK primary key (id);
  comment on table T_YJPT_JZXYSBHZ
  is '集装箱公司已经申报过得货种';
--Add comments to the columns 
comment on column T_YJPT_JZXYSBHZ.id
  is 'id';
  comment on column T_YJPT_JZXYSBHZ.bh
  is '系统编号';
  comment on column T_YJPT_JZXYSBHZ.mc
  is '名称';
  comment on column T_YJPT_JZXYSBHZ.cn
  is 'cn号';
  comment on column T_YJPT_JZXYSBHZ.un
  is 'un号';
  comment on column T_YJPT_JZXYSBHZ.lb
  is '类别';
  comment on column T_YJPT_JZXYSBHZ.zt
  is '状态';
  comment on column T_YJPT_JZXYSBHZ.jyr
  is '经营人';
  comment on column T_YJPT_JZXYSBHZ.bz
  is '备注'; 
  
 --储罐状态 
  CREATE TABLE t_yjpt_cgzt (
	ID NUMBER NOT NULL,
	hz VARCHAR2 (100),
	cg NUMBER,
	wd VARCHAR2 (20),
	yw VARCHAR2 (20),
	tbsj DATE,
	add_user VARCHAR2 (50),
	add_date TIMESTAMP (6),
	update_user VARCHAR2 (50),
	update_date TIMESTAMP (6),
	record_status NUMBER DEFAULT 1,
	sftb CHAR (1),
	tbzt CHAR (1),
	tbdyid NUMBER,
	qylb CHAR (1),
	ssqy NUMBER,
	record_code VARCHAR2 (30),
	byzd1 VARCHAR2 (100),
	byzd2 VARCHAR2 (100),
	byzd3 VARCHAR2 (100),
	byzd4 VARCHAR2 (100),
	byzd5 VARCHAR2 (100),
	szd NUMBER
);
COMMENT ON TABLE t_yjpt_cgzt IS '储罐状态';
COMMENT ON COLUMN t_yjpt_cgzt. ID IS '主键';
COMMENT ON COLUMN t_yjpt_cgzt.hz IS '货种';
COMMENT ON COLUMN t_yjpt_cgzt.cg IS '储罐';
COMMENT ON COLUMN t_yjpt_cgzt.wd IS '温度';
COMMENT ON COLUMN t_yjpt_cgzt.yw IS '液位';
COMMENT ON COLUMN t_yjpt_cgzt.tbsj IS '填报时间';
COMMENT ON COLUMN t_yjpt_cgzt.add_user IS '创建人';
COMMENT ON COLUMN t_yjpt_cgzt.add_date IS '创建时间';
COMMENT ON COLUMN t_yjpt_cgzt.update_user IS '修改人';
COMMENT ON COLUMN t_yjpt_cgzt.update_date IS '修改时间';
COMMENT ON COLUMN t_yjpt_cgzt.record_status IS '状态';
COMMENT ON COLUMN t_yjpt_cgzt.record_code IS '角色编码';
COMMENT ON COLUMN t_yjpt_cgzt.sftb IS '是否同步 Y或者N';
COMMENT ON COLUMN t_yjpt_cgzt.tbzt IS '同步状态 已同步Y， 未同步N';
COMMENT ON COLUMN t_yjpt_cgzt.tbdyid IS '同步对应ID';
COMMENT ON COLUMN t_yjpt_cgzt.qylb IS '区域类别，省级还是市级';
COMMENT ON COLUMN t_yjpt_cgzt.ssqy IS '所属区域，关联组织架构表的主键';
COMMENT ON COLUMN t_yjpt_cgzt.szd IS '所在地';
ALTER TABLE t_yjpt_cgzt ADD CONSTRAINT t_yjpt_cgzt_pk PRIMARY KEY (ID);

--储罐适用范围 
CREATE TABLE T_YJPT_CGSY (
	ID NUMBER NOT NULL,
	cg NUMBER,
	zdwd VARCHAR2 (20),
	zdyl VARCHAR2 (20),
	zdyw VARCHAR2 (20),
	zxwd VARCHAR2 (20),
	zxyl VARCHAR2 (20),
	zxyw VARCHAR2 (20),
	add_user VARCHAR2 (50),
	add_date TIMESTAMP (6),
	update_user VARCHAR2 (50),
	update_date TIMESTAMP (6),
	record_status NUMBER DEFAULT 1,
	sftb CHAR (1),
	tbzt CHAR (1),
	tbdyid NUMBER,
	qylb CHAR (1),
	ssqy NUMBER,
	record_code VARCHAR2 (30),
	byzd1 VARCHAR2 (100),
	byzd2 VARCHAR2 (100),
	byzd3 VARCHAR2 (100),
	byzd4 VARCHAR2 (100),
	byzd5 VARCHAR2 (100),
	szd NUMBER
);
COMMENT ON TABLE T_YJPT_CGSY IS '储罐适用范围';
COMMENT ON COLUMN T_YJPT_CGSY. ID IS '主键';
COMMENT ON COLUMN T_YJPT_CGSY.cg IS '储罐';
COMMENT ON COLUMN T_YJPT_CGSY.zdwd IS '最大温度';
COMMENT ON COLUMN T_YJPT_CGSY.zdyw IS '最大液位';
COMMENT ON COLUMN T_YJPT_CGSY.zdyl IS '最大压力';
COMMENT ON COLUMN T_YJPT_CGSY.zxwd IS '最小温度';
COMMENT ON COLUMN T_YJPT_CGSY.zxyw IS '最小液位';
COMMENT ON COLUMN T_YJPT_CGSY.zxyl IS '最小压力';
COMMENT ON COLUMN T_YJPT_CGSY.add_user IS '创建人';
COMMENT ON COLUMN T_YJPT_CGSY.add_date IS '创建时间';
COMMENT ON COLUMN T_YJPT_CGSY.update_user IS '修改人';
COMMENT ON COLUMN T_YJPT_CGSY.update_date IS '修改时间';
COMMENT ON COLUMN T_YJPT_CGSY.record_status IS '状态';
COMMENT ON COLUMN T_YJPT_CGSY.record_code IS '角色编码';
COMMENT ON COLUMN T_YJPT_CGSY.sftb IS '是否同步 Y或者N';
COMMENT ON COLUMN T_YJPT_CGSY.tbzt IS '同步状态 已同步Y， 未同步N';
COMMENT ON COLUMN T_YJPT_CGSY.tbdyid IS '同步对应ID';
COMMENT ON COLUMN T_YJPT_CGSY.qylb IS '区域类别，省级还是市级';
COMMENT ON COLUMN T_YJPT_CGSY.ssqy IS '所属区域，关联组织架构表的主键';
COMMENT ON COLUMN T_YJPT_CGSY.szd IS '所在地';
ALTER TABLE T_YJPT_CGSY ADD CONSTRAINT T_YJPT_CGSY_pk PRIMARY KEY (ID);

create table T_YJPT_CGQ
(
  id            NUMBER not null,
  dwmc          VARCHAR2(40),
  cgqmc         VARCHAR2(40),
  cgqmj         NUMBER,
  cggs          NUMBER,
  cgrj          NUMBER,
  jtwz          VARCHAR2(40),
  gjzxjl        NUMBER,
  tbr           VARCHAR2(100),
  lxdh          VARCHAR2(40),
  tbsj          DATE,
  add_user      VARCHAR2(50),
  add_date      TIMESTAMP(6),
  update_user   VARCHAR2(50),
  update_date   TIMESTAMP(6),
  record_status NUMBER default 0,
  sftb          CHAR(1),
  tbzt          CHAR(1),
  tbdyid        NUMBER,
  qylb          CHAR(1),
  szd           NUMBER,
  ssqy          NUMBER,
  gq            NUMBER,
  record_code   VARCHAR2(30),
  byzd1         VARCHAR2(100),
  byzd2         VARCHAR2(100),
  byzd3         VARCHAR2(100),
  byzd4         VARCHAR2(100),
  byzd5         VARCHAR2(100),
  zdwxycggs     NUMBER,
  zdwxycgrl     NUMBER
)
;
comment on table T_YJPT_CGQ
  is '储罐区信息';
comment on column T_YJPT_CGQ.id
  is 'ID';
comment on column T_YJPT_CGQ.dwmc
  is '单位名称';
comment on column T_YJPT_CGQ.cgqmc
  is '储罐区名称';
comment on column T_YJPT_CGQ.jtwz
  is '具体位置';
comment on column T_YJPT_CGQ.cgqmj
  is '储罐区面积';
comment on column T_YJPT_CGQ.cggs
  is '储罐个数';
comment on column T_YJPT_CGQ.gjzxjl
  is '罐间最小距离';
comment on column T_YJPT_CGQ.cgrj
  is '储罐容积';
comment on column T_YJPT_CGQ.tbr
  is '填表人';
comment on column T_YJPT_CGQ.lxdh
  is '联系电话';
comment on column T_YJPT_CGQ.tbsj
  is '填表时间';
comment on column T_YJPT_CGQ.add_user
  is 'ADD_USER';
comment on column T_YJPT_CGQ.add_date
  is 'ADD_DATE';
comment on column T_YJPT_CGQ.update_user
  is 'UPDATE_USER';
comment on column T_YJPT_CG.update_date
  is 'UPDATE_DATE';
comment on column T_YJPT_CGQ.record_status
  is 'RECORD_STATUS';
comment on column T_YJPT_CGQ.sftb
  is 'SFTB';
comment on column T_YJPT_CGQ.tbzt
  is 'TBZT';
comment on column T_YJPT_CGQ.tbdyid
  is 'TBDYID';
comment on column T_YJPT_CGQ.qylb
  is 'QYLB';
comment on column T_YJPT_CGQ.szd
  is 'SZD';
comment on column T_YJPT_CGQ.ssqy
  is 'SSQY';
comment on column T_YJPT_CGQ.gq
  is 'GQ';
comment on column T_YJPT_CGQ.record_code
  is 'RECORD_CODE';
comment on column T_YJPT_CGQ.byzd1
  is 'BYZD1';
comment on column T_YJPT_CGQ.byzd2
  is 'BYZD2';
comment on column T_YJPT_CGQ.byzd3
  is 'BYZD3';
comment on column T_YJPT_CGQ.byzd4
  is 'BYZD4';
comment on column T_YJPT_CGQ.byzd5
  is 'BYZD5';
comment on column T_YJPT_CGQ.zdwxycggs
  is '重大危险源储罐个数';
comment on column T_YJPT_CGQ.zdwxycgrl
  is '重大危险源储罐容量';
alter table T_YJPT_CGQ
  add constraint PK_T_YJPT_CGQ primary key (ID);