{
  "formatVersion": 1,
  "database": {
    "version": 7,
    "identityHash": "9e68ae69ec629b56456527d2a5b89c41",
    "entities": [
      {
        "tableName": "id_bridge",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`tmdbId` INTEGER NOT NULL, `imdbId` TEXT NOT NULL, `tmdbPrefixed` TEXT, `tmdbUnderscored` TEXT, `mediaType` TEXT NOT NULL, `lastUpdated` INTEGER NOT NULL, PRIMARY KEY(`tmdbId`))",
        "fields": [
          {
            "fieldPath": "tmdbId",
            "columnName": "tmdbId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "imdbId",
            "columnName": "imdbId",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "tmdbPrefixed",
            "columnName": "tmdbPrefixed",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "tmdbUnderscored",
            "columnName": "tmdbUnderscored",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "mediaType",
            "columnName": "mediaType",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "lastUpdated",
            "columnName": "lastUpdated",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "tmdbId"
          ]
        },
        "indices": [
          {
            "name": "index_id_bridge_imdbId",
            "unique": false,
            "columnNames": [
              "imdbId"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_id_bridge_imdbId` ON `${TABLE_NAME}` (`imdbId`)"
          }
        ],
        "foreignKeys": []
      },
      {
        "tableName": "watch_progress",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `profileId` INTEGER NOT NULL, `mediaId` TEXT NOT NULL, `mediaType` TEXT NOT NULL, `title` TEXT NOT NULL, `progressSeconds` INTEGER NOT NULL, `durationSeconds` INTEGER NOT NULL, `progressPercent` REAL NOT NULL, `isWatched` INTEGER NOT NULL, `lastPlayedAt` INTEGER NOT NULL, `traktSynced` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "profileId",
            "columnName": "profileId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "mediaId",
            "columnName": "mediaId",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "mediaType",
            "columnName": "mediaType",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "title",
            "columnName": "title",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "progressSeconds",
            "columnName": "progressSeconds",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "durationSeconds",
            "columnName": "durationSeconds",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "progressPercent",
            "columnName": "progressPercent",
            "affinity": "REAL",
            "notNull": true
          },
          {
            "fieldPath": "isWatched",
            "columnName": "isWatched",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "lastPlayedAt",
            "columnName": "lastPlayedAt",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "traktSynced",
            "columnName": "traktSynced",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_watch_progress_profileId_mediaId",
            "unique": true,
            "columnNames": [
              "profileId",
              "mediaId"
            ],
            "orders": [],
            "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_watch_progress_profileId_mediaId` ON `${TABLE_NAME}` (`profileId`, `mediaId`)"
          },
          {
            "name": "index_watch_progress_profileId_isWatched_lastPlayedAt",
            "unique": false,
            "columnNames": [
              "profileId",
              "isWatched",
              "lastPlayedAt"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_watch_progress_profileId_isWatched_lastPlayedAt` ON `${TABLE_NAME}` (`profileId`, `isWatched`, `lastPlayedAt`)"
          }
        ],
        "foreignKeys": []
      },
      {
        "tableName": "watchlist",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `profileId` INTEGER NOT NULL, `mediaId` TEXT NOT NULL, `mediaType` TEXT NOT NULL, `title` TEXT NOT NULL, `posterUrl` TEXT, `addedAt` INTEGER NOT NULL, `traktListId` TEXT)",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "profileId",
            "columnName": "profileId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "mediaId",
            "columnName": "mediaId",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "mediaType",
            "columnName": "mediaType",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "title",
            "columnName": "title",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "posterUrl",
            "columnName": "posterUrl",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "addedAt",
            "columnName": "addedAt",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "traktListId",
            "columnName": "traktListId",
            "affinity": "TEXT",
            "notNull": false
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_watchlist_profileId_mediaId",
            "unique": true,
            "columnNames": [
              "profileId",
              "mediaId"
            ],
            "orders": [],
            "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_watchlist_profileId_mediaId` ON `${TABLE_NAME}` (`profileId`, `mediaId`)"
          },
          {
            "name": "index_watchlist_profileId_addedAt",
            "unique": false,
            "columnNames": [
              "profileId",
              "addedAt"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_watchlist_profileId_addedAt` ON `${TABLE_NAME}` (`profileId`, `addedAt`)"
          }
        ],
        "foreignKeys": []
      },
      {
        "tableName": "addons",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`addonId` TEXT NOT NULL, `name` TEXT NOT NULL, `description` TEXT NOT NULL, `manifestUrl` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `rawManifestJson` TEXT, `manifestHash` TEXT, `version` TEXT NOT NULL, `resourcesJson` TEXT NOT NULL, `typesJson` TEXT NOT NULL, `catalogsJson` TEXT NOT NULL, `idPrefixesJson` TEXT NOT NULL, `behaviorHintsJson` TEXT, `category` TEXT NOT NULL, `priority` INTEGER NOT NULL, `isEnabled` INTEGER NOT NULL, `isSystem` INTEGER NOT NULL, `userInstalled` INTEGER NOT NULL, `requiresConfiguration` INTEGER NOT NULL, `requiresDebrid` INTEGER NOT NULL, `requiresApiKey` INTEGER NOT NULL, `healthStatus` TEXT NOT NULL, `lastCheckedAt` INTEGER, `lastSuccessAt` INTEGER, `lastError` TEXT, `isNative` INTEGER NOT NULL, `isVerified` INTEGER NOT NULL, `installedAt` INTEGER NOT NULL, PRIMARY KEY(`addonId`))",
        "fields": [
          {
            "fieldPath": "addonId",
            "columnName": "addonId",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "description",
            "columnName": "description",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "manifestUrl",
            "columnName": "manifestUrl",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "baseUrl",
            "columnName": "baseUrl",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "rawManifestJson",
            "columnName": "rawManifestJson",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "manifestHash",
            "columnName": "manifestHash",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "version",
            "columnName": "version",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "resourcesJson",
            "columnName": "resourcesJson",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "typesJson",
            "columnName": "typesJson",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "catalogsJson",
            "columnName": "catalogsJson",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "idPrefixesJson",
            "columnName": "idPrefixesJson",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "behaviorHintsJson",
            "columnName": "behaviorHintsJson",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "category",
            "columnName": "category",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "priority",
            "columnName": "priority",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "isEnabled",
            "columnName": "isEnabled",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "isSystem",
            "columnName": "isSystem",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "userInstalled",
            "columnName": "userInstalled",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "requiresConfiguration",
            "columnName": "requiresConfiguration",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "requiresDebrid",
            "columnName": "requiresDebrid",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "requiresApiKey",
            "columnName": "requiresApiKey",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "healthStatus",
            "columnName": "healthStatus",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "lastCheckedAt",
            "columnName": "lastCheckedAt",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "lastSuccessAt",
            "columnName": "lastSuccessAt",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "lastError",
            "columnName": "lastError",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "isNative",
            "columnName": "isNative",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "isVerified",
            "columnName": "isVerified",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "installedAt",
            "columnName": "installedAt",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "addonId"
          ]
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "profiles",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `avatar` TEXT NOT NULL, `isKidsProfile` INTEGER NOT NULL, `pinHash` TEXT, `pinSalt` TEXT, `traktLinked` INTEGER NOT NULL, `traktUsername` TEXT, `contentRating` TEXT NOT NULL, `dailyWatchLimit` INTEGER NOT NULL, `bedtimeCutoff` TEXT, `createdAt` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "avatar",
            "columnName": "avatar",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "isKidsProfile",
            "columnName": "isKidsProfile",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "pinHash",
            "columnName": "pinHash",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "pinSalt",
            "columnName": "pinSalt",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "traktLinked",
            "columnName": "traktLinked",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "traktUsername",
            "columnName": "traktUsername",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "contentRating",
            "columnName": "contentRating",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "dailyWatchLimit",
            "columnName": "dailyWatchLimit",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "bedtimeCutoff",
            "columnName": "bedtimeCutoff",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "createdAt",
            "columnName": "createdAt",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "watched_items",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `profileId` INTEGER NOT NULL, `mediaId` TEXT NOT NULL, `mediaType` TEXT NOT NULL, `title` TEXT NOT NULL, `posterUrl` TEXT NOT NULL, `backdropUrl` TEXT NOT NULL, `year` INTEGER, `source` TEXT NOT NULL, `debridProvider` TEXT, `watchedAt` INTEGER NOT NULL, `durationSeconds` INTEGER NOT NULL, `traktSynced` INTEGER NOT NULL, `rating` INTEGER)",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "profileId",
            "columnName": "profileId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "mediaId",
            "columnName": "mediaId",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "mediaType",
            "columnName": "mediaType",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "title",
            "columnName": "title",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "posterUrl",
            "columnName": "posterUrl",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "backdropUrl",
            "columnName": "backdropUrl",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "year",
            "columnName": "year",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "source",
            "columnName": "source",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "debridProvider",
            "columnName": "debridProvider",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "watchedAt",
            "columnName": "watchedAt",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "durationSeconds",
            "columnName": "durationSeconds",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "traktSynced",
            "columnName": "traktSynced",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "rating",
            "columnName": "rating",
            "affinity": "INTEGER",
            "notNull": false
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_watched_items_profileId_mediaId",
            "unique": true,
            "columnNames": [
              "profileId",
              "mediaId"
            ],
            "orders": [],
            "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_watched_items_profileId_mediaId` ON `${TABLE_NAME}` (`profileId`, `mediaId`)"
          },
          {
            "name": "index_watched_items_profileId_watchedAt",
            "unique": false,
            "columnNames": [
              "profileId",
              "watchedAt"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_watched_items_profileId_watchedAt` ON `${TABLE_NAME}` (`profileId`, `watchedAt`)"
          },
          {
            "name": "index_watched_items_source",
            "unique": false,
            "columnNames": [
              "source"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_watched_items_source` ON `${TABLE_NAME}` (`source`)"
          }
        ],
        "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, '9e68ae69ec629b56456527d2a5b89c41')"
    ]
  }
}