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
b7ae347f
Commit
b7ae347f
authored
12 years ago
by
Henrik Thostrup Jensen
Browse files
Options
Downloads
Patches
Plain Diff
add db schema (postgres, because it is the right one)
parent
82a8bc6f
No related branches found
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
+43
-0
43 additions, 0 deletions
datafiles/schema.sql
with
43 additions
and
0 deletions
datafiles/schema.sql
0 → 100644
+
43
−
0
View file @
b7ae347f
-- OpenNSA SQL Schema (PostgreSQL)
CREATE
TYPE
label
AS
(
label_type
text
,
label_value
text
);
CREATE
TABLE
connections
(
id
serial
PRIMARY
KEY
,
connection_id
text
NOT
NULL
UNIQUE
,
revision
integer
NOT
NULL
,
global_reservation_id
text
,
description
text
,
state
text
NOT
NULL
,
nsa
text
NOT
NULL
,
source_network
text
NOT
NULL
,
source_port
text
NOT
NULL
,
source_labels
label
[],
dest_network
text
NOT
NULL
,
dest_port
text
NOT
NULL
,
dest_labels
label
[],
start_time
timestamp
with
time
zone
NOT
NULL
,
end_time
timestamp
with
time
zone
NOT
NULL
,
bandwidth
integer
NOT
NULL
-- mbps
);
CREATE
TABLE
subconnections
(
id
serial
PRIMARY
KEY
,
provider_nsa
text
NOT
NULL
,
connection_id
integer
NOT
NULL
,
revision
integer
NOT
NULL
,
parent_connection_id
integer
NOT
NULL
REFERENCES
connections
(
id
),
source_network
text
NOT
NULL
,
source_port
text
NOT
NULL
,
source_labels
label
[],
dest_network
text
NOT
NULL
,
dest_port
text
NOT
NULL
,
dest_labels
label
[],
UNIQUE
(
provider_nsa
,
connection_id
)
);
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