db schemas beginning
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
# YellowJacket Database Schema
|
||||
|
||||
## Tables
|
||||
|
||||
### `audio_files`
|
||||
|
||||
References to all audio files that YellowJacket is aware of
|
||||
|
||||
#### Fields
|
||||
- UUID (PK)
|
||||
-
|
||||
@@ -0,0 +1,4 @@
|
||||
CREATE TABLE artists (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name text NOT NULL
|
||||
);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE audio_files (
|
||||
id uuid PRIMARY KEY,
|
||||
file_path text NOT NULL,
|
||||
file_type text NOT NULL,
|
||||
length_seconds int NOT NULL
|
||||
);
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
CREATE TABLE file_types (
|
||||
id INTEGER PRIMARY KEY,
|
||||
extension text NOT NULL
|
||||
);
|
||||
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE recordings (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name text NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
CREATE TABLE release_groups (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name text NOT NULL
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user