CREATE TABLE SEAT_[].TM_SEAT_CONDITION
(
CON_ID INTEGER NOT NULL,
AIRLINE VARCHAR(3) NOT NULL,
FLT_REG VARCHAR(5) NOT NULL,
SEATS VARCHAR(2000) NOT NULL,
ATTRIBUTE VARCHAR(4),
FAULT_TYPE VARCHAR(2),
REASON VARCHAR(100),
EFFECTIVE_DATE DATE NOT NULL,
EXPIRY_DATE DATE NOT NULL,
NOTE VARCHAR(1000),
CREATE_TIME TIMESTAMP NOT NULL,
CREATE_USER VARCHAR(50) NOT NULL,
UPDATE_TIME TIMESTAMP NOT NULL,
UPDATE_USER VARCHAR(50) NOT NULL,
MARK_FOR_DELETE CHAR(1) NOT NULL
)
DATA CAPTURE NONE
IN SEAT_[]_DAT_32K INDEX IN SEAT_[]_IDX_4K
COMPRESS NO;
ALTER TABLE SEAT_[].TM_SEAT_CONDITION ADD CONSTRAINT PK_TM_SEAT_CONDITION PRIMARY KEY(CON_ID);
GRANT DELETE ON TABLE "SEAT_[]"."TM_SEAT_CONDITION" TO ROLE "R_UPDSEAT_[]";
GRANT INSERT ON TABLE "SEAT_[]"."TM_SEAT_CONDITION" TO ROLE "R_UPDSEAT_[]";
GRANT SELECT ON TABLE "SEAT_[]"."TM_SEAT_CONDITION" TO ROLE "R_SELSEAT_[]";
GRANT UPDATE ON TABLE "SEAT_[]"."TM_SEAT_CONDITION" TO ROLE "R_UPDSEAT_[]";
CREATE SEQUENCE SEAT_[].TM_SEAT_CONDITION_SEQ AS BIGINT START WITH 1 INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 NO CYCLE CACHE 1000 NO ORDER;
GRANT ALTER ON SEQUENCE "SEAT_[]"."TM_SEAT_CONDITION_SEQ" TO ROLE "R_UPDSEAT_[]";
GRANT USAGE ON SEQUENCE "SEAT_[]"."TM_SEAT_CONDITION_SEQ" TO ROLE "R_SELSEAT_[]";
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.CON_ID IS ‘主键‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.AIRLINE IS ‘航空公司‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.FLT_REG IS ‘飞机注册号‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.SEATS IS ‘坏座位编号,用逗号分割‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.ATTRIBUTE IS ‘锁属性‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.FAULT_TYPE IS ‘故障类型‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.REASON IS ‘原因说明‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.EFFECTIVE_DATE IS ‘起效日期‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.EXPIRY_DATE IS ‘失效日期‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.NOTE IS ‘备注‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.CREATE_TIME IS ‘创建时间,精确到秒‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.CREATE_USER IS ‘创建者‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.UPDATE_TIME IS ‘更新时间,精确到秒‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.UPDATE_USER IS ‘更新者‘;
COMMENT ON COLUMN SEAT_[].TM_SEAT_CONDITION.MARK_FOR_DELETE IS ‘逻辑删除,Y/N‘;