Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FastDiningShop
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
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
Elferink, A.S. (Amber)
FastDiningShop
Commits
bc321ff1
Commit
bc321ff1
authored
7 years ago
by
Elferink, A.S. (Amber)
Browse files
Options
Downloads
Patches
Plain Diff
database txts met orders voor een product per bestelling
parent
84435109
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
databaseTXTs/WebsiteDatabase.txt
+2
-9
2 additions, 9 deletions
databaseTXTs/WebsiteDatabase.txt
with
2 additions
and
9 deletions
databaseTXTs/WebsiteDatabase.txt
+
2
−
9
View file @
bc321ff1
...
...
@@ -28,17 +28,10 @@ FOREIGN KEY(productid)REFERENCES Products(productid),
CONSTRAINT Category PRIMARY KEY (productid, category)
);
CREATE TABLE OrderProducts (
shoplistid integer not null,
productid integer not null,
quantity integer not null CHECK (quantity > 0),
CONSTRAINT Shop_Prod PRIMARY KEY (shoplistid, productid),
FOREIGN KEY(shoplistid)REFERENCES Shoppinglists(shoplistid),
FOREIGN KEY(productid)REFERENCES Products(productid)
);
CREATE TABLE Orders (
shoplistid integer not null primary key autoincrement,
productid integer not null,
customerid integer not null,
FOREIGN KEY(customerid)REFERENCES Customers(personid)
FOREIGN KEY(productid)REFERENCES Products(productid)
);
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