1{ 2 "formatVersion": 1, 3 "database": { 4 "version": 3, 5 "identityHash": "3af85a266deebfe1b0744fc2303e41f2", 6 "entities": [ 7 { 8 "tableName": "reporting_uris", 9 "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`))", 10 "fields": [ 11 { 12 "fieldPath": "adSelectionId", 13 "columnName": "ad_selection_id", 14 "affinity": "INTEGER", 15 "notNull": true 16 }, 17 { 18 "fieldPath": "sellerReportingUri", 19 "columnName": "seller_reporting_uri", 20 "affinity": "TEXT", 21 "notNull": true 22 }, 23 { 24 "fieldPath": "buyerReportingUri", 25 "columnName": "buyer_reporting_uri", 26 "affinity": "TEXT", 27 "notNull": true 28 } 29 ], 30 "primaryKey": { 31 "autoGenerate": false, 32 "columnNames": [ 33 "ad_selection_id" 34 ] 35 }, 36 "indices": [ 37 { 38 "name": "index_reporting_uris_ad_selection_id", 39 "unique": false, 40 "columnNames": [ 41 "ad_selection_id" 42 ], 43 "orders": [], 44 "createSql": "CREATE INDEX IF NOT EXISTS `index_reporting_uris_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)" 45 } 46 ], 47 "foreignKeys": [] 48 }, 49 { 50 "tableName": "encryption_key", 51 "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`))", 52 "fields": [ 53 { 54 "fieldPath": "encryptionKeyType", 55 "columnName": "encryption_key_type", 56 "affinity": "INTEGER", 57 "notNull": true 58 }, 59 { 60 "fieldPath": "keyIdentifier", 61 "columnName": "key_identifier", 62 "affinity": "TEXT", 63 "notNull": true 64 }, 65 { 66 "fieldPath": "publicKey", 67 "columnName": "public_key", 68 "affinity": "TEXT", 69 "notNull": true 70 }, 71 { 72 "fieldPath": "creationInstant", 73 "columnName": "creation_instant", 74 "affinity": "INTEGER", 75 "notNull": false 76 }, 77 { 78 "fieldPath": "expiryTtlSeconds", 79 "columnName": "expiry_ttl_seconds", 80 "affinity": "INTEGER", 81 "notNull": true 82 }, 83 { 84 "fieldPath": "expiryInstant", 85 "columnName": "expiry_instant", 86 "affinity": "INTEGER", 87 "notNull": true 88 } 89 ], 90 "primaryKey": { 91 "autoGenerate": false, 92 "columnNames": [ 93 "encryption_key_type", 94 "key_identifier" 95 ] 96 }, 97 "indices": [ 98 { 99 "name": "index_encryption_key_encryption_key_type_expiry_instant", 100 "unique": false, 101 "columnNames": [ 102 "encryption_key_type", 103 "expiry_instant" 104 ], 105 "orders": [], 106 "createSql": "CREATE INDEX IF NOT EXISTS `index_encryption_key_encryption_key_type_expiry_instant` ON `${TABLE_NAME}` (`encryption_key_type`, `expiry_instant`)" 107 } 108 ], 109 "foreignKeys": [] 110 }, 111 { 112 "tableName": "encryption_context", 113 "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, PRIMARY KEY(`context_id`, `encryption_key_type`))", 114 "fields": [ 115 { 116 "fieldPath": "contextId", 117 "columnName": "context_id", 118 "affinity": "INTEGER", 119 "notNull": true 120 }, 121 { 122 "fieldPath": "encryptionKeyType", 123 "columnName": "encryption_key_type", 124 "affinity": "INTEGER", 125 "notNull": true 126 }, 127 { 128 "fieldPath": "keyConfig", 129 "columnName": "key_config", 130 "affinity": "BLOB", 131 "notNull": false 132 }, 133 { 134 "fieldPath": "sharedSecret", 135 "columnName": "shared_secret", 136 "affinity": "BLOB", 137 "notNull": false 138 }, 139 { 140 "fieldPath": "seed", 141 "columnName": "seed", 142 "affinity": "BLOB", 143 "notNull": false 144 }, 145 { 146 "fieldPath": "creationInstant", 147 "columnName": "creation_instant", 148 "affinity": "INTEGER", 149 "notNull": false, 150 "defaultValue": "CURRENT_TIMESTAMP" 151 } 152 ], 153 "primaryKey": { 154 "autoGenerate": false, 155 "columnNames": [ 156 "context_id", 157 "encryption_key_type" 158 ] 159 }, 160 "indices": [ 161 { 162 "name": "index_encryption_context_creation_instant", 163 "unique": false, 164 "columnNames": [ 165 "creation_instant" 166 ], 167 "orders": [], 168 "createSql": "CREATE INDEX IF NOT EXISTS `index_encryption_context_creation_instant` ON `${TABLE_NAME}` (`creation_instant`)" 169 } 170 ], 171 "foreignKeys": [] 172 }, 173 { 174 "tableName": "auction_server_ad_selection", 175 "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`))", 176 "fields": [ 177 { 178 "fieldPath": "adSelectionId", 179 "columnName": "ad_selection_id", 180 "affinity": "INTEGER", 181 "notNull": true 182 }, 183 { 184 "fieldPath": "seller", 185 "columnName": "seller", 186 "affinity": "TEXT", 187 "notNull": true 188 }, 189 { 190 "fieldPath": "winnerBuyer", 191 "columnName": "winner_buyer", 192 "affinity": "TEXT", 193 "notNull": false 194 }, 195 { 196 "fieldPath": "winnerAdRenderUri", 197 "columnName": "winner_ad_render_uri", 198 "affinity": "TEXT", 199 "notNull": false 200 }, 201 { 202 "fieldPath": "adCounterIntKeys", 203 "columnName": "ad_counter_int_keys", 204 "affinity": "TEXT", 205 "notNull": false 206 }, 207 { 208 "fieldPath": "sellerReportingUri", 209 "columnName": "seller_win_reporting_uri", 210 "affinity": "TEXT", 211 "notNull": false 212 }, 213 { 214 "fieldPath": "buyerReportingUri", 215 "columnName": "buyer_win_reporting_uri", 216 "affinity": "TEXT", 217 "notNull": false 218 } 219 ], 220 "primaryKey": { 221 "autoGenerate": false, 222 "columnNames": [ 223 "ad_selection_id" 224 ] 225 }, 226 "indices": [ 227 { 228 "name": "index_auction_server_ad_selection_ad_selection_id", 229 "unique": false, 230 "columnNames": [ 231 "ad_selection_id" 232 ], 233 "orders": [], 234 "createSql": "CREATE INDEX IF NOT EXISTS `index_auction_server_ad_selection_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)" 235 } 236 ], 237 "foreignKeys": [] 238 } 239 ], 240 "views": [], 241 "setupQueries": [ 242 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", 243 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '3af85a266deebfe1b0744fc2303e41f2')" 244 ] 245 } 246}