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

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

4.json136 lines · 4.1 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 4,
5 "identityHash": "5ce888cc9a2d5d6c49fa69b02c466946",
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, `remainingStartElapsedRealtime` INTEGER, `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": "remainingStartElapsedRealtime",
43 "columnName": "remainingStartElapsedRealtime",
44 "affinity": "INTEGER"
45 },
46 {
47 "fieldPath": "id",
48 "columnName": "id",
49 "affinity": "INTEGER",
50 "notNull": true
51 }
52 ],
53 "primaryKey": {
54 "autoGenerate": true,
55 "columnNames": [
56 "id"
57 ]
58 }
59 },
60 {
61 "tableName": "Alarm",
62 "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)",
63 "fields": [
64 {
65 "fieldPath": "time",
66 "columnName": "time",
67 "affinity": "INTEGER",
68 "notNull": true
69 },
70 {
71 "fieldPath": "name",
72 "columnName": "name",
73 "affinity": "TEXT",
74 "notNull": true
75 },
76 {
77 "fieldPath": "enabled",
78 "columnName": "enabled",
79 "affinity": "INTEGER",
80 "notNull": true
81 },
82 {
83 "fieldPath": "days",
84 "columnName": "days",
85 "affinity": "INTEGER",
86 "notNull": true
87 },
88 {
89 "fieldPath": "ringtoneUri",
90 "columnName": "ringtoneUri",
91 "affinity": "TEXT"
92 },
93 {
94 "fieldPath": "vibrate",
95 "columnName": "vibrate",
96 "affinity": "INTEGER",
97 "notNull": true
98 },
99 {
100 "fieldPath": "snoozeMinutes",
101 "columnName": "snoozeMinutes",
102 "affinity": "INTEGER",
103 "notNull": true
104 },
105 {
106 "fieldPath": "gradualVolumeSeconds",
107 "columnName": "gradualVolumeSeconds",
108 "affinity": "INTEGER",
109 "notNull": true
110 },
111 {
112 "fieldPath": "snoozedUntil",
113 "columnName": "snoozedUntil",
114 "affinity": "INTEGER"
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 "setupQueries": [
132 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
133 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5ce888cc9a2d5d6c49fa69b02c466946')"
134 ]
135 }
136}