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

19 lines
562 B

CREATE TABLE IF NOT EXISTS "schema_migrations" (version varchar(128) primary key);
CREATE TABLE video_states (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name TEXT
);
CREATE TABLE discovered_videos (
id TEXT PRIMARY KEY,
info JSON,
status INTEGER REFERENCES video_states(id)
);
CREATE TABLE videos_in_playlists (
video_id TEXT NOT NULL,
playlist_id TEXT NOT NULL,
playlist_name TEXT,
PRIMARY KEY (video_id, playlist_id)
);
-- Dbmate schema migrations
INSERT INTO "schema_migrations" (version) VALUES
('20230519145608');