Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
opennsa3
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Hažlinský
opennsa3
Commits
996ade60
Commit
996ade60
authored
12 years ago
by
Henrik Thostrup Jensen
Browse files
Options
Downloads
Patches
Plain Diff
change schema file to use timestamps without timezones - must always be utc
parent
968d8108
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datafiles/schema.sql
+7
-6
7 additions, 6 deletions
datafiles/schema.sql
with
7 additions
and
6 deletions
datafiles/schema.sql
+
7
−
6
View file @
996ade60
-- OpenNSA SQL Schema (PostgreSQL)
-- OpenNSA SQL Schema (PostgreSQL)
-- consider some generic key-value thing for future usage
-- consider some generic key-value thing for future usage
-- ALL timestamps must be in utc
CREATE
TYPE
label
AS
(
CREATE
TYPE
label
AS
(
label_type
text
,
label_type
text
,
...
@@ -15,7 +16,7 @@ CREATE TABLE service_connections (
...
@@ -15,7 +16,7 @@ CREATE TABLE service_connections (
global_reservation_id
text
,
global_reservation_id
text
,
description
text
,
description
text
,
nsa
text
NOT
NULL
,
nsa
text
NOT
NULL
,
reserve_time
timestamp
with
time
zone
NOT
NULL
,
reserve_time
timestamp
NOT
NULL
,
reservation_state
text
NOT
NULL
,
reservation_state
text
NOT
NULL
,
provision_state
text
NOT
NULL
,
provision_state
text
NOT
NULL
,
activation_state
text
NOT
NULL
,
activation_state
text
NOT
NULL
,
...
@@ -26,8 +27,8 @@ CREATE TABLE service_connections (
...
@@ -26,8 +27,8 @@ CREATE TABLE service_connections (
dest_network
text
NOT
NULL
,
dest_network
text
NOT
NULL
,
dest_port
text
NOT
NULL
,
dest_port
text
NOT
NULL
,
dest_labels
label
[],
dest_labels
label
[],
start_time
timestamp
with
time
zone
NOT
NULL
,
start_time
timestamp
NOT
NULL
,
end_time
timestamp
with
time
zone
NOT
NULL
,
end_time
timestamp
NOT
NULL
,
bandwidth
integer
NOT
NULL
-- mbps
bandwidth
integer
NOT
NULL
-- mbps
);
);
...
@@ -58,7 +59,7 @@ CREATE TABLE simplebackendconnections (
...
@@ -58,7 +59,7 @@ CREATE TABLE simplebackendconnections (
global_reservation_id
text
,
global_reservation_id
text
,
description
text
,
description
text
,
nsa
text
NOT
NULL
,
nsa
text
NOT
NULL
,
reserve_time
timestamp
with
time
zone
NOT
NULL
,
reserve_time
timestamp
NOT
NULL
,
reservation_state
text
NOT
NULL
,
reservation_state
text
NOT
NULL
,
provision_state
text
NOT
NULL
,
provision_state
text
NOT
NULL
,
activation_state
text
NOT
NULL
,
activation_state
text
NOT
NULL
,
...
@@ -69,8 +70,8 @@ CREATE TABLE simplebackendconnections (
...
@@ -69,8 +70,8 @@ CREATE TABLE simplebackendconnections (
dest_network
text
NOT
NULL
,
dest_network
text
NOT
NULL
,
dest_port
text
NOT
NULL
,
dest_port
text
NOT
NULL
,
dest_labels
label
[],
dest_labels
label
[],
start_time
timestamp
with
time
zone
NOT
NULL
,
start_time
timestamp
NOT
NULL
,
end_time
timestamp
with
time
zone
NOT
NULL
,
end_time
timestamp
NOT
NULL
,
bandwidth
integer
NOT
NULL
-- mbps
bandwidth
integer
NOT
NULL
-- mbps
);
);
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