Compare commits

..

No commits in common. "fcde7e6f1ea90296a2d4aef48727d7335b9bf502" and "c186c3b5157789744c4792cfae6b8eecc29bf14c" have entirely different histories.

2 changed files with 4 additions and 6 deletions

View file

@ -3,7 +3,7 @@
--------------------------------------------
-- Holds the different types of cookies we can make.
CREATE TABLE IF NOT EXISTS cookies (
CREATE TABLE cookies (
cookie_id INT PRIMARY KEY,
cookie_name VARCHAR(50) NOT NULL UNIQUE
);
@ -21,8 +21,8 @@ CREATE TABLE IF NOT EXISTS orders (
customer_id INT NOT NULL,
cookie_id INT NOT NULL,
order_date DATE NOT NULL DEFAULT CURRENT_DATE CHECK (order_date >= CURRENT_DATE),
FOREIGN KEY (customer_id) REFERENCES customers(customer_id),
FOREIGN KEY (cookie_id) REFERENCES cookies(cookie_id)
FOREIGN KEY (customer_id) REFERENCES customer(customer_id),
FOREIGN KEY (cookie_id) REFERENCES cookie(cookie_id)
);
--------------------------------------------
@ -58,7 +58,7 @@ CREATE TABLE IF NOT EXISTS pallets (
order_id INT NOT NULL,
status VARCHAR(50) NOT NULL CHECK (status IN ('freezer', 'delivered', 'blocked')),
production_date DATE NOT NULL,
FOREIGN KEY (cookie_id) REFERENCES cookies(cookie_id)
FOREIGN KEY (cookie_id) REFERENCES cookie(cookie_id)
FOREIGN KEY (order_id) REFERENCES orders(order_id)
);

View file

@ -8,8 +8,6 @@ run:
clean:
./gradlew clean
rm -f *.tar.gz *.tar.gz.minisig
rm -f app/krusty.db
test:
./gradlew test