Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
main ▾

Modern-Apps.git / notes / schemas / com.vayunmathur.notes.data.NoteDatabase / 4.json

4.json126 lines · 3.7 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 4,
5 "identityHash": "556304bf34f625fc360b79686ddb1a27",
6 "entities": [
7 {
8 "tableName": "Note",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `title` TEXT NOT NULL, `content` TEXT NOT NULL, `position` REAL NOT NULL, `blocks` TEXT, `syncId` TEXT NOT NULL, `updatedAt` INTEGER NOT NULL, `deleted` INTEGER NOT NULL, `tags` TEXT NOT NULL)",
10 "fields": [
11 {
12 "fieldPath": "id",
13 "columnName": "id",
14 "affinity": "INTEGER",
15 "notNull": true
16 },
17 {
18 "fieldPath": "title",
19 "columnName": "title",
20 "affinity": "TEXT",
21 "notNull": true
22 },
23 {
24 "fieldPath": "content",
25 "columnName": "content",
26 "affinity": "TEXT",
27 "notNull": true
28 },
29 {
30 "fieldPath": "position",
31 "columnName": "position",
32 "affinity": "REAL",
33 "notNull": true
34 },
35 {
36 "fieldPath": "blocks",
37 "columnName": "blocks",
38 "affinity": "TEXT"
39 },
40 {
41 "fieldPath": "syncId",
42 "columnName": "syncId",
43 "affinity": "TEXT",
44 "notNull": true
45 },
46 {
47 "fieldPath": "updatedAt",
48 "columnName": "updatedAt",
49 "affinity": "INTEGER",
50 "notNull": true
51 },
52 {
53 "fieldPath": "deleted",
54 "columnName": "deleted",
55 "affinity": "INTEGER",
56 "notNull": true
57 },
58 {
59 "fieldPath": "tags",
60 "columnName": "tags",
61 "affinity": "TEXT",
62 "notNull": true
63 }
64 ],
65 "primaryKey": {
66 "autoGenerate": true,
67 "columnNames": [
68 "id"
69 ]
70 }
71 },
72 {
73 "tableName": "SyncSnapshot",
74 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`syncId` TEXT NOT NULL, `kind` TEXT NOT NULL, `contentHash` TEXT NOT NULL, `localUpdatedAt` INTEGER NOT NULL, `remoteModified` INTEGER NOT NULL, `lastSyncedAt` INTEGER NOT NULL, PRIMARY KEY(`syncId`))",
75 "fields": [
76 {
77 "fieldPath": "syncId",
78 "columnName": "syncId",
79 "affinity": "TEXT",
80 "notNull": true
81 },
82 {
83 "fieldPath": "kind",
84 "columnName": "kind",
85 "affinity": "TEXT",
86 "notNull": true
87 },
88 {
89 "fieldPath": "contentHash",
90 "columnName": "contentHash",
91 "affinity": "TEXT",
92 "notNull": true
93 },
94 {
95 "fieldPath": "localUpdatedAt",
96 "columnName": "localUpdatedAt",
97 "affinity": "INTEGER",
98 "notNull": true
99 },
100 {
101 "fieldPath": "remoteModified",
102 "columnName": "remoteModified",
103 "affinity": "INTEGER",
104 "notNull": true
105 },
106 {
107 "fieldPath": "lastSyncedAt",
108 "columnName": "lastSyncedAt",
109 "affinity": "INTEGER",
110 "notNull": true
111 }
112 ],
113 "primaryKey": {
114 "autoGenerate": false,
115 "columnNames": [
116 "syncId"
117 ]
118 }
119 }
120 ],
121 "setupQueries": [
122 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
123 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '556304bf34f625fc360b79686ddb1a27')"
124 ]
125 }
126}