File indexing completed on 2025-02-23 04:29:35

0001 -- SPDX-FileCopyrightText: 2022 Jonah BrĂ¼chert <jbb@kaidan.im>
0002 --
0003 -- SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 
0005 create table playlists (
0006     playlist_id Integer primary key autoincrement not null,
0007     title Text not null,
0008     description Text,
0009     created_on Timestamp not null default current_timestamp
0010 );
0011 
0012 create table playlist_entries (
0013     playlist_id Integer not null,
0014     video_id Text not null,
0015     primary key (playlist_id, video_id)
0016     foreign key (video_id) references songs(video_id),
0017     foreign key (playlist_id) references playlists(playlist_id)
0018 );