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
39cec6bd
Commit
39cec6bd
authored
1 year ago
by
Pedro Pablo Cardona Arroyave
Browse files
Options
Downloads
Patches
Plain Diff
Wastes table was added to the dbschema
parent
07f9157e
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
+10
-2
10 additions, 2 deletions
src/main/resources/db/sql/dbschema.sql
with
10 additions
and
2 deletions
src/main/resources/db/sql/dbschema.sql
+
10
−
2
View file @
39cec6bd
...
...
@@ -121,6 +121,14 @@ CREATE TABLE favorite(
CONSTRAINT
PK_recipe_user
PRIMARY
KEY
(
recipe_id
,
username
),
FOREIGN
KEY
(
recipe_id
)
REFERENCES
recipe
(
recipe_id
),
FOREIGN
KEY
(
username
)
REFERENCES
users
(
username
)
)
);
CREATE
TABLE
WASTES
(
waste_id
BIGINT
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
,
group_id
BIGINT
NOT
NULL
,
ean
BIGINT
NOT
NULL
,
timestamp
TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
amount
DOUBLE
NOT
NULL
,
FOREIGN
KEY
(
group_id
)
references
groups
(
group_id
),
FOREIGN
KEY
(
ean
)
references
product
(
ean
)
)
\ 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