forked from mudita/MuditaOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing db schema.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. | ||
-- For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md | ||
|
||
CREATE TABLE IF NOT EXISTS files | ||
( | ||
_id INTEGER PRIMARY KEY, | ||
path TEXT UNIQUE, /* filepath */ | ||
media_type TEXT, /* mime type e.g. "audio/mp3" */ | ||
size INTEGER, /* file size in bytes */ | ||
title TEXT, /* song title */ | ||
artist TEXT, /* song artist */ | ||
album TEXT, /* song album */ | ||
comment TEXT, /* comment */ | ||
genre TEXT, /* e.g. "blues, classic rock" */ | ||
year INTEGER, /* year of release */ | ||
track INTEGER, /* track number */ | ||
song_length INTEGER, /* length of the song in seconds */ | ||
bitrate INTEGER, /* bitrate of the song in kb/s */ | ||
sample_rate INTEGER, /* sample rate of the song in Hz */ | ||
channels INTEGER /* number of channels 1 - mono, 2 - stereo */ | ||
); |