{ "formatVersion": 1, "database": { "version": 6, "identityHash": "a911cf75d24949c0b24bd212cacc860c", "entities": [ { "tableName": "tasks", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`_id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `description` TEXT, `cycle` INTEGER NOT NULL, `priority` INTEGER NOT NULL, `done` INTEGER NOT NULL, `deleted` INTEGER NOT NULL, `displayorder` INTEGER NOT NULL, `todayorder` INTEGER NOT NULL, `list` INTEGER NOT NULL, `duedate` TEXT, `todaydate` TEXT, FOREIGN KEY(`list`) REFERENCES `tasklist`(`_id`) ON UPDATE NO ACTION ON DELETE NO ACTION )", "fields": [ { "fieldPath": "_id", "columnName": "_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": false }, { "fieldPath": "description", "columnName": "description", "affinity": "TEXT", "notNull": false }, { "fieldPath": "cycle", "columnName": "cycle", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "priority", "columnName": "priority", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "done", "columnName": "done", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "deleted", "columnName": "deleted", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "order", "columnName": "displayorder", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "todayOrder", "columnName": "todayorder", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "taskList", "columnName": "list", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "dueDate", "columnName": "duedate", "affinity": "TEXT", "notNull": false }, { "fieldPath": "todayDate", "columnName": "todaydate", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "_id" ] }, "indices": [ { "name": "index_tasks_list", "unique": false, "columnNames": [ "list" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_tasks_list` ON `${TABLE_NAME}` (`list`)" } ], "foreignKeys": [ { "table": "tasklist", "onDelete": "NO ACTION", "onUpdate": "NO ACTION", "columns": [ "list" ], "referencedColumns": [ "_id" ] } ] }, { "tableName": "tasklist", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`_id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `visible` INTEGER NOT NULL, `displayorder` INTEGER NOT NULL, `taskCount` INTEGER NOT NULL)", "fields": [ { "fieldPath": "_id", "columnName": "_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": false }, { "fieldPath": "visible", "columnName": "visible", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "order", "columnName": "displayorder", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "taskCount", "columnName": "taskCount", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "_id" ] }, "indices": [], "foreignKeys": [] } ], "views": [ { "viewName": "TodayTasksView", "createSql": "CREATE VIEW `${VIEW_NAME}` AS SELECT * FROM tasks WHERE todaydate = date('now','localtime')" } ], "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, 'a911cf75d24949c0b24bd212cacc860c')" ] } }