Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
idatt2106-v23-03
backend
Commits
801d0062
Commit
801d0062
authored
2 years ago
by
Pedro Pablo Cardona Arroyave
Browse files
Options
Downloads
Patches
Plain Diff
The table wastes was changed and the tables achievement and achievement_person were added.
parent
eec7d8dd
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
src/main/resources/db/sql/dbschema.sql
+16
-1
16 additions, 1 deletion
src/main/resources/db/sql/dbschema.sql
with
16 additions
and
1 deletion
src/main/resources/db/sql/dbschema.sql
+
16
−
1
View file @
801d0062
...
...
@@ -129,6 +129,21 @@ CREATE TABLE WASTES(
ean
BIGINT
NOT
NULL
,
timestamp
TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
amount
DOUBLE
NOT
NULL
,
unit
VARCHAR
(
50
)
NOT
NULL
,
FOREIGN
KEY
(
group_id
)
references
groups
(
group_id
),
FOREIGN
KEY
(
ean
)
references
product
(
ean
)
)
\ No newline at end of file
);
CREATE
TABLE
achievement
(
achievement_name
VARCHAR
(
50
)
NOT
NULL
PRIMARY
KEY
,
achievement_description
varchar
(
500
)
NOT
NULL
PRIMARY
KEY
);
CREATE
TABLE
achievement_person
(
achievement_name
VARCHAR
(
50
)
NOT
NULL
,
username
VARCHAR
(
50
)
NOT
NULL
,
CONSTRAINT
PK_achievement_username
PRIMARY
KEY
(
achievement_name
,
username
),
FOREIGN
KEY
(
username
)
REFERENCES
users
(
username
),
FOREIGN
KEY
(
achievement_name
)
REFERENCES
achievement
(
achievement_name
)
);
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