mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
7 years ago
|
{
|
||
|
"formatVersion": 1,
|
||
|
"database": {
|
||
|
"version": 1,
|
||
|
"identityHash": "eab7679fcfaa5fd45ac7da7a4b205348",
|
||
|
"entities": [
|
||
|
{
|
||
|
"tableName": "notification",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `task` INTEGER, `timestamp` INTEGER NOT NULL, `type` INTEGER NOT NULL)",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "uid",
|
||
|
"columnName": "uid",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "taskId",
|
||
|
"columnName": "task",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "timestamp",
|
||
|
"columnName": "timestamp",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "type",
|
||
|
"columnName": "type",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"uid"
|
||
|
],
|
||
|
"autoGenerate": true
|
||
|
},
|
||
|
"indices": [
|
||
|
{
|
||
|
"name": "index_notification_task",
|
||
|
"unique": true,
|
||
|
"columnNames": [
|
||
|
"task"
|
||
|
],
|
||
|
"createSql": "CREATE UNIQUE INDEX `index_notification_task` ON `${TABLE_NAME}` (`task`)"
|
||
|
}
|
||
|
],
|
||
|
"foreignKeys": []
|
||
|
}
|
||
|
],
|
||
|
"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, \"eab7679fcfaa5fd45ac7da7a4b205348\")"
|
||
|
]
|
||
|
}
|
||
|
}
|