1{
2  "formatVersion": 1,
3  "database": {
4    "version": 7,
5    "identityHash": "c4b8310b66aa4796230a2dfb1b72bda4",
6    "entities": [
7      {
8        "tableName": "custom_audience",
9        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`owner` TEXT NOT NULL, `buyer` TEXT NOT NULL, `name` TEXT NOT NULL, `expiration_time` INTEGER NOT NULL, `activation_time` INTEGER NOT NULL, `creation_time` INTEGER NOT NULL, `last_ads_and_bidding_data_updated_time` INTEGER NOT NULL, `user_bidding_signals` TEXT, `bidding_logic_uri` TEXT NOT NULL, `ads` TEXT, `debuggable` INTEGER NOT NULL DEFAULT 0, `auction_server_request_flags` INTEGER NOT NULL DEFAULT 0, `trusted_bidding_data_uri` TEXT, `trusted_bidding_data_keys` TEXT, PRIMARY KEY(`owner`, `buyer`, `name`))",
10        "fields": [
11          {
12            "fieldPath": "mOwner",
13            "columnName": "owner",
14            "affinity": "TEXT",
15            "notNull": true
16          },
17          {
18            "fieldPath": "mBuyer",
19            "columnName": "buyer",
20            "affinity": "TEXT",
21            "notNull": true
22          },
23          {
24            "fieldPath": "mName",
25            "columnName": "name",
26            "affinity": "TEXT",
27            "notNull": true
28          },
29          {
30            "fieldPath": "mExpirationTime",
31            "columnName": "expiration_time",
32            "affinity": "INTEGER",
33            "notNull": true
34          },
35          {
36            "fieldPath": "mActivationTime",
37            "columnName": "activation_time",
38            "affinity": "INTEGER",
39            "notNull": true
40          },
41          {
42            "fieldPath": "mCreationTime",
43            "columnName": "creation_time",
44            "affinity": "INTEGER",
45            "notNull": true
46          },
47          {
48            "fieldPath": "mLastAdsAndBiddingDataUpdatedTime",
49            "columnName": "last_ads_and_bidding_data_updated_time",
50            "affinity": "INTEGER",
51            "notNull": true
52          },
53          {
54            "fieldPath": "mUserBiddingSignals",
55            "columnName": "user_bidding_signals",
56            "affinity": "TEXT",
57            "notNull": false
58          },
59          {
60            "fieldPath": "mBiddingLogicUri",
61            "columnName": "bidding_logic_uri",
62            "affinity": "TEXT",
63            "notNull": true
64          },
65          {
66            "fieldPath": "mAds",
67            "columnName": "ads",
68            "affinity": "TEXT",
69            "notNull": false
70          },
71          {
72            "fieldPath": "mDebuggable",
73            "columnName": "debuggable",
74            "affinity": "INTEGER",
75            "notNull": true,
76            "defaultValue": "0"
77          },
78          {
79            "fieldPath": "mAuctionServerRequestFlags",
80            "columnName": "auction_server_request_flags",
81            "affinity": "INTEGER",
82            "notNull": true,
83            "defaultValue": "0"
84          },
85          {
86            "fieldPath": "mTrustedBiddingData.mUri",
87            "columnName": "trusted_bidding_data_uri",
88            "affinity": "TEXT",
89            "notNull": false
90          },
91          {
92            "fieldPath": "mTrustedBiddingData.mKeys",
93            "columnName": "trusted_bidding_data_keys",
94            "affinity": "TEXT",
95            "notNull": false
96          }
97        ],
98        "primaryKey": {
99          "autoGenerate": false,
100          "columnNames": [
101            "owner",
102            "buyer",
103            "name"
104          ]
105        },
106        "indices": [
107          {
108            "name": "index_custom_audience_owner",
109            "unique": false,
110            "columnNames": [
111              "owner"
112            ],
113            "orders": [],
114            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_owner` ON `${TABLE_NAME}` (`owner`)"
115          },
116          {
117            "name": "index_custom_audience_buyer",
118            "unique": false,
119            "columnNames": [
120              "buyer"
121            ],
122            "orders": [],
123            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_buyer` ON `${TABLE_NAME}` (`buyer`)"
124          },
125          {
126            "name": "index_custom_audience_expiration_time",
127            "unique": false,
128            "columnNames": [
129              "expiration_time"
130            ],
131            "orders": [],
132            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_expiration_time` ON `${TABLE_NAME}` (`expiration_time`)"
133          },
134          {
135            "name": "index_custom_audience_last_ads_and_bidding_data_updated_time",
136            "unique": false,
137            "columnNames": [
138              "last_ads_and_bidding_data_updated_time"
139            ],
140            "orders": [],
141            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_last_ads_and_bidding_data_updated_time` ON `${TABLE_NAME}` (`last_ads_and_bidding_data_updated_time`)"
142          }
143        ],
144        "foreignKeys": []
145      },
146      {
147        "tableName": "custom_audience_background_fetch_data",
148        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`owner` TEXT NOT NULL, `buyer` TEXT NOT NULL, `name` TEXT NOT NULL, `daily_update_uri` TEXT NOT NULL, `eligible_update_time` INTEGER NOT NULL, `num_validation_failures` INTEGER NOT NULL, `num_timeout_failures` INTEGER NOT NULL, `is_debuggable` INTEGER NOT NULL DEFAULT false, PRIMARY KEY(`owner`, `buyer`, `name`))",
149        "fields": [
150          {
151            "fieldPath": "owner",
152            "columnName": "owner",
153            "affinity": "TEXT",
154            "notNull": true
155          },
156          {
157            "fieldPath": "buyer",
158            "columnName": "buyer",
159            "affinity": "TEXT",
160            "notNull": true
161          },
162          {
163            "fieldPath": "name",
164            "columnName": "name",
165            "affinity": "TEXT",
166            "notNull": true
167          },
168          {
169            "fieldPath": "dailyUpdateUri",
170            "columnName": "daily_update_uri",
171            "affinity": "TEXT",
172            "notNull": true
173          },
174          {
175            "fieldPath": "eligibleUpdateTime",
176            "columnName": "eligible_update_time",
177            "affinity": "INTEGER",
178            "notNull": true
179          },
180          {
181            "fieldPath": "numValidationFailures",
182            "columnName": "num_validation_failures",
183            "affinity": "INTEGER",
184            "notNull": true
185          },
186          {
187            "fieldPath": "numTimeoutFailures",
188            "columnName": "num_timeout_failures",
189            "affinity": "INTEGER",
190            "notNull": true
191          },
192          {
193            "fieldPath": "isDebuggable",
194            "columnName": "is_debuggable",
195            "affinity": "INTEGER",
196            "notNull": true,
197            "defaultValue": "false"
198          }
199        ],
200        "primaryKey": {
201          "autoGenerate": false,
202          "columnNames": [
203            "owner",
204            "buyer",
205            "name"
206          ]
207        },
208        "indices": [
209          {
210            "name": "index_custom_audience_background_fetch_data_owner",
211            "unique": false,
212            "columnNames": [
213              "owner"
214            ],
215            "orders": [],
216            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_background_fetch_data_owner` ON `${TABLE_NAME}` (`owner`)"
217          },
218          {
219            "name": "index_custom_audience_background_fetch_data_buyer",
220            "unique": false,
221            "columnNames": [
222              "buyer"
223            ],
224            "orders": [],
225            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_background_fetch_data_buyer` ON `${TABLE_NAME}` (`buyer`)"
226          },
227          {
228            "name": "index_custom_audience_background_fetch_data_name",
229            "unique": false,
230            "columnNames": [
231              "name"
232            ],
233            "orders": [],
234            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_background_fetch_data_name` ON `${TABLE_NAME}` (`name`)"
235          },
236          {
237            "name": "index_custom_audience_background_fetch_data_eligible_update_time",
238            "unique": false,
239            "columnNames": [
240              "eligible_update_time"
241            ],
242            "orders": [],
243            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_background_fetch_data_eligible_update_time` ON `${TABLE_NAME}` (`eligible_update_time`)"
244          }
245        ],
246        "foreignKeys": []
247      },
248      {
249        "tableName": "custom_audience_overrides",
250        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`owner` TEXT NOT NULL, `buyer` TEXT NOT NULL, `name` TEXT NOT NULL, `app_package_name` TEXT NOT NULL, `bidding_logic` TEXT NOT NULL, `bidding_logic_version` INTEGER, `trusted_bidding_data` TEXT NOT NULL, PRIMARY KEY(`owner`, `buyer`, `name`))",
251        "fields": [
252          {
253            "fieldPath": "owner",
254            "columnName": "owner",
255            "affinity": "TEXT",
256            "notNull": true
257          },
258          {
259            "fieldPath": "buyer",
260            "columnName": "buyer",
261            "affinity": "TEXT",
262            "notNull": true
263          },
264          {
265            "fieldPath": "name",
266            "columnName": "name",
267            "affinity": "TEXT",
268            "notNull": true
269          },
270          {
271            "fieldPath": "appPackageName",
272            "columnName": "app_package_name",
273            "affinity": "TEXT",
274            "notNull": true
275          },
276          {
277            "fieldPath": "biddingLogicJS",
278            "columnName": "bidding_logic",
279            "affinity": "TEXT",
280            "notNull": true
281          },
282          {
283            "fieldPath": "biddingLogicJsVersion",
284            "columnName": "bidding_logic_version",
285            "affinity": "INTEGER",
286            "notNull": false
287          },
288          {
289            "fieldPath": "trustedBiddingData",
290            "columnName": "trusted_bidding_data",
291            "affinity": "TEXT",
292            "notNull": true
293          }
294        ],
295        "primaryKey": {
296          "autoGenerate": false,
297          "columnNames": [
298            "owner",
299            "buyer",
300            "name"
301          ]
302        },
303        "indices": [],
304        "foreignKeys": []
305      },
306      {
307        "tableName": "custom_audience_quarantine",
308        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`owner` TEXT NOT NULL, `buyer` TEXT NOT NULL, `quarantine_expiration_time` INTEGER NOT NULL, PRIMARY KEY(`owner`, `buyer`))",
309        "fields": [
310          {
311            "fieldPath": "owner",
312            "columnName": "owner",
313            "affinity": "TEXT",
314            "notNull": true
315          },
316          {
317            "fieldPath": "buyer",
318            "columnName": "buyer",
319            "affinity": "TEXT",
320            "notNull": true
321          },
322          {
323            "fieldPath": "quarantineExpirationTime",
324            "columnName": "quarantine_expiration_time",
325            "affinity": "INTEGER",
326            "notNull": true
327          }
328        ],
329        "primaryKey": {
330          "autoGenerate": false,
331          "columnNames": [
332            "owner",
333            "buyer"
334          ]
335        },
336        "indices": [
337          {
338            "name": "index_custom_audience_quarantine_owner_buyer",
339            "unique": false,
340            "columnNames": [
341              "owner",
342              "buyer"
343            ],
344            "orders": [],
345            "createSql": "CREATE INDEX IF NOT EXISTS `index_custom_audience_quarantine_owner_buyer` ON `${TABLE_NAME}` (`owner`, `buyer`)"
346          }
347        ],
348        "foreignKeys": []
349      },
350      {
351        "tableName": "partial_custom_audience",
352        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`update_id` INTEGER NOT NULL, `name` TEXT NOT NULL, `activation_time` INTEGER, `expiration_time` INTEGER, `bidding_signals` TEXT, PRIMARY KEY(`update_id`, `name`), FOREIGN KEY(`update_id`) REFERENCES `scheduled_custom_audience_update`(`update_id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
353        "fields": [
354          {
355            "fieldPath": "updateId",
356            "columnName": "update_id",
357            "affinity": "INTEGER",
358            "notNull": true
359          },
360          {
361            "fieldPath": "name",
362            "columnName": "name",
363            "affinity": "TEXT",
364            "notNull": true
365          },
366          {
367            "fieldPath": "activationTime",
368            "columnName": "activation_time",
369            "affinity": "INTEGER",
370            "notNull": false
371          },
372          {
373            "fieldPath": "expirationTime",
374            "columnName": "expiration_time",
375            "affinity": "INTEGER",
376            "notNull": false
377          },
378          {
379            "fieldPath": "userBiddingSignals",
380            "columnName": "bidding_signals",
381            "affinity": "TEXT",
382            "notNull": false
383          }
384        ],
385        "primaryKey": {
386          "autoGenerate": false,
387          "columnNames": [
388            "update_id",
389            "name"
390          ]
391        },
392        "indices": [
393          {
394            "name": "index_partial_custom_audience_update_id_name",
395            "unique": true,
396            "columnNames": [
397              "update_id",
398              "name"
399            ],
400            "orders": [],
401            "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_partial_custom_audience_update_id_name` ON `${TABLE_NAME}` (`update_id`, `name`)"
402          }
403        ],
404        "foreignKeys": [
405          {
406            "table": "scheduled_custom_audience_update",
407            "onDelete": "CASCADE",
408            "onUpdate": "NO ACTION",
409            "columns": [
410              "update_id"
411            ],
412            "referencedColumns": [
413              "update_id"
414            ]
415          }
416        ]
417      },
418      {
419        "tableName": "scheduled_custom_audience_update",
420        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`update_id` INTEGER PRIMARY KEY AUTOINCREMENT, `owner` TEXT NOT NULL, `buyer` TEXT NOT NULL, `update_uri` TEXT NOT NULL, `scheduled_time` INTEGER NOT NULL, `creation_time` INTEGER NOT NULL)",
421        "fields": [
422          {
423            "fieldPath": "updateId",
424            "columnName": "update_id",
425            "affinity": "INTEGER",
426            "notNull": false
427          },
428          {
429            "fieldPath": "owner",
430            "columnName": "owner",
431            "affinity": "TEXT",
432            "notNull": true
433          },
434          {
435            "fieldPath": "buyer",
436            "columnName": "buyer",
437            "affinity": "TEXT",
438            "notNull": true
439          },
440          {
441            "fieldPath": "updateUri",
442            "columnName": "update_uri",
443            "affinity": "TEXT",
444            "notNull": true
445          },
446          {
447            "fieldPath": "scheduledTime",
448            "columnName": "scheduled_time",
449            "affinity": "INTEGER",
450            "notNull": true
451          },
452          {
453            "fieldPath": "creationTime",
454            "columnName": "creation_time",
455            "affinity": "INTEGER",
456            "notNull": true
457          }
458        ],
459        "primaryKey": {
460          "autoGenerate": true,
461          "columnNames": [
462            "update_id"
463          ]
464        },
465        "indices": [
466          {
467            "name": "index_scheduled_custom_audience_update_owner_buyer_update_uri",
468            "unique": true,
469            "columnNames": [
470              "owner",
471              "buyer",
472              "update_uri"
473            ],
474            "orders": [],
475            "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_scheduled_custom_audience_update_owner_buyer_update_uri` ON `${TABLE_NAME}` (`owner`, `buyer`, `update_uri`)"
476          }
477        ],
478        "foreignKeys": []
479      }
480    ],
481    "views": [],
482    "setupQueries": [
483      "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
484      "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c4b8310b66aa4796230a2dfb1b72bda4')"
485    ]
486  }
487}