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

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

5.json238 lines · 6.8 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 5,
5 "identityHash": "1ba19eb73959eb97a54f2d6b51921dde",
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, `missingAppPackage` TEXT, `a2ui` TEXT, `a2uiData` TEXT, `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": "missingAppPackage",
73 "columnName": "missingAppPackage",
74 "affinity": "TEXT"
75 },
76 {
77 "fieldPath": "a2ui",
78 "columnName": "a2ui",
79 "affinity": "TEXT"
80 },
81 {
82 "fieldPath": "a2uiData",
83 "columnName": "a2uiData",
84 "affinity": "TEXT"
85 },
86 {
87 "fieldPath": "timestamp",
88 "columnName": "timestamp",
89 "affinity": "INTEGER",
90 "notNull": true
91 },
92 {
93 "fieldPath": "id",
94 "columnName": "id",
95 "affinity": "INTEGER",
96 "notNull": true
97 }
98 ],
99 "primaryKey": {
100 "autoGenerate": true,
101 "columnNames": [
102 "id"
103 ]
104 }
105 },
106 {
107 "tableName": "Memory",
108 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`content` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
109 "fields": [
110 {
111 "fieldPath": "content",
112 "columnName": "content",
113 "affinity": "TEXT",
114 "notNull": true
115 },
116 {
117 "fieldPath": "id",
118 "columnName": "id",
119 "affinity": "INTEGER",
120 "notNull": true
121 }
122 ],
123 "primaryKey": {
124 "autoGenerate": true,
125 "columnNames": [
126 "id"
127 ]
128 }
129 },
130 {
131 "tableName": "PendingToolCall",
132 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `conversationId` INTEGER NOT NULL, `toolName` TEXT NOT NULL, `argsJson` TEXT NOT NULL, `summary` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `expiresAt` INTEGER NOT NULL, `consumed` INTEGER NOT NULL, PRIMARY KEY(`id`))",
133 "fields": [
134 {
135 "fieldPath": "id",
136 "columnName": "id",
137 "affinity": "TEXT",
138 "notNull": true
139 },
140 {
141 "fieldPath": "conversationId",
142 "columnName": "conversationId",
143 "affinity": "INTEGER",
144 "notNull": true
145 },
146 {
147 "fieldPath": "toolName",
148 "columnName": "toolName",
149 "affinity": "TEXT",
150 "notNull": true
151 },
152 {
153 "fieldPath": "argsJson",
154 "columnName": "argsJson",
155 "affinity": "TEXT",
156 "notNull": true
157 },
158 {
159 "fieldPath": "summary",
160 "columnName": "summary",
161 "affinity": "TEXT",
162 "notNull": true
163 },
164 {
165 "fieldPath": "createdAt",
166 "columnName": "createdAt",
167 "affinity": "INTEGER",
168 "notNull": true
169 },
170 {
171 "fieldPath": "expiresAt",
172 "columnName": "expiresAt",
173 "affinity": "INTEGER",
174 "notNull": true
175 },
176 {
177 "fieldPath": "consumed",
178 "columnName": "consumed",
179 "affinity": "INTEGER",
180 "notNull": true
181 }
182 ],
183 "primaryKey": {
184 "autoGenerate": false,
185 "columnNames": [
186 "id"
187 ]
188 }
189 },
190 {
191 "tableName": "AuditRecord",
192 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`toolName` TEXT NOT NULL, `argsSummary` TEXT NOT NULL, `outcome` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
193 "fields": [
194 {
195 "fieldPath": "toolName",
196 "columnName": "toolName",
197 "affinity": "TEXT",
198 "notNull": true
199 },
200 {
201 "fieldPath": "argsSummary",
202 "columnName": "argsSummary",
203 "affinity": "TEXT",
204 "notNull": true
205 },
206 {
207 "fieldPath": "outcome",
208 "columnName": "outcome",
209 "affinity": "TEXT",
210 "notNull": true
211 },
212 {
213 "fieldPath": "timestamp",
214 "columnName": "timestamp",
215 "affinity": "INTEGER",
216 "notNull": true
217 },
218 {
219 "fieldPath": "id",
220 "columnName": "id",
221 "affinity": "INTEGER",
222 "notNull": true
223 }
224 ],
225 "primaryKey": {
226 "autoGenerate": true,
227 "columnNames": [
228 "id"
229 ]
230 }
231 }
232 ],
233 "setupQueries": [
234 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
235 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1ba19eb73959eb97a54f2d6b51921dde')"
236 ]
237 }
238}