dbSchema/base_model/dml.sql

37 lines
925 B
SQL

INSERT INTO
BASIC.ATTRIBUTE_GROUP (GROUP_TYPE, GROUP_NAME, IS_REQUIRED)
VALUES
('base', '基础信息', 1),
('base_extend', '基础信息扩展', 0),
('rated', '额定参数', 0),
('setup','设定参数',0),
('model','模型参数',0),
('stable','稳定参数',0),
('bay','间隔信息',1),
('craft','工艺与负荷',0),
('integrity','设备完整性',0),
('behavior','行为信息',0);
INSERT INTO
BASIC.DATA_TYPE (DATA_TYPE, DATABASE_TYPE)
VALUES
('SMALLINT','postgres'),
('INTEGER','postgres'),
('BIGINT','postgres'),
('REAL','postgres'),
('DOUBLE PRECISION','postgres'),
('NUMERIC','postgres'),
('DECIMAL','postgres'),
('SERIAL','postgres'),
('BIGSERIAL','postgres'),
('CHAR','postgres'),
('VARCHAR','postgres'),
('TEXT','postgres'),
('BYTEA','postgres'),
('DATE','postgres'),
('TIME','postgres'),
('TIMESTAMP','postgres'),
('UUID','postgres'),
('JSON','postrges'),
('JSONB','postgres');