Created
October 8, 2022 12:58
-
-
Save isaacharrisholt/32bdfa496877dda2c395bb32278dae2d to your computer and use it in GitHub Desktop.
The SQL used to generate the tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE users ( | |
| id INTEGER NOT NULL, | |
| name VARCHAR(50), | |
| PRIMARY KEY (id) | |
| ); | |
| CREATE TABLE orders ( | |
| id INTEGER NOT NULL, | |
| user_id INTEGER, | |
| description VARCHAR(50), | |
| payment_status BOOLEAN, | |
| PRIMARY KEY (id), | |
| FOREIGN KEY(user_id) REFERENCES users (id) | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment