dbSchema/base_model/dml.sql

62 lines
1.6 KiB
MySQL
Raw Normal View History

2025-05-27 16:52:29 +08:00
-- supported attribute group
2025-03-05 11:15:30 +08:00
INSERT INTO
2025-03-06 20:10:53 +08:00
BASIC.ATTRIBUTE_GROUP (GROUP_TYPE, GROUP_NAME, IS_PUBLIC, REMARK)
2025-03-05 11:15:30 +08:00
VALUES
2025-03-06 20:10:53 +08:00
('base', '基础信息', 1,''),
2025-05-22 16:09:24 +08:00
('base_extend', '扩展信息', 0,''),
2025-03-06 20:10:53 +08:00
('rated', '额定参数', 0,''),
('setup','设定参数',0,''),
('model','模型参数',0,''),
('stable','稳定参数',0,''),
('bay','间隔信息',1,''),
('craft','工艺与负荷',0,''),
('integrity','设备完整性',0,''),
('behavior','行为信息',0,'');
2025-03-05 11:15:30 +08:00
2025-05-27 16:52:29 +08:00
-- supported data type
2025-03-05 11:15:30 +08:00
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'),
2025-05-22 16:09:24 +08:00
('JSONB','postgres'),
2025-05-27 16:52:29 +08:00
('polar_coordinates','postgres');
-- supported standard component type
INSERT INTO
BASIC.COMPONENT_TYPE (TYPE, NAME, CONFIG)
VALUES
('bus','母线段','{}'),
('asyncmotor','异步电动机','{}'),
('cb','断路器','{}'),
('ct','电流互感器','{}'),
('pt','电压互感器','{}'),
('es','接地开关','{}'),
('fes','快速接地开关','{}'),
('cable','电缆','{}'),
('ds','隔离开关','{}'),
('dteds','双掷接地隔离开关','{}'),
('potential_indicator','带电指示器','{}'),
('lightning_arrester','避雷器','{}'),
('cable_termination','电缆出线套筒','{}'),
('cable_end','电缆端','{}');