1{
2  "formatVersion": 1,
3  "database": {
4    "version": 5,
5    "identityHash": "89f92685b48a7473e27a458112ea8722",
6    "entities": [
7      {
8        "tableName": "ad_selection",
9        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_id` INTEGER NOT NULL, `contextual_signals` TEXT, `bidding_logic_uri` TEXT, `winning_ad_render_uri` TEXT, `winning_ad_bid` REAL NOT NULL, `creation_timestamp` INTEGER, `caller_package_name` TEXT, `ad_counter_keys` TEXT, `custom_audience_signals_owner` TEXT, `custom_audience_signals_buyer` TEXT, `custom_audience_signals_name` TEXT, `custom_audience_signals_activation_time` INTEGER, `custom_audience_signals_expiration_time` INTEGER, `custom_audience_signals_user_bidding_signals` TEXT, PRIMARY KEY(`ad_selection_id`))",
10        "fields": [
11          {
12            "fieldPath": "mAdSelectionId",
13            "columnName": "ad_selection_id",
14            "affinity": "INTEGER",
15            "notNull": true
16          },
17          {
18            "fieldPath": "mContextualSignals",
19            "columnName": "contextual_signals",
20            "affinity": "TEXT",
21            "notNull": false
22          },
23          {
24            "fieldPath": "mBiddingLogicUri",
25            "columnName": "bidding_logic_uri",
26            "affinity": "TEXT",
27            "notNull": false
28          },
29          {
30            "fieldPath": "mWinningAdRenderUri",
31            "columnName": "winning_ad_render_uri",
32            "affinity": "TEXT",
33            "notNull": false
34          },
35          {
36            "fieldPath": "mWinningAdBid",
37            "columnName": "winning_ad_bid",
38            "affinity": "REAL",
39            "notNull": true
40          },
41          {
42            "fieldPath": "mCreationTimestamp",
43            "columnName": "creation_timestamp",
44            "affinity": "INTEGER",
45            "notNull": false
46          },
47          {
48            "fieldPath": "mCallerPackageName",
49            "columnName": "caller_package_name",
50            "affinity": "TEXT",
51            "notNull": false
52          },
53          {
54            "fieldPath": "mAdCounterKeys",
55            "columnName": "ad_counter_keys",
56            "affinity": "TEXT",
57            "notNull": false
58          },
59          {
60            "fieldPath": "mCustomAudienceSignals.mOwner",
61            "columnName": "custom_audience_signals_owner",
62            "affinity": "TEXT",
63            "notNull": false
64          },
65          {
66            "fieldPath": "mCustomAudienceSignals.mBuyer",
67            "columnName": "custom_audience_signals_buyer",
68            "affinity": "TEXT",
69            "notNull": false
70          },
71          {
72            "fieldPath": "mCustomAudienceSignals.mName",
73            "columnName": "custom_audience_signals_name",
74            "affinity": "TEXT",
75            "notNull": false
76          },
77          {
78            "fieldPath": "mCustomAudienceSignals.mActivationTime",
79            "columnName": "custom_audience_signals_activation_time",
80            "affinity": "INTEGER",
81            "notNull": false
82          },
83          {
84            "fieldPath": "mCustomAudienceSignals.mExpirationTime",
85            "columnName": "custom_audience_signals_expiration_time",
86            "affinity": "INTEGER",
87            "notNull": false
88          },
89          {
90            "fieldPath": "mCustomAudienceSignals.mUserBiddingSignals",
91            "columnName": "custom_audience_signals_user_bidding_signals",
92            "affinity": "TEXT",
93            "notNull": false
94          }
95        ],
96        "primaryKey": {
97          "columnNames": [
98            "ad_selection_id"
99          ],
100          "autoGenerate": false
101        },
102        "indices": [
103          {
104            "name": "index_ad_selection_bidding_logic_uri",
105            "unique": false,
106            "columnNames": [
107              "bidding_logic_uri"
108            ],
109            "orders": [],
110            "createSql": "CREATE INDEX IF NOT EXISTS `index_ad_selection_bidding_logic_uri` ON `${TABLE_NAME}` (`bidding_logic_uri`)"
111          }
112        ],
113        "foreignKeys": []
114      },
115      {
116        "tableName": "buyer_decision_logic",
117        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bidding_logic_uri` TEXT NOT NULL, `buyer_decision_logic_js` TEXT NOT NULL, PRIMARY KEY(`bidding_logic_uri`))",
118        "fields": [
119          {
120            "fieldPath": "mBiddingLogicUri",
121            "columnName": "bidding_logic_uri",
122            "affinity": "TEXT",
123            "notNull": true
124          },
125          {
126            "fieldPath": "mBuyerDecisionLogicJs",
127            "columnName": "buyer_decision_logic_js",
128            "affinity": "TEXT",
129            "notNull": true
130          }
131        ],
132        "primaryKey": {
133          "columnNames": [
134            "bidding_logic_uri"
135          ],
136          "autoGenerate": false
137        },
138        "indices": [],
139        "foreignKeys": []
140      },
141      {
142        "tableName": "ad_selection_overrides",
143        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_config_id` TEXT NOT NULL, `app_package_name` TEXT NOT NULL, `decision_logic` TEXT NOT NULL, `trusted_scoring_signals` TEXT NOT NULL, PRIMARY KEY(`ad_selection_config_id`))",
144        "fields": [
145          {
146            "fieldPath": "adSelectionConfigId",
147            "columnName": "ad_selection_config_id",
148            "affinity": "TEXT",
149            "notNull": true
150          },
151          {
152            "fieldPath": "appPackageName",
153            "columnName": "app_package_name",
154            "affinity": "TEXT",
155            "notNull": true
156          },
157          {
158            "fieldPath": "decisionLogicJS",
159            "columnName": "decision_logic",
160            "affinity": "TEXT",
161            "notNull": true
162          },
163          {
164            "fieldPath": "trustedScoringSignals",
165            "columnName": "trusted_scoring_signals",
166            "affinity": "TEXT",
167            "notNull": true
168          }
169        ],
170        "primaryKey": {
171          "columnNames": [
172            "ad_selection_config_id"
173          ],
174          "autoGenerate": false
175        },
176        "indices": [],
177        "foreignKeys": []
178      },
179      {
180        "tableName": "ad_selection_from_outcomes_overrides",
181        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_from_outcomes_config_id` TEXT NOT NULL, `app_package_name` TEXT NOT NULL, `selection_logic_js` TEXT NOT NULL, `selection_signals` TEXT NOT NULL, PRIMARY KEY(`ad_selection_from_outcomes_config_id`))",
182        "fields": [
183          {
184            "fieldPath": "adSelectionFromOutcomesConfigId",
185            "columnName": "ad_selection_from_outcomes_config_id",
186            "affinity": "TEXT",
187            "notNull": true
188          },
189          {
190            "fieldPath": "appPackageName",
191            "columnName": "app_package_name",
192            "affinity": "TEXT",
193            "notNull": true
194          },
195          {
196            "fieldPath": "selectionLogicJs",
197            "columnName": "selection_logic_js",
198            "affinity": "TEXT",
199            "notNull": true
200          },
201          {
202            "fieldPath": "selectionSignals",
203            "columnName": "selection_signals",
204            "affinity": "TEXT",
205            "notNull": true
206          }
207        ],
208        "primaryKey": {
209          "columnNames": [
210            "ad_selection_from_outcomes_config_id"
211          ],
212          "autoGenerate": false
213        },
214        "indices": [],
215        "foreignKeys": []
216      },
217      {
218        "tableName": "registered_ad_interactions",
219        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_id` INTEGER NOT NULL, `interaction_key` TEXT NOT NULL, `destination` INTEGER NOT NULL, `interaction_reporting_uri` TEXT NOT NULL, PRIMARY KEY(`ad_selection_id`, `interaction_key`, `destination`))",
220        "fields": [
221          {
222            "fieldPath": "adSelectionId",
223            "columnName": "ad_selection_id",
224            "affinity": "INTEGER",
225            "notNull": true
226          },
227          {
228            "fieldPath": "interactionKey",
229            "columnName": "interaction_key",
230            "affinity": "TEXT",
231            "notNull": true
232          },
233          {
234            "fieldPath": "destination",
235            "columnName": "destination",
236            "affinity": "INTEGER",
237            "notNull": true
238          },
239          {
240            "fieldPath": "interactionReportingUri",
241            "columnName": "interaction_reporting_uri",
242            "affinity": "TEXT",
243            "notNull": true
244          }
245        ],
246        "primaryKey": {
247          "columnNames": [
248            "ad_selection_id",
249            "interaction_key",
250            "destination"
251          ],
252          "autoGenerate": false
253        },
254        "indices": [],
255        "foreignKeys": []
256      },
257      {
258        "tableName": "ad_selection_buyer_logic_overrides",
259        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_config_id` TEXT NOT NULL, `app_package_name` TEXT NOT NULL, `buyer_identifier` TEXT NOT NULL, `decision_logic` TEXT NOT NULL, PRIMARY KEY(`ad_selection_config_id`, `buyer_identifier`))",
260        "fields": [
261          {
262            "fieldPath": "adSelectionConfigId",
263            "columnName": "ad_selection_config_id",
264            "affinity": "TEXT",
265            "notNull": true
266          },
267          {
268            "fieldPath": "appPackageName",
269            "columnName": "app_package_name",
270            "affinity": "TEXT",
271            "notNull": true
272          },
273          {
274            "fieldPath": "buyer",
275            "columnName": "buyer_identifier",
276            "affinity": "TEXT",
277            "notNull": true
278          },
279          {
280            "fieldPath": "decisionLogic",
281            "columnName": "decision_logic",
282            "affinity": "TEXT",
283            "notNull": true
284          }
285        ],
286        "primaryKey": {
287          "columnNames": [
288            "ad_selection_config_id",
289            "buyer_identifier"
290          ],
291          "autoGenerate": false
292        },
293        "indices": [],
294        "foreignKeys": []
295      }
296    ],
297    "views": [],
298    "setupQueries": [
299      "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
300      "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '89f92685b48a7473e27a458112ea8722')"
301    ]
302  }
303}