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

Modern-Apps.git / music / schemas / com.vayunmathur.music.data.MusicDatabase / 6.json

6.json173 lines · 5.0 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 6,
5 "identityHash": "8e12febea428dcbf0cbce06f9e55577f",
6 "entities": [
7 {
8 "tableName": "Music",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `title` TEXT NOT NULL, `artist` TEXT NOT NULL, `artistId` INTEGER NOT NULL, `album` TEXT NOT NULL, `albumId` INTEGER NOT NULL, `uri` TEXT NOT NULL, `duration` INTEGER NOT NULL, `trackNumber` INTEGER NOT NULL, `year` INTEGER NOT NULL, `discNumber` INTEGER NOT NULL)",
10 "fields": [
11 {
12 "fieldPath": "id",
13 "columnName": "id",
14 "affinity": "INTEGER",
15 "notNull": true
16 },
17 {
18 "fieldPath": "title",
19 "columnName": "title",
20 "affinity": "TEXT",
21 "notNull": true
22 },
23 {
24 "fieldPath": "artist",
25 "columnName": "artist",
26 "affinity": "TEXT",
27 "notNull": true
28 },
29 {
30 "fieldPath": "artistId",
31 "columnName": "artistId",
32 "affinity": "INTEGER",
33 "notNull": true
34 },
35 {
36 "fieldPath": "album",
37 "columnName": "album",
38 "affinity": "TEXT",
39 "notNull": true
40 },
41 {
42 "fieldPath": "albumId",
43 "columnName": "albumId",
44 "affinity": "INTEGER",
45 "notNull": true
46 },
47 {
48 "fieldPath": "uri",
49 "columnName": "uri",
50 "affinity": "TEXT",
51 "notNull": true
52 },
53 {
54 "fieldPath": "duration",
55 "columnName": "duration",
56 "affinity": "INTEGER",
57 "notNull": true
58 },
59 {
60 "fieldPath": "trackNumber",
61 "columnName": "trackNumber",
62 "affinity": "INTEGER",
63 "notNull": true
64 },
65 {
66 "fieldPath": "year",
67 "columnName": "year",
68 "affinity": "INTEGER",
69 "notNull": true
70 },
71 {
72 "fieldPath": "discNumber",
73 "columnName": "discNumber",
74 "affinity": "INTEGER",
75 "notNull": true
76 }
77 ],
78 "primaryKey": {
79 "autoGenerate": true,
80 "columnNames": [
81 "id"
82 ]
83 }
84 },
85 {
86 "tableName": "Playlist",
87 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL)",
88 "fields": [
89 {
90 "fieldPath": "id",
91 "columnName": "id",
92 "affinity": "INTEGER",
93 "notNull": true
94 },
95 {
96 "fieldPath": "name",
97 "columnName": "name",
98 "affinity": "TEXT",
99 "notNull": true
100 }
101 ],
102 "primaryKey": {
103 "autoGenerate": true,
104 "columnNames": [
105 "id"
106 ]
107 }
108 },
109 {
110 "tableName": "ManyManyMatching",
111 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`leftID` INTEGER NOT NULL, `rightID` INTEGER NOT NULL, `type` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
112 "fields": [
113 {
114 "fieldPath": "leftID",
115 "columnName": "leftID",
116 "affinity": "INTEGER",
117 "notNull": true
118 },
119 {
120 "fieldPath": "rightID",
121 "columnName": "rightID",
122 "affinity": "INTEGER",
123 "notNull": true
124 },
125 {
126 "fieldPath": "type",
127 "columnName": "type",
128 "affinity": "INTEGER",
129 "notNull": true
130 },
131 {
132 "fieldPath": "id",
133 "columnName": "id",
134 "affinity": "INTEGER",
135 "notNull": true
136 }
137 ],
138 "primaryKey": {
139 "autoGenerate": true,
140 "columnNames": [
141 "id"
142 ]
143 },
144 "indices": [
145 {
146 "name": "index_ManyManyMatching_leftID_type",
147 "unique": false,
148 "columnNames": [
149 "leftID",
150 "type"
151 ],
152 "orders": [],
153 "createSql": "CREATE INDEX IF NOT EXISTS `index_ManyManyMatching_leftID_type` ON `${TABLE_NAME}` (`leftID`, `type`)"
154 },
155 {
156 "name": "index_ManyManyMatching_rightID_type",
157 "unique": false,
158 "columnNames": [
159 "rightID",
160 "type"
161 ],
162 "orders": [],
163 "createSql": "CREATE INDEX IF NOT EXISTS `index_ManyManyMatching_rightID_type` ON `${TABLE_NAME}` (`rightID`, `type`)"
164 }
165 ]
166 }
167 ],
168 "setupQueries": [
169 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
170 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '8e12febea428dcbf0cbce06f9e55577f')"
171 ]
172 }
173}