Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsm-orchestration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UFZ TSM
tsm-orchestration
Commits
f038a410
Commit
f038a410
authored
5 months ago
by
Joost Hemmen
Browse files
Options
Downloads
Patches
Plain Diff
Update file sms_ddl.sql
parent
3399d3f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!214
Resolve "update sms foreign and mock tables"
Pipeline
#457581
failed
5 months ago
Stage: integration
Stage: end-to-end
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
postgres/sms_db/sms_ddl.sql
+19
-18
19 additions, 18 deletions
postgres/sms_db/sms_ddl.sql
with
19 additions
and
18 deletions
postgres/sms_db/sms_ddl.sql
+
19
−
18
View file @
f038a410
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment