Source code

Revision control

Copy as Markdown

Other Tools

{
"formatVersion": 1,
"database": {
"version": 3,
"identityHash": "966f55824415a21a73640bd2641772f2",
"entities": [
{
"tableName": "stories",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `publisher` TEXT NOT NULL, `category` TEXT NOT NULL, `timeToRead` INTEGER NOT NULL, `timesShown` INTEGER NOT NULL, PRIMARY KEY(`url`))",
"fields": [
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "imageUrl",
"columnName": "imageUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "publisher",
"columnName": "publisher",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "category",
"columnName": "category",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "timeToRead",
"columnName": "timeToRead",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "timesShown",
"columnName": "timesShown",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"url"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "spocs",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `url` TEXT NOT NULL, `title` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `sponsor` TEXT NOT NULL, `clickShim` TEXT NOT NULL, `impressionShim` TEXT NOT NULL, `priority` INTEGER NOT NULL, `lifetimeCapCount` INTEGER NOT NULL, `flightCapCount` INTEGER NOT NULL, `flightCapPeriod` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "imageUrl",
"columnName": "imageUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "sponsor",
"columnName": "sponsor",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "clickShim",
"columnName": "clickShim",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "impressionShim",
"columnName": "impressionShim",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "priority",
"columnName": "priority",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "lifetimeCapCount",
"columnName": "lifetimeCapCount",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "flightCapCount",
"columnName": "flightCapCount",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "flightCapPeriod",
"columnName": "flightCapPeriod",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "spocs_impressions",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`spocId` INTEGER NOT NULL, `impressionId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `impressionDateInSeconds` INTEGER NOT NULL, FOREIGN KEY(`spocId`) REFERENCES `spocs`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "spocId",
"columnName": "spocId",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "impressionId",
"columnName": "impressionId",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "impressionDateInSeconds",
"columnName": "impressionDateInSeconds",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"impressionId"
],
"autoGenerate": true
},
"indices": [],
"foreignKeys": [
{
"table": "spocs",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"spocId"
],
"referencedColumns": [
"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, '966f55824415a21a73640bd2641772f2')"
]
}
}