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

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

3.json131 lines · 3.9 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 3,
5 "identityHash": "95b7b343a9ef010cab044b38514a3c84",
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, `ringtoneUri` TEXT, `vibrate` INTEGER NOT NULL, `snoozeMinutes` INTEGER NOT NULL, `gradualVolumeSeconds` INTEGER NOT NULL, `snoozedUntil` INTEGER, `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": "ringtoneUri",
85 "columnName": "ringtoneUri",
86 "affinity": "TEXT"
87 },
88 {
89 "fieldPath": "vibrate",
90 "columnName": "vibrate",
91 "affinity": "INTEGER",
92 "notNull": true
93 },
94 {
95 "fieldPath": "snoozeMinutes",
96 "columnName": "snoozeMinutes",
97 "affinity": "INTEGER",
98 "notNull": true
99 },
100 {
101 "fieldPath": "gradualVolumeSeconds",
102 "columnName": "gradualVolumeSeconds",
103 "affinity": "INTEGER",
104 "notNull": true
105 },
106 {
107 "fieldPath": "snoozedUntil",
108 "columnName": "snoozedUntil",
109 "affinity": "INTEGER"
110 },
111 {
112 "fieldPath": "id",
113 "columnName": "id",
114 "affinity": "INTEGER",
115 "notNull": true
116 }
117 ],
118 "primaryKey": {
119 "autoGenerate": true,
120 "columnNames": [
121 "id"
122 ]
123 }
124 }
125 ],
126 "setupQueries": [
127 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
128 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '95b7b343a9ef010cab044b38514a3c84')"
129 ]
130 }
131}