302 lines
8.6 KiB
JSON
302 lines
8.6 KiB
JSON
|
{
|
||
|
"formatVersion": 1,
|
||
|
"database": {
|
||
|
"version": 2,
|
||
|
"identityHash": "fad6f140a4272bf79b901ad86cd27d66",
|
||
|
"entities": [
|
||
|
{
|
||
|
"tableName": "notes",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`title` TEXT NOT NULL, `content` TEXT NOT NULL, `created_date` INTEGER NOT NULL, `updated_date` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `folder_id` INTEGER, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`folder_id`) REFERENCES `note_folders`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "title",
|
||
|
"columnName": "title",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "content",
|
||
|
"columnName": "content",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "createdDate",
|
||
|
"columnName": "created_date",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "updatedDate",
|
||
|
"columnName": "updated_date",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "pinned",
|
||
|
"columnName": "pinned",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "folderId",
|
||
|
"columnName": "folder_id",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
],
|
||
|
"autoGenerate": true
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": [
|
||
|
{
|
||
|
"table": "note_folders",
|
||
|
"onDelete": "CASCADE",
|
||
|
"onUpdate": "NO ACTION",
|
||
|
"columns": [
|
||
|
"folder_id"
|
||
|
],
|
||
|
"referencedColumns": [
|
||
|
"id"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"tableName": "tasks",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`title` TEXT NOT NULL, `description` TEXT NOT NULL, `is_completed` INTEGER NOT NULL, `priority` INTEGER NOT NULL, `created_date` INTEGER NOT NULL, `updated_date` INTEGER NOT NULL, `sub_tasks` TEXT NOT NULL, `dueDate` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "title",
|
||
|
"columnName": "title",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "description",
|
||
|
"columnName": "description",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "isCompleted",
|
||
|
"columnName": "is_completed",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "priority",
|
||
|
"columnName": "priority",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "createdDate",
|
||
|
"columnName": "created_date",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "updatedDate",
|
||
|
"columnName": "updated_date",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "subTasks",
|
||
|
"columnName": "sub_tasks",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "dueDate",
|
||
|
"columnName": "dueDate",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
],
|
||
|
"autoGenerate": true
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": []
|
||
|
},
|
||
|
{
|
||
|
"tableName": "diary",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`title` TEXT NOT NULL, `content` TEXT NOT NULL, `created_date` INTEGER NOT NULL, `updated_date` INTEGER NOT NULL, `mood` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "title",
|
||
|
"columnName": "title",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "content",
|
||
|
"columnName": "content",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "createdDate",
|
||
|
"columnName": "created_date",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "updatedDate",
|
||
|
"columnName": "updated_date",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "mood",
|
||
|
"columnName": "mood",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
],
|
||
|
"autoGenerate": true
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": []
|
||
|
},
|
||
|
{
|
||
|
"tableName": "bookmarks",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `description` TEXT NOT NULL, `created_date` INTEGER NOT NULL, `updated_date` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "url",
|
||
|
"columnName": "url",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "title",
|
||
|
"columnName": "title",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "description",
|
||
|
"columnName": "description",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "createdDate",
|
||
|
"columnName": "created_date",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "updatedDate",
|
||
|
"columnName": "updated_date",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
],
|
||
|
"autoGenerate": true
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": []
|
||
|
},
|
||
|
{
|
||
|
"tableName": "alarms",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `time` INTEGER NOT NULL, PRIMARY KEY(`id`))",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "time",
|
||
|
"columnName": "time",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
],
|
||
|
"autoGenerate": false
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": []
|
||
|
},
|
||
|
{
|
||
|
"tableName": "note_folders",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "name",
|
||
|
"columnName": "name",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
],
|
||
|
"autoGenerate": true
|
||
|
},
|
||
|
"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, 'fad6f140a4272bf79b901ad86cd27d66')"
|
||
|
]
|
||
|
}
|
||
|
}
|