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

Modern-Apps.git / openassistant / schemas / com.vayunmathur.openassistant.AppDatabase / 1.json

1.json97 lines · 2.8 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 1,
5 "identityHash": "1abaa5b93b95e9e4de2e82e3467e8f0e",
6 "entities": [
7 {
8 "tableName": "Conversation",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`title` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
10 "fields": [
11 {
12 "fieldPath": "title",
13 "columnName": "title",
14 "affinity": "TEXT",
15 "notNull": true
16 },
17 {
18 "fieldPath": "timestamp",
19 "columnName": "timestamp",
20 "affinity": "INTEGER",
21 "notNull": true
22 },
23 {
24 "fieldPath": "id",
25 "columnName": "id",
26 "affinity": "INTEGER",
27 "notNull": true
28 }
29 ],
30 "primaryKey": {
31 "autoGenerate": true,
32 "columnNames": [
33 "id"
34 ]
35 }
36 },
37 {
38 "tableName": "Message",
39 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`conversationId` INTEGER NOT NULL, `text` TEXT NOT NULL, `role` TEXT NOT NULL, `imagePaths` TEXT NOT NULL, `hasAudio` INTEGER NOT NULL, `timestamp` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
40 "fields": [
41 {
42 "fieldPath": "conversationId",
43 "columnName": "conversationId",
44 "affinity": "INTEGER",
45 "notNull": true
46 },
47 {
48 "fieldPath": "text",
49 "columnName": "text",
50 "affinity": "TEXT",
51 "notNull": true
52 },
53 {
54 "fieldPath": "role",
55 "columnName": "role",
56 "affinity": "TEXT",
57 "notNull": true
58 },
59 {
60 "fieldPath": "imagePaths",
61 "columnName": "imagePaths",
62 "affinity": "TEXT",
63 "notNull": true
64 },
65 {
66 "fieldPath": "hasAudio",
67 "columnName": "hasAudio",
68 "affinity": "INTEGER",
69 "notNull": true
70 },
71 {
72 "fieldPath": "timestamp",
73 "columnName": "timestamp",
74 "affinity": "INTEGER",
75 "notNull": true
76 },
77 {
78 "fieldPath": "id",
79 "columnName": "id",
80 "affinity": "INTEGER",
81 "notNull": true
82 }
83 ],
84 "primaryKey": {
85 "autoGenerate": true,
86 "columnNames": [
87 "id"
88 ]
89 }
90 }
91 ],
92 "setupQueries": [
93 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
94 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1abaa5b93b95e9e4de2e82e3467e8f0e')"
95 ]
96 }
97}