diff --git a/day1.sql b/day1.sql new file mode 100644 index 0000000..81e26b6 --- /dev/null +++ b/day1.sql @@ -0,0 +1,18 @@ +REATE TABLE album ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + title VARCHAR(128) NOT NULL, + release_year INTEGER +); + CREATE TABLE artist ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(128) NOT NULL +); + CREATE TABLE track ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + title VARCHAR(128) NOT NULL, + album_id INT REFERENCES album(id) +); + CREATE TABLE artist_album ( + artist_id INT REFERENCES artist(id), + album_id INT REFERENCES album(id) +); \ No newline at end of file diff --git a/mydatabase.db b/mydatabase.db new file mode 100644 index 0000000..8296245 Binary files /dev/null and b/mydatabase.db differ diff --git a/note.sql b/note.sql new file mode 100644 index 0000000..08bdc7a --- /dev/null +++ b/note.sql @@ -0,0 +1,12 @@ +INSERT INTO author (name) VALUES ('Brandon Hopper'); +INSERT INTO author (name) VALUES ('Dj Hopper'); +INSERT INTO author (name) VALUES ('Bailey Hopper'); + +INSERT INTO note (content, author_id) VALUES ('This is a note with some content to it', 2); +INSERT INTO note (content, author_id) VALUES ('This is note is new and it is with some new content to it', 2); + +INSERT INTO note (content, author_id) VALUES ('This is some note with some content to it', 3); + +INSERT INTO note (content, author_id) VALUES ('This is one note with some content to it', 1); +INSERT INTO note (content, author_id) VALUES ('This is a new note with some content to it', 1); +INSERT INTO note (content, author_id) VALUES ('This is a another note with some content to it', 1); \ No newline at end of file