100 lines
2.8 KiB
JSON
100 lines
2.8 KiB
JSON
|
{
|
||
|
"formatVersion": 1,
|
||
|
"database": {
|
||
|
"version": 2,
|
||
|
"identityHash": "30177aa8688290d24499babf22b15720",
|
||
|
"entities": [
|
||
|
{
|
||
|
"tableName": "Subscription",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `topic` TEXT NOT NULL, PRIMARY KEY(`id`))",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "baseUrl",
|
||
|
"columnName": "baseUrl",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "topic",
|
||
|
"columnName": "topic",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
],
|
||
|
"autoGenerate": false
|
||
|
},
|
||
|
"indices": [
|
||
|
{
|
||
|
"name": "index_Subscription_baseUrl_topic",
|
||
|
"unique": true,
|
||
|
"columnNames": [
|
||
|
"baseUrl",
|
||
|
"topic"
|
||
|
],
|
||
|
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_Subscription_baseUrl_topic` ON `${TABLE_NAME}` (`baseUrl`, `topic`)"
|
||
|
}
|
||
|
],
|
||
|
"foreignKeys": []
|
||
|
},
|
||
|
{
|
||
|
"tableName": "Notification",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `subscriptionId` INTEGER NOT NULL, `timestamp` INTEGER NOT NULL, `message` TEXT NOT NULL, `deleted` INTEGER NOT NULL, PRIMARY KEY(`id`))",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "subscriptionId",
|
||
|
"columnName": "subscriptionId",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "timestamp",
|
||
|
"columnName": "timestamp",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "message",
|
||
|
"columnName": "message",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "deleted",
|
||
|
"columnName": "deleted",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
],
|
||
|
"autoGenerate": false
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": []
|
||
|
}
|
||
|
],
|
||
|
"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, '30177aa8688290d24499babf22b15720')"
|
||
|
]
|
||
|
}
|
||
|
}
|