Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
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
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
Sara Savanovic Djordjevic
PROG2900
Commits
ad004aab
Commit
ad004aab
authored
1 year ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
Delete schema.sql
parent
6863b838
No related branches found
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
schema.sql
+0
-49
0 additions, 49 deletions
schema.sql
with
0 additions
and
49 deletions
schema.sql
deleted
100644 → 0
+
0
−
49
View file @
6863b838
CREATE
TABLE
Zone
(
ZoneID
INT
PRIMARY
KEY
,
Area
INT
NULL
,
Depth
INT
,
ReportID
INT
,
SensorID
INT
,
FOREIGN
KEY
(
ReportID
)
REFERENCES
Report
(
ReportID
),
FOREIGN
KEY
(
SensorID
)
REFERENCES
Sensor
(
SensorID
)
);
CREATE
TABLE
Sensor
(
SensorID
INT
PRIMARY
KEY
,
SensorType
CHAR
,
Latitued
DECIMAL
(
9
,
6
)
NOT
NULL
,
Longitude
DECIMAL
(
9
,
6
)
NOT
NULL
,
ServiceStart
DATETIME
,
Active
BOOLEAN
NOT
NULL
);
CREATE
TABLE
Report
(
ReportID
INT
PRIMARY
KEY
,
Latitued
DECIMAL
(
9
,
6
)
NOT
NULL
,
Longitude
DECIMAL
(
9
,
6
)
NOT
NULL
,
DateTime
DATETIME
NOT
NULL
,
MeasuredThickes
NULL
NOT
NULL
,
CalculatedThickness
INT
NOT
NULL
,
SafetyAssesment
CHAR
NOT
NULL
,
Temperature
FLOAT
,
Humidity
FLOAT
,
Percipitation
FLOAT
);
-- Specialization of Report entity
CREATE
TABLE
AnalogReport
(
ReportID
INT
PRIMARY
KEY
,
Username
CHAR
PRIMARY
KEY
,
Method
CHAR
NOT
NULL
,
Message
CHAR
,
FOREIGN
KEY
(
ReportID
)
REFERENCES
Report
(
ReportID
)
);
-- Specialization of Report entity
CREATE
TABLE
SensorReport
(
ReportID
INT
PRIMARY
KEY
,
SensorID
INT
PRIMARY
KEY
,
FOREIGN
KEY
(
ReportID
)
REFERENCES
Report
(
ReportID
),
FOREIGN
KEY
(
SensorID
)
REFERENCES
Sensor
(
SensorID
)
);
\ No newline at end of file
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