modelRT/sql/demo/demo.sql

161 lines
2.3 KiB
SQL

insert into
public."component" (
tag,
grid,
zone,
station,
page_id,
type,
name,
context,
op,
ts
)
values
(
'Demo1',
1,
1,
1,
1,
3,
'demo1',
'{"left":"1.2","right":"13.5","buttom":"0.2","top":"5.4"}',
1,
'2021-01-01 00:00:00'
);
insert into
public."bus_stability" (
component_id,
resistance,
anchor_v,
uv_alarm,
ov_alarm,
anchor_i,
ui_alarm,
oi_alarm,
op,
ts
)
values
(
1,
100,
false,
90,
110,
true,
90,
110,
1,
'2021-01-01 00:00:00'
);
insert into
public."component" (
tag,
grid,
zone,
station,
page_id,
type,
name,
context,
op,
ts
)
values
(
'Demo2',
1,
1,
1,
1,
3,
'demo2',
'{"left":"3.2","right":"3.5","buttom":"1.2","top":"7.4"}',
1,
'2021-01-01 00:00:00'
);
insert into
public."bus_stability" (
component_id,
resistance,
anchor_v,
uv_alarm,
ov_alarm,
anchor_i,
ui_alarm,
oi_alarm,
op,
ts
)
values
(
2,
100,
false,
90,
110,
true,
90,
110,
1,
'2021-01-01 00:00:00'
);
insert into
public."component" (
tag,
grid,
zone,
station,
page_id,
type,
name,
context,
op,
ts
)
values
(
'Demo3',
1,
1,
1,
1,
3,
'demo3',
'{"left":"1.2","right":"1.5","buttom":"4.2","top":"9.5"}',
1,
'2021-01-01 00:00:00'
);
insert into
public."bus_stability" (
component_id,
resistance,
anchor_v,
uv_alarm,
ov_alarm,
anchor_i,
ui_alarm,
oi_alarm,
op,
ts
)
values
(
3,
100,
false,
90,
110,
true,
90,
110,
1,
'2021-01-01 00:00:00'
);