--字典
Insert into BLADE_DICT (ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_SEALED, STATUS, IS_DELETED)
values (2008068723414859778, 0, 'workwear_status', '-1', '工装状态', 1020, '工装状态', 0, 1, 0);
Insert into BLADE_DICT (ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_SEALED, STATUS, IS_DELETED)
values (2008068810543136769, 2008068723414859778, 'workwear_status', '1', '空闲', 0, '空闲', 0, 1, 0);
Insert into BLADE_DICT (ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_SEALED, STATUS, IS_DELETED)
values (2008068905799974913, 2008068723414859778, 'workwear_status', '2', '已绑定', 1, '已绑定', 0, 1, 0);
Insert into BLADE_DICT (ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_SEALED, STATUS, IS_DELETED)
values (2008068946371477506, 2008068723414859778, 'workwear_status', '3', '使用中', 2, '使用中', 0, 1, 0);

Insert into BLADE_DICT (ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_SEALED, STATUS, IS_DELETED)
values (2008364878937874434, 0, 'equipment_used', '-1', '设备服役状态', 1021, '设备服役状态', 0, 1, 0);
Insert into BLADE_DICT (ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_SEALED, STATUS, IS_DELETED)
values (2008364966972121090, 2008364878937874434, 'equipment_used', '1', '正常服役', 0, '正常服役', 0, 1, 0);
Insert into BLADE_DICT (ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_SEALED, STATUS, IS_DELETED)
values (2008365020491440129, 2008364878937874434, 'equipment_used', '2', '服役中', 1, '服役中', 0, 1, 0);
Insert into BLADE_DICT (ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_SEALED, STATUS, IS_DELETED)
values (2008365080713256962, 2008364878937874434, 'equipment_used', '3', '暂停服役', 2, '暂停服役', 0, 1, 0);



CREATE TABLE MES_RECORDER
(
    ID          NUMBER(20,0) NOT NULL ENABLE,
    TENANT_ID   NVARCHAR2(12),
    CREATE_USER NUMBER(20,0),
    CREATE_TIME DATE,
    CREATE_DEPT NUMBER(20,0),
    UPDATE_USER NUMBER(20,0),
    UPDATE_TIME DATE,
    STATUS      NUMBER(11,0),
    IS_DELETED  NUMBER(11,0) DEFAULT 0,
    RECORDER    NUMBER(20,0),
    RECORD_DATE DATE,
    MEMO        NVARCHAR2(255),
    PRIMARY KEY (ID)
) TABLESPACE JONHON_MES_DATA;

COMMENT
ON COLUMN MES_RECORDER.ID IS '主键';
COMMENT
ON COLUMN MES_RECORDER.CREATE_USER IS '创建人';
COMMENT
ON COLUMN MES_RECORDER.CREATE_TIME IS '创建时间';
COMMENT
ON COLUMN MES_RECORDER.CREATE_DEPT IS '创建部门';
COMMENT
ON COLUMN MES_RECORDER.UPDATE_USER IS '更新人';
COMMENT
ON COLUMN MES_RECORDER.UPDATE_TIME IS '更新时间';
COMMENT
ON COLUMN MES_RECORDER.STATUS IS '状态';
COMMENT
ON COLUMN MES_RECORDER.IS_DELETED IS '是否已删除';
COMMENT
ON COLUMN MES_RECORDER.RECORDER IS '记录仪';
COMMENT
ON COLUMN MES_RECORDER.RECORD_DATE IS '记录时间';
COMMENT
ON COLUMN MES_RECORDER.MEMO IS '数据信息';
COMMENT
ON TABLE MES_RECORDER  IS '记录仪记录';
 

