1{ 2 "formatVersion": 1, 3 "database": { 4 "version": 9, 5 "identityHash": "7183ea1c486feb3f7b12eb73db269dd3", 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, `ad_counter_int_keys` TEXT, `seller_contextual_signals` 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": "mBuyerContextualSignals", 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": "mAdCounterIntKeys", 61 "columnName": "ad_counter_int_keys", 62 "affinity": "TEXT", 63 "notNull": false 64 }, 65 { 66 "fieldPath": "mSellerContextualSignals", 67 "columnName": "seller_contextual_signals", 68 "affinity": "TEXT", 69 "notNull": false 70 }, 71 { 72 "fieldPath": "mCustomAudienceSignals.mOwner", 73 "columnName": "custom_audience_signals_owner", 74 "affinity": "TEXT", 75 "notNull": false 76 }, 77 { 78 "fieldPath": "mCustomAudienceSignals.mBuyer", 79 "columnName": "custom_audience_signals_buyer", 80 "affinity": "TEXT", 81 "notNull": false 82 }, 83 { 84 "fieldPath": "mCustomAudienceSignals.mName", 85 "columnName": "custom_audience_signals_name", 86 "affinity": "TEXT", 87 "notNull": false 88 }, 89 { 90 "fieldPath": "mCustomAudienceSignals.mActivationTime", 91 "columnName": "custom_audience_signals_activation_time", 92 "affinity": "INTEGER", 93 "notNull": false 94 }, 95 { 96 "fieldPath": "mCustomAudienceSignals.mExpirationTime", 97 "columnName": "custom_audience_signals_expiration_time", 98 "affinity": "INTEGER", 99 "notNull": false 100 }, 101 { 102 "fieldPath": "mCustomAudienceSignals.mUserBiddingSignals", 103 "columnName": "custom_audience_signals_user_bidding_signals", 104 "affinity": "TEXT", 105 "notNull": false 106 } 107 ], 108 "primaryKey": { 109 "autoGenerate": false, 110 "columnNames": [ 111 "ad_selection_id" 112 ] 113 }, 114 "indices": [ 115 { 116 "name": "index_ad_selection_bidding_logic_uri", 117 "unique": false, 118 "columnNames": [ 119 "bidding_logic_uri" 120 ], 121 "orders": [], 122 "createSql": "CREATE INDEX IF NOT EXISTS `index_ad_selection_bidding_logic_uri` ON `${TABLE_NAME}` (`bidding_logic_uri`)" 123 } 124 ], 125 "foreignKeys": [] 126 }, 127 { 128 "tableName": "buyer_decision_logic", 129 "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`))", 130 "fields": [ 131 { 132 "fieldPath": "mBiddingLogicUri", 133 "columnName": "bidding_logic_uri", 134 "affinity": "TEXT", 135 "notNull": true 136 }, 137 { 138 "fieldPath": "mBuyerDecisionLogicJs", 139 "columnName": "buyer_decision_logic_js", 140 "affinity": "TEXT", 141 "notNull": true 142 } 143 ], 144 "primaryKey": { 145 "autoGenerate": false, 146 "columnNames": [ 147 "bidding_logic_uri" 148 ] 149 }, 150 "indices": [], 151 "foreignKeys": [] 152 }, 153 { 154 "tableName": "ad_selection_overrides", 155 "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`))", 156 "fields": [ 157 { 158 "fieldPath": "adSelectionConfigId", 159 "columnName": "ad_selection_config_id", 160 "affinity": "TEXT", 161 "notNull": true 162 }, 163 { 164 "fieldPath": "appPackageName", 165 "columnName": "app_package_name", 166 "affinity": "TEXT", 167 "notNull": true 168 }, 169 { 170 "fieldPath": "decisionLogicJS", 171 "columnName": "decision_logic", 172 "affinity": "TEXT", 173 "notNull": true 174 }, 175 { 176 "fieldPath": "trustedScoringSignals", 177 "columnName": "trusted_scoring_signals", 178 "affinity": "TEXT", 179 "notNull": true 180 } 181 ], 182 "primaryKey": { 183 "autoGenerate": false, 184 "columnNames": [ 185 "ad_selection_config_id" 186 ] 187 }, 188 "indices": [], 189 "foreignKeys": [] 190 }, 191 { 192 "tableName": "ad_selection_from_outcomes_overrides", 193 "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`))", 194 "fields": [ 195 { 196 "fieldPath": "adSelectionFromOutcomesConfigId", 197 "columnName": "ad_selection_from_outcomes_config_id", 198 "affinity": "TEXT", 199 "notNull": true 200 }, 201 { 202 "fieldPath": "appPackageName", 203 "columnName": "app_package_name", 204 "affinity": "TEXT", 205 "notNull": true 206 }, 207 { 208 "fieldPath": "selectionLogicJs", 209 "columnName": "selection_logic_js", 210 "affinity": "TEXT", 211 "notNull": true 212 }, 213 { 214 "fieldPath": "selectionSignals", 215 "columnName": "selection_signals", 216 "affinity": "TEXT", 217 "notNull": true 218 } 219 ], 220 "primaryKey": { 221 "autoGenerate": false, 222 "columnNames": [ 223 "ad_selection_from_outcomes_config_id" 224 ] 225 }, 226 "indices": [], 227 "foreignKeys": [] 228 }, 229 { 230 "tableName": "registered_ad_interactions", 231 "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`))", 232 "fields": [ 233 { 234 "fieldPath": "adSelectionId", 235 "columnName": "ad_selection_id", 236 "affinity": "INTEGER", 237 "notNull": true 238 }, 239 { 240 "fieldPath": "interactionKey", 241 "columnName": "interaction_key", 242 "affinity": "TEXT", 243 "notNull": true 244 }, 245 { 246 "fieldPath": "destination", 247 "columnName": "destination", 248 "affinity": "INTEGER", 249 "notNull": true 250 }, 251 { 252 "fieldPath": "interactionReportingUri", 253 "columnName": "interaction_reporting_uri", 254 "affinity": "TEXT", 255 "notNull": true 256 } 257 ], 258 "primaryKey": { 259 "autoGenerate": false, 260 "columnNames": [ 261 "ad_selection_id", 262 "interaction_key", 263 "destination" 264 ] 265 }, 266 "indices": [], 267 "foreignKeys": [] 268 }, 269 { 270 "tableName": "ad_selection_buyer_logic_overrides", 271 "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`))", 272 "fields": [ 273 { 274 "fieldPath": "adSelectionConfigId", 275 "columnName": "ad_selection_config_id", 276 "affinity": "TEXT", 277 "notNull": true 278 }, 279 { 280 "fieldPath": "appPackageName", 281 "columnName": "app_package_name", 282 "affinity": "TEXT", 283 "notNull": true 284 }, 285 { 286 "fieldPath": "buyer", 287 "columnName": "buyer_identifier", 288 "affinity": "TEXT", 289 "notNull": true 290 }, 291 { 292 "fieldPath": "decisionLogic", 293 "columnName": "decision_logic", 294 "affinity": "TEXT", 295 "notNull": true 296 } 297 ], 298 "primaryKey": { 299 "autoGenerate": false, 300 "columnNames": [ 301 "ad_selection_config_id", 302 "buyer_identifier" 303 ] 304 }, 305 "indices": [], 306 "foreignKeys": [] 307 }, 308 { 309 "tableName": "reporting_data", 310 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_id` INTEGER NOT NULL, `seller_reporting_uri` TEXT, `buyer_reporting_uri` TEXT, PRIMARY KEY(`ad_selection_id`), FOREIGN KEY(`ad_selection_id`) REFERENCES `ad_selection_initialization`(`ad_selection_id`) ON UPDATE NO ACTION ON DELETE CASCADE )", 311 "fields": [ 312 { 313 "fieldPath": "adSelectionId", 314 "columnName": "ad_selection_id", 315 "affinity": "INTEGER", 316 "notNull": true 317 }, 318 { 319 "fieldPath": "sellerReportingUri", 320 "columnName": "seller_reporting_uri", 321 "affinity": "TEXT", 322 "notNull": false 323 }, 324 { 325 "fieldPath": "buyerReportingUri", 326 "columnName": "buyer_reporting_uri", 327 "affinity": "TEXT", 328 "notNull": false 329 } 330 ], 331 "primaryKey": { 332 "autoGenerate": false, 333 "columnNames": [ 334 "ad_selection_id" 335 ] 336 }, 337 "indices": [ 338 { 339 "name": "index_reporting_data_ad_selection_id", 340 "unique": false, 341 "columnNames": [ 342 "ad_selection_id" 343 ], 344 "orders": [], 345 "createSql": "CREATE INDEX IF NOT EXISTS `index_reporting_data_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)" 346 } 347 ], 348 "foreignKeys": [ 349 { 350 "table": "ad_selection_initialization", 351 "onDelete": "CASCADE", 352 "onUpdate": "NO ACTION", 353 "columns": [ 354 "ad_selection_id" 355 ], 356 "referencedColumns": [ 357 "ad_selection_id" 358 ] 359 } 360 ] 361 }, 362 { 363 "tableName": "ad_selection_initialization", 364 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_id` INTEGER NOT NULL, `creation_instant` INTEGER, `seller` TEXT, `caller_package_name` TEXT, PRIMARY KEY(`ad_selection_id`))", 365 "fields": [ 366 { 367 "fieldPath": "adSelectionId", 368 "columnName": "ad_selection_id", 369 "affinity": "INTEGER", 370 "notNull": true 371 }, 372 { 373 "fieldPath": "creationInstant", 374 "columnName": "creation_instant", 375 "affinity": "INTEGER", 376 "notNull": false 377 }, 378 { 379 "fieldPath": "seller", 380 "columnName": "seller", 381 "affinity": "TEXT", 382 "notNull": false 383 }, 384 { 385 "fieldPath": "callerPackageName", 386 "columnName": "caller_package_name", 387 "affinity": "TEXT", 388 "notNull": false 389 } 390 ], 391 "primaryKey": { 392 "autoGenerate": false, 393 "columnNames": [ 394 "ad_selection_id" 395 ] 396 }, 397 "indices": [ 398 { 399 "name": "index_ad_selection_initialization_ad_selection_id_caller_package_name", 400 "unique": false, 401 "columnNames": [ 402 "ad_selection_id", 403 "caller_package_name" 404 ], 405 "orders": [], 406 "createSql": "CREATE INDEX IF NOT EXISTS `index_ad_selection_initialization_ad_selection_id_caller_package_name` ON `${TABLE_NAME}` (`ad_selection_id`, `caller_package_name`)" 407 } 408 ], 409 "foreignKeys": [] 410 }, 411 { 412 "tableName": "ad_selection_result", 413 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_id` INTEGER NOT NULL, `winning_buyer` TEXT, `winning_ad_bid` REAL NOT NULL, `winning_ad_render_uri` TEXT, `winning_custom_audience_name` TEXT, `winning_custom_audience_owner` TEXT, `winning_custom_audience_ad_counter_int_keys` TEXT, PRIMARY KEY(`ad_selection_id`), FOREIGN KEY(`ad_selection_id`) REFERENCES `ad_selection_initialization`(`ad_selection_id`) ON UPDATE NO ACTION ON DELETE CASCADE )", 414 "fields": [ 415 { 416 "fieldPath": "adSelectionId", 417 "columnName": "ad_selection_id", 418 "affinity": "INTEGER", 419 "notNull": true 420 }, 421 { 422 "fieldPath": "winningBuyer", 423 "columnName": "winning_buyer", 424 "affinity": "TEXT", 425 "notNull": false 426 }, 427 { 428 "fieldPath": "winningAdBid", 429 "columnName": "winning_ad_bid", 430 "affinity": "REAL", 431 "notNull": true 432 }, 433 { 434 "fieldPath": "winningAdRenderUri", 435 "columnName": "winning_ad_render_uri", 436 "affinity": "TEXT", 437 "notNull": false 438 }, 439 { 440 "fieldPath": "winningCustomAudience.name", 441 "columnName": "winning_custom_audience_name", 442 "affinity": "TEXT", 443 "notNull": false 444 }, 445 { 446 "fieldPath": "winningCustomAudience.owner", 447 "columnName": "winning_custom_audience_owner", 448 "affinity": "TEXT", 449 "notNull": false 450 }, 451 { 452 "fieldPath": "winningCustomAudience.adCounterIntKeys", 453 "columnName": "winning_custom_audience_ad_counter_int_keys", 454 "affinity": "TEXT", 455 "notNull": false 456 } 457 ], 458 "primaryKey": { 459 "autoGenerate": false, 460 "columnNames": [ 461 "ad_selection_id" 462 ] 463 }, 464 "indices": [ 465 { 466 "name": "index_ad_selection_result_ad_selection_id_winning_buyer_winning_ad_render_uri", 467 "unique": false, 468 "columnNames": [ 469 "ad_selection_id", 470 "winning_buyer", 471 "winning_ad_render_uri" 472 ], 473 "orders": [], 474 "createSql": "CREATE INDEX IF NOT EXISTS `index_ad_selection_result_ad_selection_id_winning_buyer_winning_ad_render_uri` ON `${TABLE_NAME}` (`ad_selection_id`, `winning_buyer`, `winning_ad_render_uri`)" 475 } 476 ], 477 "foreignKeys": [ 478 { 479 "table": "ad_selection_initialization", 480 "onDelete": "CASCADE", 481 "onUpdate": "NO ACTION", 482 "columns": [ 483 "ad_selection_id" 484 ], 485 "referencedColumns": [ 486 "ad_selection_id" 487 ] 488 } 489 ] 490 }, 491 { 492 "tableName": "reporting_computation_info", 493 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`ad_selection_id` INTEGER NOT NULL, `bidding_logic_uri` TEXT, `buyer_decision_logic_js` TEXT, `seller_contextual_signals` TEXT, `buyer_contextual_signals` TEXT, `winning_ad_bid` REAL NOT NULL, `winning_ad_render_uri` 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`), FOREIGN KEY(`ad_selection_id`) REFERENCES `ad_selection_initialization`(`ad_selection_id`) ON UPDATE NO ACTION ON DELETE CASCADE )", 494 "fields": [ 495 { 496 "fieldPath": "adSelectionId", 497 "columnName": "ad_selection_id", 498 "affinity": "INTEGER", 499 "notNull": true 500 }, 501 { 502 "fieldPath": "biddingLogicUri", 503 "columnName": "bidding_logic_uri", 504 "affinity": "TEXT", 505 "notNull": false 506 }, 507 { 508 "fieldPath": "buyerDecisionLogicJs", 509 "columnName": "buyer_decision_logic_js", 510 "affinity": "TEXT", 511 "notNull": false 512 }, 513 { 514 "fieldPath": "sellerContextualSignals", 515 "columnName": "seller_contextual_signals", 516 "affinity": "TEXT", 517 "notNull": false 518 }, 519 { 520 "fieldPath": "buyerContextualSignals", 521 "columnName": "buyer_contextual_signals", 522 "affinity": "TEXT", 523 "notNull": false 524 }, 525 { 526 "fieldPath": "winningAdBid", 527 "columnName": "winning_ad_bid", 528 "affinity": "REAL", 529 "notNull": true 530 }, 531 { 532 "fieldPath": "winningAdRenderUri", 533 "columnName": "winning_ad_render_uri", 534 "affinity": "TEXT", 535 "notNull": false 536 }, 537 { 538 "fieldPath": "customAudienceSignals.mOwner", 539 "columnName": "custom_audience_signals_owner", 540 "affinity": "TEXT", 541 "notNull": false 542 }, 543 { 544 "fieldPath": "customAudienceSignals.mBuyer", 545 "columnName": "custom_audience_signals_buyer", 546 "affinity": "TEXT", 547 "notNull": false 548 }, 549 { 550 "fieldPath": "customAudienceSignals.mName", 551 "columnName": "custom_audience_signals_name", 552 "affinity": "TEXT", 553 "notNull": false 554 }, 555 { 556 "fieldPath": "customAudienceSignals.mActivationTime", 557 "columnName": "custom_audience_signals_activation_time", 558 "affinity": "INTEGER", 559 "notNull": false 560 }, 561 { 562 "fieldPath": "customAudienceSignals.mExpirationTime", 563 "columnName": "custom_audience_signals_expiration_time", 564 "affinity": "INTEGER", 565 "notNull": false 566 }, 567 { 568 "fieldPath": "customAudienceSignals.mUserBiddingSignals", 569 "columnName": "custom_audience_signals_user_bidding_signals", 570 "affinity": "TEXT", 571 "notNull": false 572 } 573 ], 574 "primaryKey": { 575 "autoGenerate": false, 576 "columnNames": [ 577 "ad_selection_id" 578 ] 579 }, 580 "indices": [ 581 { 582 "name": "index_reporting_computation_info_ad_selection_id", 583 "unique": false, 584 "columnNames": [ 585 "ad_selection_id" 586 ], 587 "orders": [], 588 "createSql": "CREATE INDEX IF NOT EXISTS `index_reporting_computation_info_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)" 589 } 590 ], 591 "foreignKeys": [ 592 { 593 "table": "ad_selection_initialization", 594 "onDelete": "CASCADE", 595 "onUpdate": "NO ACTION", 596 "columns": [ 597 "ad_selection_id" 598 ], 599 "referencedColumns": [ 600 "ad_selection_id" 601 ] 602 } 603 ] 604 }, 605 { 606 "tableName": "consented_debug_configuration", 607 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`consented_debug_configuration_primary_key` INTEGER PRIMARY KEY AUTOINCREMENT, `is_consent_provided` INTEGER NOT NULL, `debug_token` TEXT, `creation_timestamp` INTEGER, `expiry_timestamp` INTEGER)", 608 "fields": [ 609 { 610 "fieldPath": "consentedDebugConfigurationPrimaryKey", 611 "columnName": "consented_debug_configuration_primary_key", 612 "affinity": "INTEGER", 613 "notNull": false 614 }, 615 { 616 "fieldPath": "isConsentProvided", 617 "columnName": "is_consent_provided", 618 "affinity": "INTEGER", 619 "notNull": true 620 }, 621 { 622 "fieldPath": "debugToken", 623 "columnName": "debug_token", 624 "affinity": "TEXT", 625 "notNull": false 626 }, 627 { 628 "fieldPath": "creationTimestamp", 629 "columnName": "creation_timestamp", 630 "affinity": "INTEGER", 631 "notNull": false 632 }, 633 { 634 "fieldPath": "expiryTimestamp", 635 "columnName": "expiry_timestamp", 636 "affinity": "INTEGER", 637 "notNull": false 638 } 639 ], 640 "primaryKey": { 641 "autoGenerate": true, 642 "columnNames": [ 643 "consented_debug_configuration_primary_key" 644 ] 645 }, 646 "indices": [ 647 { 648 "name": "index_consented_debug_configuration_creation_timestamp", 649 "unique": false, 650 "columnNames": [ 651 "creation_timestamp" 652 ], 653 "orders": [], 654 "createSql": "CREATE INDEX IF NOT EXISTS `index_consented_debug_configuration_creation_timestamp` ON `${TABLE_NAME}` (`creation_timestamp`)" 655 } 656 ], 657 "foreignKeys": [] 658 } 659 ], 660 "views": [], 661 "setupQueries": [ 662 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", 663 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '7183ea1c486feb3f7b12eb73db269dd3')" 664 ] 665 } 666}