328 lines
No EOL
9.9 KiB
JSON
328 lines
No EOL
9.9 KiB
JSON
{
|
|
"formatVersion": 1,
|
|
"database": {
|
|
"version": 2,
|
|
"identityHash": "21324c66a25a914e9885dac4b7f05c83",
|
|
"entities": [
|
|
{
|
|
"tableName": "library_folder",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`treeUri` TEXT NOT NULL, `displayName` TEXT NOT NULL, `addedAt` INTEGER NOT NULL, PRIMARY KEY(`treeUri`))",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "treeUri",
|
|
"columnName": "treeUri",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "displayName",
|
|
"columnName": "displayName",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "addedAt",
|
|
"columnName": "addedAt",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": false,
|
|
"columnNames": [
|
|
"treeUri"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"tableName": "track",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`documentUri` TEXT NOT NULL, `folderUri` TEXT NOT NULL, `relativePath` TEXT NOT NULL, `size` INTEGER NOT NULL, `lastModified` INTEGER NOT NULL, `codec` TEXT NOT NULL, `sampleRate` INTEGER NOT NULL, `channels` INTEGER NOT NULL, `bitsPerSample` INTEGER, `durationMs` INTEGER NOT NULL, `bitrateKbps` INTEGER, `opusOutputGainDb` REAL, `title` TEXT, `artists` TEXT NOT NULL, `album` TEXT, `albumArtists` TEXT NOT NULL, `trackNumber` INTEGER, `trackTotal` INTEGER, `discNumber` INTEGER, `discTotal` INTEGER, `date` TEXT, `year` INTEGER, `genres` TEXT NOT NULL, `composers` TEXT NOT NULL, `titleSort` TEXT, `artistSort` TEXT, `albumSort` TEXT, `albumArtistSort` TEXT, `compilation` INTEGER NOT NULL, `trackGainDb` REAL, `trackPeak` REAL, `albumGainDb` REAL, `albumPeak` REAL, `hasEmbeddedCover` INTEGER NOT NULL, PRIMARY KEY(`documentUri`))",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "documentUri",
|
|
"columnName": "documentUri",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "folderUri",
|
|
"columnName": "folderUri",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "relativePath",
|
|
"columnName": "relativePath",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "size",
|
|
"columnName": "size",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "lastModified",
|
|
"columnName": "lastModified",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "codec",
|
|
"columnName": "codec",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "sampleRate",
|
|
"columnName": "sampleRate",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "channels",
|
|
"columnName": "channels",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "bitsPerSample",
|
|
"columnName": "bitsPerSample",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "durationMs",
|
|
"columnName": "durationMs",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "bitrateKbps",
|
|
"columnName": "bitrateKbps",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "opusOutputGainDb",
|
|
"columnName": "opusOutputGainDb",
|
|
"affinity": "REAL"
|
|
},
|
|
{
|
|
"fieldPath": "title",
|
|
"columnName": "title",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "artists",
|
|
"columnName": "artists",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "album",
|
|
"columnName": "album",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "albumArtists",
|
|
"columnName": "albumArtists",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "trackNumber",
|
|
"columnName": "trackNumber",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "trackTotal",
|
|
"columnName": "trackTotal",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "discNumber",
|
|
"columnName": "discNumber",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "discTotal",
|
|
"columnName": "discTotal",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "date",
|
|
"columnName": "date",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "year",
|
|
"columnName": "year",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "genres",
|
|
"columnName": "genres",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "composers",
|
|
"columnName": "composers",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "titleSort",
|
|
"columnName": "titleSort",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "artistSort",
|
|
"columnName": "artistSort",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "albumSort",
|
|
"columnName": "albumSort",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "albumArtistSort",
|
|
"columnName": "albumArtistSort",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "compilation",
|
|
"columnName": "compilation",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "trackGainDb",
|
|
"columnName": "trackGainDb",
|
|
"affinity": "REAL"
|
|
},
|
|
{
|
|
"fieldPath": "trackPeak",
|
|
"columnName": "trackPeak",
|
|
"affinity": "REAL"
|
|
},
|
|
{
|
|
"fieldPath": "albumGainDb",
|
|
"columnName": "albumGainDb",
|
|
"affinity": "REAL"
|
|
},
|
|
{
|
|
"fieldPath": "albumPeak",
|
|
"columnName": "albumPeak",
|
|
"affinity": "REAL"
|
|
},
|
|
{
|
|
"fieldPath": "hasEmbeddedCover",
|
|
"columnName": "hasEmbeddedCover",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": false,
|
|
"columnNames": [
|
|
"documentUri"
|
|
]
|
|
},
|
|
"indices": [
|
|
{
|
|
"name": "index_track_folderUri",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"folderUri"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_track_folderUri` ON `${TABLE_NAME}` (`folderUri`)"
|
|
},
|
|
{
|
|
"name": "index_track_album",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"album"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_track_album` ON `${TABLE_NAME}` (`album`)"
|
|
},
|
|
{
|
|
"name": "index_track_albumArtists",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"albumArtists"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_track_albumArtists` ON `${TABLE_NAME}` (`albumArtists`)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tableName": "skipped_file",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`documentUri` TEXT NOT NULL, `folderUri` TEXT NOT NULL, `relativePath` TEXT NOT NULL, `size` INTEGER NOT NULL, `lastModified` INTEGER NOT NULL, `reason` TEXT NOT NULL, PRIMARY KEY(`documentUri`))",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "documentUri",
|
|
"columnName": "documentUri",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "folderUri",
|
|
"columnName": "folderUri",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "relativePath",
|
|
"columnName": "relativePath",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "size",
|
|
"columnName": "size",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "lastModified",
|
|
"columnName": "lastModified",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "reason",
|
|
"columnName": "reason",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": false,
|
|
"columnNames": [
|
|
"documentUri"
|
|
]
|
|
},
|
|
"indices": [
|
|
{
|
|
"name": "index_skipped_file_folderUri",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"folderUri"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_skipped_file_folderUri` ON `${TABLE_NAME}` (`folderUri`)"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"setupQueries": [
|
|
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
|
|
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '21324c66a25a914e9885dac4b7f05c83')"
|
|
]
|
|
}
|
|
} |