0
0
mirror of https://github.com/mediathekview/zapp.git synced 2024-09-20 12:22:15 +02:00
zapp/app/schemas/de.christinecoenen.code.zapp.persistence.Database/2.json
2021-01-09 20:35:28 +01:00

181 lines
5.8 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "833e5a4cb545fd287014103ffbfbfca2",
"entities": [
{
"tableName": "PersistedMediathekShow",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `createdAt` INTEGER NOT NULL, `downloadId` INTEGER NOT NULL, `downloadedAt` INTEGER, `downloadedVideoPath` TEXT, `downloadStatus` INTEGER NOT NULL, `downloadProgress` INTEGER NOT NULL, `lastPlayedBackAt` INTEGER, `playbackPosition` INTEGER NOT NULL, `videoDuration` INTEGER NOT NULL, `apiId` TEXT NOT NULL, `topic` TEXT NOT NULL, `title` TEXT NOT NULL, `description` TEXT, `channel` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `size` INTEGER NOT NULL, `duration` TEXT, `filmlisteTimestamp` INTEGER NOT NULL, `websiteUrl` TEXT, `subtitleUrl` TEXT, `videoUrl` TEXT NOT NULL, `videoUrlLow` TEXT, `videoUrlHd` TEXT)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "createdAt",
"columnName": "createdAt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "downloadId",
"columnName": "downloadId",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "downloadedAt",
"columnName": "downloadedAt",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "downloadedVideoPath",
"columnName": "downloadedVideoPath",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "downloadStatus",
"columnName": "downloadStatus",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "downloadProgress",
"columnName": "downloadProgress",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "lastPlayedBackAt",
"columnName": "lastPlayedBackAt",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "playbackPosition",
"columnName": "playbackPosition",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "videoDuration",
"columnName": "videoDuration",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "mediathekShow.apiId",
"columnName": "apiId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "mediathekShow.topic",
"columnName": "topic",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "mediathekShow.title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "mediathekShow.description",
"columnName": "description",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mediathekShow.channel",
"columnName": "channel",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "mediathekShow.timestamp",
"columnName": "timestamp",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "mediathekShow.size",
"columnName": "size",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "mediathekShow.duration",
"columnName": "duration",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mediathekShow.filmlisteTimestamp",
"columnName": "filmlisteTimestamp",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "mediathekShow.websiteUrl",
"columnName": "websiteUrl",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mediathekShow.subtitleUrl",
"columnName": "subtitleUrl",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mediathekShow.videoUrl",
"columnName": "videoUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "mediathekShow.videoUrlLow",
"columnName": "videoUrlLow",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mediathekShow.videoUrlHd",
"columnName": "videoUrlHd",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": true
},
"indices": [
{
"name": "index_PersistedMediathekShow_apiId",
"unique": true,
"columnNames": [
"apiId"
],
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_PersistedMediathekShow_apiId` ON `${TABLE_NAME}` (`apiId`)"
}
],
"foreignKeys": []
}
],
"views": [],
"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, '833e5a4cb545fd287014103ffbfbfca2')"
]
}
}