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

Modern-Apps.git / clock / schemas / com.vayunmathur.clock.data.ClockDatabase / 1.json

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