Skip to content

Commit

Permalink
[BH-1294] Missing multimedia db
Browse files Browse the repository at this point in the history
Added missing db schema.
  • Loading branch information
Mateusz Piesta authored and swichu91 committed Dec 13, 2021
1 parent 1673b03 commit 81c92a7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions image/user/db/multimedia_001.sql
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 */
);

0 comments on commit 81c92a7

Please sign in to comment.