{ "formatVersion": 1, "database": { "version": 1, "identityHash": "65cab29ac1008303ffcb7863f8109b79", "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)", "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 } ], "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" ] } ] } ], "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, '65cab29ac1008303ffcb7863f8109b79')" ] } }