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

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

2.json49 lines · 1.4 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 2,
5 "identityHash": "eb737d19087f300e73e1cba1454bd3e1",
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)",
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 "primaryKey": {
37 "autoGenerate": true,
38 "columnNames": [
39 "id"
40 ]
41 }
42 }
43 ],
44 "setupQueries": [
45 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
46 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'eb737d19087f300e73e1cba1454bd3e1')"
47 ]
48 }
49}