···1CREATE TABLE "album_tracks" (
2- "xata_id" text PRIMARY KEY NOT NULL,
3 "album_id" text NOT NULL,
4 "track_id" text NOT NULL,
5 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···8);
9--> statement-breakpoint
10CREATE TABLE "albums" (
11- "xata_id" text PRIMARY KEY NOT NULL,
12 "title" text NOT NULL,
13 "artist" text NOT NULL,
14 "release_date" text,
···33);
34--> statement-breakpoint
35CREATE TABLE "api_keys" (
36- "xata_id" text PRIMARY KEY NOT NULL,
37 "name" text NOT NULL,
38 "api_key" text NOT NULL,
39 "shared_secret" text NOT NULL,
···45);
46--> statement-breakpoint
47CREATE TABLE "artist_albums" (
48- "xata_id" text PRIMARY KEY NOT NULL,
49 "artist_id" text NOT NULL,
50 "album_id" text NOT NULL,
51 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···54);
55--> statement-breakpoint
56CREATE TABLE "artist_tracks" (
57- "xata_id" text PRIMARY KEY NOT NULL,
58 "artist_id" text NOT NULL,
59 "track_id" text NOT NULL,
60 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···63);
64--> statement-breakpoint
65CREATE TABLE "artists" (
66- "xata_id" text PRIMARY KEY NOT NULL,
67 "name" text NOT NULL,
68 "biography" text,
69 "born" timestamp,
···83 CONSTRAINT "artists_uri_unique" UNIQUE("uri")
84);
85--> statement-breakpoint
0000000000000000000000000000000000000086CREATE TABLE "dropbox_tokens" (
87- "xata_id" text PRIMARY KEY NOT NULL,
88 "refresh_token" text NOT NULL,
89 "xata_createdat" timestamp DEFAULT now() NOT NULL,
90 "xata_updatedat" timestamp DEFAULT now() NOT NULL
91);
92--> statement-breakpoint
000000000000000000000000000000000000000000000093CREATE TABLE "google_drive_tokens" (
94- "xata_id" text PRIMARY KEY NOT NULL,
95 "refresh_token" text NOT NULL,
96 "xata_createdat" timestamp DEFAULT now() NOT NULL,
97 "xata_updatedat" timestamp DEFAULT now() NOT NULL
98);
99--> statement-breakpoint
000000000100CREATE TABLE "loved_tracks" (
101- "xata_id" text PRIMARY KEY NOT NULL,
102 "user_id" text NOT NULL,
103 "track_id" text NOT NULL,
104 "uri" text,
···107);
108--> statement-breakpoint
109CREATE TABLE "playlist_tracks" (
110- "xata_id" text PRIMARY KEY NOT NULL,
111 "playlist_id" text NOT NULL,
112 "track_id" text NOT NULL,
113 "xata_createdat" timestamp DEFAULT now() NOT NULL
114);
115--> statement-breakpoint
116CREATE TABLE "playlists" (
117- "xata_id" text PRIMARY KEY NOT NULL,
118 "name" text NOT NULL,
119 "picture" text,
120 "description" text,
···129);
130--> statement-breakpoint
131CREATE TABLE "profile_shouts" (
132- "xata_id" text PRIMARY KEY NOT NULL,
133 "user_id" text NOT NULL,
134 "shout_id" text NOT NULL,
135 "xata_createdat" timestamp DEFAULT now() NOT NULL
136);
137--> statement-breakpoint
00000000000138CREATE TABLE "scrobbles" (
139- "xata_id" text PRIMARY KEY NOT NULL,
140 "user_id" text,
141 "track_id" text,
142 "album_id" text,
···150);
151--> statement-breakpoint
152CREATE TABLE "shout_likes" (
153- "xata_id" text PRIMARY KEY NOT NULL,
154 "user_id" text NOT NULL,
155 "shout_id" text NOT NULL,
156 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···159);
160--> statement-breakpoint
161CREATE TABLE "shout_reports" (
162- "xata_id" text PRIMARY KEY NOT NULL,
163 "user_id" text NOT NULL,
164 "shout_id" text NOT NULL,
165 "xata_createdat" timestamp DEFAULT now() NOT NULL
166);
167--> statement-breakpoint
168CREATE TABLE "shouts" (
169- "xata_id" text PRIMARY KEY NOT NULL,
170 "content" text NOT NULL,
171 "track_id" text,
172 "artist_id" text,
···181);
182--> statement-breakpoint
183CREATE TABLE "spotify_accounts" (
184- "xata_id" text PRIMARY KEY NOT NULL,
185 "xata_version" integer NOT NULL,
186 "email" text NOT NULL,
187 "user_id" text NOT NULL,
···191);
192--> statement-breakpoint
193CREATE TABLE "spotify_tokens" (
194- "xata_id" text PRIMARY KEY NOT NULL,
195 "xata_version" integer NOT NULL,
196 "access_token" text NOT NULL,
197 "refresh_token" text NOT NULL,
···201);
202--> statement-breakpoint
203CREATE TABLE "tracks" (
204- "xata_id" text PRIMARY KEY NOT NULL,
205 "title" text NOT NULL,
206 "artist" text NOT NULL,
207 "album_artist" text NOT NULL,
···239);
240--> statement-breakpoint
241CREATE TABLE "user_albums" (
242- "xata_id" text PRIMARY KEY NOT NULL,
243 "user_id" text NOT NULL,
244 "album_id" text NOT NULL,
245 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···251);
252--> statement-breakpoint
253CREATE TABLE "user_artists" (
254- "xata_id" text PRIMARY KEY NOT NULL,
255 "user_id" text NOT NULL,
256 "artist_id" text NOT NULL,
257 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···263);
264--> statement-breakpoint
265CREATE TABLE "user_playlists" (
266- "xata_id" text PRIMARY KEY NOT NULL,
267 "user_id" text NOT NULL,
268 "playlist_id" text NOT NULL,
269 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···272);
273--> statement-breakpoint
274CREATE TABLE "user_tracks" (
275- "xata_id" text PRIMARY KEY NOT NULL,
276 "user_id" text NOT NULL,
277 "track_id" text NOT NULL,
278 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···284);
285--> statement-breakpoint
286CREATE TABLE "users" (
287- "xata_id" text PRIMARY KEY NOT NULL,
288 "did" text NOT NULL,
289 "display_name" text NOT NULL,
290 "handle" text NOT NULL,
···297);
298--> statement-breakpoint
299CREATE TABLE "webscrobblers" (
300- "xata_id" text PRIMARY KEY NOT NULL,
301 "name" text NOT NULL,
302 "uuid" text NOT NULL,
303 "description" text,
···314ALTER TABLE "artist_albums" ADD CONSTRAINT "artist_albums_album_id_albums_xata_id_fk" FOREIGN KEY ("album_id") REFERENCES "public"."albums"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
315ALTER TABLE "artist_tracks" ADD CONSTRAINT "artist_tracks_artist_id_artists_xata_id_fk" FOREIGN KEY ("artist_id") REFERENCES "public"."artists"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
316ALTER TABLE "artist_tracks" ADD CONSTRAINT "artist_tracks_track_id_tracks_xata_id_fk" FOREIGN KEY ("track_id") REFERENCES "public"."tracks"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
0000000000317ALTER TABLE "loved_tracks" ADD CONSTRAINT "loved_tracks_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
318ALTER TABLE "loved_tracks" ADD CONSTRAINT "loved_tracks_track_id_tracks_xata_id_fk" FOREIGN KEY ("track_id") REFERENCES "public"."tracks"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
319ALTER TABLE "playlist_tracks" ADD CONSTRAINT "playlist_tracks_playlist_id_playlists_xata_id_fk" FOREIGN KEY ("playlist_id") REFERENCES "public"."playlists"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
···321ALTER TABLE "playlists" ADD CONSTRAINT "playlists_created_by_users_xata_id_fk" FOREIGN KEY ("created_by") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
322ALTER TABLE "profile_shouts" ADD CONSTRAINT "profile_shouts_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
323ALTER TABLE "profile_shouts" ADD CONSTRAINT "profile_shouts_shout_id_shouts_xata_id_fk" FOREIGN KEY ("shout_id") REFERENCES "public"."shouts"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
00324ALTER TABLE "scrobbles" ADD CONSTRAINT "scrobbles_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
325ALTER TABLE "scrobbles" ADD CONSTRAINT "scrobbles_track_id_tracks_xata_id_fk" FOREIGN KEY ("track_id") REFERENCES "public"."tracks"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
326ALTER TABLE "scrobbles" ADD CONSTRAINT "scrobbles_album_id_albums_xata_id_fk" FOREIGN KEY ("album_id") REFERENCES "public"."albums"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
···1CREATE TABLE "album_tracks" (
2+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
3 "album_id" text NOT NULL,
4 "track_id" text NOT NULL,
5 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···8);
9--> statement-breakpoint
10CREATE TABLE "albums" (
11+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
12 "title" text NOT NULL,
13 "artist" text NOT NULL,
14 "release_date" text,
···33);
34--> statement-breakpoint
35CREATE TABLE "api_keys" (
36+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
37 "name" text NOT NULL,
38 "api_key" text NOT NULL,
39 "shared_secret" text NOT NULL,
···45);
46--> statement-breakpoint
47CREATE TABLE "artist_albums" (
48+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
49 "artist_id" text NOT NULL,
50 "album_id" text NOT NULL,
51 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···54);
55--> statement-breakpoint
56CREATE TABLE "artist_tracks" (
57+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
58 "artist_id" text NOT NULL,
59 "track_id" text NOT NULL,
60 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···63);
64--> statement-breakpoint
65CREATE TABLE "artists" (
66+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
67 "name" text NOT NULL,
68 "biography" text,
69 "born" timestamp,
···83 CONSTRAINT "artists_uri_unique" UNIQUE("uri")
84);
85--> statement-breakpoint
86+CREATE TABLE "dropbox_accounts" (
87+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
88+ "email" text NOT NULL,
89+ "is_beta_user" boolean DEFAULT false NOT NULL,
90+ "user_id" text NOT NULL,
91+ "xata_version" text NOT NULL,
92+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
93+ "xata_updatedat" timestamp DEFAULT now() NOT NULL,
94+ CONSTRAINT "dropbox_accounts_email_unique" UNIQUE("email")
95+);
96+--> statement-breakpoint
97+CREATE TABLE "dropbox_directories" (
98+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
99+ "name" text NOT NULL,
100+ "path" text NOT NULL,
101+ "parent_id" text,
102+ "dropbox_id" text NOT NULL,
103+ "file_id" text NOT NULL,
104+ "xata_version" text NOT NULL,
105+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
106+ "xata_updatedat" timestamp DEFAULT now() NOT NULL,
107+ CONSTRAINT "dropbox_directories_file_id_unique" UNIQUE("file_id")
108+);
109+--> statement-breakpoint
110+CREATE TABLE "dropbox_paths" (
111+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
112+ "path" text NOT NULL,
113+ "name" text NOT NULL,
114+ "dropbox_id" text NOT NULL,
115+ "track_id" text NOT NULL,
116+ "directory_id" text,
117+ "file_id" text NOT NULL,
118+ "xata_version" text NOT NULL,
119+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
120+ "xata_updatedat" timestamp DEFAULT now() NOT NULL,
121+ CONSTRAINT "dropbox_paths_file_id_unique" UNIQUE("file_id")
122+);
123+--> statement-breakpoint
124CREATE TABLE "dropbox_tokens" (
125+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
126 "refresh_token" text NOT NULL,
127 "xata_createdat" timestamp DEFAULT now() NOT NULL,
128 "xata_updatedat" timestamp DEFAULT now() NOT NULL
129);
130--> statement-breakpoint
131+CREATE TABLE "dropbox" (
132+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
133+ "user_id" text NOT NULL,
134+ "dropbox_token_id" text NOT NULL,
135+ "xata_version" text NOT NULL,
136+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
137+ "xata_updatedat" timestamp DEFAULT now() NOT NULL
138+);
139+--> statement-breakpoint
140+CREATE TABLE "google_drive_accounts" (
141+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
142+ "email" text NOT NULL,
143+ "is_beta_user" boolean DEFAULT false NOT NULL,
144+ "user_id" text NOT NULL,
145+ "xata_version" text NOT NULL,
146+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
147+ "xata_updatedat" timestamp DEFAULT now() NOT NULL,
148+ CONSTRAINT "google_drive_accounts_email_unique" UNIQUE("email")
149+);
150+--> statement-breakpoint
151+CREATE TABLE "google_drive_directories" (
152+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
153+ "name" text NOT NULL,
154+ "path" text NOT NULL,
155+ "parent_id" text,
156+ "google_drive_id" text NOT NULL,
157+ "file_id" text NOT NULL,
158+ "xata_version" text NOT NULL,
159+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
160+ "xata_updatedat" timestamp DEFAULT now() NOT NULL,
161+ CONSTRAINT "google_drive_directories_file_id_unique" UNIQUE("file_id")
162+);
163+--> statement-breakpoint
164+CREATE TABLE "google_drive_paths" (
165+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
166+ "google_drive_id" text NOT NULL,
167+ "track_id" text NOT NULL,
168+ "name" text NOT NULL,
169+ "directory_id" text,
170+ "file_id" text NOT NULL,
171+ "xata_version" text NOT NULL,
172+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
173+ "xata_updatedat" timestamp DEFAULT now() NOT NULL,
174+ CONSTRAINT "google_drive_paths_file_id_unique" UNIQUE("file_id")
175+);
176+--> statement-breakpoint
177CREATE TABLE "google_drive_tokens" (
178+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
179 "refresh_token" text NOT NULL,
180 "xata_createdat" timestamp DEFAULT now() NOT NULL,
181 "xata_updatedat" timestamp DEFAULT now() NOT NULL
182);
183--> statement-breakpoint
184+CREATE TABLE "google_drive" (
185+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
186+ "google_drive_token_id" text NOT NULL,
187+ "user_id" text NOT NULL,
188+ "xata_version" text NOT NULL,
189+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
190+ "xata_updatedat" timestamp DEFAULT now() NOT NULL
191+);
192+--> statement-breakpoint
193CREATE TABLE "loved_tracks" (
194+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
195 "user_id" text NOT NULL,
196 "track_id" text NOT NULL,
197 "uri" text,
···200);
201--> statement-breakpoint
202CREATE TABLE "playlist_tracks" (
203+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
204 "playlist_id" text NOT NULL,
205 "track_id" text NOT NULL,
206 "xata_createdat" timestamp DEFAULT now() NOT NULL
207);
208--> statement-breakpoint
209CREATE TABLE "playlists" (
210+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
211 "name" text NOT NULL,
212 "picture" text,
213 "description" text,
···222);
223--> statement-breakpoint
224CREATE TABLE "profile_shouts" (
225+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
226 "user_id" text NOT NULL,
227 "shout_id" text NOT NULL,
228 "xata_createdat" timestamp DEFAULT now() NOT NULL
229);
230--> statement-breakpoint
231+CREATE TABLE "queue_tracks" (
232+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
233+ "user_id" text NOT NULL,
234+ "track_id" text NOT NULL,
235+ "position" integer NOT NULL,
236+ "file_uri" text NOT NULL,
237+ "xata_version" integer DEFAULT 0 NOT NULL,
238+ "xata_createdat" timestamp DEFAULT now() NOT NULL,
239+ "xata_updatedat" timestamp DEFAULT now() NOT NULL
240+);
241+--> statement-breakpoint
242CREATE TABLE "scrobbles" (
243+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
244 "user_id" text,
245 "track_id" text,
246 "album_id" text,
···254);
255--> statement-breakpoint
256CREATE TABLE "shout_likes" (
257+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
258 "user_id" text NOT NULL,
259 "shout_id" text NOT NULL,
260 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···263);
264--> statement-breakpoint
265CREATE TABLE "shout_reports" (
266+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
267 "user_id" text NOT NULL,
268 "shout_id" text NOT NULL,
269 "xata_createdat" timestamp DEFAULT now() NOT NULL
270);
271--> statement-breakpoint
272CREATE TABLE "shouts" (
273+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
274 "content" text NOT NULL,
275 "track_id" text,
276 "artist_id" text,
···285);
286--> statement-breakpoint
287CREATE TABLE "spotify_accounts" (
288+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
289 "xata_version" integer NOT NULL,
290 "email" text NOT NULL,
291 "user_id" text NOT NULL,
···295);
296--> statement-breakpoint
297CREATE TABLE "spotify_tokens" (
298+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
299 "xata_version" integer NOT NULL,
300 "access_token" text NOT NULL,
301 "refresh_token" text NOT NULL,
···305);
306--> statement-breakpoint
307CREATE TABLE "tracks" (
308+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
309 "title" text NOT NULL,
310 "artist" text NOT NULL,
311 "album_artist" text NOT NULL,
···343);
344--> statement-breakpoint
345CREATE TABLE "user_albums" (
346+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
347 "user_id" text NOT NULL,
348 "album_id" text NOT NULL,
349 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···355);
356--> statement-breakpoint
357CREATE TABLE "user_artists" (
358+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
359 "user_id" text NOT NULL,
360 "artist_id" text NOT NULL,
361 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···367);
368--> statement-breakpoint
369CREATE TABLE "user_playlists" (
370+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
371 "user_id" text NOT NULL,
372 "playlist_id" text NOT NULL,
373 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···376);
377--> statement-breakpoint
378CREATE TABLE "user_tracks" (
379+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
380 "user_id" text NOT NULL,
381 "track_id" text NOT NULL,
382 "xata_createdat" timestamp DEFAULT now() NOT NULL,
···388);
389--> statement-breakpoint
390CREATE TABLE "users" (
391+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
392 "did" text NOT NULL,
393 "display_name" text NOT NULL,
394 "handle" text NOT NULL,
···401);
402--> statement-breakpoint
403CREATE TABLE "webscrobblers" (
404+ "xata_id" text PRIMARY KEY DEFAULT xata_id(),
405 "name" text NOT NULL,
406 "uuid" text NOT NULL,
407 "description" text,
···418ALTER TABLE "artist_albums" ADD CONSTRAINT "artist_albums_album_id_albums_xata_id_fk" FOREIGN KEY ("album_id") REFERENCES "public"."albums"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
419ALTER TABLE "artist_tracks" ADD CONSTRAINT "artist_tracks_artist_id_artists_xata_id_fk" FOREIGN KEY ("artist_id") REFERENCES "public"."artists"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
420ALTER TABLE "artist_tracks" ADD CONSTRAINT "artist_tracks_track_id_tracks_xata_id_fk" FOREIGN KEY ("track_id") REFERENCES "public"."tracks"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
421+ALTER TABLE "dropbox_accounts" ADD CONSTRAINT "dropbox_accounts_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
422+ALTER TABLE "dropbox_directories" ADD CONSTRAINT "dropbox_directories_parent_id_dropbox_directories_xata_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."dropbox_directories"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
423+ALTER TABLE "dropbox_paths" ADD CONSTRAINT "dropbox_paths_directory_id_dropbox_directories_xata_id_fk" FOREIGN KEY ("directory_id") REFERENCES "public"."dropbox_directories"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
424+ALTER TABLE "dropbox" ADD CONSTRAINT "dropbox_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
425+ALTER TABLE "dropbox" ADD CONSTRAINT "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk" FOREIGN KEY ("dropbox_token_id") REFERENCES "public"."dropbox_tokens"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
426+ALTER TABLE "google_drive_accounts" ADD CONSTRAINT "google_drive_accounts_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
427+ALTER TABLE "google_drive_directories" ADD CONSTRAINT "google_drive_directories_parent_id_google_drive_directories_xata_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."google_drive_directories"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
428+ALTER TABLE "google_drive_paths" ADD CONSTRAINT "google_drive_paths_directory_id_google_drive_directories_xata_id_fk" FOREIGN KEY ("directory_id") REFERENCES "public"."google_drive_directories"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
429+ALTER TABLE "google_drive" ADD CONSTRAINT "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk" FOREIGN KEY ("google_drive_token_id") REFERENCES "public"."google_drive_tokens"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
430+ALTER TABLE "google_drive" ADD CONSTRAINT "google_drive_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
431ALTER TABLE "loved_tracks" ADD CONSTRAINT "loved_tracks_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
432ALTER TABLE "loved_tracks" ADD CONSTRAINT "loved_tracks_track_id_tracks_xata_id_fk" FOREIGN KEY ("track_id") REFERENCES "public"."tracks"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
433ALTER TABLE "playlist_tracks" ADD CONSTRAINT "playlist_tracks_playlist_id_playlists_xata_id_fk" FOREIGN KEY ("playlist_id") REFERENCES "public"."playlists"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
···435ALTER TABLE "playlists" ADD CONSTRAINT "playlists_created_by_users_xata_id_fk" FOREIGN KEY ("created_by") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
436ALTER TABLE "profile_shouts" ADD CONSTRAINT "profile_shouts_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
437ALTER TABLE "profile_shouts" ADD CONSTRAINT "profile_shouts_shout_id_shouts_xata_id_fk" FOREIGN KEY ("shout_id") REFERENCES "public"."shouts"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
438+ALTER TABLE "queue_tracks" ADD CONSTRAINT "queue_tracks_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
439+ALTER TABLE "queue_tracks" ADD CONSTRAINT "queue_tracks_track_id_tracks_xata_id_fk" FOREIGN KEY ("track_id") REFERENCES "public"."tracks"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
440ALTER TABLE "scrobbles" ADD CONSTRAINT "scrobbles_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
441ALTER TABLE "scrobbles" ADD CONSTRAINT "scrobbles_track_id_tracks_xata_id_fk" FOREIGN KEY ("track_id") REFERENCES "public"."tracks"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
442ALTER TABLE "scrobbles" ADD CONSTRAINT "scrobbles_album_id_albums_xata_id_fk" FOREIGN KEY ("album_id") REFERENCES "public"."albums"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint