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

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

5.json151 lines · 4.3 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 5,
5 "identityHash": "a04c1a2a434a56d428e86283c72a6cb8",
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 }
145 ],
146 "setupQueries": [
147 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
148 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'a04c1a2a434a56d428e86283c72a6cb8')"
149 ]
150 }
151}