{ "formatVersion": 1, "database": { "version": 8, "identityHash": "9bc48e2f1d82cd140a7f14507df37d50", "entities": [ { "tableName": "ad_selection", "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`))", "fields": [ { "fieldPath": "mAdSelectionId", "columnName": "ad_selection_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "mBuyerContextualSignals", "columnName": "contextual_signals", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mBiddingLogicUri", "columnName": "bidding_logic_uri", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mWinningAdRenderUri", "columnName": "winning_ad_render_uri", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mWinningAdBid", "columnName": "winning_ad_bid", "affinity": "REAL", "notNull": true }, { "fieldPath": "mCreationTimestamp", "columnName": "creation_timestamp", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "mCallerPackageName", "columnName": "caller_package_name", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mAdCounterKeys", "columnName": "ad_counter_keys", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mAdCounterIntKeys", "columnName": "ad_counter_int_keys", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mSellerContextualSignals", "columnName": "seller_contextual_signals", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mCustomAudienceSignals.mOwner", "columnName": "custom_audience_signals_owner", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mCustomAudienceSignals.mBuyer", "columnName": "custom_audience_signals_buyer", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mCustomAudienceSignals.mName", "columnName": "custom_audience_signals_name", "affinity": "TEXT", "notNull": false }, { "fieldPath": "mCustomAudienceSignals.mActivationTime", "columnName": "custom_audience_signals_activation_time", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "mCustomAudienceSignals.mExpirationTime", "columnName": "custom_audience_signals_expiration_time", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "mCustomAudienceSignals.mUserBiddingSignals", "columnName": "custom_audience_signals_user_bidding_signals", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_id" ] }, "indices": [ { "name": "index_ad_selection_bidding_logic_uri", "unique": false, "columnNames": [ "bidding_logic_uri" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_ad_selection_bidding_logic_uri` ON `${TABLE_NAME}` (`bidding_logic_uri`)" } ], "foreignKeys": [] }, { "tableName": "buyer_decision_logic", "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`))", "fields": [ { "fieldPath": "mBiddingLogicUri", "columnName": "bidding_logic_uri", "affinity": "TEXT", "notNull": true }, { "fieldPath": "mBuyerDecisionLogicJs", "columnName": "buyer_decision_logic_js", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "bidding_logic_uri" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "ad_selection_overrides", "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`))", "fields": [ { "fieldPath": "adSelectionConfigId", "columnName": "ad_selection_config_id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "appPackageName", "columnName": "app_package_name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "decisionLogicJS", "columnName": "decision_logic", "affinity": "TEXT", "notNull": true }, { "fieldPath": "trustedScoringSignals", "columnName": "trusted_scoring_signals", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_config_id" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "ad_selection_from_outcomes_overrides", "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`))", "fields": [ { "fieldPath": "adSelectionFromOutcomesConfigId", "columnName": "ad_selection_from_outcomes_config_id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "appPackageName", "columnName": "app_package_name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "selectionLogicJs", "columnName": "selection_logic_js", "affinity": "TEXT", "notNull": true }, { "fieldPath": "selectionSignals", "columnName": "selection_signals", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_from_outcomes_config_id" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "registered_ad_interactions", "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`))", "fields": [ { "fieldPath": "adSelectionId", "columnName": "ad_selection_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "interactionKey", "columnName": "interaction_key", "affinity": "TEXT", "notNull": true }, { "fieldPath": "destination", "columnName": "destination", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "interactionReportingUri", "columnName": "interaction_reporting_uri", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_id", "interaction_key", "destination" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "ad_selection_buyer_logic_overrides", "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`))", "fields": [ { "fieldPath": "adSelectionConfigId", "columnName": "ad_selection_config_id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "appPackageName", "columnName": "app_package_name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "buyer", "columnName": "buyer_identifier", "affinity": "TEXT", "notNull": true }, { "fieldPath": "decisionLogic", "columnName": "decision_logic", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_config_id", "buyer_identifier" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "reporting_data", "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 )", "fields": [ { "fieldPath": "adSelectionId", "columnName": "ad_selection_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "sellerReportingUri", "columnName": "seller_reporting_uri", "affinity": "TEXT", "notNull": false }, { "fieldPath": "buyerReportingUri", "columnName": "buyer_reporting_uri", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_id" ] }, "indices": [ { "name": "index_reporting_data_ad_selection_id", "unique": false, "columnNames": [ "ad_selection_id" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_reporting_data_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)" } ], "foreignKeys": [ { "table": "ad_selection_initialization", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "ad_selection_id" ], "referencedColumns": [ "ad_selection_id" ] } ] }, { "tableName": "ad_selection_initialization", "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`))", "fields": [ { "fieldPath": "adSelectionId", "columnName": "ad_selection_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "creationInstant", "columnName": "creation_instant", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "seller", "columnName": "seller", "affinity": "TEXT", "notNull": false }, { "fieldPath": "callerPackageName", "columnName": "caller_package_name", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_id" ] }, "indices": [ { "name": "index_ad_selection_initialization_ad_selection_id_caller_package_name", "unique": false, "columnNames": [ "ad_selection_id", "caller_package_name" ], "orders": [], "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`)" } ], "foreignKeys": [] }, { "tableName": "ad_selection_result", "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 )", "fields": [ { "fieldPath": "adSelectionId", "columnName": "ad_selection_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "winningBuyer", "columnName": "winning_buyer", "affinity": "TEXT", "notNull": false }, { "fieldPath": "winningAdBid", "columnName": "winning_ad_bid", "affinity": "REAL", "notNull": true }, { "fieldPath": "winningAdRenderUri", "columnName": "winning_ad_render_uri", "affinity": "TEXT", "notNull": false }, { "fieldPath": "winningCustomAudience.name", "columnName": "winning_custom_audience_name", "affinity": "TEXT", "notNull": false }, { "fieldPath": "winningCustomAudience.owner", "columnName": "winning_custom_audience_owner", "affinity": "TEXT", "notNull": false }, { "fieldPath": "winningCustomAudience.adCounterIntKeys", "columnName": "winning_custom_audience_ad_counter_int_keys", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_id" ] }, "indices": [ { "name": "index_ad_selection_result_ad_selection_id_winning_buyer_winning_ad_render_uri", "unique": false, "columnNames": [ "ad_selection_id", "winning_buyer", "winning_ad_render_uri" ], "orders": [], "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`)" } ], "foreignKeys": [ { "table": "ad_selection_initialization", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "ad_selection_id" ], "referencedColumns": [ "ad_selection_id" ] } ] }, { "tableName": "reporting_computation_info", "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 )", "fields": [ { "fieldPath": "adSelectionId", "columnName": "ad_selection_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "biddingLogicUri", "columnName": "bidding_logic_uri", "affinity": "TEXT", "notNull": false }, { "fieldPath": "buyerDecisionLogicJs", "columnName": "buyer_decision_logic_js", "affinity": "TEXT", "notNull": false }, { "fieldPath": "sellerContextualSignals", "columnName": "seller_contextual_signals", "affinity": "TEXT", "notNull": false }, { "fieldPath": "buyerContextualSignals", "columnName": "buyer_contextual_signals", "affinity": "TEXT", "notNull": false }, { "fieldPath": "winningAdBid", "columnName": "winning_ad_bid", "affinity": "REAL", "notNull": true }, { "fieldPath": "winningAdRenderUri", "columnName": "winning_ad_render_uri", "affinity": "TEXT", "notNull": false }, { "fieldPath": "customAudienceSignals.mOwner", "columnName": "custom_audience_signals_owner", "affinity": "TEXT", "notNull": false }, { "fieldPath": "customAudienceSignals.mBuyer", "columnName": "custom_audience_signals_buyer", "affinity": "TEXT", "notNull": false }, { "fieldPath": "customAudienceSignals.mName", "columnName": "custom_audience_signals_name", "affinity": "TEXT", "notNull": false }, { "fieldPath": "customAudienceSignals.mActivationTime", "columnName": "custom_audience_signals_activation_time", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "customAudienceSignals.mExpirationTime", "columnName": "custom_audience_signals_expiration_time", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "customAudienceSignals.mUserBiddingSignals", "columnName": "custom_audience_signals_user_bidding_signals", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "ad_selection_id" ] }, "indices": [ { "name": "index_reporting_computation_info_ad_selection_id", "unique": false, "columnNames": [ "ad_selection_id" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_reporting_computation_info_ad_selection_id` ON `${TABLE_NAME}` (`ad_selection_id`)" } ], "foreignKeys": [ { "table": "ad_selection_initialization", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "ad_selection_id" ], "referencedColumns": [ "ad_selection_id" ] } ] } ], "views": [], "setupQueries": [ "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '9bc48e2f1d82cd140a7f14507df37d50')" ] } }