You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
326 B
MySQL

4 years ago
CREATE TABLE artist (
id SERIAL PRIMARY KEY,
name VARCHAR(64)
);
CREATE TABLE album (
id SERIAL PRIMARY KEY,
name VARCHAR(64),
artist_id INTEGER NOT NULL REFERENCES artist
);
CREATE TABLE limerick (
id SERIAL PRIMARY KEY,
name VARCHAR(64),
text VARCHAR(1024),
album_id INTEGER NOT NULL REFERENCES album
);