{ "formatVersion": 1, "database": { "version": 7, "identityHash": "9acdc444a432673a6a66d901e021257b", "entities": [ { "tableName": "Subscription", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `channelID` TEXT NOT NULL, `avatarURL` TEXT NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "channelID", "columnName": "channelID", "affinity": "TEXT", "notNull": true }, { "fieldPath": "avatarURL", "columnName": "avatarURL", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } }, { "tableName": "SubscriptionVideo", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `duration` INTEGER NOT NULL, `views` INTEGER NOT NULL, `uploadDate` INTEGER NOT NULL, `thumbnailURL` TEXT NOT NULL, `author` TEXT NOT NULL, `channelID` INTEGER NOT NULL, FOREIGN KEY(`channelID`) REFERENCES `Subscription`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "duration", "columnName": "duration", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "views", "columnName": "views", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "uploadDate", "columnName": "uploadDate", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "thumbnailURL", "columnName": "thumbnailURL", "affinity": "TEXT", "notNull": true }, { "fieldPath": "author", "columnName": "author", "affinity": "TEXT", "notNull": true }, { "fieldPath": "channelID", "columnName": "channelID", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_SubscriptionVideo_channelID", "unique": false, "columnNames": [ "channelID" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_SubscriptionVideo_channelID` ON `${TABLE_NAME}` (`channelID`)" } ], "foreignKeys": [ { "table": "Subscription", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "channelID" ], "referencedColumns": [ "id" ] } ] }, { "tableName": "HistoryVideo", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `progress` INTEGER NOT NULL, `timestamp` INTEGER NOT NULL, `name` TEXT NOT NULL, `videoID` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `views` INTEGER NOT NULL, `uploadDate` INTEGER NOT NULL, `thumbnailURL` TEXT NOT NULL, `author` TEXT NOT NULL, `isPaid` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "progress", "columnName": "progress", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "timestamp", "columnName": "timestamp", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.videoID", "columnName": "videoID", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.duration", "columnName": "duration", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.views", "columnName": "views", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.uploadDate", "columnName": "uploadDate", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.thumbnailURL", "columnName": "thumbnailURL", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.author", "columnName": "author", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.isPaid", "columnName": "isPaid", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } }, { "tableName": "SubscriptionCategory", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`subscriptionID` INTEGER NOT NULL, `category` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`subscriptionID`) REFERENCES `Subscription`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "subscriptionID", "columnName": "subscriptionID", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "category", "columnName": "category", "affinity": "TEXT", "notNull": true }, { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_SubscriptionCategory_subscriptionID", "unique": false, "columnNames": [ "subscriptionID" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_SubscriptionCategory_subscriptionID` ON `${TABLE_NAME}` (`subscriptionID`)" } ], "foreignKeys": [ { "table": "Subscription", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "subscriptionID" ], "referencedColumns": [ "id" ] } ] }, { "tableName": "DownloadedVideo", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `filePath` TEXT NOT NULL, `audioPath` TEXT, `timestamp` INTEGER NOT NULL, `name` TEXT NOT NULL, `videoID` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `views` INTEGER NOT NULL, `uploadDate` INTEGER NOT NULL, `thumbnailURL` TEXT NOT NULL, `author` TEXT NOT NULL, `isPaid` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "filePath", "columnName": "filePath", "affinity": "TEXT", "notNull": true }, { "fieldPath": "audioPath", "columnName": "audioPath", "affinity": "TEXT" }, { "fieldPath": "timestamp", "columnName": "timestamp", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.videoID", "columnName": "videoID", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.duration", "columnName": "duration", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.views", "columnName": "views", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.uploadDate", "columnName": "uploadDate", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.thumbnailURL", "columnName": "thumbnailURL", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.author", "columnName": "author", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.isPaid", "columnName": "isPaid", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] } }, { "tableName": "CachedRelatedVideo", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `sourceVideoID` INTEGER NOT NULL, `cachedAt` INTEGER NOT NULL, `name` TEXT NOT NULL, `videoID` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `views` INTEGER NOT NULL, `uploadDate` INTEGER NOT NULL, `thumbnailURL` TEXT NOT NULL, `author` TEXT NOT NULL, `isPaid` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "sourceVideoID", "columnName": "sourceVideoID", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "cachedAt", "columnName": "cachedAt", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.videoID", "columnName": "videoID", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.duration", "columnName": "duration", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.views", "columnName": "views", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.uploadDate", "columnName": "uploadDate", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.thumbnailURL", "columnName": "thumbnailURL", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.author", "columnName": "author", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.isPaid", "columnName": "isPaid", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } }, { "tableName": "RecommendationImpression", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`videoID` INTEGER NOT NULL, `channelKey` TEXT NOT NULL, `source` TEXT NOT NULL, `shownCount` INTEGER NOT NULL, `firstShownAt` INTEGER NOT NULL, `lastShownAt` INTEGER NOT NULL, PRIMARY KEY(`videoID`))", "fields": [ { "fieldPath": "videoID", "columnName": "videoID", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "channelKey", "columnName": "channelKey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "source", "columnName": "source", "affinity": "TEXT", "notNull": true }, { "fieldPath": "shownCount", "columnName": "shownCount", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "firstShownAt", "columnName": "firstShownAt", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "lastShownAt", "columnName": "lastShownAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "videoID" ] } }, { "tableName": "RecommendationPreferences", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `preset` TEXT NOT NULL, `discoveryFamiliar` REAL NOT NULL, `freshEvergreen` REAL NOT NULL, `focusedDiverse` REAL NOT NULL, `sourceRelated` INTEGER NOT NULL, `sourceTrending` INTEGER NOT NULL, `sourceSubscription` INTEGER NOT NULL, `sourceTopChannel` INTEGER NOT NULL, `sourceSearch` INTEGER NOT NULL, `hideShorts` INTEGER NOT NULL, `hideLive` INTEGER NOT NULL, `hidePaid` INTEGER NOT NULL, `minDurationSec` INTEGER NOT NULL, `maxDurationSec` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "preset", "columnName": "preset", "affinity": "TEXT", "notNull": true }, { "fieldPath": "discoveryFamiliar", "columnName": "discoveryFamiliar", "affinity": "REAL", "notNull": true }, { "fieldPath": "freshEvergreen", "columnName": "freshEvergreen", "affinity": "REAL", "notNull": true }, { "fieldPath": "focusedDiverse", "columnName": "focusedDiverse", "affinity": "REAL", "notNull": true }, { "fieldPath": "sourceRelated", "columnName": "sourceRelated", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "sourceTrending", "columnName": "sourceTrending", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "sourceSubscription", "columnName": "sourceSubscription", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "sourceTopChannel", "columnName": "sourceTopChannel", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "sourceSearch", "columnName": "sourceSearch", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "hideShorts", "columnName": "hideShorts", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "hideLive", "columnName": "hideLive", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "hidePaid", "columnName": "hidePaid", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "minDurationSec", "columnName": "minDurationSec", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "maxDurationSec", "columnName": "maxDurationSec", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] } }, { "tableName": "ChannelPreference", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`channelKey` TEXT NOT NULL, `multiplier` REAL NOT NULL, `blocked` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, PRIMARY KEY(`channelKey`))", "fields": [ { "fieldPath": "channelKey", "columnName": "channelKey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "multiplier", "columnName": "multiplier", "affinity": "REAL", "notNull": true }, { "fieldPath": "blocked", "columnName": "blocked", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "pinned", "columnName": "pinned", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "channelKey" ] } }, { "tableName": "KeywordPreference", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`keyword` TEXT NOT NULL, `muted` INTEGER NOT NULL, PRIMARY KEY(`keyword`))", "fields": [ { "fieldPath": "keyword", "columnName": "keyword", "affinity": "TEXT", "notNull": true }, { "fieldPath": "muted", "columnName": "muted", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "keyword" ] } }, { "tableName": "Playlist", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `position` REAL NOT NULL, `mandatory` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "position", "columnName": "position", "affinity": "REAL", "notNull": true }, { "fieldPath": "mandatory", "columnName": "mandatory", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } }, { "tableName": "PlaylistItem", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `playlistId` INTEGER NOT NULL, `position` REAL NOT NULL, `timestamp` INTEGER NOT NULL, `name` TEXT NOT NULL, `videoID` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `views` INTEGER NOT NULL, `uploadDate` INTEGER NOT NULL, `thumbnailURL` TEXT NOT NULL, `author` TEXT NOT NULL, `isPaid` INTEGER NOT NULL, FOREIGN KEY(`playlistId`) REFERENCES `Playlist`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "playlistId", "columnName": "playlistId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "position", "columnName": "position", "affinity": "REAL", "notNull": true }, { "fieldPath": "timestamp", "columnName": "timestamp", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.videoID", "columnName": "videoID", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.duration", "columnName": "duration", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.views", "columnName": "views", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.uploadDate", "columnName": "uploadDate", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "videoItem.thumbnailURL", "columnName": "thumbnailURL", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.author", "columnName": "author", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoItem.isPaid", "columnName": "isPaid", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_PlaylistItem_playlistId", "unique": false, "columnNames": [ "playlistId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_PlaylistItem_playlistId` ON `${TABLE_NAME}` (`playlistId`)" } ], "foreignKeys": [ { "table": "Playlist", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "playlistId" ], "referencedColumns": [ "id" ] } ] } ], "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, '9acdc444a432673a6a66d901e021257b')" ] } }