1{
2  "formatVersion": 1,
3  "database": {
4    "version": 2,
5    "identityHash": "1aad9c7f3ae84929760cd4e1efb58329",
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, 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        "primaryKey": {
147          "autoGenerate": false,
148          "columnNames": [
149            "context_id",
150            "encryption_key_type"
151          ]
152        },
153        "indices": [],
154        "foreignKeys": []
155      },
156      {
157        "tableName": "auction_server_ad_selection",
158        "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`))",
159        "fields": [
160          {
161            "fieldPath": "adSelectionId",
162            "columnName": "ad_selection_id",
163            "affinity": "INTEGER",
164            "notNull": true
165          },
166          {
167            "fieldPath": "seller",
168            "columnName": "seller",
169            "affinity": "TEXT",
170            "notNull": true
171          },
172          {
173            "fieldPath": "winnerBuyer",
174            "columnName": "winner_buyer",
175            "affinity": "TEXT",
176            "notNull": false
177          },
178          {
179            "fieldPath": "winnerAdRenderUri",
180            "columnName": "winner_ad_render_uri",
181            "affinity": "TEXT",
182            "notNull": false
183          },
184          {
185            "fieldPath": "adCounterIntKeys",
186            "columnName": "ad_counter_int_keys",
187            "affinity": "TEXT",
188            "notNull": false
189          },
190          {
191            "fieldPath": "sellerReportingUri",
192            "columnName": "seller_win_reporting_uri",
193            "affinity": "TEXT",
194            "notNull": false
195          },
196          {
197            "fieldPath": "buyerReportingUri",
198            "columnName": "buyer_win_reporting_uri",
199            "affinity": "TEXT",
200            "notNull": false
201          }
202        ],
203        "primaryKey": {
204          "autoGenerate": false,
205          "columnNames": [
206            "ad_selection_id"
207          ]
208        },
209        "indices": [
210          {
211            "name": "index_auction_server_ad_selection_ad_selection_id",
212            "unique": false,
213            "columnNames": [
214              "ad_selection_id"
215            ],
216            "orders": [],
217            "createSql": "CREATE INDEX IF NOT EXISTS `index_auction_server_ad_selection_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)"
218          }
219        ],
220        "foreignKeys": []
221      }
222    ],
223    "views": [],
224    "setupQueries": [
225      "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
226      "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1aad9c7f3ae84929760cd4e1efb58329')"
227    ]
228  }
229}