mmm/table.sql

26 lines
584 B
MySQL
Raw Permalink Normal View History

2024-06-30 17:27:41 +02:00
CREATE TABLE IF NOT EXISTS track
(
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
path TEXT UNIQUE,
album_artist TEXT,
title TEXT,
album TEXT,
disc INTEGER,
year INTEGER,
artist TEXT[],
genre TEXT,
lyrics TEXT,
composer TEXT
);
CREATE TABLE IF NOT EXISTS album
(
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
path TEXT UNIQUE
);
CREATE TABLE IF NOT EXISTS artist
(
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
path TEXT UNIQUE
);