Skip to content
Snippets Groups Projects
Commit f038a410 authored by Joost Hemmen's avatar Joost Hemmen :basketball:
Browse files

Update file sms_ddl.sql

parent 3399d3f4
No related branches found
No related tags found
1 merge request!214Resolve "update sms foreign and mock tables"
Pipeline #457581 failed
......@@ -56,10 +56,10 @@ create table public.configuration_dynamic_location_begin_action
created_at timestamp with time zone,
updated_at timestamp with time zone,
id serial primary key,
configuration_id integer not null,
configuration_id integer not null,
begin_date timestamp with time zone not null,
begin_description text,
begin_contact_id integer not null,
begin_contact_id integer not null,
x_property_id integer,
y_property_id integer,
z_property_id integer,
......@@ -80,10 +80,10 @@ create table public.configuration_static_location_begin_action
created_at timestamp with time zone,
updated_at timestamp with time zone,
id serial primary key,
configuration_id integer not null,
configuration_id integer not null,
begin_date timestamp with time zone not null,
begin_description text,
begin_contact_id integer not null,
begin_contact_id integer not null,
x double precision,
y double precision,
z double precision,
......@@ -137,12 +137,12 @@ create table public.device_mount_action
created_at timestamp with time zone,
updated_at timestamp with time zone,
id serial primary key,
configuration_id integer not null,
device_id integer not null,
configuration_id integer not null,
device_id integer not null,
parent_platform_id integer,
begin_date timestamp with time zone not null,
begin_description text,
begin_contact_id integer not null,
begin_contact_id integer not null,
offset_x double precision,
offset_y double precision,
offset_z double precision,
......@@ -170,7 +170,7 @@ create table public.device_property
property_name varchar(256) not null,
sampling_media_uri varchar(256),
sampling_media_name varchar(256),
device_id integer not null,
device_id integer not null,
resolution double precision,
resolution_unit_name varchar(256),
resolution_unit_uri varchar(256),
......@@ -183,13 +183,22 @@ create table public.device_property
);
create table public.device_contact_role (
id serial primary key,
role_uri varchar(256) not null,
role_name varchar(256) not null,
contact_id integer not null,
device_id integer not null
);
create table public.datastream_link
(
created_at timestamp with time zone,
updated_at timestamp with time zone,
id serial primary key,
device_property_id integer not null,
device_mount_action_id integer not null,
device_property_id integer not null,
device_mount_action_id integer not null,
datasource_id varchar(256) not null,
thing_id varchar(256) not null,
datastream_id varchar(256) not null,
......@@ -207,14 +216,6 @@ create table public.datastream_link
);
create table public.device_contact_role (
id serial primary key,
role_uri varchar(256) not null,
role_name varchar(256) not null,
contact_id integer not null,
device_id integer not null
);
COMMIT;
-- public.contact foreign keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment