Skip to content

Commit

Permalink
update version db (why?)
Browse files Browse the repository at this point in the history
  • Loading branch information
olup committed Jun 20, 2023
1 parent 03df766 commit 959328f
Show file tree
Hide file tree
Showing 4 changed files with 1,140 additions and 1 deletion.
352 changes: 352 additions & 0 deletions app/schemas/com.olup.notable.db.AppDatabase/26.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,352 @@
{
"formatVersion": 1,
"database": {
"version": 26,
"identityHash": "8075c4660d325bb60532e94fcc75ea1a",
"entities": [
{
"tableName": "Folder",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `title` TEXT NOT NULL, `parentFolderId` TEXT, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`parentFolderId`) REFERENCES `Folder`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "parentFolderId",
"columnName": "parentFolderId",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "createdAt",
"columnName": "createdAt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "updatedAt",
"columnName": "updatedAt",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": ["id"]
},
"indices": [
{
"name": "index_Folder_parentFolderId",
"unique": false,
"columnNames": ["parentFolderId"],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_Folder_parentFolderId` ON `${TABLE_NAME}` (`parentFolderId`)"
}
],
"foreignKeys": [
{
"table": "Folder",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": ["parentFolderId"],
"referencedColumns": ["id"]
}
]
},
{
"tableName": "Notebook",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `title` TEXT NOT NULL, `openPageId` TEXT, `pageIds` TEXT NOT NULL, `parentFolderId` TEXT, `defaultNativeTemplate` TEXT NOT NULL DEFAULT 'blank', `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`parentFolderId`) REFERENCES `Folder`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "openPageId",
"columnName": "openPageId",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "pageIds",
"columnName": "pageIds",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "parentFolderId",
"columnName": "parentFolderId",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "defaultNativeTemplate",
"columnName": "defaultNativeTemplate",
"affinity": "TEXT",
"notNull": true,
"defaultValue": "'blank'"
},
{
"fieldPath": "createdAt",
"columnName": "createdAt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "updatedAt",
"columnName": "updatedAt",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": ["id"]
},
"indices": [
{
"name": "index_Notebook_parentFolderId",
"unique": false,
"columnNames": ["parentFolderId"],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_Notebook_parentFolderId` ON `${TABLE_NAME}` (`parentFolderId`)"
}
],
"foreignKeys": [
{
"table": "Folder",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": ["parentFolderId"],
"referencedColumns": ["id"]
}
]
},
{
"tableName": "Page",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `scroll` INTEGER NOT NULL, `notebookId` TEXT, `nativeTemplate` TEXT NOT NULL DEFAULT 'blank', `parentFolderId` TEXT, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`parentFolderId`) REFERENCES `Folder`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`notebookId`) REFERENCES `Notebook`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "scroll",
"columnName": "scroll",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "notebookId",
"columnName": "notebookId",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "nativeTemplate",
"columnName": "nativeTemplate",
"affinity": "TEXT",
"notNull": true,
"defaultValue": "'blank'"
},
{
"fieldPath": "parentFolderId",
"columnName": "parentFolderId",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "createdAt",
"columnName": "createdAt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "updatedAt",
"columnName": "updatedAt",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": ["id"]
},
"indices": [
{
"name": "index_Page_notebookId",
"unique": false,
"columnNames": ["notebookId"],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_Page_notebookId` ON `${TABLE_NAME}` (`notebookId`)"
},
{
"name": "index_Page_parentFolderId",
"unique": false,
"columnNames": ["parentFolderId"],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_Page_parentFolderId` ON `${TABLE_NAME}` (`parentFolderId`)"
}
],
"foreignKeys": [
{
"table": "Folder",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": ["parentFolderId"],
"referencedColumns": ["id"]
},
{
"table": "Notebook",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": ["notebookId"],
"referencedColumns": ["id"]
}
]
},
{
"tableName": "Stroke",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `size` REAL NOT NULL, `pen` TEXT NOT NULL, `top` REAL NOT NULL, `bottom` REAL NOT NULL, `left` REAL NOT NULL, `right` REAL NOT NULL, `points` TEXT NOT NULL, `pageId` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`pageId`) REFERENCES `Page`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "size",
"columnName": "size",
"affinity": "REAL",
"notNull": true
},
{
"fieldPath": "pen",
"columnName": "pen",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "top",
"columnName": "top",
"affinity": "REAL",
"notNull": true
},
{
"fieldPath": "bottom",
"columnName": "bottom",
"affinity": "REAL",
"notNull": true
},
{
"fieldPath": "left",
"columnName": "left",
"affinity": "REAL",
"notNull": true
},
{
"fieldPath": "right",
"columnName": "right",
"affinity": "REAL",
"notNull": true
},
{
"fieldPath": "points",
"columnName": "points",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "pageId",
"columnName": "pageId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "createdAt",
"columnName": "createdAt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "updatedAt",
"columnName": "updatedAt",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": ["id"]
},
"indices": [
{
"name": "index_Stroke_pageId",
"unique": false,
"columnNames": ["pageId"],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_Stroke_pageId` ON `${TABLE_NAME}` (`pageId`)"
}
],
"foreignKeys": [
{
"table": "Page",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": ["pageId"],
"referencedColumns": ["id"]
}
]
},
{
"tableName": "Kv",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY(`key`))",
"fields": [
{
"fieldPath": "key",
"columnName": "key",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "value",
"columnName": "value",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": ["key"]
},
"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, '8075c4660d325bb60532e94fcc75ea1a')"
]
}
}
Loading

0 comments on commit 959328f

Please sign in to comment.