db schemas beginning

This commit is contained in:
2025-04-12 23:25:19 -05:00
parent 2b368a71ee
commit 3c193209b9
7 changed files with 24 additions and 11 deletions
+1
View File
@@ -2,3 +2,4 @@ frontend/dist
node_modules
build
test_data
test.db
-11
View File
@@ -1,11 +0,0 @@
# YellowJacket Database Schema
## Tables
### `audio_files`
References to all audio files that YellowJacket is aware of
#### Fields
- UUID (PK)
-
+4
View File
@@ -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
);