Source code

Revision control

Copy as Markdown

Other Tools

{
"formatVersion": 1,
"database": {
"version": 3,
"identityHash": "f5749abb17fccdddf795c446e17b96b6",
"entities": [
{
"tableName": "content_recommendations",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`corpusItemId` TEXT NOT NULL, `scheduledCorpusItemId` TEXT NOT NULL, `url` TEXT NOT NULL, `title` TEXT NOT NULL, `excerpt` TEXT NOT NULL, `topic` TEXT, `publisher` TEXT NOT NULL, `isTimeSensitive` INTEGER NOT NULL, `imageUrl` TEXT NOT NULL, `tileId` INTEGER NOT NULL, `receivedRank` INTEGER NOT NULL, `recommendedAt` INTEGER NOT NULL, `impressions` INTEGER NOT NULL, PRIMARY KEY(`corpusItemId`))",
"fields": [
{
"fieldPath": "corpusItemId",
"columnName": "corpusItemId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "scheduledCorpusItemId",
"columnName": "scheduledCorpusItemId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "excerpt",
"columnName": "excerpt",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "topic",
"columnName": "topic",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "publisher",
"columnName": "publisher",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "isTimeSensitive",
"columnName": "isTimeSensitive",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "imageUrl",
"columnName": "imageUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "tileId",
"columnName": "tileId",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "receivedRank",
"columnName": "receivedRank",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "recommendedAt",
"columnName": "recommendedAt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "impressions",
"columnName": "impressions",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"corpusItemId"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "sponsored_content",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `clickUrl` TEXT NOT NULL, `impressionUrl` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `domain` TEXT NOT NULL, `excerpt` TEXT NOT NULL, `sponsor` TEXT NOT NULL, `blockKey` TEXT NOT NULL, `flightCapCount` INTEGER NOT NULL, `flightCapPeriod` INTEGER NOT NULL, `priority` INTEGER NOT NULL, PRIMARY KEY(`url`))",
"fields": [
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "clickUrl",
"columnName": "clickUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "impressionUrl",
"columnName": "impressionUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "imageUrl",
"columnName": "imageUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "domain",
"columnName": "domain",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "excerpt",
"columnName": "excerpt",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "sponsor",
"columnName": "sponsor",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "blockKey",
"columnName": "blockKey",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "flightCapCount",
"columnName": "flightCapCount",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "flightCapPeriod",
"columnName": "flightCapPeriod",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "priority",
"columnName": "priority",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"url"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "sponsored_content_impressions",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `impressionId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `impressionDateInSeconds` INTEGER NOT NULL, FOREIGN KEY(`url`) REFERENCES `sponsored_content`(`url`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "impressionId",
"columnName": "impressionId",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "impressionDateInSeconds",
"columnName": "impressionDateInSeconds",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"impressionId"
]
},
"indices": [
{
"name": "index_sponsored_content_impressions_url",
"unique": false,
"columnNames": [
"url"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_sponsored_content_impressions_url` ON `${TABLE_NAME}` (`url`)"
}
],
"foreignKeys": [
{
"table": "sponsored_content",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"url"
],
"referencedColumns": [
"url"
]
}
]
}
],
"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, 'f5749abb17fccdddf795c446e17b96b6')"
]
}
}