Update sqlCode

This commit is contained in:
Ivan Bogosavljevic 2024-04-17 23:30:01 +02:00 committed by GitHub
parent b4851455dd
commit e241613a15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,17 +7,16 @@ DROP TABLE IF EXISTS Orders;
DROP TABLE IF EXISTS Customer;
CREATE TABLE Customer (
customer_id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255),
name VARCHAR(255) PRIMARY KEY,
address VARCHAR(255)
);
CREATE TABLE Orders (
order_id INT AUTO_INCREMENT PRIMARY KEY,
customer_id INT,
customer_name VARCHAR(255),
delivery_date DATE,
order_date DATE,
FOREIGN KEY (customer_id) REFERENCES Customer(customer_id)
FOREIGN KEY (customer_name) REFERENCES Customer(name)
);
CREATE TABLE Cookie (