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

Modern-Apps.git / translate / schemas / com.vayunmathur.translate.data.TranslateDatabase / 1.json

1.json67 lines · 2.0 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 1,
5 "identityHash": "79a76af25fb7049905177ddd6039633d",
6 "entities": [
7 {
8 "tableName": "TranslationRecord",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `sourceText` TEXT NOT NULL, `translatedText` TEXT NOT NULL, `sourceLang` TEXT NOT NULL, `targetLang` TEXT NOT NULL, `isFavorite` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL)",
10 "fields": [
11 {
12 "fieldPath": "id",
13 "columnName": "id",
14 "affinity": "INTEGER",
15 "notNull": true
16 },
17 {
18 "fieldPath": "sourceText",
19 "columnName": "sourceText",
20 "affinity": "TEXT",
21 "notNull": true
22 },
23 {
24 "fieldPath": "translatedText",
25 "columnName": "translatedText",
26 "affinity": "TEXT",
27 "notNull": true
28 },
29 {
30 "fieldPath": "sourceLang",
31 "columnName": "sourceLang",
32 "affinity": "TEXT",
33 "notNull": true
34 },
35 {
36 "fieldPath": "targetLang",
37 "columnName": "targetLang",
38 "affinity": "TEXT",
39 "notNull": true
40 },
41 {
42 "fieldPath": "isFavorite",
43 "columnName": "isFavorite",
44 "affinity": "INTEGER",
45 "notNull": true
46 },
47 {
48 "fieldPath": "createdAt",
49 "columnName": "createdAt",
50 "affinity": "INTEGER",
51 "notNull": true
52 }
53 ],
54 "primaryKey": {
55 "autoGenerate": true,
56 "columnNames": [
57 "id"
58 ]
59 }
60 }
61 ],
62 "setupQueries": [
63 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
64 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '79a76af25fb7049905177ddd6039633d')"
65 ]
66 }
67}