{
  "formatVersion": 1,
  "database": {
    "version": 5,
    "identityHash": "63b0583318041cf7d3acf05e12016d12",
    "entities": [
      {
        "tableName": "reporting_uris",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_id` INTEGER NOT NULL, `seller_reporting_uri` TEXT NOT NULL, `buyer_reporting_uri` TEXT NOT NULL, PRIMARY KEY(`ad_selection_id`))",
        "fields": [
          {
            "fieldPath": "adSelectionId",
            "columnName": "ad_selection_id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "sellerReportingUri",
            "columnName": "seller_reporting_uri",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "buyerReportingUri",
            "columnName": "buyer_reporting_uri",
            "affinity": "TEXT",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "ad_selection_id"
          ]
        },
        "indices": [
          {
            "name": "index_reporting_uris_ad_selection_id",
            "unique": false,
            "columnNames": [
              "ad_selection_id"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_reporting_uris_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)"
          }
        ],
        "foreignKeys": []
      },
      {
        "tableName": "encryption_key",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`encryption_key_type` INTEGER NOT NULL, `key_identifier` TEXT NOT NULL, `public_key` TEXT NOT NULL, `creation_instant` INTEGER, `expiry_ttl_seconds` INTEGER NOT NULL, `expiry_instant` INTEGER NOT NULL, PRIMARY KEY(`encryption_key_type`, `key_identifier`))",
        "fields": [
          {
            "fieldPath": "encryptionKeyType",
            "columnName": "encryption_key_type",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "keyIdentifier",
            "columnName": "key_identifier",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "publicKey",
            "columnName": "public_key",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "creationInstant",
            "columnName": "creation_instant",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "expiryTtlSeconds",
            "columnName": "expiry_ttl_seconds",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "expiryInstant",
            "columnName": "expiry_instant",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "encryption_key_type",
            "key_identifier"
          ]
        },
        "indices": [
          {
            "name": "index_encryption_key_encryption_key_type_expiry_instant",
            "unique": false,
            "columnNames": [
              "encryption_key_type",
              "expiry_instant"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_encryption_key_encryption_key_type_expiry_instant` ON `${TABLE_NAME}` (`encryption_key_type`, `expiry_instant`)"
          }
        ],
        "foreignKeys": []
      },
      {
        "tableName": "encryption_context",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`context_id` INTEGER NOT NULL, `encryption_key_type` INTEGER NOT NULL, `key_config` BLOB, `shared_secret` BLOB, `seed` BLOB, `creation_instant` INTEGER DEFAULT CURRENT_TIMESTAMP, `has_media_type_changed` INTEGER NOT NULL DEFAULT false, PRIMARY KEY(`context_id`, `encryption_key_type`))",
        "fields": [
          {
            "fieldPath": "contextId",
            "columnName": "context_id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "encryptionKeyType",
            "columnName": "encryption_key_type",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "keyConfig",
            "columnName": "key_config",
            "affinity": "BLOB",
            "notNull": false
          },
          {
            "fieldPath": "sharedSecret",
            "columnName": "shared_secret",
            "affinity": "BLOB",
            "notNull": false
          },
          {
            "fieldPath": "seed",
            "columnName": "seed",
            "affinity": "BLOB",
            "notNull": false
          },
          {
            "fieldPath": "creationInstant",
            "columnName": "creation_instant",
            "affinity": "INTEGER",
            "notNull": false,
            "defaultValue": "CURRENT_TIMESTAMP"
          },
          {
            "fieldPath": "hasMediaTypeChanged",
            "columnName": "has_media_type_changed",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "false"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "context_id",
            "encryption_key_type"
          ]
        },
        "indices": [
          {
            "name": "index_encryption_context_creation_instant",
            "unique": false,
            "columnNames": [
              "creation_instant"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_encryption_context_creation_instant` ON `${TABLE_NAME}` (`creation_instant`)"
          }
        ],
        "foreignKeys": []
      },
      {
        "tableName": "auction_server_ad_selection",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_id` INTEGER NOT NULL, `seller` TEXT NOT NULL, `winner_buyer` TEXT, `winner_ad_render_uri` TEXT, `ad_counter_int_keys` TEXT, `seller_win_reporting_uri` TEXT, `buyer_win_reporting_uri` TEXT, PRIMARY KEY(`ad_selection_id`))",
        "fields": [
          {
            "fieldPath": "adSelectionId",
            "columnName": "ad_selection_id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "seller",
            "columnName": "seller",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "winnerBuyer",
            "columnName": "winner_buyer",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "winnerAdRenderUri",
            "columnName": "winner_ad_render_uri",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "adCounterIntKeys",
            "columnName": "ad_counter_int_keys",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "sellerReportingUri",
            "columnName": "seller_win_reporting_uri",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "buyerReportingUri",
            "columnName": "buyer_win_reporting_uri",
            "affinity": "TEXT",
            "notNull": false
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "ad_selection_id"
          ]
        },
        "indices": [
          {
            "name": "index_auction_server_ad_selection_ad_selection_id",
            "unique": false,
            "columnNames": [
              "ad_selection_id"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_auction_server_ad_selection_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)"
          }
        ],
        "foreignKeys": []
      },
      {
        "tableName": "protected_servers_encryption_config",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`row_id` INTEGER PRIMARY KEY AUTOINCREMENT, `coordinator_url` TEXT NOT NULL, `encryption_key_type` INTEGER NOT NULL, `key_identifier` TEXT NOT NULL, `public_key` TEXT NOT NULL, `creation_instant` INTEGER, `expiryTtlSeconds` INTEGER NOT NULL, `expiry_instant` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "rowId",
            "columnName": "row_id",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "coordinatorUrl",
            "columnName": "coordinator_url",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "encryptionKeyType",
            "columnName": "encryption_key_type",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "keyIdentifier",
            "columnName": "key_identifier",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "publicKey",
            "columnName": "public_key",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "creationInstant",
            "columnName": "creation_instant",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "expiryTtlSeconds",
            "columnName": "expiryTtlSeconds",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "expiryInstant",
            "columnName": "expiry_instant",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "row_id"
          ]
        },
        "indices": [
          {
            "name": "index_protected_servers_encryption_config_coordinator_url_encryption_key_type_expiry_instant",
            "unique": false,
            "columnNames": [
              "coordinator_url",
              "encryption_key_type",
              "expiry_instant"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_protected_servers_encryption_config_coordinator_url_encryption_key_type_expiry_instant` ON `${TABLE_NAME}` (`coordinator_url`, `encryption_key_type`, `expiry_instant`)"
          },
          {
            "name": "index_protected_servers_encryption_config_coordinator_url_encryption_key_type_key_identifier",
            "unique": true,
            "columnNames": [
              "coordinator_url",
              "encryption_key_type",
              "key_identifier"
            ],
            "orders": [],
            "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_protected_servers_encryption_config_coordinator_url_encryption_key_type_key_identifier` ON `${TABLE_NAME}` (`coordinator_url`, `encryption_key_type`, `key_identifier`)"
          }
        ],
        "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, '63b0583318041cf7d3acf05e12016d12')"
    ]
  }
}