Commit 98418301 authored by Sorrel Harriet's avatar Sorrel Harriet

minor change to schema

parent 6b18ccd4
......@@ -11,7 +11,7 @@ CREATE TABLE artist (
/* Define table for storing records (products) */
CREATE TABLE record (
ean VARCHAR(8),
ean CHAR(8) NOT NULL,
title VARCHAR(50) NOT NULL,
artist_id INT,
genre VARCHAR(50),
......@@ -50,7 +50,7 @@ CREATE TABLE transaction (
CREATE TABLE orderline (
id INT AUTO_INCREMENT,
transaction_id INT,
record_ean VARCHAR(8),
record_ean CHAR(8),
quantity INT NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (transaction_id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment