A decentralized music tracking and discovery platform built on AT Protocol 🎵

update drizzle migrations

+319 -19514
+65 -37
apps/api/drizzle/0000_left_swordsman.sql apps/api/drizzle/0000_puzzling_lockheed.sql
··· 81 81 $$ LANGUAGE sql IMMUTABLE; 82 82 83 83 CREATE TABLE "album_tracks" ( 84 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 84 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 85 85 "album_id" text NOT NULL, 86 86 "track_id" text NOT NULL, 87 87 "xata_createdat" timestamp DEFAULT now() NOT NULL, ··· 90 90 ); 91 91 --> statement-breakpoint 92 92 CREATE TABLE "albums" ( 93 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 93 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 94 94 "title" text NOT NULL, 95 95 "artist" text NOT NULL, 96 96 "release_date" text, ··· 115 115 ); 116 116 --> statement-breakpoint 117 117 CREATE TABLE "api_keys" ( 118 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 118 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 119 119 "name" text NOT NULL, 120 120 "api_key" text NOT NULL, 121 121 "shared_secret" text NOT NULL, ··· 127 127 ); 128 128 --> statement-breakpoint 129 129 CREATE TABLE "artist_albums" ( 130 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 130 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 131 131 "artist_id" text NOT NULL, 132 132 "album_id" text NOT NULL, 133 133 "xata_createdat" timestamp DEFAULT now() NOT NULL, ··· 136 136 ); 137 137 --> statement-breakpoint 138 138 CREATE TABLE "artist_tracks" ( 139 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 139 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 140 140 "artist_id" text NOT NULL, 141 141 "track_id" text NOT NULL, 142 142 "xata_createdat" timestamp DEFAULT now() NOT NULL, ··· 145 145 ); 146 146 --> statement-breakpoint 147 147 CREATE TABLE "artists" ( 148 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 148 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 149 149 "name" text NOT NULL, 150 150 "biography" text, 151 151 "born" timestamp, ··· 167 167 ); 168 168 --> statement-breakpoint 169 169 CREATE TABLE "dropbox_accounts" ( 170 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 170 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 171 171 "email" text NOT NULL, 172 172 "is_beta_user" boolean DEFAULT false NOT NULL, 173 173 "user_id" text NOT NULL, ··· 178 178 ); 179 179 --> statement-breakpoint 180 180 CREATE TABLE "dropbox_directories" ( 181 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 181 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 182 182 "name" text NOT NULL, 183 183 "path" text NOT NULL, 184 184 "parent_id" text, ··· 191 191 ); 192 192 --> statement-breakpoint 193 193 CREATE TABLE "dropbox_paths" ( 194 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 194 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 195 195 "path" text NOT NULL, 196 196 "name" text NOT NULL, 197 197 "dropbox_id" text NOT NULL, ··· 205 205 ); 206 206 --> statement-breakpoint 207 207 CREATE TABLE "dropbox_tokens" ( 208 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 208 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 209 209 "refresh_token" text NOT NULL, 210 210 "xata_createdat" timestamp DEFAULT now() NOT NULL, 211 211 "xata_updatedat" timestamp DEFAULT now() NOT NULL 212 212 ); 213 213 --> statement-breakpoint 214 214 CREATE TABLE "dropbox" ( 215 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 215 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 216 216 "user_id" text NOT NULL, 217 217 "dropbox_token_id" text NOT NULL, 218 218 "xata_version" text, ··· 220 220 "xata_updatedat" timestamp DEFAULT now() NOT NULL 221 221 ); 222 222 --> statement-breakpoint 223 + CREATE TABLE "feeds" ( 224 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 225 + "display_name" text NOT NULL, 226 + "description" text, 227 + "did" text NOT NULL, 228 + "uri" text NOT NULL, 229 + "avatar" text, 230 + "user_id" text NOT NULL, 231 + "xata_version" integer, 232 + "xata_createdat" timestamp DEFAULT now() NOT NULL, 233 + "xata_updatedat" timestamp DEFAULT now() NOT NULL, 234 + CONSTRAINT "feeds_did_unique" UNIQUE("did"), 235 + CONSTRAINT "feeds_uri_unique" UNIQUE("uri") 236 + ); 237 + --> statement-breakpoint 223 238 CREATE TABLE "google_drive_accounts" ( 224 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 239 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 225 240 "email" text NOT NULL, 226 241 "is_beta_user" boolean DEFAULT false NOT NULL, 227 242 "user_id" text NOT NULL, ··· 232 247 ); 233 248 --> statement-breakpoint 234 249 CREATE TABLE "google_drive_directories" ( 235 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 250 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 236 251 "name" text NOT NULL, 237 252 "path" text NOT NULL, 238 253 "parent_id" text, ··· 245 260 ); 246 261 --> statement-breakpoint 247 262 CREATE TABLE "google_drive_paths" ( 248 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 263 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 249 264 "google_drive_id" text NOT NULL, 250 265 "track_id" text NOT NULL, 251 266 "name" text NOT NULL, ··· 258 273 ); 259 274 --> statement-breakpoint 260 275 CREATE TABLE "google_drive_tokens" ( 261 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 276 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 262 277 "refresh_token" text NOT NULL, 263 278 "xata_createdat" timestamp DEFAULT now() NOT NULL, 264 279 "xata_updatedat" timestamp DEFAULT now() NOT NULL 265 280 ); 266 281 --> statement-breakpoint 267 282 CREATE TABLE "google_drive" ( 268 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 283 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 269 284 "google_drive_token_id" text NOT NULL, 270 285 "user_id" text NOT NULL, 271 286 "xata_version" text, ··· 274 289 ); 275 290 --> statement-breakpoint 276 291 CREATE TABLE "loved_tracks" ( 277 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 292 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 278 293 "user_id" text NOT NULL, 279 294 "track_id" text NOT NULL, 280 295 "uri" text, ··· 283 298 ); 284 299 --> statement-breakpoint 285 300 CREATE TABLE "playlist_tracks" ( 286 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 301 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 287 302 "playlist_id" text NOT NULL, 288 303 "track_id" text NOT NULL, 289 304 "xata_createdat" timestamp DEFAULT now() NOT NULL 290 305 ); 291 306 --> statement-breakpoint 292 307 CREATE TABLE "playlists" ( 293 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 308 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 294 309 "name" text NOT NULL, 295 310 "picture" text, 296 311 "description" text, ··· 305 320 ); 306 321 --> statement-breakpoint 307 322 CREATE TABLE "profile_shouts" ( 308 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 323 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 309 324 "user_id" text NOT NULL, 310 325 "shout_id" text NOT NULL, 311 326 "xata_createdat" timestamp DEFAULT now() NOT NULL 312 327 ); 313 328 --> statement-breakpoint 314 329 CREATE TABLE "queue_tracks" ( 315 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 330 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 316 331 "user_id" text NOT NULL, 317 332 "track_id" text NOT NULL, 318 333 "position" integer NOT NULL, ··· 323 338 ); 324 339 --> statement-breakpoint 325 340 CREATE TABLE "scrobbles" ( 326 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 341 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 327 342 "user_id" text, 328 343 "track_id" text, 329 344 "album_id" text, ··· 337 352 ); 338 353 --> statement-breakpoint 339 354 CREATE TABLE "shout_likes" ( 340 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 355 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 341 356 "user_id" text NOT NULL, 342 357 "shout_id" text NOT NULL, 343 358 "xata_createdat" timestamp DEFAULT now() NOT NULL, ··· 346 361 ); 347 362 --> statement-breakpoint 348 363 CREATE TABLE "shout_reports" ( 349 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 364 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 350 365 "user_id" text NOT NULL, 351 366 "shout_id" text NOT NULL, 352 367 "xata_createdat" timestamp DEFAULT now() NOT NULL 353 368 ); 354 369 --> statement-breakpoint 355 370 CREATE TABLE "shouts" ( 356 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 371 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 357 372 "content" text NOT NULL, 358 373 "track_id" text, 359 374 "artist_id" text, ··· 368 383 ); 369 384 --> statement-breakpoint 370 385 CREATE TABLE "spotify_accounts" ( 371 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 386 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 372 387 "xata_version" integer, 373 388 "email" text NOT NULL, 374 389 "user_id" text NOT NULL, 375 390 "is_beta_user" boolean DEFAULT false NOT NULL, 391 + "spotify_app_id" text, 376 392 "xata_createdat" timestamp DEFAULT now() NOT NULL, 377 393 "xata_updatedat" timestamp DEFAULT now() NOT NULL 378 394 ); 379 395 --> statement-breakpoint 396 + CREATE TABLE "spotify_apps" ( 397 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 398 + "xata_version" integer, 399 + "spotify_app_id" text NOT NULL, 400 + "spotify_secret" text NOT NULL, 401 + "xata_createdat" timestamp DEFAULT now() NOT NULL, 402 + "xata_updatedat" timestamp DEFAULT now() NOT NULL, 403 + CONSTRAINT "spotify_apps_spotify_app_id_unique" UNIQUE("spotify_app_id") 404 + ); 405 + --> statement-breakpoint 380 406 CREATE TABLE "spotify_tokens" ( 381 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 407 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 382 408 "xata_version" integer, 383 409 "access_token" text NOT NULL, 384 410 "refresh_token" text NOT NULL, 385 411 "user_id" text NOT NULL, 412 + "spotify_app_id" text NOT NULL, 386 413 "xata_createdat" timestamp DEFAULT now() NOT NULL, 387 414 "xata_updatedat" timestamp DEFAULT now() NOT NULL 388 415 ); 389 416 --> statement-breakpoint 390 417 CREATE TABLE "tracks" ( 391 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 418 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 392 419 "title" text NOT NULL, 393 420 "artist" text NOT NULL, 394 421 "album_artist" text NOT NULL, ··· 424 451 ); 425 452 --> statement-breakpoint 426 453 CREATE TABLE "user_albums" ( 427 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 454 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 428 455 "user_id" text NOT NULL, 429 456 "album_id" text NOT NULL, 430 457 "xata_createdat" timestamp DEFAULT now() NOT NULL, ··· 436 463 ); 437 464 --> statement-breakpoint 438 465 CREATE TABLE "user_artists" ( 439 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 466 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 440 467 "user_id" text NOT NULL, 441 468 "artist_id" text NOT NULL, 442 469 "xata_createdat" timestamp DEFAULT now() NOT NULL, ··· 448 475 ); 449 476 --> statement-breakpoint 450 477 CREATE TABLE "user_playlists" ( 451 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 478 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 452 479 "user_id" text NOT NULL, 453 480 "playlist_id" text NOT NULL, 454 481 "xata_createdat" timestamp DEFAULT now() NOT NULL, 455 - "uri" text NOT NULL, 482 + "uri" text, 456 483 CONSTRAINT "user_playlists_uri_unique" UNIQUE("uri") 457 484 ); 458 485 --> statement-breakpoint 459 486 CREATE TABLE "user_tracks" ( 460 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 487 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 461 488 "user_id" text NOT NULL, 462 489 "track_id" text NOT NULL, 463 490 "xata_createdat" timestamp DEFAULT now() NOT NULL, ··· 469 496 ); 470 497 --> statement-breakpoint 471 498 CREATE TABLE "users" ( 472 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 499 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 473 500 "did" text NOT NULL, 474 501 "display_name" text, 475 502 "handle" text NOT NULL, ··· 482 509 ); 483 510 --> statement-breakpoint 484 511 CREATE TABLE "webscrobblers" ( 485 - "xata_id" text PRIMARY KEY DEFAULT xata_id(), 512 + "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 486 513 "name" text NOT NULL, 487 514 "uuid" text NOT NULL, 488 515 "description" text, ··· 504 531 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 505 532 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 506 533 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 534 + ALTER TABLE "feeds" ADD CONSTRAINT "feeds_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 507 535 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 508 536 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 509 537 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 ··· 539 567 ALTER TABLE "user_artists" ADD CONSTRAINT "user_artists_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 540 568 ALTER TABLE "user_artists" ADD CONSTRAINT "user_artists_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 541 569 ALTER TABLE "user_playlists" ADD CONSTRAINT "user_playlists_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 542 - ALTER TABLE "user_playlists" ADD CONSTRAINT "user_playlists_playlist_id_tracks_xata_id_fk" FOREIGN KEY ("playlist_id") REFERENCES "public"."tracks"("xata_id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint 570 + ALTER TABLE "user_playlists" ADD CONSTRAINT "user_playlists_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 543 571 ALTER TABLE "user_tracks" ADD CONSTRAINT "user_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 544 572 ALTER TABLE "user_tracks" ADD CONSTRAINT "user_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 545 - ALTER TABLE "webscrobblers" ADD CONSTRAINT "webscrobblers_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action; 573 + ALTER TABLE "webscrobblers" ADD CONSTRAINT "webscrobblers_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;
-1
apps/api/drizzle/0001_fluffy_epoch.sql
··· 1 - ALTER TABLE "user_playlists" ALTER COLUMN "uri" DROP NOT NULL;
-3
apps/api/drizzle/0002_sweet_randall_flagg.sql
··· 1 - ALTER TABLE "user_playlists" DROP CONSTRAINT "user_playlists_playlist_id_tracks_xata_id_fk"; 2 - --> statement-breakpoint 3 - ALTER TABLE "user_playlists" ADD CONSTRAINT "user_playlists_playlist_id_playlists_xata_id_fk" FOREIGN KEY ("playlist_id") REFERENCES "public"."playlists"("xata_id") ON DELETE no action ON UPDATE no action;
-34
apps/api/drizzle/0003_same_rocket_racer.sql
··· 1 - ALTER TABLE "album_tracks" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 2 - ALTER TABLE "albums" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 3 - ALTER TABLE "api_keys" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 4 - ALTER TABLE "artist_albums" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 5 - ALTER TABLE "artist_tracks" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 6 - ALTER TABLE "artists" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 7 - ALTER TABLE "dropbox_accounts" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 8 - ALTER TABLE "dropbox_directories" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 9 - ALTER TABLE "dropbox_paths" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 10 - ALTER TABLE "dropbox_tokens" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 11 - ALTER TABLE "dropbox" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 12 - ALTER TABLE "google_drive_accounts" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 13 - ALTER TABLE "google_drive_directories" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 14 - ALTER TABLE "google_drive_paths" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 15 - ALTER TABLE "google_drive_tokens" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 16 - ALTER TABLE "google_drive" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 17 - ALTER TABLE "loved_tracks" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 18 - ALTER TABLE "playlist_tracks" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 19 - ALTER TABLE "playlists" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 20 - ALTER TABLE "profile_shouts" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 21 - ALTER TABLE "queue_tracks" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 22 - ALTER TABLE "scrobbles" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 23 - ALTER TABLE "shout_likes" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 24 - ALTER TABLE "shout_reports" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 25 - ALTER TABLE "shouts" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 26 - ALTER TABLE "spotify_accounts" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 27 - ALTER TABLE "spotify_tokens" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 28 - ALTER TABLE "tracks" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 29 - ALTER TABLE "user_albums" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 30 - ALTER TABLE "user_artists" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 31 - ALTER TABLE "user_playlists" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 32 - ALTER TABLE "user_tracks" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 33 - ALTER TABLE "users" ALTER COLUMN "xata_id" SET DEFAULT xata_id();--> statement-breakpoint 34 - ALTER TABLE "webscrobblers" ALTER COLUMN "xata_id" SET DEFAULT xata_id();
-10
apps/api/drizzle/0004_long_zzzax.sql
··· 1 - CREATE TABLE "spotify_apps" ( 2 - "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 3 - "xata_version" integer, 4 - "spotify_app_id" text NOT NULL, 5 - "xata_createdat" timestamp DEFAULT now() NOT NULL, 6 - "xata_updatedat" timestamp DEFAULT now() NOT NULL 7 - ); 8 - --> statement-breakpoint 9 - ALTER TABLE "spotify_accounts" ADD COLUMN "spotify_app_id" text NOT NULL;--> statement-breakpoint 10 - ALTER TABLE "spotify_tokens" ADD COLUMN "spotify_app_id" text NOT NULL;
-15
apps/api/drizzle/0004_whole_greymalkin.sql
··· 1 - CREATE TABLE "feeds" ( 2 - "xata_id" text PRIMARY KEY DEFAULT xata_id() NOT NULL, 3 - "display_name" text NOT NULL, 4 - "description" text, 5 - "did" text NOT NULL, 6 - "uri" text NOT NULL, 7 - "user_id" text NOT NULL, 8 - "xata_version" integer, 9 - "xata_createdat" timestamp DEFAULT now() NOT NULL, 10 - "xata_updatedat" timestamp DEFAULT now() NOT NULL, 11 - CONSTRAINT "feeds_did_unique" UNIQUE("did"), 12 - CONSTRAINT "feeds_uri_unique" UNIQUE("uri") 13 - ); 14 - --> statement-breakpoint 15 - ALTER TABLE "feeds" ADD CONSTRAINT "feeds_user_id_users_xata_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("xata_id") ON DELETE no action ON UPDATE no action;
-1
apps/api/drizzle/0005_parched_thor_girl.sql
··· 1 - ALTER TABLE "feeds" ADD COLUMN "avatar" text;
-2
apps/api/drizzle/0005_same_hydra.sql
··· 1 - ALTER TABLE "spotify_accounts" ALTER COLUMN "spotify_app_id" DROP NOT NULL;--> statement-breakpoint 2 - ALTER TABLE "spotify_apps" ADD COLUMN "spotify_secret" text NOT NULL;
-1
apps/api/drizzle/0006_slow_bulldozer.sql
··· 1 - ALTER TABLE "spotify_apps" ADD CONSTRAINT "spotify_apps_spotify_app_id_unique" UNIQUE("spotify_app_id");
+250 -39
apps/api/drizzle/meta/0000_snapshot.json
··· 1 1 { 2 - "id": "6b33dcd0-52df-4403-bdc0-31517769923d", 2 + "id": "64a52c57-c2fc-42d9-b22d-cbda7161f465", 3 3 "prevId": "00000000-0000-0000-0000-000000000000", 4 4 "version": "7", 5 5 "dialect": "postgresql", ··· 12 12 "name": "xata_id", 13 13 "type": "text", 14 14 "primaryKey": true, 15 - "notNull": true 15 + "notNull": true, 16 + "default": "xata_id()" 16 17 }, 17 18 "album_id": { 18 19 "name": "album_id", ··· 90 91 "name": "xata_id", 91 92 "type": "text", 92 93 "primaryKey": true, 93 - "notNull": true 94 + "notNull": true, 95 + "default": "xata_id()" 94 96 }, 95 97 "title": { 96 98 "name": "title", ··· 244 246 "name": "xata_id", 245 247 "type": "text", 246 248 "primaryKey": true, 247 - "notNull": true 249 + "notNull": true, 250 + "default": "xata_id()" 248 251 }, 249 252 "name": { 250 253 "name": "name", ··· 328 331 "name": "xata_id", 329 332 "type": "text", 330 333 "primaryKey": true, 331 - "notNull": true 334 + "notNull": true, 335 + "default": "xata_id()" 332 336 }, 333 337 "artist_id": { 334 338 "name": "artist_id", ··· 406 410 "name": "xata_id", 407 411 "type": "text", 408 412 "primaryKey": true, 409 - "notNull": true 413 + "notNull": true, 414 + "default": "xata_id()" 410 415 }, 411 416 "artist_id": { 412 417 "name": "artist_id", ··· 484 489 "name": "xata_id", 485 490 "type": "text", 486 491 "primaryKey": true, 487 - "notNull": true 492 + "notNull": true, 493 + "default": "xata_id()" 488 494 }, 489 495 "name": { 490 496 "name": "name", ··· 616 622 "name": "xata_id", 617 623 "type": "text", 618 624 "primaryKey": true, 619 - "notNull": true 625 + "notNull": true, 626 + "default": "xata_id()" 620 627 }, 621 628 "email": { 622 629 "name": "email", ··· 696 703 "name": "xata_id", 697 704 "type": "text", 698 705 "primaryKey": true, 699 - "notNull": true 706 + "notNull": true, 707 + "default": "xata_id()" 700 708 }, 701 709 "name": { 702 710 "name": "name", ··· 787 795 "name": "xata_id", 788 796 "type": "text", 789 797 "primaryKey": true, 790 - "notNull": true 798 + "notNull": true, 799 + "default": "xata_id()" 791 800 }, 792 801 "path": { 793 802 "name": "path", ··· 884 893 "name": "xata_id", 885 894 "type": "text", 886 895 "primaryKey": true, 887 - "notNull": true 896 + "notNull": true, 897 + "default": "xata_id()" 888 898 }, 889 899 "refresh_token": { 890 900 "name": "refresh_token", ··· 923 933 "name": "xata_id", 924 934 "type": "text", 925 935 "primaryKey": true, 926 - "notNull": true 936 + "notNull": true, 937 + "default": "xata_id()" 927 938 }, 928 939 "user_id": { 929 940 "name": "user_id", ··· 993 1004 "checkConstraints": {}, 994 1005 "isRLSEnabled": false 995 1006 }, 1007 + "public.feeds": { 1008 + "name": "feeds", 1009 + "schema": "", 1010 + "columns": { 1011 + "xata_id": { 1012 + "name": "xata_id", 1013 + "type": "text", 1014 + "primaryKey": true, 1015 + "notNull": true, 1016 + "default": "xata_id()" 1017 + }, 1018 + "display_name": { 1019 + "name": "display_name", 1020 + "type": "text", 1021 + "primaryKey": false, 1022 + "notNull": true 1023 + }, 1024 + "description": { 1025 + "name": "description", 1026 + "type": "text", 1027 + "primaryKey": false, 1028 + "notNull": false 1029 + }, 1030 + "did": { 1031 + "name": "did", 1032 + "type": "text", 1033 + "primaryKey": false, 1034 + "notNull": true 1035 + }, 1036 + "uri": { 1037 + "name": "uri", 1038 + "type": "text", 1039 + "primaryKey": false, 1040 + "notNull": true 1041 + }, 1042 + "avatar": { 1043 + "name": "avatar", 1044 + "type": "text", 1045 + "primaryKey": false, 1046 + "notNull": false 1047 + }, 1048 + "user_id": { 1049 + "name": "user_id", 1050 + "type": "text", 1051 + "primaryKey": false, 1052 + "notNull": true 1053 + }, 1054 + "xata_version": { 1055 + "name": "xata_version", 1056 + "type": "integer", 1057 + "primaryKey": false, 1058 + "notNull": false 1059 + }, 1060 + "xata_createdat": { 1061 + "name": "xata_createdat", 1062 + "type": "timestamp", 1063 + "primaryKey": false, 1064 + "notNull": true, 1065 + "default": "now()" 1066 + }, 1067 + "xata_updatedat": { 1068 + "name": "xata_updatedat", 1069 + "type": "timestamp", 1070 + "primaryKey": false, 1071 + "notNull": true, 1072 + "default": "now()" 1073 + } 1074 + }, 1075 + "indexes": {}, 1076 + "foreignKeys": { 1077 + "feeds_user_id_users_xata_id_fk": { 1078 + "name": "feeds_user_id_users_xata_id_fk", 1079 + "tableFrom": "feeds", 1080 + "tableTo": "users", 1081 + "columnsFrom": [ 1082 + "user_id" 1083 + ], 1084 + "columnsTo": [ 1085 + "xata_id" 1086 + ], 1087 + "onDelete": "no action", 1088 + "onUpdate": "no action" 1089 + } 1090 + }, 1091 + "compositePrimaryKeys": {}, 1092 + "uniqueConstraints": { 1093 + "feeds_did_unique": { 1094 + "name": "feeds_did_unique", 1095 + "nullsNotDistinct": false, 1096 + "columns": [ 1097 + "did" 1098 + ] 1099 + }, 1100 + "feeds_uri_unique": { 1101 + "name": "feeds_uri_unique", 1102 + "nullsNotDistinct": false, 1103 + "columns": [ 1104 + "uri" 1105 + ] 1106 + } 1107 + }, 1108 + "policies": {}, 1109 + "checkConstraints": {}, 1110 + "isRLSEnabled": false 1111 + }, 996 1112 "public.google_drive_accounts": { 997 1113 "name": "google_drive_accounts", 998 1114 "schema": "", ··· 1001 1117 "name": "xata_id", 1002 1118 "type": "text", 1003 1119 "primaryKey": true, 1004 - "notNull": true 1120 + "notNull": true, 1121 + "default": "xata_id()" 1005 1122 }, 1006 1123 "email": { 1007 1124 "name": "email", ··· 1081 1198 "name": "xata_id", 1082 1199 "type": "text", 1083 1200 "primaryKey": true, 1084 - "notNull": true 1201 + "notNull": true, 1202 + "default": "xata_id()" 1085 1203 }, 1086 1204 "name": { 1087 1205 "name": "name", ··· 1172 1290 "name": "xata_id", 1173 1291 "type": "text", 1174 1292 "primaryKey": true, 1175 - "notNull": true 1293 + "notNull": true, 1294 + "default": "xata_id()" 1176 1295 }, 1177 1296 "google_drive_id": { 1178 1297 "name": "google_drive_id", ··· 1263 1382 "name": "xata_id", 1264 1383 "type": "text", 1265 1384 "primaryKey": true, 1266 - "notNull": true 1385 + "notNull": true, 1386 + "default": "xata_id()" 1267 1387 }, 1268 1388 "refresh_token": { 1269 1389 "name": "refresh_token", ··· 1302 1422 "name": "xata_id", 1303 1423 "type": "text", 1304 1424 "primaryKey": true, 1305 - "notNull": true 1425 + "notNull": true, 1426 + "default": "xata_id()" 1306 1427 }, 1307 1428 "google_drive_token_id": { 1308 1429 "name": "google_drive_token_id", ··· 1380 1501 "name": "xata_id", 1381 1502 "type": "text", 1382 1503 "primaryKey": true, 1383 - "notNull": true 1504 + "notNull": true, 1505 + "default": "xata_id()" 1384 1506 }, 1385 1507 "user_id": { 1386 1508 "name": "user_id", ··· 1459 1581 "name": "xata_id", 1460 1582 "type": "text", 1461 1583 "primaryKey": true, 1462 - "notNull": true 1584 + "notNull": true, 1585 + "default": "xata_id()" 1463 1586 }, 1464 1587 "playlist_id": { 1465 1588 "name": "playlist_id", ··· 1524 1647 "name": "xata_id", 1525 1648 "type": "text", 1526 1649 "primaryKey": true, 1527 - "notNull": true 1650 + "notNull": true, 1651 + "default": "xata_id()" 1528 1652 }, 1529 1653 "name": { 1530 1654 "name": "name", ··· 1627 1751 "name": "xata_id", 1628 1752 "type": "text", 1629 1753 "primaryKey": true, 1630 - "notNull": true 1754 + "notNull": true, 1755 + "default": "xata_id()" 1631 1756 }, 1632 1757 "user_id": { 1633 1758 "name": "user_id", ··· 1692 1817 "name": "xata_id", 1693 1818 "type": "text", 1694 1819 "primaryKey": true, 1695 - "notNull": true 1820 + "notNull": true, 1821 + "default": "xata_id()" 1696 1822 }, 1697 1823 "user_id": { 1698 1824 "name": "user_id", ··· 1783 1909 "name": "xata_id", 1784 1910 "type": "text", 1785 1911 "primaryKey": true, 1786 - "notNull": true 1912 + "notNull": true, 1913 + "default": "xata_id()" 1787 1914 }, 1788 1915 "user_id": { 1789 1916 "name": "user_id", ··· 1920 2047 "name": "xata_id", 1921 2048 "type": "text", 1922 2049 "primaryKey": true, 1923 - "notNull": true 2050 + "notNull": true, 2051 + "default": "xata_id()" 1924 2052 }, 1925 2053 "user_id": { 1926 2054 "name": "user_id", ··· 1999 2127 "name": "xata_id", 2000 2128 "type": "text", 2001 2129 "primaryKey": true, 2002 - "notNull": true 2130 + "notNull": true, 2131 + "default": "xata_id()" 2003 2132 }, 2004 2133 "user_id": { 2005 2134 "name": "user_id", ··· 2064 2193 "name": "xata_id", 2065 2194 "type": "text", 2066 2195 "primaryKey": true, 2067 - "notNull": true 2196 + "notNull": true, 2197 + "default": "xata_id()" 2068 2198 }, 2069 2199 "content": { 2070 2200 "name": "content", ··· 2232 2362 "name": "xata_id", 2233 2363 "type": "text", 2234 2364 "primaryKey": true, 2235 - "notNull": true 2365 + "notNull": true, 2366 + "default": "xata_id()" 2236 2367 }, 2237 2368 "xata_version": { 2238 2369 "name": "xata_version", ··· 2258 2389 "primaryKey": false, 2259 2390 "notNull": true, 2260 2391 "default": false 2392 + }, 2393 + "spotify_app_id": { 2394 + "name": "spotify_app_id", 2395 + "type": "text", 2396 + "primaryKey": false, 2397 + "notNull": false 2261 2398 }, 2262 2399 "xata_createdat": { 2263 2400 "name": "xata_createdat", ··· 2296 2433 "checkConstraints": {}, 2297 2434 "isRLSEnabled": false 2298 2435 }, 2436 + "public.spotify_apps": { 2437 + "name": "spotify_apps", 2438 + "schema": "", 2439 + "columns": { 2440 + "xata_id": { 2441 + "name": "xata_id", 2442 + "type": "text", 2443 + "primaryKey": true, 2444 + "notNull": true, 2445 + "default": "xata_id()" 2446 + }, 2447 + "xata_version": { 2448 + "name": "xata_version", 2449 + "type": "integer", 2450 + "primaryKey": false, 2451 + "notNull": false 2452 + }, 2453 + "spotify_app_id": { 2454 + "name": "spotify_app_id", 2455 + "type": "text", 2456 + "primaryKey": false, 2457 + "notNull": true 2458 + }, 2459 + "spotify_secret": { 2460 + "name": "spotify_secret", 2461 + "type": "text", 2462 + "primaryKey": false, 2463 + "notNull": true 2464 + }, 2465 + "xata_createdat": { 2466 + "name": "xata_createdat", 2467 + "type": "timestamp", 2468 + "primaryKey": false, 2469 + "notNull": true, 2470 + "default": "now()" 2471 + }, 2472 + "xata_updatedat": { 2473 + "name": "xata_updatedat", 2474 + "type": "timestamp", 2475 + "primaryKey": false, 2476 + "notNull": true, 2477 + "default": "now()" 2478 + } 2479 + }, 2480 + "indexes": {}, 2481 + "foreignKeys": {}, 2482 + "compositePrimaryKeys": {}, 2483 + "uniqueConstraints": { 2484 + "spotify_apps_spotify_app_id_unique": { 2485 + "name": "spotify_apps_spotify_app_id_unique", 2486 + "nullsNotDistinct": false, 2487 + "columns": [ 2488 + "spotify_app_id" 2489 + ] 2490 + } 2491 + }, 2492 + "policies": {}, 2493 + "checkConstraints": {}, 2494 + "isRLSEnabled": false 2495 + }, 2299 2496 "public.spotify_tokens": { 2300 2497 "name": "spotify_tokens", 2301 2498 "schema": "", ··· 2304 2501 "name": "xata_id", 2305 2502 "type": "text", 2306 2503 "primaryKey": true, 2307 - "notNull": true 2504 + "notNull": true, 2505 + "default": "xata_id()" 2308 2506 }, 2309 2507 "xata_version": { 2310 2508 "name": "xata_version", ··· 2326 2524 }, 2327 2525 "user_id": { 2328 2526 "name": "user_id", 2527 + "type": "text", 2528 + "primaryKey": false, 2529 + "notNull": true 2530 + }, 2531 + "spotify_app_id": { 2532 + "name": "spotify_app_id", 2329 2533 "type": "text", 2330 2534 "primaryKey": false, 2331 2535 "notNull": true ··· 2375 2579 "name": "xata_id", 2376 2580 "type": "text", 2377 2581 "primaryKey": true, 2378 - "notNull": true 2582 + "notNull": true, 2583 + "default": "xata_id()" 2379 2584 }, 2380 2585 "title": { 2381 2586 "name": "title", ··· 2596 2801 "name": "xata_id", 2597 2802 "type": "text", 2598 2803 "primaryKey": true, 2599 - "notNull": true 2804 + "notNull": true, 2805 + "default": "xata_id()" 2600 2806 }, 2601 2807 "user_id": { 2602 2808 "name": "user_id", ··· 2694 2900 "name": "xata_id", 2695 2901 "type": "text", 2696 2902 "primaryKey": true, 2697 - "notNull": true 2903 + "notNull": true, 2904 + "default": "xata_id()" 2698 2905 }, 2699 2906 "user_id": { 2700 2907 "name": "user_id", ··· 2792 2999 "name": "xata_id", 2793 3000 "type": "text", 2794 3001 "primaryKey": true, 2795 - "notNull": true 3002 + "notNull": true, 3003 + "default": "xata_id()" 2796 3004 }, 2797 3005 "user_id": { 2798 3006 "name": "user_id", ··· 2817 3025 "name": "uri", 2818 3026 "type": "text", 2819 3027 "primaryKey": false, 2820 - "notNull": true 3028 + "notNull": false 2821 3029 } 2822 3030 }, 2823 3031 "indexes": {}, ··· 2835 3043 "onDelete": "no action", 2836 3044 "onUpdate": "no action" 2837 3045 }, 2838 - "user_playlists_playlist_id_tracks_xata_id_fk": { 2839 - "name": "user_playlists_playlist_id_tracks_xata_id_fk", 3046 + "user_playlists_playlist_id_playlists_xata_id_fk": { 3047 + "name": "user_playlists_playlist_id_playlists_xata_id_fk", 2840 3048 "tableFrom": "user_playlists", 2841 - "tableTo": "tracks", 3049 + "tableTo": "playlists", 2842 3050 "columnsFrom": [ 2843 3051 "playlist_id" 2844 3052 ], ··· 2871 3079 "name": "xata_id", 2872 3080 "type": "text", 2873 3081 "primaryKey": true, 2874 - "notNull": true 3082 + "notNull": true, 3083 + "default": "xata_id()" 2875 3084 }, 2876 3085 "user_id": { 2877 3086 "name": "user_id", ··· 2969 3178 "name": "xata_id", 2970 3179 "type": "text", 2971 3180 "primaryKey": true, 2972 - "notNull": true 3181 + "notNull": true, 3182 + "default": "xata_id()" 2973 3183 }, 2974 3184 "did": { 2975 3185 "name": "did", ··· 3047 3257 "name": "xata_id", 3048 3258 "type": "text", 3049 3259 "primaryKey": true, 3050 - "notNull": true 3260 + "notNull": true, 3261 + "default": "xata_id()" 3051 3262 }, 3052 3263 "name": { 3053 3264 "name": "name",
-3132
apps/api/drizzle/meta/0001_snapshot.json
··· 1 - { 2 - "id": "6ebb9775-b900-418c-bbd8-b704571a20d5", 3 - "prevId": "6b33dcd0-52df-4403-bdc0-31517769923d", 4 - "version": "7", 5 - "dialect": "postgresql", 6 - "tables": { 7 - "public.album_tracks": { 8 - "name": "album_tracks", 9 - "schema": "", 10 - "columns": { 11 - "xata_id": { 12 - "name": "xata_id", 13 - "type": "text", 14 - "primaryKey": true, 15 - "notNull": true 16 - }, 17 - "album_id": { 18 - "name": "album_id", 19 - "type": "text", 20 - "primaryKey": false, 21 - "notNull": true 22 - }, 23 - "track_id": { 24 - "name": "track_id", 25 - "type": "text", 26 - "primaryKey": false, 27 - "notNull": true 28 - }, 29 - "xata_createdat": { 30 - "name": "xata_createdat", 31 - "type": "timestamp", 32 - "primaryKey": false, 33 - "notNull": true, 34 - "default": "now()" 35 - }, 36 - "xata_updatedat": { 37 - "name": "xata_updatedat", 38 - "type": "timestamp", 39 - "primaryKey": false, 40 - "notNull": true, 41 - "default": "now()" 42 - }, 43 - "xata_version": { 44 - "name": "xata_version", 45 - "type": "integer", 46 - "primaryKey": false, 47 - "notNull": false 48 - } 49 - }, 50 - "indexes": {}, 51 - "foreignKeys": { 52 - "album_tracks_album_id_albums_xata_id_fk": { 53 - "name": "album_tracks_album_id_albums_xata_id_fk", 54 - "tableFrom": "album_tracks", 55 - "tableTo": "albums", 56 - "columnsFrom": [ 57 - "album_id" 58 - ], 59 - "columnsTo": [ 60 - "xata_id" 61 - ], 62 - "onDelete": "no action", 63 - "onUpdate": "no action" 64 - }, 65 - "album_tracks_track_id_tracks_xata_id_fk": { 66 - "name": "album_tracks_track_id_tracks_xata_id_fk", 67 - "tableFrom": "album_tracks", 68 - "tableTo": "tracks", 69 - "columnsFrom": [ 70 - "track_id" 71 - ], 72 - "columnsTo": [ 73 - "xata_id" 74 - ], 75 - "onDelete": "no action", 76 - "onUpdate": "no action" 77 - } 78 - }, 79 - "compositePrimaryKeys": {}, 80 - "uniqueConstraints": {}, 81 - "policies": {}, 82 - "checkConstraints": {}, 83 - "isRLSEnabled": false 84 - }, 85 - "public.albums": { 86 - "name": "albums", 87 - "schema": "", 88 - "columns": { 89 - "xata_id": { 90 - "name": "xata_id", 91 - "type": "text", 92 - "primaryKey": true, 93 - "notNull": true 94 - }, 95 - "title": { 96 - "name": "title", 97 - "type": "text", 98 - "primaryKey": false, 99 - "notNull": true 100 - }, 101 - "artist": { 102 - "name": "artist", 103 - "type": "text", 104 - "primaryKey": false, 105 - "notNull": true 106 - }, 107 - "release_date": { 108 - "name": "release_date", 109 - "type": "text", 110 - "primaryKey": false, 111 - "notNull": false 112 - }, 113 - "year": { 114 - "name": "year", 115 - "type": "integer", 116 - "primaryKey": false, 117 - "notNull": false 118 - }, 119 - "album_art": { 120 - "name": "album_art", 121 - "type": "text", 122 - "primaryKey": false, 123 - "notNull": false 124 - }, 125 - "uri": { 126 - "name": "uri", 127 - "type": "text", 128 - "primaryKey": false, 129 - "notNull": false 130 - }, 131 - "artist_uri": { 132 - "name": "artist_uri", 133 - "type": "text", 134 - "primaryKey": false, 135 - "notNull": false 136 - }, 137 - "apple_music_link": { 138 - "name": "apple_music_link", 139 - "type": "text", 140 - "primaryKey": false, 141 - "notNull": false 142 - }, 143 - "spotify_link": { 144 - "name": "spotify_link", 145 - "type": "text", 146 - "primaryKey": false, 147 - "notNull": false 148 - }, 149 - "tidal_link": { 150 - "name": "tidal_link", 151 - "type": "text", 152 - "primaryKey": false, 153 - "notNull": false 154 - }, 155 - "youtube_link": { 156 - "name": "youtube_link", 157 - "type": "text", 158 - "primaryKey": false, 159 - "notNull": false 160 - }, 161 - "sha256": { 162 - "name": "sha256", 163 - "type": "text", 164 - "primaryKey": false, 165 - "notNull": true 166 - }, 167 - "xata_createdat": { 168 - "name": "xata_createdat", 169 - "type": "timestamp", 170 - "primaryKey": false, 171 - "notNull": true, 172 - "default": "now()" 173 - }, 174 - "xata_updatedat": { 175 - "name": "xata_updatedat", 176 - "type": "timestamp", 177 - "primaryKey": false, 178 - "notNull": true, 179 - "default": "now()" 180 - }, 181 - "xata_version": { 182 - "name": "xata_version", 183 - "type": "integer", 184 - "primaryKey": false, 185 - "notNull": false 186 - } 187 - }, 188 - "indexes": {}, 189 - "foreignKeys": {}, 190 - "compositePrimaryKeys": {}, 191 - "uniqueConstraints": { 192 - "albums_uri_unique": { 193 - "name": "albums_uri_unique", 194 - "nullsNotDistinct": false, 195 - "columns": [ 196 - "uri" 197 - ] 198 - }, 199 - "albums_apple_music_link_unique": { 200 - "name": "albums_apple_music_link_unique", 201 - "nullsNotDistinct": false, 202 - "columns": [ 203 - "apple_music_link" 204 - ] 205 - }, 206 - "albums_spotify_link_unique": { 207 - "name": "albums_spotify_link_unique", 208 - "nullsNotDistinct": false, 209 - "columns": [ 210 - "spotify_link" 211 - ] 212 - }, 213 - "albums_tidal_link_unique": { 214 - "name": "albums_tidal_link_unique", 215 - "nullsNotDistinct": false, 216 - "columns": [ 217 - "tidal_link" 218 - ] 219 - }, 220 - "albums_youtube_link_unique": { 221 - "name": "albums_youtube_link_unique", 222 - "nullsNotDistinct": false, 223 - "columns": [ 224 - "youtube_link" 225 - ] 226 - }, 227 - "albums_sha256_unique": { 228 - "name": "albums_sha256_unique", 229 - "nullsNotDistinct": false, 230 - "columns": [ 231 - "sha256" 232 - ] 233 - } 234 - }, 235 - "policies": {}, 236 - "checkConstraints": {}, 237 - "isRLSEnabled": false 238 - }, 239 - "public.api_keys": { 240 - "name": "api_keys", 241 - "schema": "", 242 - "columns": { 243 - "xata_id": { 244 - "name": "xata_id", 245 - "type": "text", 246 - "primaryKey": true, 247 - "notNull": true 248 - }, 249 - "name": { 250 - "name": "name", 251 - "type": "text", 252 - "primaryKey": false, 253 - "notNull": true 254 - }, 255 - "api_key": { 256 - "name": "api_key", 257 - "type": "text", 258 - "primaryKey": false, 259 - "notNull": true 260 - }, 261 - "shared_secret": { 262 - "name": "shared_secret", 263 - "type": "text", 264 - "primaryKey": false, 265 - "notNull": true 266 - }, 267 - "description": { 268 - "name": "description", 269 - "type": "text", 270 - "primaryKey": false, 271 - "notNull": false 272 - }, 273 - "enabled": { 274 - "name": "enabled", 275 - "type": "boolean", 276 - "primaryKey": false, 277 - "notNull": true, 278 - "default": true 279 - }, 280 - "user_id": { 281 - "name": "user_id", 282 - "type": "text", 283 - "primaryKey": false, 284 - "notNull": true 285 - }, 286 - "xata_createdat": { 287 - "name": "xata_createdat", 288 - "type": "timestamp", 289 - "primaryKey": false, 290 - "notNull": true, 291 - "default": "now()" 292 - }, 293 - "xata_updatedat": { 294 - "name": "xata_updatedat", 295 - "type": "timestamp", 296 - "primaryKey": false, 297 - "notNull": true, 298 - "default": "now()" 299 - } 300 - }, 301 - "indexes": {}, 302 - "foreignKeys": { 303 - "api_keys_user_id_users_xata_id_fk": { 304 - "name": "api_keys_user_id_users_xata_id_fk", 305 - "tableFrom": "api_keys", 306 - "tableTo": "users", 307 - "columnsFrom": [ 308 - "user_id" 309 - ], 310 - "columnsTo": [ 311 - "xata_id" 312 - ], 313 - "onDelete": "no action", 314 - "onUpdate": "no action" 315 - } 316 - }, 317 - "compositePrimaryKeys": {}, 318 - "uniqueConstraints": {}, 319 - "policies": {}, 320 - "checkConstraints": {}, 321 - "isRLSEnabled": false 322 - }, 323 - "public.artist_albums": { 324 - "name": "artist_albums", 325 - "schema": "", 326 - "columns": { 327 - "xata_id": { 328 - "name": "xata_id", 329 - "type": "text", 330 - "primaryKey": true, 331 - "notNull": true 332 - }, 333 - "artist_id": { 334 - "name": "artist_id", 335 - "type": "text", 336 - "primaryKey": false, 337 - "notNull": true 338 - }, 339 - "album_id": { 340 - "name": "album_id", 341 - "type": "text", 342 - "primaryKey": false, 343 - "notNull": true 344 - }, 345 - "xata_createdat": { 346 - "name": "xata_createdat", 347 - "type": "timestamp", 348 - "primaryKey": false, 349 - "notNull": true, 350 - "default": "now()" 351 - }, 352 - "xata_updatedat": { 353 - "name": "xata_updatedat", 354 - "type": "timestamp", 355 - "primaryKey": false, 356 - "notNull": true, 357 - "default": "now()" 358 - }, 359 - "xata_version": { 360 - "name": "xata_version", 361 - "type": "integer", 362 - "primaryKey": false, 363 - "notNull": false 364 - } 365 - }, 366 - "indexes": {}, 367 - "foreignKeys": { 368 - "artist_albums_artist_id_artists_xata_id_fk": { 369 - "name": "artist_albums_artist_id_artists_xata_id_fk", 370 - "tableFrom": "artist_albums", 371 - "tableTo": "artists", 372 - "columnsFrom": [ 373 - "artist_id" 374 - ], 375 - "columnsTo": [ 376 - "xata_id" 377 - ], 378 - "onDelete": "no action", 379 - "onUpdate": "no action" 380 - }, 381 - "artist_albums_album_id_albums_xata_id_fk": { 382 - "name": "artist_albums_album_id_albums_xata_id_fk", 383 - "tableFrom": "artist_albums", 384 - "tableTo": "albums", 385 - "columnsFrom": [ 386 - "album_id" 387 - ], 388 - "columnsTo": [ 389 - "xata_id" 390 - ], 391 - "onDelete": "no action", 392 - "onUpdate": "no action" 393 - } 394 - }, 395 - "compositePrimaryKeys": {}, 396 - "uniqueConstraints": {}, 397 - "policies": {}, 398 - "checkConstraints": {}, 399 - "isRLSEnabled": false 400 - }, 401 - "public.artist_tracks": { 402 - "name": "artist_tracks", 403 - "schema": "", 404 - "columns": { 405 - "xata_id": { 406 - "name": "xata_id", 407 - "type": "text", 408 - "primaryKey": true, 409 - "notNull": true 410 - }, 411 - "artist_id": { 412 - "name": "artist_id", 413 - "type": "text", 414 - "primaryKey": false, 415 - "notNull": true 416 - }, 417 - "track_id": { 418 - "name": "track_id", 419 - "type": "text", 420 - "primaryKey": false, 421 - "notNull": true 422 - }, 423 - "xata_createdat": { 424 - "name": "xata_createdat", 425 - "type": "timestamp", 426 - "primaryKey": false, 427 - "notNull": true, 428 - "default": "now()" 429 - }, 430 - "xata_updatedat": { 431 - "name": "xata_updatedat", 432 - "type": "timestamp", 433 - "primaryKey": false, 434 - "notNull": true, 435 - "default": "now()" 436 - }, 437 - "xata_version": { 438 - "name": "xata_version", 439 - "type": "integer", 440 - "primaryKey": false, 441 - "notNull": false 442 - } 443 - }, 444 - "indexes": {}, 445 - "foreignKeys": { 446 - "artist_tracks_artist_id_artists_xata_id_fk": { 447 - "name": "artist_tracks_artist_id_artists_xata_id_fk", 448 - "tableFrom": "artist_tracks", 449 - "tableTo": "artists", 450 - "columnsFrom": [ 451 - "artist_id" 452 - ], 453 - "columnsTo": [ 454 - "xata_id" 455 - ], 456 - "onDelete": "no action", 457 - "onUpdate": "no action" 458 - }, 459 - "artist_tracks_track_id_tracks_xata_id_fk": { 460 - "name": "artist_tracks_track_id_tracks_xata_id_fk", 461 - "tableFrom": "artist_tracks", 462 - "tableTo": "tracks", 463 - "columnsFrom": [ 464 - "track_id" 465 - ], 466 - "columnsTo": [ 467 - "xata_id" 468 - ], 469 - "onDelete": "no action", 470 - "onUpdate": "no action" 471 - } 472 - }, 473 - "compositePrimaryKeys": {}, 474 - "uniqueConstraints": {}, 475 - "policies": {}, 476 - "checkConstraints": {}, 477 - "isRLSEnabled": false 478 - }, 479 - "public.artists": { 480 - "name": "artists", 481 - "schema": "", 482 - "columns": { 483 - "xata_id": { 484 - "name": "xata_id", 485 - "type": "text", 486 - "primaryKey": true, 487 - "notNull": true 488 - }, 489 - "name": { 490 - "name": "name", 491 - "type": "text", 492 - "primaryKey": false, 493 - "notNull": true 494 - }, 495 - "biography": { 496 - "name": "biography", 497 - "type": "text", 498 - "primaryKey": false, 499 - "notNull": false 500 - }, 501 - "born": { 502 - "name": "born", 503 - "type": "timestamp", 504 - "primaryKey": false, 505 - "notNull": false 506 - }, 507 - "born_in": { 508 - "name": "born_in", 509 - "type": "text", 510 - "primaryKey": false, 511 - "notNull": false 512 - }, 513 - "died": { 514 - "name": "died", 515 - "type": "timestamp", 516 - "primaryKey": false, 517 - "notNull": false 518 - }, 519 - "picture": { 520 - "name": "picture", 521 - "type": "text", 522 - "primaryKey": false, 523 - "notNull": false 524 - }, 525 - "sha256": { 526 - "name": "sha256", 527 - "type": "text", 528 - "primaryKey": false, 529 - "notNull": true 530 - }, 531 - "uri": { 532 - "name": "uri", 533 - "type": "text", 534 - "primaryKey": false, 535 - "notNull": false 536 - }, 537 - "apple_music_link": { 538 - "name": "apple_music_link", 539 - "type": "text", 540 - "primaryKey": false, 541 - "notNull": false 542 - }, 543 - "spotify_link": { 544 - "name": "spotify_link", 545 - "type": "text", 546 - "primaryKey": false, 547 - "notNull": false 548 - }, 549 - "tidal_link": { 550 - "name": "tidal_link", 551 - "type": "text", 552 - "primaryKey": false, 553 - "notNull": false 554 - }, 555 - "youtube_link": { 556 - "name": "youtube_link", 557 - "type": "text", 558 - "primaryKey": false, 559 - "notNull": false 560 - }, 561 - "genres": { 562 - "name": "genres", 563 - "type": "text[]", 564 - "primaryKey": false, 565 - "notNull": false 566 - }, 567 - "xata_createdat": { 568 - "name": "xata_createdat", 569 - "type": "timestamp", 570 - "primaryKey": false, 571 - "notNull": true, 572 - "default": "now()" 573 - }, 574 - "xata_updatedat": { 575 - "name": "xata_updatedat", 576 - "type": "timestamp", 577 - "primaryKey": false, 578 - "notNull": true, 579 - "default": "now()" 580 - }, 581 - "xata_version": { 582 - "name": "xata_version", 583 - "type": "integer", 584 - "primaryKey": false, 585 - "notNull": false 586 - } 587 - }, 588 - "indexes": {}, 589 - "foreignKeys": {}, 590 - "compositePrimaryKeys": {}, 591 - "uniqueConstraints": { 592 - "artists_sha256_unique": { 593 - "name": "artists_sha256_unique", 594 - "nullsNotDistinct": false, 595 - "columns": [ 596 - "sha256" 597 - ] 598 - }, 599 - "artists_uri_unique": { 600 - "name": "artists_uri_unique", 601 - "nullsNotDistinct": false, 602 - "columns": [ 603 - "uri" 604 - ] 605 - } 606 - }, 607 - "policies": {}, 608 - "checkConstraints": {}, 609 - "isRLSEnabled": false 610 - }, 611 - "public.dropbox_accounts": { 612 - "name": "dropbox_accounts", 613 - "schema": "", 614 - "columns": { 615 - "xata_id": { 616 - "name": "xata_id", 617 - "type": "text", 618 - "primaryKey": true, 619 - "notNull": true 620 - }, 621 - "email": { 622 - "name": "email", 623 - "type": "text", 624 - "primaryKey": false, 625 - "notNull": true 626 - }, 627 - "is_beta_user": { 628 - "name": "is_beta_user", 629 - "type": "boolean", 630 - "primaryKey": false, 631 - "notNull": true, 632 - "default": false 633 - }, 634 - "user_id": { 635 - "name": "user_id", 636 - "type": "text", 637 - "primaryKey": false, 638 - "notNull": true 639 - }, 640 - "xata_version": { 641 - "name": "xata_version", 642 - "type": "text", 643 - "primaryKey": false, 644 - "notNull": false 645 - }, 646 - "xata_createdat": { 647 - "name": "xata_createdat", 648 - "type": "timestamp", 649 - "primaryKey": false, 650 - "notNull": true, 651 - "default": "now()" 652 - }, 653 - "xata_updatedat": { 654 - "name": "xata_updatedat", 655 - "type": "timestamp", 656 - "primaryKey": false, 657 - "notNull": true, 658 - "default": "now()" 659 - } 660 - }, 661 - "indexes": {}, 662 - "foreignKeys": { 663 - "dropbox_accounts_user_id_users_xata_id_fk": { 664 - "name": "dropbox_accounts_user_id_users_xata_id_fk", 665 - "tableFrom": "dropbox_accounts", 666 - "tableTo": "users", 667 - "columnsFrom": [ 668 - "user_id" 669 - ], 670 - "columnsTo": [ 671 - "xata_id" 672 - ], 673 - "onDelete": "no action", 674 - "onUpdate": "no action" 675 - } 676 - }, 677 - "compositePrimaryKeys": {}, 678 - "uniqueConstraints": { 679 - "dropbox_accounts_email_unique": { 680 - "name": "dropbox_accounts_email_unique", 681 - "nullsNotDistinct": false, 682 - "columns": [ 683 - "email" 684 - ] 685 - } 686 - }, 687 - "policies": {}, 688 - "checkConstraints": {}, 689 - "isRLSEnabled": false 690 - }, 691 - "public.dropbox_directories": { 692 - "name": "dropbox_directories", 693 - "schema": "", 694 - "columns": { 695 - "xata_id": { 696 - "name": "xata_id", 697 - "type": "text", 698 - "primaryKey": true, 699 - "notNull": true 700 - }, 701 - "name": { 702 - "name": "name", 703 - "type": "text", 704 - "primaryKey": false, 705 - "notNull": true 706 - }, 707 - "path": { 708 - "name": "path", 709 - "type": "text", 710 - "primaryKey": false, 711 - "notNull": true 712 - }, 713 - "parent_id": { 714 - "name": "parent_id", 715 - "type": "text", 716 - "primaryKey": false, 717 - "notNull": false 718 - }, 719 - "dropbox_id": { 720 - "name": "dropbox_id", 721 - "type": "text", 722 - "primaryKey": false, 723 - "notNull": true 724 - }, 725 - "file_id": { 726 - "name": "file_id", 727 - "type": "text", 728 - "primaryKey": false, 729 - "notNull": true 730 - }, 731 - "xata_version": { 732 - "name": "xata_version", 733 - "type": "text", 734 - "primaryKey": false, 735 - "notNull": false 736 - }, 737 - "xata_createdat": { 738 - "name": "xata_createdat", 739 - "type": "timestamp", 740 - "primaryKey": false, 741 - "notNull": true, 742 - "default": "now()" 743 - }, 744 - "xata_updatedat": { 745 - "name": "xata_updatedat", 746 - "type": "timestamp", 747 - "primaryKey": false, 748 - "notNull": true, 749 - "default": "now()" 750 - } 751 - }, 752 - "indexes": {}, 753 - "foreignKeys": { 754 - "dropbox_directories_parent_id_dropbox_directories_xata_id_fk": { 755 - "name": "dropbox_directories_parent_id_dropbox_directories_xata_id_fk", 756 - "tableFrom": "dropbox_directories", 757 - "tableTo": "dropbox_directories", 758 - "columnsFrom": [ 759 - "parent_id" 760 - ], 761 - "columnsTo": [ 762 - "xata_id" 763 - ], 764 - "onDelete": "no action", 765 - "onUpdate": "no action" 766 - } 767 - }, 768 - "compositePrimaryKeys": {}, 769 - "uniqueConstraints": { 770 - "dropbox_directories_file_id_unique": { 771 - "name": "dropbox_directories_file_id_unique", 772 - "nullsNotDistinct": false, 773 - "columns": [ 774 - "file_id" 775 - ] 776 - } 777 - }, 778 - "policies": {}, 779 - "checkConstraints": {}, 780 - "isRLSEnabled": false 781 - }, 782 - "public.dropbox_paths": { 783 - "name": "dropbox_paths", 784 - "schema": "", 785 - "columns": { 786 - "xata_id": { 787 - "name": "xata_id", 788 - "type": "text", 789 - "primaryKey": true, 790 - "notNull": true 791 - }, 792 - "path": { 793 - "name": "path", 794 - "type": "text", 795 - "primaryKey": false, 796 - "notNull": true 797 - }, 798 - "name": { 799 - "name": "name", 800 - "type": "text", 801 - "primaryKey": false, 802 - "notNull": true 803 - }, 804 - "dropbox_id": { 805 - "name": "dropbox_id", 806 - "type": "text", 807 - "primaryKey": false, 808 - "notNull": true 809 - }, 810 - "track_id": { 811 - "name": "track_id", 812 - "type": "text", 813 - "primaryKey": false, 814 - "notNull": true 815 - }, 816 - "directory_id": { 817 - "name": "directory_id", 818 - "type": "text", 819 - "primaryKey": false, 820 - "notNull": false 821 - }, 822 - "file_id": { 823 - "name": "file_id", 824 - "type": "text", 825 - "primaryKey": false, 826 - "notNull": true 827 - }, 828 - "xata_version": { 829 - "name": "xata_version", 830 - "type": "text", 831 - "primaryKey": false, 832 - "notNull": false 833 - }, 834 - "xata_createdat": { 835 - "name": "xata_createdat", 836 - "type": "timestamp", 837 - "primaryKey": false, 838 - "notNull": true, 839 - "default": "now()" 840 - }, 841 - "xata_updatedat": { 842 - "name": "xata_updatedat", 843 - "type": "timestamp", 844 - "primaryKey": false, 845 - "notNull": true, 846 - "default": "now()" 847 - } 848 - }, 849 - "indexes": {}, 850 - "foreignKeys": { 851 - "dropbox_paths_directory_id_dropbox_directories_xata_id_fk": { 852 - "name": "dropbox_paths_directory_id_dropbox_directories_xata_id_fk", 853 - "tableFrom": "dropbox_paths", 854 - "tableTo": "dropbox_directories", 855 - "columnsFrom": [ 856 - "directory_id" 857 - ], 858 - "columnsTo": [ 859 - "xata_id" 860 - ], 861 - "onDelete": "no action", 862 - "onUpdate": "no action" 863 - } 864 - }, 865 - "compositePrimaryKeys": {}, 866 - "uniqueConstraints": { 867 - "dropbox_paths_file_id_unique": { 868 - "name": "dropbox_paths_file_id_unique", 869 - "nullsNotDistinct": false, 870 - "columns": [ 871 - "file_id" 872 - ] 873 - } 874 - }, 875 - "policies": {}, 876 - "checkConstraints": {}, 877 - "isRLSEnabled": false 878 - }, 879 - "public.dropbox_tokens": { 880 - "name": "dropbox_tokens", 881 - "schema": "", 882 - "columns": { 883 - "xata_id": { 884 - "name": "xata_id", 885 - "type": "text", 886 - "primaryKey": true, 887 - "notNull": true 888 - }, 889 - "refresh_token": { 890 - "name": "refresh_token", 891 - "type": "text", 892 - "primaryKey": false, 893 - "notNull": true 894 - }, 895 - "xata_createdat": { 896 - "name": "xata_createdat", 897 - "type": "timestamp", 898 - "primaryKey": false, 899 - "notNull": true, 900 - "default": "now()" 901 - }, 902 - "xata_updatedat": { 903 - "name": "xata_updatedat", 904 - "type": "timestamp", 905 - "primaryKey": false, 906 - "notNull": true, 907 - "default": "now()" 908 - } 909 - }, 910 - "indexes": {}, 911 - "foreignKeys": {}, 912 - "compositePrimaryKeys": {}, 913 - "uniqueConstraints": {}, 914 - "policies": {}, 915 - "checkConstraints": {}, 916 - "isRLSEnabled": false 917 - }, 918 - "public.dropbox": { 919 - "name": "dropbox", 920 - "schema": "", 921 - "columns": { 922 - "xata_id": { 923 - "name": "xata_id", 924 - "type": "text", 925 - "primaryKey": true, 926 - "notNull": true 927 - }, 928 - "user_id": { 929 - "name": "user_id", 930 - "type": "text", 931 - "primaryKey": false, 932 - "notNull": true 933 - }, 934 - "dropbox_token_id": { 935 - "name": "dropbox_token_id", 936 - "type": "text", 937 - "primaryKey": false, 938 - "notNull": true 939 - }, 940 - "xata_version": { 941 - "name": "xata_version", 942 - "type": "text", 943 - "primaryKey": false, 944 - "notNull": false 945 - }, 946 - "xata_createdat": { 947 - "name": "xata_createdat", 948 - "type": "timestamp", 949 - "primaryKey": false, 950 - "notNull": true, 951 - "default": "now()" 952 - }, 953 - "xata_updatedat": { 954 - "name": "xata_updatedat", 955 - "type": "timestamp", 956 - "primaryKey": false, 957 - "notNull": true, 958 - "default": "now()" 959 - } 960 - }, 961 - "indexes": {}, 962 - "foreignKeys": { 963 - "dropbox_user_id_users_xata_id_fk": { 964 - "name": "dropbox_user_id_users_xata_id_fk", 965 - "tableFrom": "dropbox", 966 - "tableTo": "users", 967 - "columnsFrom": [ 968 - "user_id" 969 - ], 970 - "columnsTo": [ 971 - "xata_id" 972 - ], 973 - "onDelete": "no action", 974 - "onUpdate": "no action" 975 - }, 976 - "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk": { 977 - "name": "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk", 978 - "tableFrom": "dropbox", 979 - "tableTo": "dropbox_tokens", 980 - "columnsFrom": [ 981 - "dropbox_token_id" 982 - ], 983 - "columnsTo": [ 984 - "xata_id" 985 - ], 986 - "onDelete": "no action", 987 - "onUpdate": "no action" 988 - } 989 - }, 990 - "compositePrimaryKeys": {}, 991 - "uniqueConstraints": {}, 992 - "policies": {}, 993 - "checkConstraints": {}, 994 - "isRLSEnabled": false 995 - }, 996 - "public.google_drive_accounts": { 997 - "name": "google_drive_accounts", 998 - "schema": "", 999 - "columns": { 1000 - "xata_id": { 1001 - "name": "xata_id", 1002 - "type": "text", 1003 - "primaryKey": true, 1004 - "notNull": true 1005 - }, 1006 - "email": { 1007 - "name": "email", 1008 - "type": "text", 1009 - "primaryKey": false, 1010 - "notNull": true 1011 - }, 1012 - "is_beta_user": { 1013 - "name": "is_beta_user", 1014 - "type": "boolean", 1015 - "primaryKey": false, 1016 - "notNull": true, 1017 - "default": false 1018 - }, 1019 - "user_id": { 1020 - "name": "user_id", 1021 - "type": "text", 1022 - "primaryKey": false, 1023 - "notNull": true 1024 - }, 1025 - "xata_version": { 1026 - "name": "xata_version", 1027 - "type": "text", 1028 - "primaryKey": false, 1029 - "notNull": false 1030 - }, 1031 - "xata_createdat": { 1032 - "name": "xata_createdat", 1033 - "type": "timestamp", 1034 - "primaryKey": false, 1035 - "notNull": true, 1036 - "default": "now()" 1037 - }, 1038 - "xata_updatedat": { 1039 - "name": "xata_updatedat", 1040 - "type": "timestamp", 1041 - "primaryKey": false, 1042 - "notNull": true, 1043 - "default": "now()" 1044 - } 1045 - }, 1046 - "indexes": {}, 1047 - "foreignKeys": { 1048 - "google_drive_accounts_user_id_users_xata_id_fk": { 1049 - "name": "google_drive_accounts_user_id_users_xata_id_fk", 1050 - "tableFrom": "google_drive_accounts", 1051 - "tableTo": "users", 1052 - "columnsFrom": [ 1053 - "user_id" 1054 - ], 1055 - "columnsTo": [ 1056 - "xata_id" 1057 - ], 1058 - "onDelete": "no action", 1059 - "onUpdate": "no action" 1060 - } 1061 - }, 1062 - "compositePrimaryKeys": {}, 1063 - "uniqueConstraints": { 1064 - "google_drive_accounts_email_unique": { 1065 - "name": "google_drive_accounts_email_unique", 1066 - "nullsNotDistinct": false, 1067 - "columns": [ 1068 - "email" 1069 - ] 1070 - } 1071 - }, 1072 - "policies": {}, 1073 - "checkConstraints": {}, 1074 - "isRLSEnabled": false 1075 - }, 1076 - "public.google_drive_directories": { 1077 - "name": "google_drive_directories", 1078 - "schema": "", 1079 - "columns": { 1080 - "xata_id": { 1081 - "name": "xata_id", 1082 - "type": "text", 1083 - "primaryKey": true, 1084 - "notNull": true 1085 - }, 1086 - "name": { 1087 - "name": "name", 1088 - "type": "text", 1089 - "primaryKey": false, 1090 - "notNull": true 1091 - }, 1092 - "path": { 1093 - "name": "path", 1094 - "type": "text", 1095 - "primaryKey": false, 1096 - "notNull": true 1097 - }, 1098 - "parent_id": { 1099 - "name": "parent_id", 1100 - "type": "text", 1101 - "primaryKey": false, 1102 - "notNull": false 1103 - }, 1104 - "google_drive_id": { 1105 - "name": "google_drive_id", 1106 - "type": "text", 1107 - "primaryKey": false, 1108 - "notNull": true 1109 - }, 1110 - "file_id": { 1111 - "name": "file_id", 1112 - "type": "text", 1113 - "primaryKey": false, 1114 - "notNull": true 1115 - }, 1116 - "xata_version": { 1117 - "name": "xata_version", 1118 - "type": "text", 1119 - "primaryKey": false, 1120 - "notNull": false 1121 - }, 1122 - "xata_createdat": { 1123 - "name": "xata_createdat", 1124 - "type": "timestamp", 1125 - "primaryKey": false, 1126 - "notNull": true, 1127 - "default": "now()" 1128 - }, 1129 - "xata_updatedat": { 1130 - "name": "xata_updatedat", 1131 - "type": "timestamp", 1132 - "primaryKey": false, 1133 - "notNull": true, 1134 - "default": "now()" 1135 - } 1136 - }, 1137 - "indexes": {}, 1138 - "foreignKeys": { 1139 - "google_drive_directories_parent_id_google_drive_directories_xata_id_fk": { 1140 - "name": "google_drive_directories_parent_id_google_drive_directories_xata_id_fk", 1141 - "tableFrom": "google_drive_directories", 1142 - "tableTo": "google_drive_directories", 1143 - "columnsFrom": [ 1144 - "parent_id" 1145 - ], 1146 - "columnsTo": [ 1147 - "xata_id" 1148 - ], 1149 - "onDelete": "no action", 1150 - "onUpdate": "no action" 1151 - } 1152 - }, 1153 - "compositePrimaryKeys": {}, 1154 - "uniqueConstraints": { 1155 - "google_drive_directories_file_id_unique": { 1156 - "name": "google_drive_directories_file_id_unique", 1157 - "nullsNotDistinct": false, 1158 - "columns": [ 1159 - "file_id" 1160 - ] 1161 - } 1162 - }, 1163 - "policies": {}, 1164 - "checkConstraints": {}, 1165 - "isRLSEnabled": false 1166 - }, 1167 - "public.google_drive_paths": { 1168 - "name": "google_drive_paths", 1169 - "schema": "", 1170 - "columns": { 1171 - "xata_id": { 1172 - "name": "xata_id", 1173 - "type": "text", 1174 - "primaryKey": true, 1175 - "notNull": true 1176 - }, 1177 - "google_drive_id": { 1178 - "name": "google_drive_id", 1179 - "type": "text", 1180 - "primaryKey": false, 1181 - "notNull": true 1182 - }, 1183 - "track_id": { 1184 - "name": "track_id", 1185 - "type": "text", 1186 - "primaryKey": false, 1187 - "notNull": true 1188 - }, 1189 - "name": { 1190 - "name": "name", 1191 - "type": "text", 1192 - "primaryKey": false, 1193 - "notNull": true 1194 - }, 1195 - "directory_id": { 1196 - "name": "directory_id", 1197 - "type": "text", 1198 - "primaryKey": false, 1199 - "notNull": false 1200 - }, 1201 - "file_id": { 1202 - "name": "file_id", 1203 - "type": "text", 1204 - "primaryKey": false, 1205 - "notNull": true 1206 - }, 1207 - "xata_version": { 1208 - "name": "xata_version", 1209 - "type": "text", 1210 - "primaryKey": false, 1211 - "notNull": false 1212 - }, 1213 - "xata_createdat": { 1214 - "name": "xata_createdat", 1215 - "type": "timestamp", 1216 - "primaryKey": false, 1217 - "notNull": true, 1218 - "default": "now()" 1219 - }, 1220 - "xata_updatedat": { 1221 - "name": "xata_updatedat", 1222 - "type": "timestamp", 1223 - "primaryKey": false, 1224 - "notNull": true, 1225 - "default": "now()" 1226 - } 1227 - }, 1228 - "indexes": {}, 1229 - "foreignKeys": { 1230 - "google_drive_paths_directory_id_google_drive_directories_xata_id_fk": { 1231 - "name": "google_drive_paths_directory_id_google_drive_directories_xata_id_fk", 1232 - "tableFrom": "google_drive_paths", 1233 - "tableTo": "google_drive_directories", 1234 - "columnsFrom": [ 1235 - "directory_id" 1236 - ], 1237 - "columnsTo": [ 1238 - "xata_id" 1239 - ], 1240 - "onDelete": "no action", 1241 - "onUpdate": "no action" 1242 - } 1243 - }, 1244 - "compositePrimaryKeys": {}, 1245 - "uniqueConstraints": { 1246 - "google_drive_paths_file_id_unique": { 1247 - "name": "google_drive_paths_file_id_unique", 1248 - "nullsNotDistinct": false, 1249 - "columns": [ 1250 - "file_id" 1251 - ] 1252 - } 1253 - }, 1254 - "policies": {}, 1255 - "checkConstraints": {}, 1256 - "isRLSEnabled": false 1257 - }, 1258 - "public.google_drive_tokens": { 1259 - "name": "google_drive_tokens", 1260 - "schema": "", 1261 - "columns": { 1262 - "xata_id": { 1263 - "name": "xata_id", 1264 - "type": "text", 1265 - "primaryKey": true, 1266 - "notNull": true 1267 - }, 1268 - "refresh_token": { 1269 - "name": "refresh_token", 1270 - "type": "text", 1271 - "primaryKey": false, 1272 - "notNull": true 1273 - }, 1274 - "xata_createdat": { 1275 - "name": "xata_createdat", 1276 - "type": "timestamp", 1277 - "primaryKey": false, 1278 - "notNull": true, 1279 - "default": "now()" 1280 - }, 1281 - "xata_updatedat": { 1282 - "name": "xata_updatedat", 1283 - "type": "timestamp", 1284 - "primaryKey": false, 1285 - "notNull": true, 1286 - "default": "now()" 1287 - } 1288 - }, 1289 - "indexes": {}, 1290 - "foreignKeys": {}, 1291 - "compositePrimaryKeys": {}, 1292 - "uniqueConstraints": {}, 1293 - "policies": {}, 1294 - "checkConstraints": {}, 1295 - "isRLSEnabled": false 1296 - }, 1297 - "public.google_drive": { 1298 - "name": "google_drive", 1299 - "schema": "", 1300 - "columns": { 1301 - "xata_id": { 1302 - "name": "xata_id", 1303 - "type": "text", 1304 - "primaryKey": true, 1305 - "notNull": true 1306 - }, 1307 - "google_drive_token_id": { 1308 - "name": "google_drive_token_id", 1309 - "type": "text", 1310 - "primaryKey": false, 1311 - "notNull": true 1312 - }, 1313 - "user_id": { 1314 - "name": "user_id", 1315 - "type": "text", 1316 - "primaryKey": false, 1317 - "notNull": true 1318 - }, 1319 - "xata_version": { 1320 - "name": "xata_version", 1321 - "type": "text", 1322 - "primaryKey": false, 1323 - "notNull": false 1324 - }, 1325 - "xata_createdat": { 1326 - "name": "xata_createdat", 1327 - "type": "timestamp", 1328 - "primaryKey": false, 1329 - "notNull": true, 1330 - "default": "now()" 1331 - }, 1332 - "xata_updatedat": { 1333 - "name": "xata_updatedat", 1334 - "type": "timestamp", 1335 - "primaryKey": false, 1336 - "notNull": true, 1337 - "default": "now()" 1338 - } 1339 - }, 1340 - "indexes": {}, 1341 - "foreignKeys": { 1342 - "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk": { 1343 - "name": "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk", 1344 - "tableFrom": "google_drive", 1345 - "tableTo": "google_drive_tokens", 1346 - "columnsFrom": [ 1347 - "google_drive_token_id" 1348 - ], 1349 - "columnsTo": [ 1350 - "xata_id" 1351 - ], 1352 - "onDelete": "no action", 1353 - "onUpdate": "no action" 1354 - }, 1355 - "google_drive_user_id_users_xata_id_fk": { 1356 - "name": "google_drive_user_id_users_xata_id_fk", 1357 - "tableFrom": "google_drive", 1358 - "tableTo": "users", 1359 - "columnsFrom": [ 1360 - "user_id" 1361 - ], 1362 - "columnsTo": [ 1363 - "xata_id" 1364 - ], 1365 - "onDelete": "no action", 1366 - "onUpdate": "no action" 1367 - } 1368 - }, 1369 - "compositePrimaryKeys": {}, 1370 - "uniqueConstraints": {}, 1371 - "policies": {}, 1372 - "checkConstraints": {}, 1373 - "isRLSEnabled": false 1374 - }, 1375 - "public.loved_tracks": { 1376 - "name": "loved_tracks", 1377 - "schema": "", 1378 - "columns": { 1379 - "xata_id": { 1380 - "name": "xata_id", 1381 - "type": "text", 1382 - "primaryKey": true, 1383 - "notNull": true 1384 - }, 1385 - "user_id": { 1386 - "name": "user_id", 1387 - "type": "text", 1388 - "primaryKey": false, 1389 - "notNull": true 1390 - }, 1391 - "track_id": { 1392 - "name": "track_id", 1393 - "type": "text", 1394 - "primaryKey": false, 1395 - "notNull": true 1396 - }, 1397 - "uri": { 1398 - "name": "uri", 1399 - "type": "text", 1400 - "primaryKey": false, 1401 - "notNull": false 1402 - }, 1403 - "xata_createdat": { 1404 - "name": "xata_createdat", 1405 - "type": "timestamp", 1406 - "primaryKey": false, 1407 - "notNull": true, 1408 - "default": "now()" 1409 - } 1410 - }, 1411 - "indexes": {}, 1412 - "foreignKeys": { 1413 - "loved_tracks_user_id_users_xata_id_fk": { 1414 - "name": "loved_tracks_user_id_users_xata_id_fk", 1415 - "tableFrom": "loved_tracks", 1416 - "tableTo": "users", 1417 - "columnsFrom": [ 1418 - "user_id" 1419 - ], 1420 - "columnsTo": [ 1421 - "xata_id" 1422 - ], 1423 - "onDelete": "no action", 1424 - "onUpdate": "no action" 1425 - }, 1426 - "loved_tracks_track_id_tracks_xata_id_fk": { 1427 - "name": "loved_tracks_track_id_tracks_xata_id_fk", 1428 - "tableFrom": "loved_tracks", 1429 - "tableTo": "tracks", 1430 - "columnsFrom": [ 1431 - "track_id" 1432 - ], 1433 - "columnsTo": [ 1434 - "xata_id" 1435 - ], 1436 - "onDelete": "no action", 1437 - "onUpdate": "no action" 1438 - } 1439 - }, 1440 - "compositePrimaryKeys": {}, 1441 - "uniqueConstraints": { 1442 - "loved_tracks_uri_unique": { 1443 - "name": "loved_tracks_uri_unique", 1444 - "nullsNotDistinct": false, 1445 - "columns": [ 1446 - "uri" 1447 - ] 1448 - } 1449 - }, 1450 - "policies": {}, 1451 - "checkConstraints": {}, 1452 - "isRLSEnabled": false 1453 - }, 1454 - "public.playlist_tracks": { 1455 - "name": "playlist_tracks", 1456 - "schema": "", 1457 - "columns": { 1458 - "xata_id": { 1459 - "name": "xata_id", 1460 - "type": "text", 1461 - "primaryKey": true, 1462 - "notNull": true 1463 - }, 1464 - "playlist_id": { 1465 - "name": "playlist_id", 1466 - "type": "text", 1467 - "primaryKey": false, 1468 - "notNull": true 1469 - }, 1470 - "track_id": { 1471 - "name": "track_id", 1472 - "type": "text", 1473 - "primaryKey": false, 1474 - "notNull": true 1475 - }, 1476 - "xata_createdat": { 1477 - "name": "xata_createdat", 1478 - "type": "timestamp", 1479 - "primaryKey": false, 1480 - "notNull": true, 1481 - "default": "now()" 1482 - } 1483 - }, 1484 - "indexes": {}, 1485 - "foreignKeys": { 1486 - "playlist_tracks_playlist_id_playlists_xata_id_fk": { 1487 - "name": "playlist_tracks_playlist_id_playlists_xata_id_fk", 1488 - "tableFrom": "playlist_tracks", 1489 - "tableTo": "playlists", 1490 - "columnsFrom": [ 1491 - "playlist_id" 1492 - ], 1493 - "columnsTo": [ 1494 - "xata_id" 1495 - ], 1496 - "onDelete": "no action", 1497 - "onUpdate": "no action" 1498 - }, 1499 - "playlist_tracks_track_id_tracks_xata_id_fk": { 1500 - "name": "playlist_tracks_track_id_tracks_xata_id_fk", 1501 - "tableFrom": "playlist_tracks", 1502 - "tableTo": "tracks", 1503 - "columnsFrom": [ 1504 - "track_id" 1505 - ], 1506 - "columnsTo": [ 1507 - "xata_id" 1508 - ], 1509 - "onDelete": "no action", 1510 - "onUpdate": "no action" 1511 - } 1512 - }, 1513 - "compositePrimaryKeys": {}, 1514 - "uniqueConstraints": {}, 1515 - "policies": {}, 1516 - "checkConstraints": {}, 1517 - "isRLSEnabled": false 1518 - }, 1519 - "public.playlists": { 1520 - "name": "playlists", 1521 - "schema": "", 1522 - "columns": { 1523 - "xata_id": { 1524 - "name": "xata_id", 1525 - "type": "text", 1526 - "primaryKey": true, 1527 - "notNull": true 1528 - }, 1529 - "name": { 1530 - "name": "name", 1531 - "type": "text", 1532 - "primaryKey": false, 1533 - "notNull": true 1534 - }, 1535 - "picture": { 1536 - "name": "picture", 1537 - "type": "text", 1538 - "primaryKey": false, 1539 - "notNull": false 1540 - }, 1541 - "description": { 1542 - "name": "description", 1543 - "type": "text", 1544 - "primaryKey": false, 1545 - "notNull": false 1546 - }, 1547 - "uri": { 1548 - "name": "uri", 1549 - "type": "text", 1550 - "primaryKey": false, 1551 - "notNull": false 1552 - }, 1553 - "spotify_link": { 1554 - "name": "spotify_link", 1555 - "type": "text", 1556 - "primaryKey": false, 1557 - "notNull": false 1558 - }, 1559 - "tidal_link": { 1560 - "name": "tidal_link", 1561 - "type": "text", 1562 - "primaryKey": false, 1563 - "notNull": false 1564 - }, 1565 - "apple_music_link": { 1566 - "name": "apple_music_link", 1567 - "type": "text", 1568 - "primaryKey": false, 1569 - "notNull": false 1570 - }, 1571 - "created_by": { 1572 - "name": "created_by", 1573 - "type": "text", 1574 - "primaryKey": false, 1575 - "notNull": true 1576 - }, 1577 - "xata_createdat": { 1578 - "name": "xata_createdat", 1579 - "type": "timestamp", 1580 - "primaryKey": false, 1581 - "notNull": true, 1582 - "default": "now()" 1583 - }, 1584 - "xata_updatedat": { 1585 - "name": "xata_updatedat", 1586 - "type": "timestamp", 1587 - "primaryKey": false, 1588 - "notNull": true, 1589 - "default": "now()" 1590 - } 1591 - }, 1592 - "indexes": {}, 1593 - "foreignKeys": { 1594 - "playlists_created_by_users_xata_id_fk": { 1595 - "name": "playlists_created_by_users_xata_id_fk", 1596 - "tableFrom": "playlists", 1597 - "tableTo": "users", 1598 - "columnsFrom": [ 1599 - "created_by" 1600 - ], 1601 - "columnsTo": [ 1602 - "xata_id" 1603 - ], 1604 - "onDelete": "no action", 1605 - "onUpdate": "no action" 1606 - } 1607 - }, 1608 - "compositePrimaryKeys": {}, 1609 - "uniqueConstraints": { 1610 - "playlists_uri_unique": { 1611 - "name": "playlists_uri_unique", 1612 - "nullsNotDistinct": false, 1613 - "columns": [ 1614 - "uri" 1615 - ] 1616 - } 1617 - }, 1618 - "policies": {}, 1619 - "checkConstraints": {}, 1620 - "isRLSEnabled": false 1621 - }, 1622 - "public.profile_shouts": { 1623 - "name": "profile_shouts", 1624 - "schema": "", 1625 - "columns": { 1626 - "xata_id": { 1627 - "name": "xata_id", 1628 - "type": "text", 1629 - "primaryKey": true, 1630 - "notNull": true 1631 - }, 1632 - "user_id": { 1633 - "name": "user_id", 1634 - "type": "text", 1635 - "primaryKey": false, 1636 - "notNull": true 1637 - }, 1638 - "shout_id": { 1639 - "name": "shout_id", 1640 - "type": "text", 1641 - "primaryKey": false, 1642 - "notNull": true 1643 - }, 1644 - "xata_createdat": { 1645 - "name": "xata_createdat", 1646 - "type": "timestamp", 1647 - "primaryKey": false, 1648 - "notNull": true, 1649 - "default": "now()" 1650 - } 1651 - }, 1652 - "indexes": {}, 1653 - "foreignKeys": { 1654 - "profile_shouts_user_id_users_xata_id_fk": { 1655 - "name": "profile_shouts_user_id_users_xata_id_fk", 1656 - "tableFrom": "profile_shouts", 1657 - "tableTo": "users", 1658 - "columnsFrom": [ 1659 - "user_id" 1660 - ], 1661 - "columnsTo": [ 1662 - "xata_id" 1663 - ], 1664 - "onDelete": "no action", 1665 - "onUpdate": "no action" 1666 - }, 1667 - "profile_shouts_shout_id_shouts_xata_id_fk": { 1668 - "name": "profile_shouts_shout_id_shouts_xata_id_fk", 1669 - "tableFrom": "profile_shouts", 1670 - "tableTo": "shouts", 1671 - "columnsFrom": [ 1672 - "shout_id" 1673 - ], 1674 - "columnsTo": [ 1675 - "xata_id" 1676 - ], 1677 - "onDelete": "no action", 1678 - "onUpdate": "no action" 1679 - } 1680 - }, 1681 - "compositePrimaryKeys": {}, 1682 - "uniqueConstraints": {}, 1683 - "policies": {}, 1684 - "checkConstraints": {}, 1685 - "isRLSEnabled": false 1686 - }, 1687 - "public.queue_tracks": { 1688 - "name": "queue_tracks", 1689 - "schema": "", 1690 - "columns": { 1691 - "xata_id": { 1692 - "name": "xata_id", 1693 - "type": "text", 1694 - "primaryKey": true, 1695 - "notNull": true 1696 - }, 1697 - "user_id": { 1698 - "name": "user_id", 1699 - "type": "text", 1700 - "primaryKey": false, 1701 - "notNull": true 1702 - }, 1703 - "track_id": { 1704 - "name": "track_id", 1705 - "type": "text", 1706 - "primaryKey": false, 1707 - "notNull": true 1708 - }, 1709 - "position": { 1710 - "name": "position", 1711 - "type": "integer", 1712 - "primaryKey": false, 1713 - "notNull": true 1714 - }, 1715 - "file_uri": { 1716 - "name": "file_uri", 1717 - "type": "text", 1718 - "primaryKey": false, 1719 - "notNull": true 1720 - }, 1721 - "xata_version": { 1722 - "name": "xata_version", 1723 - "type": "integer", 1724 - "primaryKey": false, 1725 - "notNull": true, 1726 - "default": 0 1727 - }, 1728 - "xata_createdat": { 1729 - "name": "xata_createdat", 1730 - "type": "timestamp", 1731 - "primaryKey": false, 1732 - "notNull": true, 1733 - "default": "now()" 1734 - }, 1735 - "xata_updatedat": { 1736 - "name": "xata_updatedat", 1737 - "type": "timestamp", 1738 - "primaryKey": false, 1739 - "notNull": true, 1740 - "default": "now()" 1741 - } 1742 - }, 1743 - "indexes": {}, 1744 - "foreignKeys": { 1745 - "queue_tracks_user_id_users_xata_id_fk": { 1746 - "name": "queue_tracks_user_id_users_xata_id_fk", 1747 - "tableFrom": "queue_tracks", 1748 - "tableTo": "users", 1749 - "columnsFrom": [ 1750 - "user_id" 1751 - ], 1752 - "columnsTo": [ 1753 - "xata_id" 1754 - ], 1755 - "onDelete": "no action", 1756 - "onUpdate": "no action" 1757 - }, 1758 - "queue_tracks_track_id_tracks_xata_id_fk": { 1759 - "name": "queue_tracks_track_id_tracks_xata_id_fk", 1760 - "tableFrom": "queue_tracks", 1761 - "tableTo": "tracks", 1762 - "columnsFrom": [ 1763 - "track_id" 1764 - ], 1765 - "columnsTo": [ 1766 - "xata_id" 1767 - ], 1768 - "onDelete": "no action", 1769 - "onUpdate": "no action" 1770 - } 1771 - }, 1772 - "compositePrimaryKeys": {}, 1773 - "uniqueConstraints": {}, 1774 - "policies": {}, 1775 - "checkConstraints": {}, 1776 - "isRLSEnabled": false 1777 - }, 1778 - "public.scrobbles": { 1779 - "name": "scrobbles", 1780 - "schema": "", 1781 - "columns": { 1782 - "xata_id": { 1783 - "name": "xata_id", 1784 - "type": "text", 1785 - "primaryKey": true, 1786 - "notNull": true 1787 - }, 1788 - "user_id": { 1789 - "name": "user_id", 1790 - "type": "text", 1791 - "primaryKey": false, 1792 - "notNull": false 1793 - }, 1794 - "track_id": { 1795 - "name": "track_id", 1796 - "type": "text", 1797 - "primaryKey": false, 1798 - "notNull": false 1799 - }, 1800 - "album_id": { 1801 - "name": "album_id", 1802 - "type": "text", 1803 - "primaryKey": false, 1804 - "notNull": false 1805 - }, 1806 - "artist_id": { 1807 - "name": "artist_id", 1808 - "type": "text", 1809 - "primaryKey": false, 1810 - "notNull": false 1811 - }, 1812 - "uri": { 1813 - "name": "uri", 1814 - "type": "text", 1815 - "primaryKey": false, 1816 - "notNull": false 1817 - }, 1818 - "xata_createdat": { 1819 - "name": "xata_createdat", 1820 - "type": "timestamp", 1821 - "primaryKey": false, 1822 - "notNull": true, 1823 - "default": "now()" 1824 - }, 1825 - "xata_updatedat": { 1826 - "name": "xata_updatedat", 1827 - "type": "timestamp", 1828 - "primaryKey": false, 1829 - "notNull": true, 1830 - "default": "now()" 1831 - }, 1832 - "xata_version": { 1833 - "name": "xata_version", 1834 - "type": "integer", 1835 - "primaryKey": false, 1836 - "notNull": false 1837 - }, 1838 - "timestamp": { 1839 - "name": "timestamp", 1840 - "type": "timestamp", 1841 - "primaryKey": false, 1842 - "notNull": true, 1843 - "default": "now()" 1844 - } 1845 - }, 1846 - "indexes": {}, 1847 - "foreignKeys": { 1848 - "scrobbles_user_id_users_xata_id_fk": { 1849 - "name": "scrobbles_user_id_users_xata_id_fk", 1850 - "tableFrom": "scrobbles", 1851 - "tableTo": "users", 1852 - "columnsFrom": [ 1853 - "user_id" 1854 - ], 1855 - "columnsTo": [ 1856 - "xata_id" 1857 - ], 1858 - "onDelete": "no action", 1859 - "onUpdate": "no action" 1860 - }, 1861 - "scrobbles_track_id_tracks_xata_id_fk": { 1862 - "name": "scrobbles_track_id_tracks_xata_id_fk", 1863 - "tableFrom": "scrobbles", 1864 - "tableTo": "tracks", 1865 - "columnsFrom": [ 1866 - "track_id" 1867 - ], 1868 - "columnsTo": [ 1869 - "xata_id" 1870 - ], 1871 - "onDelete": "no action", 1872 - "onUpdate": "no action" 1873 - }, 1874 - "scrobbles_album_id_albums_xata_id_fk": { 1875 - "name": "scrobbles_album_id_albums_xata_id_fk", 1876 - "tableFrom": "scrobbles", 1877 - "tableTo": "albums", 1878 - "columnsFrom": [ 1879 - "album_id" 1880 - ], 1881 - "columnsTo": [ 1882 - "xata_id" 1883 - ], 1884 - "onDelete": "no action", 1885 - "onUpdate": "no action" 1886 - }, 1887 - "scrobbles_artist_id_artists_xata_id_fk": { 1888 - "name": "scrobbles_artist_id_artists_xata_id_fk", 1889 - "tableFrom": "scrobbles", 1890 - "tableTo": "artists", 1891 - "columnsFrom": [ 1892 - "artist_id" 1893 - ], 1894 - "columnsTo": [ 1895 - "xata_id" 1896 - ], 1897 - "onDelete": "no action", 1898 - "onUpdate": "no action" 1899 - } 1900 - }, 1901 - "compositePrimaryKeys": {}, 1902 - "uniqueConstraints": { 1903 - "scrobbles_uri_unique": { 1904 - "name": "scrobbles_uri_unique", 1905 - "nullsNotDistinct": false, 1906 - "columns": [ 1907 - "uri" 1908 - ] 1909 - } 1910 - }, 1911 - "policies": {}, 1912 - "checkConstraints": {}, 1913 - "isRLSEnabled": false 1914 - }, 1915 - "public.shout_likes": { 1916 - "name": "shout_likes", 1917 - "schema": "", 1918 - "columns": { 1919 - "xata_id": { 1920 - "name": "xata_id", 1921 - "type": "text", 1922 - "primaryKey": true, 1923 - "notNull": true 1924 - }, 1925 - "user_id": { 1926 - "name": "user_id", 1927 - "type": "text", 1928 - "primaryKey": false, 1929 - "notNull": true 1930 - }, 1931 - "shout_id": { 1932 - "name": "shout_id", 1933 - "type": "text", 1934 - "primaryKey": false, 1935 - "notNull": true 1936 - }, 1937 - "xata_createdat": { 1938 - "name": "xata_createdat", 1939 - "type": "timestamp", 1940 - "primaryKey": false, 1941 - "notNull": true, 1942 - "default": "now()" 1943 - }, 1944 - "uri": { 1945 - "name": "uri", 1946 - "type": "text", 1947 - "primaryKey": false, 1948 - "notNull": true 1949 - } 1950 - }, 1951 - "indexes": {}, 1952 - "foreignKeys": { 1953 - "shout_likes_user_id_users_xata_id_fk": { 1954 - "name": "shout_likes_user_id_users_xata_id_fk", 1955 - "tableFrom": "shout_likes", 1956 - "tableTo": "users", 1957 - "columnsFrom": [ 1958 - "user_id" 1959 - ], 1960 - "columnsTo": [ 1961 - "xata_id" 1962 - ], 1963 - "onDelete": "no action", 1964 - "onUpdate": "no action" 1965 - }, 1966 - "shout_likes_shout_id_shouts_xata_id_fk": { 1967 - "name": "shout_likes_shout_id_shouts_xata_id_fk", 1968 - "tableFrom": "shout_likes", 1969 - "tableTo": "shouts", 1970 - "columnsFrom": [ 1971 - "shout_id" 1972 - ], 1973 - "columnsTo": [ 1974 - "xata_id" 1975 - ], 1976 - "onDelete": "no action", 1977 - "onUpdate": "no action" 1978 - } 1979 - }, 1980 - "compositePrimaryKeys": {}, 1981 - "uniqueConstraints": { 1982 - "shout_likes_uri_unique": { 1983 - "name": "shout_likes_uri_unique", 1984 - "nullsNotDistinct": false, 1985 - "columns": [ 1986 - "uri" 1987 - ] 1988 - } 1989 - }, 1990 - "policies": {}, 1991 - "checkConstraints": {}, 1992 - "isRLSEnabled": false 1993 - }, 1994 - "public.shout_reports": { 1995 - "name": "shout_reports", 1996 - "schema": "", 1997 - "columns": { 1998 - "xata_id": { 1999 - "name": "xata_id", 2000 - "type": "text", 2001 - "primaryKey": true, 2002 - "notNull": true 2003 - }, 2004 - "user_id": { 2005 - "name": "user_id", 2006 - "type": "text", 2007 - "primaryKey": false, 2008 - "notNull": true 2009 - }, 2010 - "shout_id": { 2011 - "name": "shout_id", 2012 - "type": "text", 2013 - "primaryKey": false, 2014 - "notNull": true 2015 - }, 2016 - "xata_createdat": { 2017 - "name": "xata_createdat", 2018 - "type": "timestamp", 2019 - "primaryKey": false, 2020 - "notNull": true, 2021 - "default": "now()" 2022 - } 2023 - }, 2024 - "indexes": {}, 2025 - "foreignKeys": { 2026 - "shout_reports_user_id_users_xata_id_fk": { 2027 - "name": "shout_reports_user_id_users_xata_id_fk", 2028 - "tableFrom": "shout_reports", 2029 - "tableTo": "users", 2030 - "columnsFrom": [ 2031 - "user_id" 2032 - ], 2033 - "columnsTo": [ 2034 - "xata_id" 2035 - ], 2036 - "onDelete": "no action", 2037 - "onUpdate": "no action" 2038 - }, 2039 - "shout_reports_shout_id_shouts_xata_id_fk": { 2040 - "name": "shout_reports_shout_id_shouts_xata_id_fk", 2041 - "tableFrom": "shout_reports", 2042 - "tableTo": "shouts", 2043 - "columnsFrom": [ 2044 - "shout_id" 2045 - ], 2046 - "columnsTo": [ 2047 - "xata_id" 2048 - ], 2049 - "onDelete": "no action", 2050 - "onUpdate": "no action" 2051 - } 2052 - }, 2053 - "compositePrimaryKeys": {}, 2054 - "uniqueConstraints": {}, 2055 - "policies": {}, 2056 - "checkConstraints": {}, 2057 - "isRLSEnabled": false 2058 - }, 2059 - "public.shouts": { 2060 - "name": "shouts", 2061 - "schema": "", 2062 - "columns": { 2063 - "xata_id": { 2064 - "name": "xata_id", 2065 - "type": "text", 2066 - "primaryKey": true, 2067 - "notNull": true 2068 - }, 2069 - "content": { 2070 - "name": "content", 2071 - "type": "text", 2072 - "primaryKey": false, 2073 - "notNull": true 2074 - }, 2075 - "track_id": { 2076 - "name": "track_id", 2077 - "type": "text", 2078 - "primaryKey": false, 2079 - "notNull": false 2080 - }, 2081 - "artist_id": { 2082 - "name": "artist_id", 2083 - "type": "text", 2084 - "primaryKey": false, 2085 - "notNull": false 2086 - }, 2087 - "album_id": { 2088 - "name": "album_id", 2089 - "type": "text", 2090 - "primaryKey": false, 2091 - "notNull": false 2092 - }, 2093 - "scrobble_id": { 2094 - "name": "scrobble_id", 2095 - "type": "text", 2096 - "primaryKey": false, 2097 - "notNull": false 2098 - }, 2099 - "uri": { 2100 - "name": "uri", 2101 - "type": "text", 2102 - "primaryKey": false, 2103 - "notNull": true 2104 - }, 2105 - "author_id": { 2106 - "name": "author_id", 2107 - "type": "text", 2108 - "primaryKey": false, 2109 - "notNull": true 2110 - }, 2111 - "parent_id": { 2112 - "name": "parent_id", 2113 - "type": "text", 2114 - "primaryKey": false, 2115 - "notNull": false 2116 - }, 2117 - "xata_createdat": { 2118 - "name": "xata_createdat", 2119 - "type": "timestamp", 2120 - "primaryKey": false, 2121 - "notNull": true, 2122 - "default": "now()" 2123 - }, 2124 - "xata_updatedat": { 2125 - "name": "xata_updatedat", 2126 - "type": "timestamp", 2127 - "primaryKey": false, 2128 - "notNull": true, 2129 - "default": "now()" 2130 - } 2131 - }, 2132 - "indexes": {}, 2133 - "foreignKeys": { 2134 - "shouts_track_id_tracks_xata_id_fk": { 2135 - "name": "shouts_track_id_tracks_xata_id_fk", 2136 - "tableFrom": "shouts", 2137 - "tableTo": "tracks", 2138 - "columnsFrom": [ 2139 - "track_id" 2140 - ], 2141 - "columnsTo": [ 2142 - "xata_id" 2143 - ], 2144 - "onDelete": "no action", 2145 - "onUpdate": "no action" 2146 - }, 2147 - "shouts_artist_id_users_xata_id_fk": { 2148 - "name": "shouts_artist_id_users_xata_id_fk", 2149 - "tableFrom": "shouts", 2150 - "tableTo": "users", 2151 - "columnsFrom": [ 2152 - "artist_id" 2153 - ], 2154 - "columnsTo": [ 2155 - "xata_id" 2156 - ], 2157 - "onDelete": "no action", 2158 - "onUpdate": "no action" 2159 - }, 2160 - "shouts_album_id_albums_xata_id_fk": { 2161 - "name": "shouts_album_id_albums_xata_id_fk", 2162 - "tableFrom": "shouts", 2163 - "tableTo": "albums", 2164 - "columnsFrom": [ 2165 - "album_id" 2166 - ], 2167 - "columnsTo": [ 2168 - "xata_id" 2169 - ], 2170 - "onDelete": "no action", 2171 - "onUpdate": "no action" 2172 - }, 2173 - "shouts_scrobble_id_scrobbles_xata_id_fk": { 2174 - "name": "shouts_scrobble_id_scrobbles_xata_id_fk", 2175 - "tableFrom": "shouts", 2176 - "tableTo": "scrobbles", 2177 - "columnsFrom": [ 2178 - "scrobble_id" 2179 - ], 2180 - "columnsTo": [ 2181 - "xata_id" 2182 - ], 2183 - "onDelete": "no action", 2184 - "onUpdate": "no action" 2185 - }, 2186 - "shouts_author_id_users_xata_id_fk": { 2187 - "name": "shouts_author_id_users_xata_id_fk", 2188 - "tableFrom": "shouts", 2189 - "tableTo": "users", 2190 - "columnsFrom": [ 2191 - "author_id" 2192 - ], 2193 - "columnsTo": [ 2194 - "xata_id" 2195 - ], 2196 - "onDelete": "no action", 2197 - "onUpdate": "no action" 2198 - }, 2199 - "shouts_parent_id_shouts_xata_id_fk": { 2200 - "name": "shouts_parent_id_shouts_xata_id_fk", 2201 - "tableFrom": "shouts", 2202 - "tableTo": "shouts", 2203 - "columnsFrom": [ 2204 - "parent_id" 2205 - ], 2206 - "columnsTo": [ 2207 - "xata_id" 2208 - ], 2209 - "onDelete": "no action", 2210 - "onUpdate": "no action" 2211 - } 2212 - }, 2213 - "compositePrimaryKeys": {}, 2214 - "uniqueConstraints": { 2215 - "shouts_uri_unique": { 2216 - "name": "shouts_uri_unique", 2217 - "nullsNotDistinct": false, 2218 - "columns": [ 2219 - "uri" 2220 - ] 2221 - } 2222 - }, 2223 - "policies": {}, 2224 - "checkConstraints": {}, 2225 - "isRLSEnabled": false 2226 - }, 2227 - "public.spotify_accounts": { 2228 - "name": "spotify_accounts", 2229 - "schema": "", 2230 - "columns": { 2231 - "xata_id": { 2232 - "name": "xata_id", 2233 - "type": "text", 2234 - "primaryKey": true, 2235 - "notNull": true 2236 - }, 2237 - "xata_version": { 2238 - "name": "xata_version", 2239 - "type": "integer", 2240 - "primaryKey": false, 2241 - "notNull": false 2242 - }, 2243 - "email": { 2244 - "name": "email", 2245 - "type": "text", 2246 - "primaryKey": false, 2247 - "notNull": true 2248 - }, 2249 - "user_id": { 2250 - "name": "user_id", 2251 - "type": "text", 2252 - "primaryKey": false, 2253 - "notNull": true 2254 - }, 2255 - "is_beta_user": { 2256 - "name": "is_beta_user", 2257 - "type": "boolean", 2258 - "primaryKey": false, 2259 - "notNull": true, 2260 - "default": false 2261 - }, 2262 - "xata_createdat": { 2263 - "name": "xata_createdat", 2264 - "type": "timestamp", 2265 - "primaryKey": false, 2266 - "notNull": true, 2267 - "default": "now()" 2268 - }, 2269 - "xata_updatedat": { 2270 - "name": "xata_updatedat", 2271 - "type": "timestamp", 2272 - "primaryKey": false, 2273 - "notNull": true, 2274 - "default": "now()" 2275 - } 2276 - }, 2277 - "indexes": {}, 2278 - "foreignKeys": { 2279 - "spotify_accounts_user_id_users_xata_id_fk": { 2280 - "name": "spotify_accounts_user_id_users_xata_id_fk", 2281 - "tableFrom": "spotify_accounts", 2282 - "tableTo": "users", 2283 - "columnsFrom": [ 2284 - "user_id" 2285 - ], 2286 - "columnsTo": [ 2287 - "xata_id" 2288 - ], 2289 - "onDelete": "no action", 2290 - "onUpdate": "no action" 2291 - } 2292 - }, 2293 - "compositePrimaryKeys": {}, 2294 - "uniqueConstraints": {}, 2295 - "policies": {}, 2296 - "checkConstraints": {}, 2297 - "isRLSEnabled": false 2298 - }, 2299 - "public.spotify_tokens": { 2300 - "name": "spotify_tokens", 2301 - "schema": "", 2302 - "columns": { 2303 - "xata_id": { 2304 - "name": "xata_id", 2305 - "type": "text", 2306 - "primaryKey": true, 2307 - "notNull": true 2308 - }, 2309 - "xata_version": { 2310 - "name": "xata_version", 2311 - "type": "integer", 2312 - "primaryKey": false, 2313 - "notNull": false 2314 - }, 2315 - "access_token": { 2316 - "name": "access_token", 2317 - "type": "text", 2318 - "primaryKey": false, 2319 - "notNull": true 2320 - }, 2321 - "refresh_token": { 2322 - "name": "refresh_token", 2323 - "type": "text", 2324 - "primaryKey": false, 2325 - "notNull": true 2326 - }, 2327 - "user_id": { 2328 - "name": "user_id", 2329 - "type": "text", 2330 - "primaryKey": false, 2331 - "notNull": true 2332 - }, 2333 - "xata_createdat": { 2334 - "name": "xata_createdat", 2335 - "type": "timestamp", 2336 - "primaryKey": false, 2337 - "notNull": true, 2338 - "default": "now()" 2339 - }, 2340 - "xata_updatedat": { 2341 - "name": "xata_updatedat", 2342 - "type": "timestamp", 2343 - "primaryKey": false, 2344 - "notNull": true, 2345 - "default": "now()" 2346 - } 2347 - }, 2348 - "indexes": {}, 2349 - "foreignKeys": { 2350 - "spotify_tokens_user_id_users_xata_id_fk": { 2351 - "name": "spotify_tokens_user_id_users_xata_id_fk", 2352 - "tableFrom": "spotify_tokens", 2353 - "tableTo": "users", 2354 - "columnsFrom": [ 2355 - "user_id" 2356 - ], 2357 - "columnsTo": [ 2358 - "xata_id" 2359 - ], 2360 - "onDelete": "no action", 2361 - "onUpdate": "no action" 2362 - } 2363 - }, 2364 - "compositePrimaryKeys": {}, 2365 - "uniqueConstraints": {}, 2366 - "policies": {}, 2367 - "checkConstraints": {}, 2368 - "isRLSEnabled": false 2369 - }, 2370 - "public.tracks": { 2371 - "name": "tracks", 2372 - "schema": "", 2373 - "columns": { 2374 - "xata_id": { 2375 - "name": "xata_id", 2376 - "type": "text", 2377 - "primaryKey": true, 2378 - "notNull": true 2379 - }, 2380 - "title": { 2381 - "name": "title", 2382 - "type": "text", 2383 - "primaryKey": false, 2384 - "notNull": true 2385 - }, 2386 - "artist": { 2387 - "name": "artist", 2388 - "type": "text", 2389 - "primaryKey": false, 2390 - "notNull": true 2391 - }, 2392 - "album_artist": { 2393 - "name": "album_artist", 2394 - "type": "text", 2395 - "primaryKey": false, 2396 - "notNull": true 2397 - }, 2398 - "album_art": { 2399 - "name": "album_art", 2400 - "type": "text", 2401 - "primaryKey": false, 2402 - "notNull": false 2403 - }, 2404 - "album": { 2405 - "name": "album", 2406 - "type": "text", 2407 - "primaryKey": false, 2408 - "notNull": true 2409 - }, 2410 - "track_number": { 2411 - "name": "track_number", 2412 - "type": "integer", 2413 - "primaryKey": false, 2414 - "notNull": false 2415 - }, 2416 - "duration": { 2417 - "name": "duration", 2418 - "type": "integer", 2419 - "primaryKey": false, 2420 - "notNull": true 2421 - }, 2422 - "mb_id": { 2423 - "name": "mb_id", 2424 - "type": "text", 2425 - "primaryKey": false, 2426 - "notNull": false 2427 - }, 2428 - "youtube_link": { 2429 - "name": "youtube_link", 2430 - "type": "text", 2431 - "primaryKey": false, 2432 - "notNull": false 2433 - }, 2434 - "spotify_link": { 2435 - "name": "spotify_link", 2436 - "type": "text", 2437 - "primaryKey": false, 2438 - "notNull": false 2439 - }, 2440 - "apple_music_link": { 2441 - "name": "apple_music_link", 2442 - "type": "text", 2443 - "primaryKey": false, 2444 - "notNull": false 2445 - }, 2446 - "tidal_link": { 2447 - "name": "tidal_link", 2448 - "type": "text", 2449 - "primaryKey": false, 2450 - "notNull": false 2451 - }, 2452 - "sha256": { 2453 - "name": "sha256", 2454 - "type": "text", 2455 - "primaryKey": false, 2456 - "notNull": true 2457 - }, 2458 - "disc_number": { 2459 - "name": "disc_number", 2460 - "type": "integer", 2461 - "primaryKey": false, 2462 - "notNull": false 2463 - }, 2464 - "lyrics": { 2465 - "name": "lyrics", 2466 - "type": "text", 2467 - "primaryKey": false, 2468 - "notNull": false 2469 - }, 2470 - "composer": { 2471 - "name": "composer", 2472 - "type": "text", 2473 - "primaryKey": false, 2474 - "notNull": false 2475 - }, 2476 - "genre": { 2477 - "name": "genre", 2478 - "type": "text", 2479 - "primaryKey": false, 2480 - "notNull": false 2481 - }, 2482 - "label": { 2483 - "name": "label", 2484 - "type": "text", 2485 - "primaryKey": false, 2486 - "notNull": false 2487 - }, 2488 - "copyright_message": { 2489 - "name": "copyright_message", 2490 - "type": "text", 2491 - "primaryKey": false, 2492 - "notNull": false 2493 - }, 2494 - "uri": { 2495 - "name": "uri", 2496 - "type": "text", 2497 - "primaryKey": false, 2498 - "notNull": false 2499 - }, 2500 - "album_uri": { 2501 - "name": "album_uri", 2502 - "type": "text", 2503 - "primaryKey": false, 2504 - "notNull": false 2505 - }, 2506 - "artist_uri": { 2507 - "name": "artist_uri", 2508 - "type": "text", 2509 - "primaryKey": false, 2510 - "notNull": false 2511 - }, 2512 - "xata_createdat": { 2513 - "name": "xata_createdat", 2514 - "type": "timestamp", 2515 - "primaryKey": false, 2516 - "notNull": true, 2517 - "default": "now()" 2518 - }, 2519 - "xata_updatedat": { 2520 - "name": "xata_updatedat", 2521 - "type": "timestamp", 2522 - "primaryKey": false, 2523 - "notNull": true, 2524 - "default": "now()" 2525 - }, 2526 - "xata_version": { 2527 - "name": "xata_version", 2528 - "type": "integer", 2529 - "primaryKey": false, 2530 - "notNull": false 2531 - } 2532 - }, 2533 - "indexes": {}, 2534 - "foreignKeys": {}, 2535 - "compositePrimaryKeys": {}, 2536 - "uniqueConstraints": { 2537 - "tracks_mb_id_unique": { 2538 - "name": "tracks_mb_id_unique", 2539 - "nullsNotDistinct": false, 2540 - "columns": [ 2541 - "mb_id" 2542 - ] 2543 - }, 2544 - "tracks_youtube_link_unique": { 2545 - "name": "tracks_youtube_link_unique", 2546 - "nullsNotDistinct": false, 2547 - "columns": [ 2548 - "youtube_link" 2549 - ] 2550 - }, 2551 - "tracks_spotify_link_unique": { 2552 - "name": "tracks_spotify_link_unique", 2553 - "nullsNotDistinct": false, 2554 - "columns": [ 2555 - "spotify_link" 2556 - ] 2557 - }, 2558 - "tracks_apple_music_link_unique": { 2559 - "name": "tracks_apple_music_link_unique", 2560 - "nullsNotDistinct": false, 2561 - "columns": [ 2562 - "apple_music_link" 2563 - ] 2564 - }, 2565 - "tracks_tidal_link_unique": { 2566 - "name": "tracks_tidal_link_unique", 2567 - "nullsNotDistinct": false, 2568 - "columns": [ 2569 - "tidal_link" 2570 - ] 2571 - }, 2572 - "tracks_sha256_unique": { 2573 - "name": "tracks_sha256_unique", 2574 - "nullsNotDistinct": false, 2575 - "columns": [ 2576 - "sha256" 2577 - ] 2578 - }, 2579 - "tracks_uri_unique": { 2580 - "name": "tracks_uri_unique", 2581 - "nullsNotDistinct": false, 2582 - "columns": [ 2583 - "uri" 2584 - ] 2585 - } 2586 - }, 2587 - "policies": {}, 2588 - "checkConstraints": {}, 2589 - "isRLSEnabled": false 2590 - }, 2591 - "public.user_albums": { 2592 - "name": "user_albums", 2593 - "schema": "", 2594 - "columns": { 2595 - "xata_id": { 2596 - "name": "xata_id", 2597 - "type": "text", 2598 - "primaryKey": true, 2599 - "notNull": true 2600 - }, 2601 - "user_id": { 2602 - "name": "user_id", 2603 - "type": "text", 2604 - "primaryKey": false, 2605 - "notNull": true 2606 - }, 2607 - "album_id": { 2608 - "name": "album_id", 2609 - "type": "text", 2610 - "primaryKey": false, 2611 - "notNull": true 2612 - }, 2613 - "xata_createdat": { 2614 - "name": "xata_createdat", 2615 - "type": "timestamp", 2616 - "primaryKey": false, 2617 - "notNull": true, 2618 - "default": "now()" 2619 - }, 2620 - "xata_updatedat": { 2621 - "name": "xata_updatedat", 2622 - "type": "timestamp", 2623 - "primaryKey": false, 2624 - "notNull": true, 2625 - "default": "now()" 2626 - }, 2627 - "xata_version": { 2628 - "name": "xata_version", 2629 - "type": "integer", 2630 - "primaryKey": false, 2631 - "notNull": false 2632 - }, 2633 - "scrobbles": { 2634 - "name": "scrobbles", 2635 - "type": "integer", 2636 - "primaryKey": false, 2637 - "notNull": false 2638 - }, 2639 - "uri": { 2640 - "name": "uri", 2641 - "type": "text", 2642 - "primaryKey": false, 2643 - "notNull": true 2644 - } 2645 - }, 2646 - "indexes": {}, 2647 - "foreignKeys": { 2648 - "user_albums_user_id_users_xata_id_fk": { 2649 - "name": "user_albums_user_id_users_xata_id_fk", 2650 - "tableFrom": "user_albums", 2651 - "tableTo": "users", 2652 - "columnsFrom": [ 2653 - "user_id" 2654 - ], 2655 - "columnsTo": [ 2656 - "xata_id" 2657 - ], 2658 - "onDelete": "no action", 2659 - "onUpdate": "no action" 2660 - }, 2661 - "user_albums_album_id_albums_xata_id_fk": { 2662 - "name": "user_albums_album_id_albums_xata_id_fk", 2663 - "tableFrom": "user_albums", 2664 - "tableTo": "albums", 2665 - "columnsFrom": [ 2666 - "album_id" 2667 - ], 2668 - "columnsTo": [ 2669 - "xata_id" 2670 - ], 2671 - "onDelete": "no action", 2672 - "onUpdate": "no action" 2673 - } 2674 - }, 2675 - "compositePrimaryKeys": {}, 2676 - "uniqueConstraints": { 2677 - "user_albums_uri_unique": { 2678 - "name": "user_albums_uri_unique", 2679 - "nullsNotDistinct": false, 2680 - "columns": [ 2681 - "uri" 2682 - ] 2683 - } 2684 - }, 2685 - "policies": {}, 2686 - "checkConstraints": {}, 2687 - "isRLSEnabled": false 2688 - }, 2689 - "public.user_artists": { 2690 - "name": "user_artists", 2691 - "schema": "", 2692 - "columns": { 2693 - "xata_id": { 2694 - "name": "xata_id", 2695 - "type": "text", 2696 - "primaryKey": true, 2697 - "notNull": true 2698 - }, 2699 - "user_id": { 2700 - "name": "user_id", 2701 - "type": "text", 2702 - "primaryKey": false, 2703 - "notNull": true 2704 - }, 2705 - "artist_id": { 2706 - "name": "artist_id", 2707 - "type": "text", 2708 - "primaryKey": false, 2709 - "notNull": true 2710 - }, 2711 - "xata_createdat": { 2712 - "name": "xata_createdat", 2713 - "type": "timestamp", 2714 - "primaryKey": false, 2715 - "notNull": true, 2716 - "default": "now()" 2717 - }, 2718 - "xata_updatedat": { 2719 - "name": "xata_updatedat", 2720 - "type": "timestamp", 2721 - "primaryKey": false, 2722 - "notNull": true, 2723 - "default": "now()" 2724 - }, 2725 - "xata_version": { 2726 - "name": "xata_version", 2727 - "type": "integer", 2728 - "primaryKey": false, 2729 - "notNull": false 2730 - }, 2731 - "scrobbles": { 2732 - "name": "scrobbles", 2733 - "type": "integer", 2734 - "primaryKey": false, 2735 - "notNull": false 2736 - }, 2737 - "uri": { 2738 - "name": "uri", 2739 - "type": "text", 2740 - "primaryKey": false, 2741 - "notNull": true 2742 - } 2743 - }, 2744 - "indexes": {}, 2745 - "foreignKeys": { 2746 - "user_artists_user_id_users_xata_id_fk": { 2747 - "name": "user_artists_user_id_users_xata_id_fk", 2748 - "tableFrom": "user_artists", 2749 - "tableTo": "users", 2750 - "columnsFrom": [ 2751 - "user_id" 2752 - ], 2753 - "columnsTo": [ 2754 - "xata_id" 2755 - ], 2756 - "onDelete": "no action", 2757 - "onUpdate": "no action" 2758 - }, 2759 - "user_artists_artist_id_artists_xata_id_fk": { 2760 - "name": "user_artists_artist_id_artists_xata_id_fk", 2761 - "tableFrom": "user_artists", 2762 - "tableTo": "artists", 2763 - "columnsFrom": [ 2764 - "artist_id" 2765 - ], 2766 - "columnsTo": [ 2767 - "xata_id" 2768 - ], 2769 - "onDelete": "no action", 2770 - "onUpdate": "no action" 2771 - } 2772 - }, 2773 - "compositePrimaryKeys": {}, 2774 - "uniqueConstraints": { 2775 - "user_artists_uri_unique": { 2776 - "name": "user_artists_uri_unique", 2777 - "nullsNotDistinct": false, 2778 - "columns": [ 2779 - "uri" 2780 - ] 2781 - } 2782 - }, 2783 - "policies": {}, 2784 - "checkConstraints": {}, 2785 - "isRLSEnabled": false 2786 - }, 2787 - "public.user_playlists": { 2788 - "name": "user_playlists", 2789 - "schema": "", 2790 - "columns": { 2791 - "xata_id": { 2792 - "name": "xata_id", 2793 - "type": "text", 2794 - "primaryKey": true, 2795 - "notNull": true 2796 - }, 2797 - "user_id": { 2798 - "name": "user_id", 2799 - "type": "text", 2800 - "primaryKey": false, 2801 - "notNull": true 2802 - }, 2803 - "playlist_id": { 2804 - "name": "playlist_id", 2805 - "type": "text", 2806 - "primaryKey": false, 2807 - "notNull": true 2808 - }, 2809 - "xata_createdat": { 2810 - "name": "xata_createdat", 2811 - "type": "timestamp", 2812 - "primaryKey": false, 2813 - "notNull": true, 2814 - "default": "now()" 2815 - }, 2816 - "uri": { 2817 - "name": "uri", 2818 - "type": "text", 2819 - "primaryKey": false, 2820 - "notNull": false 2821 - } 2822 - }, 2823 - "indexes": {}, 2824 - "foreignKeys": { 2825 - "user_playlists_user_id_users_xata_id_fk": { 2826 - "name": "user_playlists_user_id_users_xata_id_fk", 2827 - "tableFrom": "user_playlists", 2828 - "tableTo": "users", 2829 - "columnsFrom": [ 2830 - "user_id" 2831 - ], 2832 - "columnsTo": [ 2833 - "xata_id" 2834 - ], 2835 - "onDelete": "no action", 2836 - "onUpdate": "no action" 2837 - }, 2838 - "user_playlists_playlist_id_tracks_xata_id_fk": { 2839 - "name": "user_playlists_playlist_id_tracks_xata_id_fk", 2840 - "tableFrom": "user_playlists", 2841 - "tableTo": "tracks", 2842 - "columnsFrom": [ 2843 - "playlist_id" 2844 - ], 2845 - "columnsTo": [ 2846 - "xata_id" 2847 - ], 2848 - "onDelete": "no action", 2849 - "onUpdate": "no action" 2850 - } 2851 - }, 2852 - "compositePrimaryKeys": {}, 2853 - "uniqueConstraints": { 2854 - "user_playlists_uri_unique": { 2855 - "name": "user_playlists_uri_unique", 2856 - "nullsNotDistinct": false, 2857 - "columns": [ 2858 - "uri" 2859 - ] 2860 - } 2861 - }, 2862 - "policies": {}, 2863 - "checkConstraints": {}, 2864 - "isRLSEnabled": false 2865 - }, 2866 - "public.user_tracks": { 2867 - "name": "user_tracks", 2868 - "schema": "", 2869 - "columns": { 2870 - "xata_id": { 2871 - "name": "xata_id", 2872 - "type": "text", 2873 - "primaryKey": true, 2874 - "notNull": true 2875 - }, 2876 - "user_id": { 2877 - "name": "user_id", 2878 - "type": "text", 2879 - "primaryKey": false, 2880 - "notNull": true 2881 - }, 2882 - "track_id": { 2883 - "name": "track_id", 2884 - "type": "text", 2885 - "primaryKey": false, 2886 - "notNull": true 2887 - }, 2888 - "xata_createdat": { 2889 - "name": "xata_createdat", 2890 - "type": "timestamp", 2891 - "primaryKey": false, 2892 - "notNull": true, 2893 - "default": "now()" 2894 - }, 2895 - "xata_updatedat": { 2896 - "name": "xata_updatedat", 2897 - "type": "timestamp", 2898 - "primaryKey": false, 2899 - "notNull": true, 2900 - "default": "now()" 2901 - }, 2902 - "xata_version": { 2903 - "name": "xata_version", 2904 - "type": "integer", 2905 - "primaryKey": false, 2906 - "notNull": false 2907 - }, 2908 - "uri": { 2909 - "name": "uri", 2910 - "type": "text", 2911 - "primaryKey": false, 2912 - "notNull": true 2913 - }, 2914 - "scrobbles": { 2915 - "name": "scrobbles", 2916 - "type": "integer", 2917 - "primaryKey": false, 2918 - "notNull": false 2919 - } 2920 - }, 2921 - "indexes": {}, 2922 - "foreignKeys": { 2923 - "user_tracks_user_id_users_xata_id_fk": { 2924 - "name": "user_tracks_user_id_users_xata_id_fk", 2925 - "tableFrom": "user_tracks", 2926 - "tableTo": "users", 2927 - "columnsFrom": [ 2928 - "user_id" 2929 - ], 2930 - "columnsTo": [ 2931 - "xata_id" 2932 - ], 2933 - "onDelete": "no action", 2934 - "onUpdate": "no action" 2935 - }, 2936 - "user_tracks_track_id_tracks_xata_id_fk": { 2937 - "name": "user_tracks_track_id_tracks_xata_id_fk", 2938 - "tableFrom": "user_tracks", 2939 - "tableTo": "tracks", 2940 - "columnsFrom": [ 2941 - "track_id" 2942 - ], 2943 - "columnsTo": [ 2944 - "xata_id" 2945 - ], 2946 - "onDelete": "no action", 2947 - "onUpdate": "no action" 2948 - } 2949 - }, 2950 - "compositePrimaryKeys": {}, 2951 - "uniqueConstraints": { 2952 - "user_tracks_uri_unique": { 2953 - "name": "user_tracks_uri_unique", 2954 - "nullsNotDistinct": false, 2955 - "columns": [ 2956 - "uri" 2957 - ] 2958 - } 2959 - }, 2960 - "policies": {}, 2961 - "checkConstraints": {}, 2962 - "isRLSEnabled": false 2963 - }, 2964 - "public.users": { 2965 - "name": "users", 2966 - "schema": "", 2967 - "columns": { 2968 - "xata_id": { 2969 - "name": "xata_id", 2970 - "type": "text", 2971 - "primaryKey": true, 2972 - "notNull": true 2973 - }, 2974 - "did": { 2975 - "name": "did", 2976 - "type": "text", 2977 - "primaryKey": false, 2978 - "notNull": true 2979 - }, 2980 - "display_name": { 2981 - "name": "display_name", 2982 - "type": "text", 2983 - "primaryKey": false, 2984 - "notNull": false 2985 - }, 2986 - "handle": { 2987 - "name": "handle", 2988 - "type": "text", 2989 - "primaryKey": false, 2990 - "notNull": true 2991 - }, 2992 - "avatar": { 2993 - "name": "avatar", 2994 - "type": "text", 2995 - "primaryKey": false, 2996 - "notNull": true 2997 - }, 2998 - "xata_createdat": { 2999 - "name": "xata_createdat", 3000 - "type": "timestamp", 3001 - "primaryKey": false, 3002 - "notNull": true, 3003 - "default": "now()" 3004 - }, 3005 - "xata_updatedat": { 3006 - "name": "xata_updatedat", 3007 - "type": "timestamp", 3008 - "primaryKey": false, 3009 - "notNull": true, 3010 - "default": "now()" 3011 - }, 3012 - "xata_version": { 3013 - "name": "xata_version", 3014 - "type": "integer", 3015 - "primaryKey": false, 3016 - "notNull": false 3017 - } 3018 - }, 3019 - "indexes": {}, 3020 - "foreignKeys": {}, 3021 - "compositePrimaryKeys": {}, 3022 - "uniqueConstraints": { 3023 - "users_did_unique": { 3024 - "name": "users_did_unique", 3025 - "nullsNotDistinct": false, 3026 - "columns": [ 3027 - "did" 3028 - ] 3029 - }, 3030 - "users_handle_unique": { 3031 - "name": "users_handle_unique", 3032 - "nullsNotDistinct": false, 3033 - "columns": [ 3034 - "handle" 3035 - ] 3036 - } 3037 - }, 3038 - "policies": {}, 3039 - "checkConstraints": {}, 3040 - "isRLSEnabled": false 3041 - }, 3042 - "public.webscrobblers": { 3043 - "name": "webscrobblers", 3044 - "schema": "", 3045 - "columns": { 3046 - "xata_id": { 3047 - "name": "xata_id", 3048 - "type": "text", 3049 - "primaryKey": true, 3050 - "notNull": true 3051 - }, 3052 - "name": { 3053 - "name": "name", 3054 - "type": "text", 3055 - "primaryKey": false, 3056 - "notNull": true 3057 - }, 3058 - "uuid": { 3059 - "name": "uuid", 3060 - "type": "text", 3061 - "primaryKey": false, 3062 - "notNull": true 3063 - }, 3064 - "description": { 3065 - "name": "description", 3066 - "type": "text", 3067 - "primaryKey": false, 3068 - "notNull": false 3069 - }, 3070 - "enabled": { 3071 - "name": "enabled", 3072 - "type": "boolean", 3073 - "primaryKey": false, 3074 - "notNull": true, 3075 - "default": true 3076 - }, 3077 - "user_id": { 3078 - "name": "user_id", 3079 - "type": "text", 3080 - "primaryKey": false, 3081 - "notNull": true 3082 - }, 3083 - "xata_createdat": { 3084 - "name": "xata_createdat", 3085 - "type": "timestamp", 3086 - "primaryKey": false, 3087 - "notNull": true, 3088 - "default": "now()" 3089 - }, 3090 - "xata_updatedat": { 3091 - "name": "xata_updatedat", 3092 - "type": "timestamp", 3093 - "primaryKey": false, 3094 - "notNull": true, 3095 - "default": "now()" 3096 - } 3097 - }, 3098 - "indexes": {}, 3099 - "foreignKeys": { 3100 - "webscrobblers_user_id_users_xata_id_fk": { 3101 - "name": "webscrobblers_user_id_users_xata_id_fk", 3102 - "tableFrom": "webscrobblers", 3103 - "tableTo": "users", 3104 - "columnsFrom": [ 3105 - "user_id" 3106 - ], 3107 - "columnsTo": [ 3108 - "xata_id" 3109 - ], 3110 - "onDelete": "no action", 3111 - "onUpdate": "no action" 3112 - } 3113 - }, 3114 - "compositePrimaryKeys": {}, 3115 - "uniqueConstraints": {}, 3116 - "policies": {}, 3117 - "checkConstraints": {}, 3118 - "isRLSEnabled": false 3119 - } 3120 - }, 3121 - "enums": {}, 3122 - "schemas": {}, 3123 - "sequences": {}, 3124 - "roles": {}, 3125 - "policies": {}, 3126 - "views": {}, 3127 - "_meta": { 3128 - "columns": {}, 3129 - "schemas": {}, 3130 - "tables": {} 3131 - } 3132 - }
-3132
apps/api/drizzle/meta/0002_snapshot.json
··· 1 - { 2 - "id": "3ef49661-fdf0-4245-8943-ff69567a09b9", 3 - "prevId": "6ebb9775-b900-418c-bbd8-b704571a20d5", 4 - "version": "7", 5 - "dialect": "postgresql", 6 - "tables": { 7 - "public.album_tracks": { 8 - "name": "album_tracks", 9 - "schema": "", 10 - "columns": { 11 - "xata_id": { 12 - "name": "xata_id", 13 - "type": "text", 14 - "primaryKey": true, 15 - "notNull": true 16 - }, 17 - "album_id": { 18 - "name": "album_id", 19 - "type": "text", 20 - "primaryKey": false, 21 - "notNull": true 22 - }, 23 - "track_id": { 24 - "name": "track_id", 25 - "type": "text", 26 - "primaryKey": false, 27 - "notNull": true 28 - }, 29 - "xata_createdat": { 30 - "name": "xata_createdat", 31 - "type": "timestamp", 32 - "primaryKey": false, 33 - "notNull": true, 34 - "default": "now()" 35 - }, 36 - "xata_updatedat": { 37 - "name": "xata_updatedat", 38 - "type": "timestamp", 39 - "primaryKey": false, 40 - "notNull": true, 41 - "default": "now()" 42 - }, 43 - "xata_version": { 44 - "name": "xata_version", 45 - "type": "integer", 46 - "primaryKey": false, 47 - "notNull": false 48 - } 49 - }, 50 - "indexes": {}, 51 - "foreignKeys": { 52 - "album_tracks_album_id_albums_xata_id_fk": { 53 - "name": "album_tracks_album_id_albums_xata_id_fk", 54 - "tableFrom": "album_tracks", 55 - "tableTo": "albums", 56 - "columnsFrom": [ 57 - "album_id" 58 - ], 59 - "columnsTo": [ 60 - "xata_id" 61 - ], 62 - "onDelete": "no action", 63 - "onUpdate": "no action" 64 - }, 65 - "album_tracks_track_id_tracks_xata_id_fk": { 66 - "name": "album_tracks_track_id_tracks_xata_id_fk", 67 - "tableFrom": "album_tracks", 68 - "tableTo": "tracks", 69 - "columnsFrom": [ 70 - "track_id" 71 - ], 72 - "columnsTo": [ 73 - "xata_id" 74 - ], 75 - "onDelete": "no action", 76 - "onUpdate": "no action" 77 - } 78 - }, 79 - "compositePrimaryKeys": {}, 80 - "uniqueConstraints": {}, 81 - "policies": {}, 82 - "checkConstraints": {}, 83 - "isRLSEnabled": false 84 - }, 85 - "public.albums": { 86 - "name": "albums", 87 - "schema": "", 88 - "columns": { 89 - "xata_id": { 90 - "name": "xata_id", 91 - "type": "text", 92 - "primaryKey": true, 93 - "notNull": true 94 - }, 95 - "title": { 96 - "name": "title", 97 - "type": "text", 98 - "primaryKey": false, 99 - "notNull": true 100 - }, 101 - "artist": { 102 - "name": "artist", 103 - "type": "text", 104 - "primaryKey": false, 105 - "notNull": true 106 - }, 107 - "release_date": { 108 - "name": "release_date", 109 - "type": "text", 110 - "primaryKey": false, 111 - "notNull": false 112 - }, 113 - "year": { 114 - "name": "year", 115 - "type": "integer", 116 - "primaryKey": false, 117 - "notNull": false 118 - }, 119 - "album_art": { 120 - "name": "album_art", 121 - "type": "text", 122 - "primaryKey": false, 123 - "notNull": false 124 - }, 125 - "uri": { 126 - "name": "uri", 127 - "type": "text", 128 - "primaryKey": false, 129 - "notNull": false 130 - }, 131 - "artist_uri": { 132 - "name": "artist_uri", 133 - "type": "text", 134 - "primaryKey": false, 135 - "notNull": false 136 - }, 137 - "apple_music_link": { 138 - "name": "apple_music_link", 139 - "type": "text", 140 - "primaryKey": false, 141 - "notNull": false 142 - }, 143 - "spotify_link": { 144 - "name": "spotify_link", 145 - "type": "text", 146 - "primaryKey": false, 147 - "notNull": false 148 - }, 149 - "tidal_link": { 150 - "name": "tidal_link", 151 - "type": "text", 152 - "primaryKey": false, 153 - "notNull": false 154 - }, 155 - "youtube_link": { 156 - "name": "youtube_link", 157 - "type": "text", 158 - "primaryKey": false, 159 - "notNull": false 160 - }, 161 - "sha256": { 162 - "name": "sha256", 163 - "type": "text", 164 - "primaryKey": false, 165 - "notNull": true 166 - }, 167 - "xata_createdat": { 168 - "name": "xata_createdat", 169 - "type": "timestamp", 170 - "primaryKey": false, 171 - "notNull": true, 172 - "default": "now()" 173 - }, 174 - "xata_updatedat": { 175 - "name": "xata_updatedat", 176 - "type": "timestamp", 177 - "primaryKey": false, 178 - "notNull": true, 179 - "default": "now()" 180 - }, 181 - "xata_version": { 182 - "name": "xata_version", 183 - "type": "integer", 184 - "primaryKey": false, 185 - "notNull": false 186 - } 187 - }, 188 - "indexes": {}, 189 - "foreignKeys": {}, 190 - "compositePrimaryKeys": {}, 191 - "uniqueConstraints": { 192 - "albums_uri_unique": { 193 - "name": "albums_uri_unique", 194 - "nullsNotDistinct": false, 195 - "columns": [ 196 - "uri" 197 - ] 198 - }, 199 - "albums_apple_music_link_unique": { 200 - "name": "albums_apple_music_link_unique", 201 - "nullsNotDistinct": false, 202 - "columns": [ 203 - "apple_music_link" 204 - ] 205 - }, 206 - "albums_spotify_link_unique": { 207 - "name": "albums_spotify_link_unique", 208 - "nullsNotDistinct": false, 209 - "columns": [ 210 - "spotify_link" 211 - ] 212 - }, 213 - "albums_tidal_link_unique": { 214 - "name": "albums_tidal_link_unique", 215 - "nullsNotDistinct": false, 216 - "columns": [ 217 - "tidal_link" 218 - ] 219 - }, 220 - "albums_youtube_link_unique": { 221 - "name": "albums_youtube_link_unique", 222 - "nullsNotDistinct": false, 223 - "columns": [ 224 - "youtube_link" 225 - ] 226 - }, 227 - "albums_sha256_unique": { 228 - "name": "albums_sha256_unique", 229 - "nullsNotDistinct": false, 230 - "columns": [ 231 - "sha256" 232 - ] 233 - } 234 - }, 235 - "policies": {}, 236 - "checkConstraints": {}, 237 - "isRLSEnabled": false 238 - }, 239 - "public.api_keys": { 240 - "name": "api_keys", 241 - "schema": "", 242 - "columns": { 243 - "xata_id": { 244 - "name": "xata_id", 245 - "type": "text", 246 - "primaryKey": true, 247 - "notNull": true 248 - }, 249 - "name": { 250 - "name": "name", 251 - "type": "text", 252 - "primaryKey": false, 253 - "notNull": true 254 - }, 255 - "api_key": { 256 - "name": "api_key", 257 - "type": "text", 258 - "primaryKey": false, 259 - "notNull": true 260 - }, 261 - "shared_secret": { 262 - "name": "shared_secret", 263 - "type": "text", 264 - "primaryKey": false, 265 - "notNull": true 266 - }, 267 - "description": { 268 - "name": "description", 269 - "type": "text", 270 - "primaryKey": false, 271 - "notNull": false 272 - }, 273 - "enabled": { 274 - "name": "enabled", 275 - "type": "boolean", 276 - "primaryKey": false, 277 - "notNull": true, 278 - "default": true 279 - }, 280 - "user_id": { 281 - "name": "user_id", 282 - "type": "text", 283 - "primaryKey": false, 284 - "notNull": true 285 - }, 286 - "xata_createdat": { 287 - "name": "xata_createdat", 288 - "type": "timestamp", 289 - "primaryKey": false, 290 - "notNull": true, 291 - "default": "now()" 292 - }, 293 - "xata_updatedat": { 294 - "name": "xata_updatedat", 295 - "type": "timestamp", 296 - "primaryKey": false, 297 - "notNull": true, 298 - "default": "now()" 299 - } 300 - }, 301 - "indexes": {}, 302 - "foreignKeys": { 303 - "api_keys_user_id_users_xata_id_fk": { 304 - "name": "api_keys_user_id_users_xata_id_fk", 305 - "tableFrom": "api_keys", 306 - "tableTo": "users", 307 - "columnsFrom": [ 308 - "user_id" 309 - ], 310 - "columnsTo": [ 311 - "xata_id" 312 - ], 313 - "onDelete": "no action", 314 - "onUpdate": "no action" 315 - } 316 - }, 317 - "compositePrimaryKeys": {}, 318 - "uniqueConstraints": {}, 319 - "policies": {}, 320 - "checkConstraints": {}, 321 - "isRLSEnabled": false 322 - }, 323 - "public.artist_albums": { 324 - "name": "artist_albums", 325 - "schema": "", 326 - "columns": { 327 - "xata_id": { 328 - "name": "xata_id", 329 - "type": "text", 330 - "primaryKey": true, 331 - "notNull": true 332 - }, 333 - "artist_id": { 334 - "name": "artist_id", 335 - "type": "text", 336 - "primaryKey": false, 337 - "notNull": true 338 - }, 339 - "album_id": { 340 - "name": "album_id", 341 - "type": "text", 342 - "primaryKey": false, 343 - "notNull": true 344 - }, 345 - "xata_createdat": { 346 - "name": "xata_createdat", 347 - "type": "timestamp", 348 - "primaryKey": false, 349 - "notNull": true, 350 - "default": "now()" 351 - }, 352 - "xata_updatedat": { 353 - "name": "xata_updatedat", 354 - "type": "timestamp", 355 - "primaryKey": false, 356 - "notNull": true, 357 - "default": "now()" 358 - }, 359 - "xata_version": { 360 - "name": "xata_version", 361 - "type": "integer", 362 - "primaryKey": false, 363 - "notNull": false 364 - } 365 - }, 366 - "indexes": {}, 367 - "foreignKeys": { 368 - "artist_albums_artist_id_artists_xata_id_fk": { 369 - "name": "artist_albums_artist_id_artists_xata_id_fk", 370 - "tableFrom": "artist_albums", 371 - "tableTo": "artists", 372 - "columnsFrom": [ 373 - "artist_id" 374 - ], 375 - "columnsTo": [ 376 - "xata_id" 377 - ], 378 - "onDelete": "no action", 379 - "onUpdate": "no action" 380 - }, 381 - "artist_albums_album_id_albums_xata_id_fk": { 382 - "name": "artist_albums_album_id_albums_xata_id_fk", 383 - "tableFrom": "artist_albums", 384 - "tableTo": "albums", 385 - "columnsFrom": [ 386 - "album_id" 387 - ], 388 - "columnsTo": [ 389 - "xata_id" 390 - ], 391 - "onDelete": "no action", 392 - "onUpdate": "no action" 393 - } 394 - }, 395 - "compositePrimaryKeys": {}, 396 - "uniqueConstraints": {}, 397 - "policies": {}, 398 - "checkConstraints": {}, 399 - "isRLSEnabled": false 400 - }, 401 - "public.artist_tracks": { 402 - "name": "artist_tracks", 403 - "schema": "", 404 - "columns": { 405 - "xata_id": { 406 - "name": "xata_id", 407 - "type": "text", 408 - "primaryKey": true, 409 - "notNull": true 410 - }, 411 - "artist_id": { 412 - "name": "artist_id", 413 - "type": "text", 414 - "primaryKey": false, 415 - "notNull": true 416 - }, 417 - "track_id": { 418 - "name": "track_id", 419 - "type": "text", 420 - "primaryKey": false, 421 - "notNull": true 422 - }, 423 - "xata_createdat": { 424 - "name": "xata_createdat", 425 - "type": "timestamp", 426 - "primaryKey": false, 427 - "notNull": true, 428 - "default": "now()" 429 - }, 430 - "xata_updatedat": { 431 - "name": "xata_updatedat", 432 - "type": "timestamp", 433 - "primaryKey": false, 434 - "notNull": true, 435 - "default": "now()" 436 - }, 437 - "xata_version": { 438 - "name": "xata_version", 439 - "type": "integer", 440 - "primaryKey": false, 441 - "notNull": false 442 - } 443 - }, 444 - "indexes": {}, 445 - "foreignKeys": { 446 - "artist_tracks_artist_id_artists_xata_id_fk": { 447 - "name": "artist_tracks_artist_id_artists_xata_id_fk", 448 - "tableFrom": "artist_tracks", 449 - "tableTo": "artists", 450 - "columnsFrom": [ 451 - "artist_id" 452 - ], 453 - "columnsTo": [ 454 - "xata_id" 455 - ], 456 - "onDelete": "no action", 457 - "onUpdate": "no action" 458 - }, 459 - "artist_tracks_track_id_tracks_xata_id_fk": { 460 - "name": "artist_tracks_track_id_tracks_xata_id_fk", 461 - "tableFrom": "artist_tracks", 462 - "tableTo": "tracks", 463 - "columnsFrom": [ 464 - "track_id" 465 - ], 466 - "columnsTo": [ 467 - "xata_id" 468 - ], 469 - "onDelete": "no action", 470 - "onUpdate": "no action" 471 - } 472 - }, 473 - "compositePrimaryKeys": {}, 474 - "uniqueConstraints": {}, 475 - "policies": {}, 476 - "checkConstraints": {}, 477 - "isRLSEnabled": false 478 - }, 479 - "public.artists": { 480 - "name": "artists", 481 - "schema": "", 482 - "columns": { 483 - "xata_id": { 484 - "name": "xata_id", 485 - "type": "text", 486 - "primaryKey": true, 487 - "notNull": true 488 - }, 489 - "name": { 490 - "name": "name", 491 - "type": "text", 492 - "primaryKey": false, 493 - "notNull": true 494 - }, 495 - "biography": { 496 - "name": "biography", 497 - "type": "text", 498 - "primaryKey": false, 499 - "notNull": false 500 - }, 501 - "born": { 502 - "name": "born", 503 - "type": "timestamp", 504 - "primaryKey": false, 505 - "notNull": false 506 - }, 507 - "born_in": { 508 - "name": "born_in", 509 - "type": "text", 510 - "primaryKey": false, 511 - "notNull": false 512 - }, 513 - "died": { 514 - "name": "died", 515 - "type": "timestamp", 516 - "primaryKey": false, 517 - "notNull": false 518 - }, 519 - "picture": { 520 - "name": "picture", 521 - "type": "text", 522 - "primaryKey": false, 523 - "notNull": false 524 - }, 525 - "sha256": { 526 - "name": "sha256", 527 - "type": "text", 528 - "primaryKey": false, 529 - "notNull": true 530 - }, 531 - "uri": { 532 - "name": "uri", 533 - "type": "text", 534 - "primaryKey": false, 535 - "notNull": false 536 - }, 537 - "apple_music_link": { 538 - "name": "apple_music_link", 539 - "type": "text", 540 - "primaryKey": false, 541 - "notNull": false 542 - }, 543 - "spotify_link": { 544 - "name": "spotify_link", 545 - "type": "text", 546 - "primaryKey": false, 547 - "notNull": false 548 - }, 549 - "tidal_link": { 550 - "name": "tidal_link", 551 - "type": "text", 552 - "primaryKey": false, 553 - "notNull": false 554 - }, 555 - "youtube_link": { 556 - "name": "youtube_link", 557 - "type": "text", 558 - "primaryKey": false, 559 - "notNull": false 560 - }, 561 - "genres": { 562 - "name": "genres", 563 - "type": "text[]", 564 - "primaryKey": false, 565 - "notNull": false 566 - }, 567 - "xata_createdat": { 568 - "name": "xata_createdat", 569 - "type": "timestamp", 570 - "primaryKey": false, 571 - "notNull": true, 572 - "default": "now()" 573 - }, 574 - "xata_updatedat": { 575 - "name": "xata_updatedat", 576 - "type": "timestamp", 577 - "primaryKey": false, 578 - "notNull": true, 579 - "default": "now()" 580 - }, 581 - "xata_version": { 582 - "name": "xata_version", 583 - "type": "integer", 584 - "primaryKey": false, 585 - "notNull": false 586 - } 587 - }, 588 - "indexes": {}, 589 - "foreignKeys": {}, 590 - "compositePrimaryKeys": {}, 591 - "uniqueConstraints": { 592 - "artists_sha256_unique": { 593 - "name": "artists_sha256_unique", 594 - "nullsNotDistinct": false, 595 - "columns": [ 596 - "sha256" 597 - ] 598 - }, 599 - "artists_uri_unique": { 600 - "name": "artists_uri_unique", 601 - "nullsNotDistinct": false, 602 - "columns": [ 603 - "uri" 604 - ] 605 - } 606 - }, 607 - "policies": {}, 608 - "checkConstraints": {}, 609 - "isRLSEnabled": false 610 - }, 611 - "public.dropbox_accounts": { 612 - "name": "dropbox_accounts", 613 - "schema": "", 614 - "columns": { 615 - "xata_id": { 616 - "name": "xata_id", 617 - "type": "text", 618 - "primaryKey": true, 619 - "notNull": true 620 - }, 621 - "email": { 622 - "name": "email", 623 - "type": "text", 624 - "primaryKey": false, 625 - "notNull": true 626 - }, 627 - "is_beta_user": { 628 - "name": "is_beta_user", 629 - "type": "boolean", 630 - "primaryKey": false, 631 - "notNull": true, 632 - "default": false 633 - }, 634 - "user_id": { 635 - "name": "user_id", 636 - "type": "text", 637 - "primaryKey": false, 638 - "notNull": true 639 - }, 640 - "xata_version": { 641 - "name": "xata_version", 642 - "type": "text", 643 - "primaryKey": false, 644 - "notNull": false 645 - }, 646 - "xata_createdat": { 647 - "name": "xata_createdat", 648 - "type": "timestamp", 649 - "primaryKey": false, 650 - "notNull": true, 651 - "default": "now()" 652 - }, 653 - "xata_updatedat": { 654 - "name": "xata_updatedat", 655 - "type": "timestamp", 656 - "primaryKey": false, 657 - "notNull": true, 658 - "default": "now()" 659 - } 660 - }, 661 - "indexes": {}, 662 - "foreignKeys": { 663 - "dropbox_accounts_user_id_users_xata_id_fk": { 664 - "name": "dropbox_accounts_user_id_users_xata_id_fk", 665 - "tableFrom": "dropbox_accounts", 666 - "tableTo": "users", 667 - "columnsFrom": [ 668 - "user_id" 669 - ], 670 - "columnsTo": [ 671 - "xata_id" 672 - ], 673 - "onDelete": "no action", 674 - "onUpdate": "no action" 675 - } 676 - }, 677 - "compositePrimaryKeys": {}, 678 - "uniqueConstraints": { 679 - "dropbox_accounts_email_unique": { 680 - "name": "dropbox_accounts_email_unique", 681 - "nullsNotDistinct": false, 682 - "columns": [ 683 - "email" 684 - ] 685 - } 686 - }, 687 - "policies": {}, 688 - "checkConstraints": {}, 689 - "isRLSEnabled": false 690 - }, 691 - "public.dropbox_directories": { 692 - "name": "dropbox_directories", 693 - "schema": "", 694 - "columns": { 695 - "xata_id": { 696 - "name": "xata_id", 697 - "type": "text", 698 - "primaryKey": true, 699 - "notNull": true 700 - }, 701 - "name": { 702 - "name": "name", 703 - "type": "text", 704 - "primaryKey": false, 705 - "notNull": true 706 - }, 707 - "path": { 708 - "name": "path", 709 - "type": "text", 710 - "primaryKey": false, 711 - "notNull": true 712 - }, 713 - "parent_id": { 714 - "name": "parent_id", 715 - "type": "text", 716 - "primaryKey": false, 717 - "notNull": false 718 - }, 719 - "dropbox_id": { 720 - "name": "dropbox_id", 721 - "type": "text", 722 - "primaryKey": false, 723 - "notNull": true 724 - }, 725 - "file_id": { 726 - "name": "file_id", 727 - "type": "text", 728 - "primaryKey": false, 729 - "notNull": true 730 - }, 731 - "xata_version": { 732 - "name": "xata_version", 733 - "type": "text", 734 - "primaryKey": false, 735 - "notNull": false 736 - }, 737 - "xata_createdat": { 738 - "name": "xata_createdat", 739 - "type": "timestamp", 740 - "primaryKey": false, 741 - "notNull": true, 742 - "default": "now()" 743 - }, 744 - "xata_updatedat": { 745 - "name": "xata_updatedat", 746 - "type": "timestamp", 747 - "primaryKey": false, 748 - "notNull": true, 749 - "default": "now()" 750 - } 751 - }, 752 - "indexes": {}, 753 - "foreignKeys": { 754 - "dropbox_directories_parent_id_dropbox_directories_xata_id_fk": { 755 - "name": "dropbox_directories_parent_id_dropbox_directories_xata_id_fk", 756 - "tableFrom": "dropbox_directories", 757 - "tableTo": "dropbox_directories", 758 - "columnsFrom": [ 759 - "parent_id" 760 - ], 761 - "columnsTo": [ 762 - "xata_id" 763 - ], 764 - "onDelete": "no action", 765 - "onUpdate": "no action" 766 - } 767 - }, 768 - "compositePrimaryKeys": {}, 769 - "uniqueConstraints": { 770 - "dropbox_directories_file_id_unique": { 771 - "name": "dropbox_directories_file_id_unique", 772 - "nullsNotDistinct": false, 773 - "columns": [ 774 - "file_id" 775 - ] 776 - } 777 - }, 778 - "policies": {}, 779 - "checkConstraints": {}, 780 - "isRLSEnabled": false 781 - }, 782 - "public.dropbox_paths": { 783 - "name": "dropbox_paths", 784 - "schema": "", 785 - "columns": { 786 - "xata_id": { 787 - "name": "xata_id", 788 - "type": "text", 789 - "primaryKey": true, 790 - "notNull": true 791 - }, 792 - "path": { 793 - "name": "path", 794 - "type": "text", 795 - "primaryKey": false, 796 - "notNull": true 797 - }, 798 - "name": { 799 - "name": "name", 800 - "type": "text", 801 - "primaryKey": false, 802 - "notNull": true 803 - }, 804 - "dropbox_id": { 805 - "name": "dropbox_id", 806 - "type": "text", 807 - "primaryKey": false, 808 - "notNull": true 809 - }, 810 - "track_id": { 811 - "name": "track_id", 812 - "type": "text", 813 - "primaryKey": false, 814 - "notNull": true 815 - }, 816 - "directory_id": { 817 - "name": "directory_id", 818 - "type": "text", 819 - "primaryKey": false, 820 - "notNull": false 821 - }, 822 - "file_id": { 823 - "name": "file_id", 824 - "type": "text", 825 - "primaryKey": false, 826 - "notNull": true 827 - }, 828 - "xata_version": { 829 - "name": "xata_version", 830 - "type": "text", 831 - "primaryKey": false, 832 - "notNull": false 833 - }, 834 - "xata_createdat": { 835 - "name": "xata_createdat", 836 - "type": "timestamp", 837 - "primaryKey": false, 838 - "notNull": true, 839 - "default": "now()" 840 - }, 841 - "xata_updatedat": { 842 - "name": "xata_updatedat", 843 - "type": "timestamp", 844 - "primaryKey": false, 845 - "notNull": true, 846 - "default": "now()" 847 - } 848 - }, 849 - "indexes": {}, 850 - "foreignKeys": { 851 - "dropbox_paths_directory_id_dropbox_directories_xata_id_fk": { 852 - "name": "dropbox_paths_directory_id_dropbox_directories_xata_id_fk", 853 - "tableFrom": "dropbox_paths", 854 - "tableTo": "dropbox_directories", 855 - "columnsFrom": [ 856 - "directory_id" 857 - ], 858 - "columnsTo": [ 859 - "xata_id" 860 - ], 861 - "onDelete": "no action", 862 - "onUpdate": "no action" 863 - } 864 - }, 865 - "compositePrimaryKeys": {}, 866 - "uniqueConstraints": { 867 - "dropbox_paths_file_id_unique": { 868 - "name": "dropbox_paths_file_id_unique", 869 - "nullsNotDistinct": false, 870 - "columns": [ 871 - "file_id" 872 - ] 873 - } 874 - }, 875 - "policies": {}, 876 - "checkConstraints": {}, 877 - "isRLSEnabled": false 878 - }, 879 - "public.dropbox_tokens": { 880 - "name": "dropbox_tokens", 881 - "schema": "", 882 - "columns": { 883 - "xata_id": { 884 - "name": "xata_id", 885 - "type": "text", 886 - "primaryKey": true, 887 - "notNull": true 888 - }, 889 - "refresh_token": { 890 - "name": "refresh_token", 891 - "type": "text", 892 - "primaryKey": false, 893 - "notNull": true 894 - }, 895 - "xata_createdat": { 896 - "name": "xata_createdat", 897 - "type": "timestamp", 898 - "primaryKey": false, 899 - "notNull": true, 900 - "default": "now()" 901 - }, 902 - "xata_updatedat": { 903 - "name": "xata_updatedat", 904 - "type": "timestamp", 905 - "primaryKey": false, 906 - "notNull": true, 907 - "default": "now()" 908 - } 909 - }, 910 - "indexes": {}, 911 - "foreignKeys": {}, 912 - "compositePrimaryKeys": {}, 913 - "uniqueConstraints": {}, 914 - "policies": {}, 915 - "checkConstraints": {}, 916 - "isRLSEnabled": false 917 - }, 918 - "public.dropbox": { 919 - "name": "dropbox", 920 - "schema": "", 921 - "columns": { 922 - "xata_id": { 923 - "name": "xata_id", 924 - "type": "text", 925 - "primaryKey": true, 926 - "notNull": true 927 - }, 928 - "user_id": { 929 - "name": "user_id", 930 - "type": "text", 931 - "primaryKey": false, 932 - "notNull": true 933 - }, 934 - "dropbox_token_id": { 935 - "name": "dropbox_token_id", 936 - "type": "text", 937 - "primaryKey": false, 938 - "notNull": true 939 - }, 940 - "xata_version": { 941 - "name": "xata_version", 942 - "type": "text", 943 - "primaryKey": false, 944 - "notNull": false 945 - }, 946 - "xata_createdat": { 947 - "name": "xata_createdat", 948 - "type": "timestamp", 949 - "primaryKey": false, 950 - "notNull": true, 951 - "default": "now()" 952 - }, 953 - "xata_updatedat": { 954 - "name": "xata_updatedat", 955 - "type": "timestamp", 956 - "primaryKey": false, 957 - "notNull": true, 958 - "default": "now()" 959 - } 960 - }, 961 - "indexes": {}, 962 - "foreignKeys": { 963 - "dropbox_user_id_users_xata_id_fk": { 964 - "name": "dropbox_user_id_users_xata_id_fk", 965 - "tableFrom": "dropbox", 966 - "tableTo": "users", 967 - "columnsFrom": [ 968 - "user_id" 969 - ], 970 - "columnsTo": [ 971 - "xata_id" 972 - ], 973 - "onDelete": "no action", 974 - "onUpdate": "no action" 975 - }, 976 - "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk": { 977 - "name": "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk", 978 - "tableFrom": "dropbox", 979 - "tableTo": "dropbox_tokens", 980 - "columnsFrom": [ 981 - "dropbox_token_id" 982 - ], 983 - "columnsTo": [ 984 - "xata_id" 985 - ], 986 - "onDelete": "no action", 987 - "onUpdate": "no action" 988 - } 989 - }, 990 - "compositePrimaryKeys": {}, 991 - "uniqueConstraints": {}, 992 - "policies": {}, 993 - "checkConstraints": {}, 994 - "isRLSEnabled": false 995 - }, 996 - "public.google_drive_accounts": { 997 - "name": "google_drive_accounts", 998 - "schema": "", 999 - "columns": { 1000 - "xata_id": { 1001 - "name": "xata_id", 1002 - "type": "text", 1003 - "primaryKey": true, 1004 - "notNull": true 1005 - }, 1006 - "email": { 1007 - "name": "email", 1008 - "type": "text", 1009 - "primaryKey": false, 1010 - "notNull": true 1011 - }, 1012 - "is_beta_user": { 1013 - "name": "is_beta_user", 1014 - "type": "boolean", 1015 - "primaryKey": false, 1016 - "notNull": true, 1017 - "default": false 1018 - }, 1019 - "user_id": { 1020 - "name": "user_id", 1021 - "type": "text", 1022 - "primaryKey": false, 1023 - "notNull": true 1024 - }, 1025 - "xata_version": { 1026 - "name": "xata_version", 1027 - "type": "text", 1028 - "primaryKey": false, 1029 - "notNull": false 1030 - }, 1031 - "xata_createdat": { 1032 - "name": "xata_createdat", 1033 - "type": "timestamp", 1034 - "primaryKey": false, 1035 - "notNull": true, 1036 - "default": "now()" 1037 - }, 1038 - "xata_updatedat": { 1039 - "name": "xata_updatedat", 1040 - "type": "timestamp", 1041 - "primaryKey": false, 1042 - "notNull": true, 1043 - "default": "now()" 1044 - } 1045 - }, 1046 - "indexes": {}, 1047 - "foreignKeys": { 1048 - "google_drive_accounts_user_id_users_xata_id_fk": { 1049 - "name": "google_drive_accounts_user_id_users_xata_id_fk", 1050 - "tableFrom": "google_drive_accounts", 1051 - "tableTo": "users", 1052 - "columnsFrom": [ 1053 - "user_id" 1054 - ], 1055 - "columnsTo": [ 1056 - "xata_id" 1057 - ], 1058 - "onDelete": "no action", 1059 - "onUpdate": "no action" 1060 - } 1061 - }, 1062 - "compositePrimaryKeys": {}, 1063 - "uniqueConstraints": { 1064 - "google_drive_accounts_email_unique": { 1065 - "name": "google_drive_accounts_email_unique", 1066 - "nullsNotDistinct": false, 1067 - "columns": [ 1068 - "email" 1069 - ] 1070 - } 1071 - }, 1072 - "policies": {}, 1073 - "checkConstraints": {}, 1074 - "isRLSEnabled": false 1075 - }, 1076 - "public.google_drive_directories": { 1077 - "name": "google_drive_directories", 1078 - "schema": "", 1079 - "columns": { 1080 - "xata_id": { 1081 - "name": "xata_id", 1082 - "type": "text", 1083 - "primaryKey": true, 1084 - "notNull": true 1085 - }, 1086 - "name": { 1087 - "name": "name", 1088 - "type": "text", 1089 - "primaryKey": false, 1090 - "notNull": true 1091 - }, 1092 - "path": { 1093 - "name": "path", 1094 - "type": "text", 1095 - "primaryKey": false, 1096 - "notNull": true 1097 - }, 1098 - "parent_id": { 1099 - "name": "parent_id", 1100 - "type": "text", 1101 - "primaryKey": false, 1102 - "notNull": false 1103 - }, 1104 - "google_drive_id": { 1105 - "name": "google_drive_id", 1106 - "type": "text", 1107 - "primaryKey": false, 1108 - "notNull": true 1109 - }, 1110 - "file_id": { 1111 - "name": "file_id", 1112 - "type": "text", 1113 - "primaryKey": false, 1114 - "notNull": true 1115 - }, 1116 - "xata_version": { 1117 - "name": "xata_version", 1118 - "type": "text", 1119 - "primaryKey": false, 1120 - "notNull": false 1121 - }, 1122 - "xata_createdat": { 1123 - "name": "xata_createdat", 1124 - "type": "timestamp", 1125 - "primaryKey": false, 1126 - "notNull": true, 1127 - "default": "now()" 1128 - }, 1129 - "xata_updatedat": { 1130 - "name": "xata_updatedat", 1131 - "type": "timestamp", 1132 - "primaryKey": false, 1133 - "notNull": true, 1134 - "default": "now()" 1135 - } 1136 - }, 1137 - "indexes": {}, 1138 - "foreignKeys": { 1139 - "google_drive_directories_parent_id_google_drive_directories_xata_id_fk": { 1140 - "name": "google_drive_directories_parent_id_google_drive_directories_xata_id_fk", 1141 - "tableFrom": "google_drive_directories", 1142 - "tableTo": "google_drive_directories", 1143 - "columnsFrom": [ 1144 - "parent_id" 1145 - ], 1146 - "columnsTo": [ 1147 - "xata_id" 1148 - ], 1149 - "onDelete": "no action", 1150 - "onUpdate": "no action" 1151 - } 1152 - }, 1153 - "compositePrimaryKeys": {}, 1154 - "uniqueConstraints": { 1155 - "google_drive_directories_file_id_unique": { 1156 - "name": "google_drive_directories_file_id_unique", 1157 - "nullsNotDistinct": false, 1158 - "columns": [ 1159 - "file_id" 1160 - ] 1161 - } 1162 - }, 1163 - "policies": {}, 1164 - "checkConstraints": {}, 1165 - "isRLSEnabled": false 1166 - }, 1167 - "public.google_drive_paths": { 1168 - "name": "google_drive_paths", 1169 - "schema": "", 1170 - "columns": { 1171 - "xata_id": { 1172 - "name": "xata_id", 1173 - "type": "text", 1174 - "primaryKey": true, 1175 - "notNull": true 1176 - }, 1177 - "google_drive_id": { 1178 - "name": "google_drive_id", 1179 - "type": "text", 1180 - "primaryKey": false, 1181 - "notNull": true 1182 - }, 1183 - "track_id": { 1184 - "name": "track_id", 1185 - "type": "text", 1186 - "primaryKey": false, 1187 - "notNull": true 1188 - }, 1189 - "name": { 1190 - "name": "name", 1191 - "type": "text", 1192 - "primaryKey": false, 1193 - "notNull": true 1194 - }, 1195 - "directory_id": { 1196 - "name": "directory_id", 1197 - "type": "text", 1198 - "primaryKey": false, 1199 - "notNull": false 1200 - }, 1201 - "file_id": { 1202 - "name": "file_id", 1203 - "type": "text", 1204 - "primaryKey": false, 1205 - "notNull": true 1206 - }, 1207 - "xata_version": { 1208 - "name": "xata_version", 1209 - "type": "text", 1210 - "primaryKey": false, 1211 - "notNull": false 1212 - }, 1213 - "xata_createdat": { 1214 - "name": "xata_createdat", 1215 - "type": "timestamp", 1216 - "primaryKey": false, 1217 - "notNull": true, 1218 - "default": "now()" 1219 - }, 1220 - "xata_updatedat": { 1221 - "name": "xata_updatedat", 1222 - "type": "timestamp", 1223 - "primaryKey": false, 1224 - "notNull": true, 1225 - "default": "now()" 1226 - } 1227 - }, 1228 - "indexes": {}, 1229 - "foreignKeys": { 1230 - "google_drive_paths_directory_id_google_drive_directories_xata_id_fk": { 1231 - "name": "google_drive_paths_directory_id_google_drive_directories_xata_id_fk", 1232 - "tableFrom": "google_drive_paths", 1233 - "tableTo": "google_drive_directories", 1234 - "columnsFrom": [ 1235 - "directory_id" 1236 - ], 1237 - "columnsTo": [ 1238 - "xata_id" 1239 - ], 1240 - "onDelete": "no action", 1241 - "onUpdate": "no action" 1242 - } 1243 - }, 1244 - "compositePrimaryKeys": {}, 1245 - "uniqueConstraints": { 1246 - "google_drive_paths_file_id_unique": { 1247 - "name": "google_drive_paths_file_id_unique", 1248 - "nullsNotDistinct": false, 1249 - "columns": [ 1250 - "file_id" 1251 - ] 1252 - } 1253 - }, 1254 - "policies": {}, 1255 - "checkConstraints": {}, 1256 - "isRLSEnabled": false 1257 - }, 1258 - "public.google_drive_tokens": { 1259 - "name": "google_drive_tokens", 1260 - "schema": "", 1261 - "columns": { 1262 - "xata_id": { 1263 - "name": "xata_id", 1264 - "type": "text", 1265 - "primaryKey": true, 1266 - "notNull": true 1267 - }, 1268 - "refresh_token": { 1269 - "name": "refresh_token", 1270 - "type": "text", 1271 - "primaryKey": false, 1272 - "notNull": true 1273 - }, 1274 - "xata_createdat": { 1275 - "name": "xata_createdat", 1276 - "type": "timestamp", 1277 - "primaryKey": false, 1278 - "notNull": true, 1279 - "default": "now()" 1280 - }, 1281 - "xata_updatedat": { 1282 - "name": "xata_updatedat", 1283 - "type": "timestamp", 1284 - "primaryKey": false, 1285 - "notNull": true, 1286 - "default": "now()" 1287 - } 1288 - }, 1289 - "indexes": {}, 1290 - "foreignKeys": {}, 1291 - "compositePrimaryKeys": {}, 1292 - "uniqueConstraints": {}, 1293 - "policies": {}, 1294 - "checkConstraints": {}, 1295 - "isRLSEnabled": false 1296 - }, 1297 - "public.google_drive": { 1298 - "name": "google_drive", 1299 - "schema": "", 1300 - "columns": { 1301 - "xata_id": { 1302 - "name": "xata_id", 1303 - "type": "text", 1304 - "primaryKey": true, 1305 - "notNull": true 1306 - }, 1307 - "google_drive_token_id": { 1308 - "name": "google_drive_token_id", 1309 - "type": "text", 1310 - "primaryKey": false, 1311 - "notNull": true 1312 - }, 1313 - "user_id": { 1314 - "name": "user_id", 1315 - "type": "text", 1316 - "primaryKey": false, 1317 - "notNull": true 1318 - }, 1319 - "xata_version": { 1320 - "name": "xata_version", 1321 - "type": "text", 1322 - "primaryKey": false, 1323 - "notNull": false 1324 - }, 1325 - "xata_createdat": { 1326 - "name": "xata_createdat", 1327 - "type": "timestamp", 1328 - "primaryKey": false, 1329 - "notNull": true, 1330 - "default": "now()" 1331 - }, 1332 - "xata_updatedat": { 1333 - "name": "xata_updatedat", 1334 - "type": "timestamp", 1335 - "primaryKey": false, 1336 - "notNull": true, 1337 - "default": "now()" 1338 - } 1339 - }, 1340 - "indexes": {}, 1341 - "foreignKeys": { 1342 - "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk": { 1343 - "name": "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk", 1344 - "tableFrom": "google_drive", 1345 - "tableTo": "google_drive_tokens", 1346 - "columnsFrom": [ 1347 - "google_drive_token_id" 1348 - ], 1349 - "columnsTo": [ 1350 - "xata_id" 1351 - ], 1352 - "onDelete": "no action", 1353 - "onUpdate": "no action" 1354 - }, 1355 - "google_drive_user_id_users_xata_id_fk": { 1356 - "name": "google_drive_user_id_users_xata_id_fk", 1357 - "tableFrom": "google_drive", 1358 - "tableTo": "users", 1359 - "columnsFrom": [ 1360 - "user_id" 1361 - ], 1362 - "columnsTo": [ 1363 - "xata_id" 1364 - ], 1365 - "onDelete": "no action", 1366 - "onUpdate": "no action" 1367 - } 1368 - }, 1369 - "compositePrimaryKeys": {}, 1370 - "uniqueConstraints": {}, 1371 - "policies": {}, 1372 - "checkConstraints": {}, 1373 - "isRLSEnabled": false 1374 - }, 1375 - "public.loved_tracks": { 1376 - "name": "loved_tracks", 1377 - "schema": "", 1378 - "columns": { 1379 - "xata_id": { 1380 - "name": "xata_id", 1381 - "type": "text", 1382 - "primaryKey": true, 1383 - "notNull": true 1384 - }, 1385 - "user_id": { 1386 - "name": "user_id", 1387 - "type": "text", 1388 - "primaryKey": false, 1389 - "notNull": true 1390 - }, 1391 - "track_id": { 1392 - "name": "track_id", 1393 - "type": "text", 1394 - "primaryKey": false, 1395 - "notNull": true 1396 - }, 1397 - "uri": { 1398 - "name": "uri", 1399 - "type": "text", 1400 - "primaryKey": false, 1401 - "notNull": false 1402 - }, 1403 - "xata_createdat": { 1404 - "name": "xata_createdat", 1405 - "type": "timestamp", 1406 - "primaryKey": false, 1407 - "notNull": true, 1408 - "default": "now()" 1409 - } 1410 - }, 1411 - "indexes": {}, 1412 - "foreignKeys": { 1413 - "loved_tracks_user_id_users_xata_id_fk": { 1414 - "name": "loved_tracks_user_id_users_xata_id_fk", 1415 - "tableFrom": "loved_tracks", 1416 - "tableTo": "users", 1417 - "columnsFrom": [ 1418 - "user_id" 1419 - ], 1420 - "columnsTo": [ 1421 - "xata_id" 1422 - ], 1423 - "onDelete": "no action", 1424 - "onUpdate": "no action" 1425 - }, 1426 - "loved_tracks_track_id_tracks_xata_id_fk": { 1427 - "name": "loved_tracks_track_id_tracks_xata_id_fk", 1428 - "tableFrom": "loved_tracks", 1429 - "tableTo": "tracks", 1430 - "columnsFrom": [ 1431 - "track_id" 1432 - ], 1433 - "columnsTo": [ 1434 - "xata_id" 1435 - ], 1436 - "onDelete": "no action", 1437 - "onUpdate": "no action" 1438 - } 1439 - }, 1440 - "compositePrimaryKeys": {}, 1441 - "uniqueConstraints": { 1442 - "loved_tracks_uri_unique": { 1443 - "name": "loved_tracks_uri_unique", 1444 - "nullsNotDistinct": false, 1445 - "columns": [ 1446 - "uri" 1447 - ] 1448 - } 1449 - }, 1450 - "policies": {}, 1451 - "checkConstraints": {}, 1452 - "isRLSEnabled": false 1453 - }, 1454 - "public.playlist_tracks": { 1455 - "name": "playlist_tracks", 1456 - "schema": "", 1457 - "columns": { 1458 - "xata_id": { 1459 - "name": "xata_id", 1460 - "type": "text", 1461 - "primaryKey": true, 1462 - "notNull": true 1463 - }, 1464 - "playlist_id": { 1465 - "name": "playlist_id", 1466 - "type": "text", 1467 - "primaryKey": false, 1468 - "notNull": true 1469 - }, 1470 - "track_id": { 1471 - "name": "track_id", 1472 - "type": "text", 1473 - "primaryKey": false, 1474 - "notNull": true 1475 - }, 1476 - "xata_createdat": { 1477 - "name": "xata_createdat", 1478 - "type": "timestamp", 1479 - "primaryKey": false, 1480 - "notNull": true, 1481 - "default": "now()" 1482 - } 1483 - }, 1484 - "indexes": {}, 1485 - "foreignKeys": { 1486 - "playlist_tracks_playlist_id_playlists_xata_id_fk": { 1487 - "name": "playlist_tracks_playlist_id_playlists_xata_id_fk", 1488 - "tableFrom": "playlist_tracks", 1489 - "tableTo": "playlists", 1490 - "columnsFrom": [ 1491 - "playlist_id" 1492 - ], 1493 - "columnsTo": [ 1494 - "xata_id" 1495 - ], 1496 - "onDelete": "no action", 1497 - "onUpdate": "no action" 1498 - }, 1499 - "playlist_tracks_track_id_tracks_xata_id_fk": { 1500 - "name": "playlist_tracks_track_id_tracks_xata_id_fk", 1501 - "tableFrom": "playlist_tracks", 1502 - "tableTo": "tracks", 1503 - "columnsFrom": [ 1504 - "track_id" 1505 - ], 1506 - "columnsTo": [ 1507 - "xata_id" 1508 - ], 1509 - "onDelete": "no action", 1510 - "onUpdate": "no action" 1511 - } 1512 - }, 1513 - "compositePrimaryKeys": {}, 1514 - "uniqueConstraints": {}, 1515 - "policies": {}, 1516 - "checkConstraints": {}, 1517 - "isRLSEnabled": false 1518 - }, 1519 - "public.playlists": { 1520 - "name": "playlists", 1521 - "schema": "", 1522 - "columns": { 1523 - "xata_id": { 1524 - "name": "xata_id", 1525 - "type": "text", 1526 - "primaryKey": true, 1527 - "notNull": true 1528 - }, 1529 - "name": { 1530 - "name": "name", 1531 - "type": "text", 1532 - "primaryKey": false, 1533 - "notNull": true 1534 - }, 1535 - "picture": { 1536 - "name": "picture", 1537 - "type": "text", 1538 - "primaryKey": false, 1539 - "notNull": false 1540 - }, 1541 - "description": { 1542 - "name": "description", 1543 - "type": "text", 1544 - "primaryKey": false, 1545 - "notNull": false 1546 - }, 1547 - "uri": { 1548 - "name": "uri", 1549 - "type": "text", 1550 - "primaryKey": false, 1551 - "notNull": false 1552 - }, 1553 - "spotify_link": { 1554 - "name": "spotify_link", 1555 - "type": "text", 1556 - "primaryKey": false, 1557 - "notNull": false 1558 - }, 1559 - "tidal_link": { 1560 - "name": "tidal_link", 1561 - "type": "text", 1562 - "primaryKey": false, 1563 - "notNull": false 1564 - }, 1565 - "apple_music_link": { 1566 - "name": "apple_music_link", 1567 - "type": "text", 1568 - "primaryKey": false, 1569 - "notNull": false 1570 - }, 1571 - "created_by": { 1572 - "name": "created_by", 1573 - "type": "text", 1574 - "primaryKey": false, 1575 - "notNull": true 1576 - }, 1577 - "xata_createdat": { 1578 - "name": "xata_createdat", 1579 - "type": "timestamp", 1580 - "primaryKey": false, 1581 - "notNull": true, 1582 - "default": "now()" 1583 - }, 1584 - "xata_updatedat": { 1585 - "name": "xata_updatedat", 1586 - "type": "timestamp", 1587 - "primaryKey": false, 1588 - "notNull": true, 1589 - "default": "now()" 1590 - } 1591 - }, 1592 - "indexes": {}, 1593 - "foreignKeys": { 1594 - "playlists_created_by_users_xata_id_fk": { 1595 - "name": "playlists_created_by_users_xata_id_fk", 1596 - "tableFrom": "playlists", 1597 - "tableTo": "users", 1598 - "columnsFrom": [ 1599 - "created_by" 1600 - ], 1601 - "columnsTo": [ 1602 - "xata_id" 1603 - ], 1604 - "onDelete": "no action", 1605 - "onUpdate": "no action" 1606 - } 1607 - }, 1608 - "compositePrimaryKeys": {}, 1609 - "uniqueConstraints": { 1610 - "playlists_uri_unique": { 1611 - "name": "playlists_uri_unique", 1612 - "nullsNotDistinct": false, 1613 - "columns": [ 1614 - "uri" 1615 - ] 1616 - } 1617 - }, 1618 - "policies": {}, 1619 - "checkConstraints": {}, 1620 - "isRLSEnabled": false 1621 - }, 1622 - "public.profile_shouts": { 1623 - "name": "profile_shouts", 1624 - "schema": "", 1625 - "columns": { 1626 - "xata_id": { 1627 - "name": "xata_id", 1628 - "type": "text", 1629 - "primaryKey": true, 1630 - "notNull": true 1631 - }, 1632 - "user_id": { 1633 - "name": "user_id", 1634 - "type": "text", 1635 - "primaryKey": false, 1636 - "notNull": true 1637 - }, 1638 - "shout_id": { 1639 - "name": "shout_id", 1640 - "type": "text", 1641 - "primaryKey": false, 1642 - "notNull": true 1643 - }, 1644 - "xata_createdat": { 1645 - "name": "xata_createdat", 1646 - "type": "timestamp", 1647 - "primaryKey": false, 1648 - "notNull": true, 1649 - "default": "now()" 1650 - } 1651 - }, 1652 - "indexes": {}, 1653 - "foreignKeys": { 1654 - "profile_shouts_user_id_users_xata_id_fk": { 1655 - "name": "profile_shouts_user_id_users_xata_id_fk", 1656 - "tableFrom": "profile_shouts", 1657 - "tableTo": "users", 1658 - "columnsFrom": [ 1659 - "user_id" 1660 - ], 1661 - "columnsTo": [ 1662 - "xata_id" 1663 - ], 1664 - "onDelete": "no action", 1665 - "onUpdate": "no action" 1666 - }, 1667 - "profile_shouts_shout_id_shouts_xata_id_fk": { 1668 - "name": "profile_shouts_shout_id_shouts_xata_id_fk", 1669 - "tableFrom": "profile_shouts", 1670 - "tableTo": "shouts", 1671 - "columnsFrom": [ 1672 - "shout_id" 1673 - ], 1674 - "columnsTo": [ 1675 - "xata_id" 1676 - ], 1677 - "onDelete": "no action", 1678 - "onUpdate": "no action" 1679 - } 1680 - }, 1681 - "compositePrimaryKeys": {}, 1682 - "uniqueConstraints": {}, 1683 - "policies": {}, 1684 - "checkConstraints": {}, 1685 - "isRLSEnabled": false 1686 - }, 1687 - "public.queue_tracks": { 1688 - "name": "queue_tracks", 1689 - "schema": "", 1690 - "columns": { 1691 - "xata_id": { 1692 - "name": "xata_id", 1693 - "type": "text", 1694 - "primaryKey": true, 1695 - "notNull": true 1696 - }, 1697 - "user_id": { 1698 - "name": "user_id", 1699 - "type": "text", 1700 - "primaryKey": false, 1701 - "notNull": true 1702 - }, 1703 - "track_id": { 1704 - "name": "track_id", 1705 - "type": "text", 1706 - "primaryKey": false, 1707 - "notNull": true 1708 - }, 1709 - "position": { 1710 - "name": "position", 1711 - "type": "integer", 1712 - "primaryKey": false, 1713 - "notNull": true 1714 - }, 1715 - "file_uri": { 1716 - "name": "file_uri", 1717 - "type": "text", 1718 - "primaryKey": false, 1719 - "notNull": true 1720 - }, 1721 - "xata_version": { 1722 - "name": "xata_version", 1723 - "type": "integer", 1724 - "primaryKey": false, 1725 - "notNull": true, 1726 - "default": 0 1727 - }, 1728 - "xata_createdat": { 1729 - "name": "xata_createdat", 1730 - "type": "timestamp", 1731 - "primaryKey": false, 1732 - "notNull": true, 1733 - "default": "now()" 1734 - }, 1735 - "xata_updatedat": { 1736 - "name": "xata_updatedat", 1737 - "type": "timestamp", 1738 - "primaryKey": false, 1739 - "notNull": true, 1740 - "default": "now()" 1741 - } 1742 - }, 1743 - "indexes": {}, 1744 - "foreignKeys": { 1745 - "queue_tracks_user_id_users_xata_id_fk": { 1746 - "name": "queue_tracks_user_id_users_xata_id_fk", 1747 - "tableFrom": "queue_tracks", 1748 - "tableTo": "users", 1749 - "columnsFrom": [ 1750 - "user_id" 1751 - ], 1752 - "columnsTo": [ 1753 - "xata_id" 1754 - ], 1755 - "onDelete": "no action", 1756 - "onUpdate": "no action" 1757 - }, 1758 - "queue_tracks_track_id_tracks_xata_id_fk": { 1759 - "name": "queue_tracks_track_id_tracks_xata_id_fk", 1760 - "tableFrom": "queue_tracks", 1761 - "tableTo": "tracks", 1762 - "columnsFrom": [ 1763 - "track_id" 1764 - ], 1765 - "columnsTo": [ 1766 - "xata_id" 1767 - ], 1768 - "onDelete": "no action", 1769 - "onUpdate": "no action" 1770 - } 1771 - }, 1772 - "compositePrimaryKeys": {}, 1773 - "uniqueConstraints": {}, 1774 - "policies": {}, 1775 - "checkConstraints": {}, 1776 - "isRLSEnabled": false 1777 - }, 1778 - "public.scrobbles": { 1779 - "name": "scrobbles", 1780 - "schema": "", 1781 - "columns": { 1782 - "xata_id": { 1783 - "name": "xata_id", 1784 - "type": "text", 1785 - "primaryKey": true, 1786 - "notNull": true 1787 - }, 1788 - "user_id": { 1789 - "name": "user_id", 1790 - "type": "text", 1791 - "primaryKey": false, 1792 - "notNull": false 1793 - }, 1794 - "track_id": { 1795 - "name": "track_id", 1796 - "type": "text", 1797 - "primaryKey": false, 1798 - "notNull": false 1799 - }, 1800 - "album_id": { 1801 - "name": "album_id", 1802 - "type": "text", 1803 - "primaryKey": false, 1804 - "notNull": false 1805 - }, 1806 - "artist_id": { 1807 - "name": "artist_id", 1808 - "type": "text", 1809 - "primaryKey": false, 1810 - "notNull": false 1811 - }, 1812 - "uri": { 1813 - "name": "uri", 1814 - "type": "text", 1815 - "primaryKey": false, 1816 - "notNull": false 1817 - }, 1818 - "xata_createdat": { 1819 - "name": "xata_createdat", 1820 - "type": "timestamp", 1821 - "primaryKey": false, 1822 - "notNull": true, 1823 - "default": "now()" 1824 - }, 1825 - "xata_updatedat": { 1826 - "name": "xata_updatedat", 1827 - "type": "timestamp", 1828 - "primaryKey": false, 1829 - "notNull": true, 1830 - "default": "now()" 1831 - }, 1832 - "xata_version": { 1833 - "name": "xata_version", 1834 - "type": "integer", 1835 - "primaryKey": false, 1836 - "notNull": false 1837 - }, 1838 - "timestamp": { 1839 - "name": "timestamp", 1840 - "type": "timestamp", 1841 - "primaryKey": false, 1842 - "notNull": true, 1843 - "default": "now()" 1844 - } 1845 - }, 1846 - "indexes": {}, 1847 - "foreignKeys": { 1848 - "scrobbles_user_id_users_xata_id_fk": { 1849 - "name": "scrobbles_user_id_users_xata_id_fk", 1850 - "tableFrom": "scrobbles", 1851 - "tableTo": "users", 1852 - "columnsFrom": [ 1853 - "user_id" 1854 - ], 1855 - "columnsTo": [ 1856 - "xata_id" 1857 - ], 1858 - "onDelete": "no action", 1859 - "onUpdate": "no action" 1860 - }, 1861 - "scrobbles_track_id_tracks_xata_id_fk": { 1862 - "name": "scrobbles_track_id_tracks_xata_id_fk", 1863 - "tableFrom": "scrobbles", 1864 - "tableTo": "tracks", 1865 - "columnsFrom": [ 1866 - "track_id" 1867 - ], 1868 - "columnsTo": [ 1869 - "xata_id" 1870 - ], 1871 - "onDelete": "no action", 1872 - "onUpdate": "no action" 1873 - }, 1874 - "scrobbles_album_id_albums_xata_id_fk": { 1875 - "name": "scrobbles_album_id_albums_xata_id_fk", 1876 - "tableFrom": "scrobbles", 1877 - "tableTo": "albums", 1878 - "columnsFrom": [ 1879 - "album_id" 1880 - ], 1881 - "columnsTo": [ 1882 - "xata_id" 1883 - ], 1884 - "onDelete": "no action", 1885 - "onUpdate": "no action" 1886 - }, 1887 - "scrobbles_artist_id_artists_xata_id_fk": { 1888 - "name": "scrobbles_artist_id_artists_xata_id_fk", 1889 - "tableFrom": "scrobbles", 1890 - "tableTo": "artists", 1891 - "columnsFrom": [ 1892 - "artist_id" 1893 - ], 1894 - "columnsTo": [ 1895 - "xata_id" 1896 - ], 1897 - "onDelete": "no action", 1898 - "onUpdate": "no action" 1899 - } 1900 - }, 1901 - "compositePrimaryKeys": {}, 1902 - "uniqueConstraints": { 1903 - "scrobbles_uri_unique": { 1904 - "name": "scrobbles_uri_unique", 1905 - "nullsNotDistinct": false, 1906 - "columns": [ 1907 - "uri" 1908 - ] 1909 - } 1910 - }, 1911 - "policies": {}, 1912 - "checkConstraints": {}, 1913 - "isRLSEnabled": false 1914 - }, 1915 - "public.shout_likes": { 1916 - "name": "shout_likes", 1917 - "schema": "", 1918 - "columns": { 1919 - "xata_id": { 1920 - "name": "xata_id", 1921 - "type": "text", 1922 - "primaryKey": true, 1923 - "notNull": true 1924 - }, 1925 - "user_id": { 1926 - "name": "user_id", 1927 - "type": "text", 1928 - "primaryKey": false, 1929 - "notNull": true 1930 - }, 1931 - "shout_id": { 1932 - "name": "shout_id", 1933 - "type": "text", 1934 - "primaryKey": false, 1935 - "notNull": true 1936 - }, 1937 - "xata_createdat": { 1938 - "name": "xata_createdat", 1939 - "type": "timestamp", 1940 - "primaryKey": false, 1941 - "notNull": true, 1942 - "default": "now()" 1943 - }, 1944 - "uri": { 1945 - "name": "uri", 1946 - "type": "text", 1947 - "primaryKey": false, 1948 - "notNull": true 1949 - } 1950 - }, 1951 - "indexes": {}, 1952 - "foreignKeys": { 1953 - "shout_likes_user_id_users_xata_id_fk": { 1954 - "name": "shout_likes_user_id_users_xata_id_fk", 1955 - "tableFrom": "shout_likes", 1956 - "tableTo": "users", 1957 - "columnsFrom": [ 1958 - "user_id" 1959 - ], 1960 - "columnsTo": [ 1961 - "xata_id" 1962 - ], 1963 - "onDelete": "no action", 1964 - "onUpdate": "no action" 1965 - }, 1966 - "shout_likes_shout_id_shouts_xata_id_fk": { 1967 - "name": "shout_likes_shout_id_shouts_xata_id_fk", 1968 - "tableFrom": "shout_likes", 1969 - "tableTo": "shouts", 1970 - "columnsFrom": [ 1971 - "shout_id" 1972 - ], 1973 - "columnsTo": [ 1974 - "xata_id" 1975 - ], 1976 - "onDelete": "no action", 1977 - "onUpdate": "no action" 1978 - } 1979 - }, 1980 - "compositePrimaryKeys": {}, 1981 - "uniqueConstraints": { 1982 - "shout_likes_uri_unique": { 1983 - "name": "shout_likes_uri_unique", 1984 - "nullsNotDistinct": false, 1985 - "columns": [ 1986 - "uri" 1987 - ] 1988 - } 1989 - }, 1990 - "policies": {}, 1991 - "checkConstraints": {}, 1992 - "isRLSEnabled": false 1993 - }, 1994 - "public.shout_reports": { 1995 - "name": "shout_reports", 1996 - "schema": "", 1997 - "columns": { 1998 - "xata_id": { 1999 - "name": "xata_id", 2000 - "type": "text", 2001 - "primaryKey": true, 2002 - "notNull": true 2003 - }, 2004 - "user_id": { 2005 - "name": "user_id", 2006 - "type": "text", 2007 - "primaryKey": false, 2008 - "notNull": true 2009 - }, 2010 - "shout_id": { 2011 - "name": "shout_id", 2012 - "type": "text", 2013 - "primaryKey": false, 2014 - "notNull": true 2015 - }, 2016 - "xata_createdat": { 2017 - "name": "xata_createdat", 2018 - "type": "timestamp", 2019 - "primaryKey": false, 2020 - "notNull": true, 2021 - "default": "now()" 2022 - } 2023 - }, 2024 - "indexes": {}, 2025 - "foreignKeys": { 2026 - "shout_reports_user_id_users_xata_id_fk": { 2027 - "name": "shout_reports_user_id_users_xata_id_fk", 2028 - "tableFrom": "shout_reports", 2029 - "tableTo": "users", 2030 - "columnsFrom": [ 2031 - "user_id" 2032 - ], 2033 - "columnsTo": [ 2034 - "xata_id" 2035 - ], 2036 - "onDelete": "no action", 2037 - "onUpdate": "no action" 2038 - }, 2039 - "shout_reports_shout_id_shouts_xata_id_fk": { 2040 - "name": "shout_reports_shout_id_shouts_xata_id_fk", 2041 - "tableFrom": "shout_reports", 2042 - "tableTo": "shouts", 2043 - "columnsFrom": [ 2044 - "shout_id" 2045 - ], 2046 - "columnsTo": [ 2047 - "xata_id" 2048 - ], 2049 - "onDelete": "no action", 2050 - "onUpdate": "no action" 2051 - } 2052 - }, 2053 - "compositePrimaryKeys": {}, 2054 - "uniqueConstraints": {}, 2055 - "policies": {}, 2056 - "checkConstraints": {}, 2057 - "isRLSEnabled": false 2058 - }, 2059 - "public.shouts": { 2060 - "name": "shouts", 2061 - "schema": "", 2062 - "columns": { 2063 - "xata_id": { 2064 - "name": "xata_id", 2065 - "type": "text", 2066 - "primaryKey": true, 2067 - "notNull": true 2068 - }, 2069 - "content": { 2070 - "name": "content", 2071 - "type": "text", 2072 - "primaryKey": false, 2073 - "notNull": true 2074 - }, 2075 - "track_id": { 2076 - "name": "track_id", 2077 - "type": "text", 2078 - "primaryKey": false, 2079 - "notNull": false 2080 - }, 2081 - "artist_id": { 2082 - "name": "artist_id", 2083 - "type": "text", 2084 - "primaryKey": false, 2085 - "notNull": false 2086 - }, 2087 - "album_id": { 2088 - "name": "album_id", 2089 - "type": "text", 2090 - "primaryKey": false, 2091 - "notNull": false 2092 - }, 2093 - "scrobble_id": { 2094 - "name": "scrobble_id", 2095 - "type": "text", 2096 - "primaryKey": false, 2097 - "notNull": false 2098 - }, 2099 - "uri": { 2100 - "name": "uri", 2101 - "type": "text", 2102 - "primaryKey": false, 2103 - "notNull": true 2104 - }, 2105 - "author_id": { 2106 - "name": "author_id", 2107 - "type": "text", 2108 - "primaryKey": false, 2109 - "notNull": true 2110 - }, 2111 - "parent_id": { 2112 - "name": "parent_id", 2113 - "type": "text", 2114 - "primaryKey": false, 2115 - "notNull": false 2116 - }, 2117 - "xata_createdat": { 2118 - "name": "xata_createdat", 2119 - "type": "timestamp", 2120 - "primaryKey": false, 2121 - "notNull": true, 2122 - "default": "now()" 2123 - }, 2124 - "xata_updatedat": { 2125 - "name": "xata_updatedat", 2126 - "type": "timestamp", 2127 - "primaryKey": false, 2128 - "notNull": true, 2129 - "default": "now()" 2130 - } 2131 - }, 2132 - "indexes": {}, 2133 - "foreignKeys": { 2134 - "shouts_track_id_tracks_xata_id_fk": { 2135 - "name": "shouts_track_id_tracks_xata_id_fk", 2136 - "tableFrom": "shouts", 2137 - "tableTo": "tracks", 2138 - "columnsFrom": [ 2139 - "track_id" 2140 - ], 2141 - "columnsTo": [ 2142 - "xata_id" 2143 - ], 2144 - "onDelete": "no action", 2145 - "onUpdate": "no action" 2146 - }, 2147 - "shouts_artist_id_users_xata_id_fk": { 2148 - "name": "shouts_artist_id_users_xata_id_fk", 2149 - "tableFrom": "shouts", 2150 - "tableTo": "users", 2151 - "columnsFrom": [ 2152 - "artist_id" 2153 - ], 2154 - "columnsTo": [ 2155 - "xata_id" 2156 - ], 2157 - "onDelete": "no action", 2158 - "onUpdate": "no action" 2159 - }, 2160 - "shouts_album_id_albums_xata_id_fk": { 2161 - "name": "shouts_album_id_albums_xata_id_fk", 2162 - "tableFrom": "shouts", 2163 - "tableTo": "albums", 2164 - "columnsFrom": [ 2165 - "album_id" 2166 - ], 2167 - "columnsTo": [ 2168 - "xata_id" 2169 - ], 2170 - "onDelete": "no action", 2171 - "onUpdate": "no action" 2172 - }, 2173 - "shouts_scrobble_id_scrobbles_xata_id_fk": { 2174 - "name": "shouts_scrobble_id_scrobbles_xata_id_fk", 2175 - "tableFrom": "shouts", 2176 - "tableTo": "scrobbles", 2177 - "columnsFrom": [ 2178 - "scrobble_id" 2179 - ], 2180 - "columnsTo": [ 2181 - "xata_id" 2182 - ], 2183 - "onDelete": "no action", 2184 - "onUpdate": "no action" 2185 - }, 2186 - "shouts_author_id_users_xata_id_fk": { 2187 - "name": "shouts_author_id_users_xata_id_fk", 2188 - "tableFrom": "shouts", 2189 - "tableTo": "users", 2190 - "columnsFrom": [ 2191 - "author_id" 2192 - ], 2193 - "columnsTo": [ 2194 - "xata_id" 2195 - ], 2196 - "onDelete": "no action", 2197 - "onUpdate": "no action" 2198 - }, 2199 - "shouts_parent_id_shouts_xata_id_fk": { 2200 - "name": "shouts_parent_id_shouts_xata_id_fk", 2201 - "tableFrom": "shouts", 2202 - "tableTo": "shouts", 2203 - "columnsFrom": [ 2204 - "parent_id" 2205 - ], 2206 - "columnsTo": [ 2207 - "xata_id" 2208 - ], 2209 - "onDelete": "no action", 2210 - "onUpdate": "no action" 2211 - } 2212 - }, 2213 - "compositePrimaryKeys": {}, 2214 - "uniqueConstraints": { 2215 - "shouts_uri_unique": { 2216 - "name": "shouts_uri_unique", 2217 - "nullsNotDistinct": false, 2218 - "columns": [ 2219 - "uri" 2220 - ] 2221 - } 2222 - }, 2223 - "policies": {}, 2224 - "checkConstraints": {}, 2225 - "isRLSEnabled": false 2226 - }, 2227 - "public.spotify_accounts": { 2228 - "name": "spotify_accounts", 2229 - "schema": "", 2230 - "columns": { 2231 - "xata_id": { 2232 - "name": "xata_id", 2233 - "type": "text", 2234 - "primaryKey": true, 2235 - "notNull": true 2236 - }, 2237 - "xata_version": { 2238 - "name": "xata_version", 2239 - "type": "integer", 2240 - "primaryKey": false, 2241 - "notNull": false 2242 - }, 2243 - "email": { 2244 - "name": "email", 2245 - "type": "text", 2246 - "primaryKey": false, 2247 - "notNull": true 2248 - }, 2249 - "user_id": { 2250 - "name": "user_id", 2251 - "type": "text", 2252 - "primaryKey": false, 2253 - "notNull": true 2254 - }, 2255 - "is_beta_user": { 2256 - "name": "is_beta_user", 2257 - "type": "boolean", 2258 - "primaryKey": false, 2259 - "notNull": true, 2260 - "default": false 2261 - }, 2262 - "xata_createdat": { 2263 - "name": "xata_createdat", 2264 - "type": "timestamp", 2265 - "primaryKey": false, 2266 - "notNull": true, 2267 - "default": "now()" 2268 - }, 2269 - "xata_updatedat": { 2270 - "name": "xata_updatedat", 2271 - "type": "timestamp", 2272 - "primaryKey": false, 2273 - "notNull": true, 2274 - "default": "now()" 2275 - } 2276 - }, 2277 - "indexes": {}, 2278 - "foreignKeys": { 2279 - "spotify_accounts_user_id_users_xata_id_fk": { 2280 - "name": "spotify_accounts_user_id_users_xata_id_fk", 2281 - "tableFrom": "spotify_accounts", 2282 - "tableTo": "users", 2283 - "columnsFrom": [ 2284 - "user_id" 2285 - ], 2286 - "columnsTo": [ 2287 - "xata_id" 2288 - ], 2289 - "onDelete": "no action", 2290 - "onUpdate": "no action" 2291 - } 2292 - }, 2293 - "compositePrimaryKeys": {}, 2294 - "uniqueConstraints": {}, 2295 - "policies": {}, 2296 - "checkConstraints": {}, 2297 - "isRLSEnabled": false 2298 - }, 2299 - "public.spotify_tokens": { 2300 - "name": "spotify_tokens", 2301 - "schema": "", 2302 - "columns": { 2303 - "xata_id": { 2304 - "name": "xata_id", 2305 - "type": "text", 2306 - "primaryKey": true, 2307 - "notNull": true 2308 - }, 2309 - "xata_version": { 2310 - "name": "xata_version", 2311 - "type": "integer", 2312 - "primaryKey": false, 2313 - "notNull": false 2314 - }, 2315 - "access_token": { 2316 - "name": "access_token", 2317 - "type": "text", 2318 - "primaryKey": false, 2319 - "notNull": true 2320 - }, 2321 - "refresh_token": { 2322 - "name": "refresh_token", 2323 - "type": "text", 2324 - "primaryKey": false, 2325 - "notNull": true 2326 - }, 2327 - "user_id": { 2328 - "name": "user_id", 2329 - "type": "text", 2330 - "primaryKey": false, 2331 - "notNull": true 2332 - }, 2333 - "xata_createdat": { 2334 - "name": "xata_createdat", 2335 - "type": "timestamp", 2336 - "primaryKey": false, 2337 - "notNull": true, 2338 - "default": "now()" 2339 - }, 2340 - "xata_updatedat": { 2341 - "name": "xata_updatedat", 2342 - "type": "timestamp", 2343 - "primaryKey": false, 2344 - "notNull": true, 2345 - "default": "now()" 2346 - } 2347 - }, 2348 - "indexes": {}, 2349 - "foreignKeys": { 2350 - "spotify_tokens_user_id_users_xata_id_fk": { 2351 - "name": "spotify_tokens_user_id_users_xata_id_fk", 2352 - "tableFrom": "spotify_tokens", 2353 - "tableTo": "users", 2354 - "columnsFrom": [ 2355 - "user_id" 2356 - ], 2357 - "columnsTo": [ 2358 - "xata_id" 2359 - ], 2360 - "onDelete": "no action", 2361 - "onUpdate": "no action" 2362 - } 2363 - }, 2364 - "compositePrimaryKeys": {}, 2365 - "uniqueConstraints": {}, 2366 - "policies": {}, 2367 - "checkConstraints": {}, 2368 - "isRLSEnabled": false 2369 - }, 2370 - "public.tracks": { 2371 - "name": "tracks", 2372 - "schema": "", 2373 - "columns": { 2374 - "xata_id": { 2375 - "name": "xata_id", 2376 - "type": "text", 2377 - "primaryKey": true, 2378 - "notNull": true 2379 - }, 2380 - "title": { 2381 - "name": "title", 2382 - "type": "text", 2383 - "primaryKey": false, 2384 - "notNull": true 2385 - }, 2386 - "artist": { 2387 - "name": "artist", 2388 - "type": "text", 2389 - "primaryKey": false, 2390 - "notNull": true 2391 - }, 2392 - "album_artist": { 2393 - "name": "album_artist", 2394 - "type": "text", 2395 - "primaryKey": false, 2396 - "notNull": true 2397 - }, 2398 - "album_art": { 2399 - "name": "album_art", 2400 - "type": "text", 2401 - "primaryKey": false, 2402 - "notNull": false 2403 - }, 2404 - "album": { 2405 - "name": "album", 2406 - "type": "text", 2407 - "primaryKey": false, 2408 - "notNull": true 2409 - }, 2410 - "track_number": { 2411 - "name": "track_number", 2412 - "type": "integer", 2413 - "primaryKey": false, 2414 - "notNull": false 2415 - }, 2416 - "duration": { 2417 - "name": "duration", 2418 - "type": "integer", 2419 - "primaryKey": false, 2420 - "notNull": true 2421 - }, 2422 - "mb_id": { 2423 - "name": "mb_id", 2424 - "type": "text", 2425 - "primaryKey": false, 2426 - "notNull": false 2427 - }, 2428 - "youtube_link": { 2429 - "name": "youtube_link", 2430 - "type": "text", 2431 - "primaryKey": false, 2432 - "notNull": false 2433 - }, 2434 - "spotify_link": { 2435 - "name": "spotify_link", 2436 - "type": "text", 2437 - "primaryKey": false, 2438 - "notNull": false 2439 - }, 2440 - "apple_music_link": { 2441 - "name": "apple_music_link", 2442 - "type": "text", 2443 - "primaryKey": false, 2444 - "notNull": false 2445 - }, 2446 - "tidal_link": { 2447 - "name": "tidal_link", 2448 - "type": "text", 2449 - "primaryKey": false, 2450 - "notNull": false 2451 - }, 2452 - "sha256": { 2453 - "name": "sha256", 2454 - "type": "text", 2455 - "primaryKey": false, 2456 - "notNull": true 2457 - }, 2458 - "disc_number": { 2459 - "name": "disc_number", 2460 - "type": "integer", 2461 - "primaryKey": false, 2462 - "notNull": false 2463 - }, 2464 - "lyrics": { 2465 - "name": "lyrics", 2466 - "type": "text", 2467 - "primaryKey": false, 2468 - "notNull": false 2469 - }, 2470 - "composer": { 2471 - "name": "composer", 2472 - "type": "text", 2473 - "primaryKey": false, 2474 - "notNull": false 2475 - }, 2476 - "genre": { 2477 - "name": "genre", 2478 - "type": "text", 2479 - "primaryKey": false, 2480 - "notNull": false 2481 - }, 2482 - "label": { 2483 - "name": "label", 2484 - "type": "text", 2485 - "primaryKey": false, 2486 - "notNull": false 2487 - }, 2488 - "copyright_message": { 2489 - "name": "copyright_message", 2490 - "type": "text", 2491 - "primaryKey": false, 2492 - "notNull": false 2493 - }, 2494 - "uri": { 2495 - "name": "uri", 2496 - "type": "text", 2497 - "primaryKey": false, 2498 - "notNull": false 2499 - }, 2500 - "album_uri": { 2501 - "name": "album_uri", 2502 - "type": "text", 2503 - "primaryKey": false, 2504 - "notNull": false 2505 - }, 2506 - "artist_uri": { 2507 - "name": "artist_uri", 2508 - "type": "text", 2509 - "primaryKey": false, 2510 - "notNull": false 2511 - }, 2512 - "xata_createdat": { 2513 - "name": "xata_createdat", 2514 - "type": "timestamp", 2515 - "primaryKey": false, 2516 - "notNull": true, 2517 - "default": "now()" 2518 - }, 2519 - "xata_updatedat": { 2520 - "name": "xata_updatedat", 2521 - "type": "timestamp", 2522 - "primaryKey": false, 2523 - "notNull": true, 2524 - "default": "now()" 2525 - }, 2526 - "xata_version": { 2527 - "name": "xata_version", 2528 - "type": "integer", 2529 - "primaryKey": false, 2530 - "notNull": false 2531 - } 2532 - }, 2533 - "indexes": {}, 2534 - "foreignKeys": {}, 2535 - "compositePrimaryKeys": {}, 2536 - "uniqueConstraints": { 2537 - "tracks_mb_id_unique": { 2538 - "name": "tracks_mb_id_unique", 2539 - "nullsNotDistinct": false, 2540 - "columns": [ 2541 - "mb_id" 2542 - ] 2543 - }, 2544 - "tracks_youtube_link_unique": { 2545 - "name": "tracks_youtube_link_unique", 2546 - "nullsNotDistinct": false, 2547 - "columns": [ 2548 - "youtube_link" 2549 - ] 2550 - }, 2551 - "tracks_spotify_link_unique": { 2552 - "name": "tracks_spotify_link_unique", 2553 - "nullsNotDistinct": false, 2554 - "columns": [ 2555 - "spotify_link" 2556 - ] 2557 - }, 2558 - "tracks_apple_music_link_unique": { 2559 - "name": "tracks_apple_music_link_unique", 2560 - "nullsNotDistinct": false, 2561 - "columns": [ 2562 - "apple_music_link" 2563 - ] 2564 - }, 2565 - "tracks_tidal_link_unique": { 2566 - "name": "tracks_tidal_link_unique", 2567 - "nullsNotDistinct": false, 2568 - "columns": [ 2569 - "tidal_link" 2570 - ] 2571 - }, 2572 - "tracks_sha256_unique": { 2573 - "name": "tracks_sha256_unique", 2574 - "nullsNotDistinct": false, 2575 - "columns": [ 2576 - "sha256" 2577 - ] 2578 - }, 2579 - "tracks_uri_unique": { 2580 - "name": "tracks_uri_unique", 2581 - "nullsNotDistinct": false, 2582 - "columns": [ 2583 - "uri" 2584 - ] 2585 - } 2586 - }, 2587 - "policies": {}, 2588 - "checkConstraints": {}, 2589 - "isRLSEnabled": false 2590 - }, 2591 - "public.user_albums": { 2592 - "name": "user_albums", 2593 - "schema": "", 2594 - "columns": { 2595 - "xata_id": { 2596 - "name": "xata_id", 2597 - "type": "text", 2598 - "primaryKey": true, 2599 - "notNull": true 2600 - }, 2601 - "user_id": { 2602 - "name": "user_id", 2603 - "type": "text", 2604 - "primaryKey": false, 2605 - "notNull": true 2606 - }, 2607 - "album_id": { 2608 - "name": "album_id", 2609 - "type": "text", 2610 - "primaryKey": false, 2611 - "notNull": true 2612 - }, 2613 - "xata_createdat": { 2614 - "name": "xata_createdat", 2615 - "type": "timestamp", 2616 - "primaryKey": false, 2617 - "notNull": true, 2618 - "default": "now()" 2619 - }, 2620 - "xata_updatedat": { 2621 - "name": "xata_updatedat", 2622 - "type": "timestamp", 2623 - "primaryKey": false, 2624 - "notNull": true, 2625 - "default": "now()" 2626 - }, 2627 - "xata_version": { 2628 - "name": "xata_version", 2629 - "type": "integer", 2630 - "primaryKey": false, 2631 - "notNull": false 2632 - }, 2633 - "scrobbles": { 2634 - "name": "scrobbles", 2635 - "type": "integer", 2636 - "primaryKey": false, 2637 - "notNull": false 2638 - }, 2639 - "uri": { 2640 - "name": "uri", 2641 - "type": "text", 2642 - "primaryKey": false, 2643 - "notNull": true 2644 - } 2645 - }, 2646 - "indexes": {}, 2647 - "foreignKeys": { 2648 - "user_albums_user_id_users_xata_id_fk": { 2649 - "name": "user_albums_user_id_users_xata_id_fk", 2650 - "tableFrom": "user_albums", 2651 - "tableTo": "users", 2652 - "columnsFrom": [ 2653 - "user_id" 2654 - ], 2655 - "columnsTo": [ 2656 - "xata_id" 2657 - ], 2658 - "onDelete": "no action", 2659 - "onUpdate": "no action" 2660 - }, 2661 - "user_albums_album_id_albums_xata_id_fk": { 2662 - "name": "user_albums_album_id_albums_xata_id_fk", 2663 - "tableFrom": "user_albums", 2664 - "tableTo": "albums", 2665 - "columnsFrom": [ 2666 - "album_id" 2667 - ], 2668 - "columnsTo": [ 2669 - "xata_id" 2670 - ], 2671 - "onDelete": "no action", 2672 - "onUpdate": "no action" 2673 - } 2674 - }, 2675 - "compositePrimaryKeys": {}, 2676 - "uniqueConstraints": { 2677 - "user_albums_uri_unique": { 2678 - "name": "user_albums_uri_unique", 2679 - "nullsNotDistinct": false, 2680 - "columns": [ 2681 - "uri" 2682 - ] 2683 - } 2684 - }, 2685 - "policies": {}, 2686 - "checkConstraints": {}, 2687 - "isRLSEnabled": false 2688 - }, 2689 - "public.user_artists": { 2690 - "name": "user_artists", 2691 - "schema": "", 2692 - "columns": { 2693 - "xata_id": { 2694 - "name": "xata_id", 2695 - "type": "text", 2696 - "primaryKey": true, 2697 - "notNull": true 2698 - }, 2699 - "user_id": { 2700 - "name": "user_id", 2701 - "type": "text", 2702 - "primaryKey": false, 2703 - "notNull": true 2704 - }, 2705 - "artist_id": { 2706 - "name": "artist_id", 2707 - "type": "text", 2708 - "primaryKey": false, 2709 - "notNull": true 2710 - }, 2711 - "xata_createdat": { 2712 - "name": "xata_createdat", 2713 - "type": "timestamp", 2714 - "primaryKey": false, 2715 - "notNull": true, 2716 - "default": "now()" 2717 - }, 2718 - "xata_updatedat": { 2719 - "name": "xata_updatedat", 2720 - "type": "timestamp", 2721 - "primaryKey": false, 2722 - "notNull": true, 2723 - "default": "now()" 2724 - }, 2725 - "xata_version": { 2726 - "name": "xata_version", 2727 - "type": "integer", 2728 - "primaryKey": false, 2729 - "notNull": false 2730 - }, 2731 - "scrobbles": { 2732 - "name": "scrobbles", 2733 - "type": "integer", 2734 - "primaryKey": false, 2735 - "notNull": false 2736 - }, 2737 - "uri": { 2738 - "name": "uri", 2739 - "type": "text", 2740 - "primaryKey": false, 2741 - "notNull": true 2742 - } 2743 - }, 2744 - "indexes": {}, 2745 - "foreignKeys": { 2746 - "user_artists_user_id_users_xata_id_fk": { 2747 - "name": "user_artists_user_id_users_xata_id_fk", 2748 - "tableFrom": "user_artists", 2749 - "tableTo": "users", 2750 - "columnsFrom": [ 2751 - "user_id" 2752 - ], 2753 - "columnsTo": [ 2754 - "xata_id" 2755 - ], 2756 - "onDelete": "no action", 2757 - "onUpdate": "no action" 2758 - }, 2759 - "user_artists_artist_id_artists_xata_id_fk": { 2760 - "name": "user_artists_artist_id_artists_xata_id_fk", 2761 - "tableFrom": "user_artists", 2762 - "tableTo": "artists", 2763 - "columnsFrom": [ 2764 - "artist_id" 2765 - ], 2766 - "columnsTo": [ 2767 - "xata_id" 2768 - ], 2769 - "onDelete": "no action", 2770 - "onUpdate": "no action" 2771 - } 2772 - }, 2773 - "compositePrimaryKeys": {}, 2774 - "uniqueConstraints": { 2775 - "user_artists_uri_unique": { 2776 - "name": "user_artists_uri_unique", 2777 - "nullsNotDistinct": false, 2778 - "columns": [ 2779 - "uri" 2780 - ] 2781 - } 2782 - }, 2783 - "policies": {}, 2784 - "checkConstraints": {}, 2785 - "isRLSEnabled": false 2786 - }, 2787 - "public.user_playlists": { 2788 - "name": "user_playlists", 2789 - "schema": "", 2790 - "columns": { 2791 - "xata_id": { 2792 - "name": "xata_id", 2793 - "type": "text", 2794 - "primaryKey": true, 2795 - "notNull": true 2796 - }, 2797 - "user_id": { 2798 - "name": "user_id", 2799 - "type": "text", 2800 - "primaryKey": false, 2801 - "notNull": true 2802 - }, 2803 - "playlist_id": { 2804 - "name": "playlist_id", 2805 - "type": "text", 2806 - "primaryKey": false, 2807 - "notNull": true 2808 - }, 2809 - "xata_createdat": { 2810 - "name": "xata_createdat", 2811 - "type": "timestamp", 2812 - "primaryKey": false, 2813 - "notNull": true, 2814 - "default": "now()" 2815 - }, 2816 - "uri": { 2817 - "name": "uri", 2818 - "type": "text", 2819 - "primaryKey": false, 2820 - "notNull": false 2821 - } 2822 - }, 2823 - "indexes": {}, 2824 - "foreignKeys": { 2825 - "user_playlists_user_id_users_xata_id_fk": { 2826 - "name": "user_playlists_user_id_users_xata_id_fk", 2827 - "tableFrom": "user_playlists", 2828 - "tableTo": "users", 2829 - "columnsFrom": [ 2830 - "user_id" 2831 - ], 2832 - "columnsTo": [ 2833 - "xata_id" 2834 - ], 2835 - "onDelete": "no action", 2836 - "onUpdate": "no action" 2837 - }, 2838 - "user_playlists_playlist_id_playlists_xata_id_fk": { 2839 - "name": "user_playlists_playlist_id_playlists_xata_id_fk", 2840 - "tableFrom": "user_playlists", 2841 - "tableTo": "playlists", 2842 - "columnsFrom": [ 2843 - "playlist_id" 2844 - ], 2845 - "columnsTo": [ 2846 - "xata_id" 2847 - ], 2848 - "onDelete": "no action", 2849 - "onUpdate": "no action" 2850 - } 2851 - }, 2852 - "compositePrimaryKeys": {}, 2853 - "uniqueConstraints": { 2854 - "user_playlists_uri_unique": { 2855 - "name": "user_playlists_uri_unique", 2856 - "nullsNotDistinct": false, 2857 - "columns": [ 2858 - "uri" 2859 - ] 2860 - } 2861 - }, 2862 - "policies": {}, 2863 - "checkConstraints": {}, 2864 - "isRLSEnabled": false 2865 - }, 2866 - "public.user_tracks": { 2867 - "name": "user_tracks", 2868 - "schema": "", 2869 - "columns": { 2870 - "xata_id": { 2871 - "name": "xata_id", 2872 - "type": "text", 2873 - "primaryKey": true, 2874 - "notNull": true 2875 - }, 2876 - "user_id": { 2877 - "name": "user_id", 2878 - "type": "text", 2879 - "primaryKey": false, 2880 - "notNull": true 2881 - }, 2882 - "track_id": { 2883 - "name": "track_id", 2884 - "type": "text", 2885 - "primaryKey": false, 2886 - "notNull": true 2887 - }, 2888 - "xata_createdat": { 2889 - "name": "xata_createdat", 2890 - "type": "timestamp", 2891 - "primaryKey": false, 2892 - "notNull": true, 2893 - "default": "now()" 2894 - }, 2895 - "xata_updatedat": { 2896 - "name": "xata_updatedat", 2897 - "type": "timestamp", 2898 - "primaryKey": false, 2899 - "notNull": true, 2900 - "default": "now()" 2901 - }, 2902 - "xata_version": { 2903 - "name": "xata_version", 2904 - "type": "integer", 2905 - "primaryKey": false, 2906 - "notNull": false 2907 - }, 2908 - "uri": { 2909 - "name": "uri", 2910 - "type": "text", 2911 - "primaryKey": false, 2912 - "notNull": true 2913 - }, 2914 - "scrobbles": { 2915 - "name": "scrobbles", 2916 - "type": "integer", 2917 - "primaryKey": false, 2918 - "notNull": false 2919 - } 2920 - }, 2921 - "indexes": {}, 2922 - "foreignKeys": { 2923 - "user_tracks_user_id_users_xata_id_fk": { 2924 - "name": "user_tracks_user_id_users_xata_id_fk", 2925 - "tableFrom": "user_tracks", 2926 - "tableTo": "users", 2927 - "columnsFrom": [ 2928 - "user_id" 2929 - ], 2930 - "columnsTo": [ 2931 - "xata_id" 2932 - ], 2933 - "onDelete": "no action", 2934 - "onUpdate": "no action" 2935 - }, 2936 - "user_tracks_track_id_tracks_xata_id_fk": { 2937 - "name": "user_tracks_track_id_tracks_xata_id_fk", 2938 - "tableFrom": "user_tracks", 2939 - "tableTo": "tracks", 2940 - "columnsFrom": [ 2941 - "track_id" 2942 - ], 2943 - "columnsTo": [ 2944 - "xata_id" 2945 - ], 2946 - "onDelete": "no action", 2947 - "onUpdate": "no action" 2948 - } 2949 - }, 2950 - "compositePrimaryKeys": {}, 2951 - "uniqueConstraints": { 2952 - "user_tracks_uri_unique": { 2953 - "name": "user_tracks_uri_unique", 2954 - "nullsNotDistinct": false, 2955 - "columns": [ 2956 - "uri" 2957 - ] 2958 - } 2959 - }, 2960 - "policies": {}, 2961 - "checkConstraints": {}, 2962 - "isRLSEnabled": false 2963 - }, 2964 - "public.users": { 2965 - "name": "users", 2966 - "schema": "", 2967 - "columns": { 2968 - "xata_id": { 2969 - "name": "xata_id", 2970 - "type": "text", 2971 - "primaryKey": true, 2972 - "notNull": true 2973 - }, 2974 - "did": { 2975 - "name": "did", 2976 - "type": "text", 2977 - "primaryKey": false, 2978 - "notNull": true 2979 - }, 2980 - "display_name": { 2981 - "name": "display_name", 2982 - "type": "text", 2983 - "primaryKey": false, 2984 - "notNull": false 2985 - }, 2986 - "handle": { 2987 - "name": "handle", 2988 - "type": "text", 2989 - "primaryKey": false, 2990 - "notNull": true 2991 - }, 2992 - "avatar": { 2993 - "name": "avatar", 2994 - "type": "text", 2995 - "primaryKey": false, 2996 - "notNull": true 2997 - }, 2998 - "xata_createdat": { 2999 - "name": "xata_createdat", 3000 - "type": "timestamp", 3001 - "primaryKey": false, 3002 - "notNull": true, 3003 - "default": "now()" 3004 - }, 3005 - "xata_updatedat": { 3006 - "name": "xata_updatedat", 3007 - "type": "timestamp", 3008 - "primaryKey": false, 3009 - "notNull": true, 3010 - "default": "now()" 3011 - }, 3012 - "xata_version": { 3013 - "name": "xata_version", 3014 - "type": "integer", 3015 - "primaryKey": false, 3016 - "notNull": false 3017 - } 3018 - }, 3019 - "indexes": {}, 3020 - "foreignKeys": {}, 3021 - "compositePrimaryKeys": {}, 3022 - "uniqueConstraints": { 3023 - "users_did_unique": { 3024 - "name": "users_did_unique", 3025 - "nullsNotDistinct": false, 3026 - "columns": [ 3027 - "did" 3028 - ] 3029 - }, 3030 - "users_handle_unique": { 3031 - "name": "users_handle_unique", 3032 - "nullsNotDistinct": false, 3033 - "columns": [ 3034 - "handle" 3035 - ] 3036 - } 3037 - }, 3038 - "policies": {}, 3039 - "checkConstraints": {}, 3040 - "isRLSEnabled": false 3041 - }, 3042 - "public.webscrobblers": { 3043 - "name": "webscrobblers", 3044 - "schema": "", 3045 - "columns": { 3046 - "xata_id": { 3047 - "name": "xata_id", 3048 - "type": "text", 3049 - "primaryKey": true, 3050 - "notNull": true 3051 - }, 3052 - "name": { 3053 - "name": "name", 3054 - "type": "text", 3055 - "primaryKey": false, 3056 - "notNull": true 3057 - }, 3058 - "uuid": { 3059 - "name": "uuid", 3060 - "type": "text", 3061 - "primaryKey": false, 3062 - "notNull": true 3063 - }, 3064 - "description": { 3065 - "name": "description", 3066 - "type": "text", 3067 - "primaryKey": false, 3068 - "notNull": false 3069 - }, 3070 - "enabled": { 3071 - "name": "enabled", 3072 - "type": "boolean", 3073 - "primaryKey": false, 3074 - "notNull": true, 3075 - "default": true 3076 - }, 3077 - "user_id": { 3078 - "name": "user_id", 3079 - "type": "text", 3080 - "primaryKey": false, 3081 - "notNull": true 3082 - }, 3083 - "xata_createdat": { 3084 - "name": "xata_createdat", 3085 - "type": "timestamp", 3086 - "primaryKey": false, 3087 - "notNull": true, 3088 - "default": "now()" 3089 - }, 3090 - "xata_updatedat": { 3091 - "name": "xata_updatedat", 3092 - "type": "timestamp", 3093 - "primaryKey": false, 3094 - "notNull": true, 3095 - "default": "now()" 3096 - } 3097 - }, 3098 - "indexes": {}, 3099 - "foreignKeys": { 3100 - "webscrobblers_user_id_users_xata_id_fk": { 3101 - "name": "webscrobblers_user_id_users_xata_id_fk", 3102 - "tableFrom": "webscrobblers", 3103 - "tableTo": "users", 3104 - "columnsFrom": [ 3105 - "user_id" 3106 - ], 3107 - "columnsTo": [ 3108 - "xata_id" 3109 - ], 3110 - "onDelete": "no action", 3111 - "onUpdate": "no action" 3112 - } 3113 - }, 3114 - "compositePrimaryKeys": {}, 3115 - "uniqueConstraints": {}, 3116 - "policies": {}, 3117 - "checkConstraints": {}, 3118 - "isRLSEnabled": false 3119 - } 3120 - }, 3121 - "enums": {}, 3122 - "schemas": {}, 3123 - "sequences": {}, 3124 - "roles": {}, 3125 - "policies": {}, 3126 - "views": {}, 3127 - "_meta": { 3128 - "columns": {}, 3129 - "schemas": {}, 3130 - "tables": {} 3131 - } 3132 - }
-3166
apps/api/drizzle/meta/0003_snapshot.json
··· 1 - { 2 - "id": "015093fe-a66e-4ec3-b5b6-5466c6266a39", 3 - "prevId": "3ef49661-fdf0-4245-8943-ff69567a09b9", 4 - "version": "7", 5 - "dialect": "postgresql", 6 - "tables": { 7 - "public.album_tracks": { 8 - "name": "album_tracks", 9 - "schema": "", 10 - "columns": { 11 - "xata_id": { 12 - "name": "xata_id", 13 - "type": "text", 14 - "primaryKey": true, 15 - "notNull": true, 16 - "default": "xata_id()" 17 - }, 18 - "album_id": { 19 - "name": "album_id", 20 - "type": "text", 21 - "primaryKey": false, 22 - "notNull": true 23 - }, 24 - "track_id": { 25 - "name": "track_id", 26 - "type": "text", 27 - "primaryKey": false, 28 - "notNull": true 29 - }, 30 - "xata_createdat": { 31 - "name": "xata_createdat", 32 - "type": "timestamp", 33 - "primaryKey": false, 34 - "notNull": true, 35 - "default": "now()" 36 - }, 37 - "xata_updatedat": { 38 - "name": "xata_updatedat", 39 - "type": "timestamp", 40 - "primaryKey": false, 41 - "notNull": true, 42 - "default": "now()" 43 - }, 44 - "xata_version": { 45 - "name": "xata_version", 46 - "type": "integer", 47 - "primaryKey": false, 48 - "notNull": false 49 - } 50 - }, 51 - "indexes": {}, 52 - "foreignKeys": { 53 - "album_tracks_album_id_albums_xata_id_fk": { 54 - "name": "album_tracks_album_id_albums_xata_id_fk", 55 - "tableFrom": "album_tracks", 56 - "tableTo": "albums", 57 - "columnsFrom": [ 58 - "album_id" 59 - ], 60 - "columnsTo": [ 61 - "xata_id" 62 - ], 63 - "onDelete": "no action", 64 - "onUpdate": "no action" 65 - }, 66 - "album_tracks_track_id_tracks_xata_id_fk": { 67 - "name": "album_tracks_track_id_tracks_xata_id_fk", 68 - "tableFrom": "album_tracks", 69 - "tableTo": "tracks", 70 - "columnsFrom": [ 71 - "track_id" 72 - ], 73 - "columnsTo": [ 74 - "xata_id" 75 - ], 76 - "onDelete": "no action", 77 - "onUpdate": "no action" 78 - } 79 - }, 80 - "compositePrimaryKeys": {}, 81 - "uniqueConstraints": {}, 82 - "policies": {}, 83 - "checkConstraints": {}, 84 - "isRLSEnabled": false 85 - }, 86 - "public.albums": { 87 - "name": "albums", 88 - "schema": "", 89 - "columns": { 90 - "xata_id": { 91 - "name": "xata_id", 92 - "type": "text", 93 - "primaryKey": true, 94 - "notNull": true, 95 - "default": "xata_id()" 96 - }, 97 - "title": { 98 - "name": "title", 99 - "type": "text", 100 - "primaryKey": false, 101 - "notNull": true 102 - }, 103 - "artist": { 104 - "name": "artist", 105 - "type": "text", 106 - "primaryKey": false, 107 - "notNull": true 108 - }, 109 - "release_date": { 110 - "name": "release_date", 111 - "type": "text", 112 - "primaryKey": false, 113 - "notNull": false 114 - }, 115 - "year": { 116 - "name": "year", 117 - "type": "integer", 118 - "primaryKey": false, 119 - "notNull": false 120 - }, 121 - "album_art": { 122 - "name": "album_art", 123 - "type": "text", 124 - "primaryKey": false, 125 - "notNull": false 126 - }, 127 - "uri": { 128 - "name": "uri", 129 - "type": "text", 130 - "primaryKey": false, 131 - "notNull": false 132 - }, 133 - "artist_uri": { 134 - "name": "artist_uri", 135 - "type": "text", 136 - "primaryKey": false, 137 - "notNull": false 138 - }, 139 - "apple_music_link": { 140 - "name": "apple_music_link", 141 - "type": "text", 142 - "primaryKey": false, 143 - "notNull": false 144 - }, 145 - "spotify_link": { 146 - "name": "spotify_link", 147 - "type": "text", 148 - "primaryKey": false, 149 - "notNull": false 150 - }, 151 - "tidal_link": { 152 - "name": "tidal_link", 153 - "type": "text", 154 - "primaryKey": false, 155 - "notNull": false 156 - }, 157 - "youtube_link": { 158 - "name": "youtube_link", 159 - "type": "text", 160 - "primaryKey": false, 161 - "notNull": false 162 - }, 163 - "sha256": { 164 - "name": "sha256", 165 - "type": "text", 166 - "primaryKey": false, 167 - "notNull": true 168 - }, 169 - "xata_createdat": { 170 - "name": "xata_createdat", 171 - "type": "timestamp", 172 - "primaryKey": false, 173 - "notNull": true, 174 - "default": "now()" 175 - }, 176 - "xata_updatedat": { 177 - "name": "xata_updatedat", 178 - "type": "timestamp", 179 - "primaryKey": false, 180 - "notNull": true, 181 - "default": "now()" 182 - }, 183 - "xata_version": { 184 - "name": "xata_version", 185 - "type": "integer", 186 - "primaryKey": false, 187 - "notNull": false 188 - } 189 - }, 190 - "indexes": {}, 191 - "foreignKeys": {}, 192 - "compositePrimaryKeys": {}, 193 - "uniqueConstraints": { 194 - "albums_uri_unique": { 195 - "name": "albums_uri_unique", 196 - "nullsNotDistinct": false, 197 - "columns": [ 198 - "uri" 199 - ] 200 - }, 201 - "albums_apple_music_link_unique": { 202 - "name": "albums_apple_music_link_unique", 203 - "nullsNotDistinct": false, 204 - "columns": [ 205 - "apple_music_link" 206 - ] 207 - }, 208 - "albums_spotify_link_unique": { 209 - "name": "albums_spotify_link_unique", 210 - "nullsNotDistinct": false, 211 - "columns": [ 212 - "spotify_link" 213 - ] 214 - }, 215 - "albums_tidal_link_unique": { 216 - "name": "albums_tidal_link_unique", 217 - "nullsNotDistinct": false, 218 - "columns": [ 219 - "tidal_link" 220 - ] 221 - }, 222 - "albums_youtube_link_unique": { 223 - "name": "albums_youtube_link_unique", 224 - "nullsNotDistinct": false, 225 - "columns": [ 226 - "youtube_link" 227 - ] 228 - }, 229 - "albums_sha256_unique": { 230 - "name": "albums_sha256_unique", 231 - "nullsNotDistinct": false, 232 - "columns": [ 233 - "sha256" 234 - ] 235 - } 236 - }, 237 - "policies": {}, 238 - "checkConstraints": {}, 239 - "isRLSEnabled": false 240 - }, 241 - "public.api_keys": { 242 - "name": "api_keys", 243 - "schema": "", 244 - "columns": { 245 - "xata_id": { 246 - "name": "xata_id", 247 - "type": "text", 248 - "primaryKey": true, 249 - "notNull": true, 250 - "default": "xata_id()" 251 - }, 252 - "name": { 253 - "name": "name", 254 - "type": "text", 255 - "primaryKey": false, 256 - "notNull": true 257 - }, 258 - "api_key": { 259 - "name": "api_key", 260 - "type": "text", 261 - "primaryKey": false, 262 - "notNull": true 263 - }, 264 - "shared_secret": { 265 - "name": "shared_secret", 266 - "type": "text", 267 - "primaryKey": false, 268 - "notNull": true 269 - }, 270 - "description": { 271 - "name": "description", 272 - "type": "text", 273 - "primaryKey": false, 274 - "notNull": false 275 - }, 276 - "enabled": { 277 - "name": "enabled", 278 - "type": "boolean", 279 - "primaryKey": false, 280 - "notNull": true, 281 - "default": true 282 - }, 283 - "user_id": { 284 - "name": "user_id", 285 - "type": "text", 286 - "primaryKey": false, 287 - "notNull": true 288 - }, 289 - "xata_createdat": { 290 - "name": "xata_createdat", 291 - "type": "timestamp", 292 - "primaryKey": false, 293 - "notNull": true, 294 - "default": "now()" 295 - }, 296 - "xata_updatedat": { 297 - "name": "xata_updatedat", 298 - "type": "timestamp", 299 - "primaryKey": false, 300 - "notNull": true, 301 - "default": "now()" 302 - } 303 - }, 304 - "indexes": {}, 305 - "foreignKeys": { 306 - "api_keys_user_id_users_xata_id_fk": { 307 - "name": "api_keys_user_id_users_xata_id_fk", 308 - "tableFrom": "api_keys", 309 - "tableTo": "users", 310 - "columnsFrom": [ 311 - "user_id" 312 - ], 313 - "columnsTo": [ 314 - "xata_id" 315 - ], 316 - "onDelete": "no action", 317 - "onUpdate": "no action" 318 - } 319 - }, 320 - "compositePrimaryKeys": {}, 321 - "uniqueConstraints": {}, 322 - "policies": {}, 323 - "checkConstraints": {}, 324 - "isRLSEnabled": false 325 - }, 326 - "public.artist_albums": { 327 - "name": "artist_albums", 328 - "schema": "", 329 - "columns": { 330 - "xata_id": { 331 - "name": "xata_id", 332 - "type": "text", 333 - "primaryKey": true, 334 - "notNull": true, 335 - "default": "xata_id()" 336 - }, 337 - "artist_id": { 338 - "name": "artist_id", 339 - "type": "text", 340 - "primaryKey": false, 341 - "notNull": true 342 - }, 343 - "album_id": { 344 - "name": "album_id", 345 - "type": "text", 346 - "primaryKey": false, 347 - "notNull": true 348 - }, 349 - "xata_createdat": { 350 - "name": "xata_createdat", 351 - "type": "timestamp", 352 - "primaryKey": false, 353 - "notNull": true, 354 - "default": "now()" 355 - }, 356 - "xata_updatedat": { 357 - "name": "xata_updatedat", 358 - "type": "timestamp", 359 - "primaryKey": false, 360 - "notNull": true, 361 - "default": "now()" 362 - }, 363 - "xata_version": { 364 - "name": "xata_version", 365 - "type": "integer", 366 - "primaryKey": false, 367 - "notNull": false 368 - } 369 - }, 370 - "indexes": {}, 371 - "foreignKeys": { 372 - "artist_albums_artist_id_artists_xata_id_fk": { 373 - "name": "artist_albums_artist_id_artists_xata_id_fk", 374 - "tableFrom": "artist_albums", 375 - "tableTo": "artists", 376 - "columnsFrom": [ 377 - "artist_id" 378 - ], 379 - "columnsTo": [ 380 - "xata_id" 381 - ], 382 - "onDelete": "no action", 383 - "onUpdate": "no action" 384 - }, 385 - "artist_albums_album_id_albums_xata_id_fk": { 386 - "name": "artist_albums_album_id_albums_xata_id_fk", 387 - "tableFrom": "artist_albums", 388 - "tableTo": "albums", 389 - "columnsFrom": [ 390 - "album_id" 391 - ], 392 - "columnsTo": [ 393 - "xata_id" 394 - ], 395 - "onDelete": "no action", 396 - "onUpdate": "no action" 397 - } 398 - }, 399 - "compositePrimaryKeys": {}, 400 - "uniqueConstraints": {}, 401 - "policies": {}, 402 - "checkConstraints": {}, 403 - "isRLSEnabled": false 404 - }, 405 - "public.artist_tracks": { 406 - "name": "artist_tracks", 407 - "schema": "", 408 - "columns": { 409 - "xata_id": { 410 - "name": "xata_id", 411 - "type": "text", 412 - "primaryKey": true, 413 - "notNull": true, 414 - "default": "xata_id()" 415 - }, 416 - "artist_id": { 417 - "name": "artist_id", 418 - "type": "text", 419 - "primaryKey": false, 420 - "notNull": true 421 - }, 422 - "track_id": { 423 - "name": "track_id", 424 - "type": "text", 425 - "primaryKey": false, 426 - "notNull": true 427 - }, 428 - "xata_createdat": { 429 - "name": "xata_createdat", 430 - "type": "timestamp", 431 - "primaryKey": false, 432 - "notNull": true, 433 - "default": "now()" 434 - }, 435 - "xata_updatedat": { 436 - "name": "xata_updatedat", 437 - "type": "timestamp", 438 - "primaryKey": false, 439 - "notNull": true, 440 - "default": "now()" 441 - }, 442 - "xata_version": { 443 - "name": "xata_version", 444 - "type": "integer", 445 - "primaryKey": false, 446 - "notNull": false 447 - } 448 - }, 449 - "indexes": {}, 450 - "foreignKeys": { 451 - "artist_tracks_artist_id_artists_xata_id_fk": { 452 - "name": "artist_tracks_artist_id_artists_xata_id_fk", 453 - "tableFrom": "artist_tracks", 454 - "tableTo": "artists", 455 - "columnsFrom": [ 456 - "artist_id" 457 - ], 458 - "columnsTo": [ 459 - "xata_id" 460 - ], 461 - "onDelete": "no action", 462 - "onUpdate": "no action" 463 - }, 464 - "artist_tracks_track_id_tracks_xata_id_fk": { 465 - "name": "artist_tracks_track_id_tracks_xata_id_fk", 466 - "tableFrom": "artist_tracks", 467 - "tableTo": "tracks", 468 - "columnsFrom": [ 469 - "track_id" 470 - ], 471 - "columnsTo": [ 472 - "xata_id" 473 - ], 474 - "onDelete": "no action", 475 - "onUpdate": "no action" 476 - } 477 - }, 478 - "compositePrimaryKeys": {}, 479 - "uniqueConstraints": {}, 480 - "policies": {}, 481 - "checkConstraints": {}, 482 - "isRLSEnabled": false 483 - }, 484 - "public.artists": { 485 - "name": "artists", 486 - "schema": "", 487 - "columns": { 488 - "xata_id": { 489 - "name": "xata_id", 490 - "type": "text", 491 - "primaryKey": true, 492 - "notNull": true, 493 - "default": "xata_id()" 494 - }, 495 - "name": { 496 - "name": "name", 497 - "type": "text", 498 - "primaryKey": false, 499 - "notNull": true 500 - }, 501 - "biography": { 502 - "name": "biography", 503 - "type": "text", 504 - "primaryKey": false, 505 - "notNull": false 506 - }, 507 - "born": { 508 - "name": "born", 509 - "type": "timestamp", 510 - "primaryKey": false, 511 - "notNull": false 512 - }, 513 - "born_in": { 514 - "name": "born_in", 515 - "type": "text", 516 - "primaryKey": false, 517 - "notNull": false 518 - }, 519 - "died": { 520 - "name": "died", 521 - "type": "timestamp", 522 - "primaryKey": false, 523 - "notNull": false 524 - }, 525 - "picture": { 526 - "name": "picture", 527 - "type": "text", 528 - "primaryKey": false, 529 - "notNull": false 530 - }, 531 - "sha256": { 532 - "name": "sha256", 533 - "type": "text", 534 - "primaryKey": false, 535 - "notNull": true 536 - }, 537 - "uri": { 538 - "name": "uri", 539 - "type": "text", 540 - "primaryKey": false, 541 - "notNull": false 542 - }, 543 - "apple_music_link": { 544 - "name": "apple_music_link", 545 - "type": "text", 546 - "primaryKey": false, 547 - "notNull": false 548 - }, 549 - "spotify_link": { 550 - "name": "spotify_link", 551 - "type": "text", 552 - "primaryKey": false, 553 - "notNull": false 554 - }, 555 - "tidal_link": { 556 - "name": "tidal_link", 557 - "type": "text", 558 - "primaryKey": false, 559 - "notNull": false 560 - }, 561 - "youtube_link": { 562 - "name": "youtube_link", 563 - "type": "text", 564 - "primaryKey": false, 565 - "notNull": false 566 - }, 567 - "genres": { 568 - "name": "genres", 569 - "type": "text[]", 570 - "primaryKey": false, 571 - "notNull": false 572 - }, 573 - "xata_createdat": { 574 - "name": "xata_createdat", 575 - "type": "timestamp", 576 - "primaryKey": false, 577 - "notNull": true, 578 - "default": "now()" 579 - }, 580 - "xata_updatedat": { 581 - "name": "xata_updatedat", 582 - "type": "timestamp", 583 - "primaryKey": false, 584 - "notNull": true, 585 - "default": "now()" 586 - }, 587 - "xata_version": { 588 - "name": "xata_version", 589 - "type": "integer", 590 - "primaryKey": false, 591 - "notNull": false 592 - } 593 - }, 594 - "indexes": {}, 595 - "foreignKeys": {}, 596 - "compositePrimaryKeys": {}, 597 - "uniqueConstraints": { 598 - "artists_sha256_unique": { 599 - "name": "artists_sha256_unique", 600 - "nullsNotDistinct": false, 601 - "columns": [ 602 - "sha256" 603 - ] 604 - }, 605 - "artists_uri_unique": { 606 - "name": "artists_uri_unique", 607 - "nullsNotDistinct": false, 608 - "columns": [ 609 - "uri" 610 - ] 611 - } 612 - }, 613 - "policies": {}, 614 - "checkConstraints": {}, 615 - "isRLSEnabled": false 616 - }, 617 - "public.dropbox_accounts": { 618 - "name": "dropbox_accounts", 619 - "schema": "", 620 - "columns": { 621 - "xata_id": { 622 - "name": "xata_id", 623 - "type": "text", 624 - "primaryKey": true, 625 - "notNull": true, 626 - "default": "xata_id()" 627 - }, 628 - "email": { 629 - "name": "email", 630 - "type": "text", 631 - "primaryKey": false, 632 - "notNull": true 633 - }, 634 - "is_beta_user": { 635 - "name": "is_beta_user", 636 - "type": "boolean", 637 - "primaryKey": false, 638 - "notNull": true, 639 - "default": false 640 - }, 641 - "user_id": { 642 - "name": "user_id", 643 - "type": "text", 644 - "primaryKey": false, 645 - "notNull": true 646 - }, 647 - "xata_version": { 648 - "name": "xata_version", 649 - "type": "text", 650 - "primaryKey": false, 651 - "notNull": false 652 - }, 653 - "xata_createdat": { 654 - "name": "xata_createdat", 655 - "type": "timestamp", 656 - "primaryKey": false, 657 - "notNull": true, 658 - "default": "now()" 659 - }, 660 - "xata_updatedat": { 661 - "name": "xata_updatedat", 662 - "type": "timestamp", 663 - "primaryKey": false, 664 - "notNull": true, 665 - "default": "now()" 666 - } 667 - }, 668 - "indexes": {}, 669 - "foreignKeys": { 670 - "dropbox_accounts_user_id_users_xata_id_fk": { 671 - "name": "dropbox_accounts_user_id_users_xata_id_fk", 672 - "tableFrom": "dropbox_accounts", 673 - "tableTo": "users", 674 - "columnsFrom": [ 675 - "user_id" 676 - ], 677 - "columnsTo": [ 678 - "xata_id" 679 - ], 680 - "onDelete": "no action", 681 - "onUpdate": "no action" 682 - } 683 - }, 684 - "compositePrimaryKeys": {}, 685 - "uniqueConstraints": { 686 - "dropbox_accounts_email_unique": { 687 - "name": "dropbox_accounts_email_unique", 688 - "nullsNotDistinct": false, 689 - "columns": [ 690 - "email" 691 - ] 692 - } 693 - }, 694 - "policies": {}, 695 - "checkConstraints": {}, 696 - "isRLSEnabled": false 697 - }, 698 - "public.dropbox_directories": { 699 - "name": "dropbox_directories", 700 - "schema": "", 701 - "columns": { 702 - "xata_id": { 703 - "name": "xata_id", 704 - "type": "text", 705 - "primaryKey": true, 706 - "notNull": true, 707 - "default": "xata_id()" 708 - }, 709 - "name": { 710 - "name": "name", 711 - "type": "text", 712 - "primaryKey": false, 713 - "notNull": true 714 - }, 715 - "path": { 716 - "name": "path", 717 - "type": "text", 718 - "primaryKey": false, 719 - "notNull": true 720 - }, 721 - "parent_id": { 722 - "name": "parent_id", 723 - "type": "text", 724 - "primaryKey": false, 725 - "notNull": false 726 - }, 727 - "dropbox_id": { 728 - "name": "dropbox_id", 729 - "type": "text", 730 - "primaryKey": false, 731 - "notNull": true 732 - }, 733 - "file_id": { 734 - "name": "file_id", 735 - "type": "text", 736 - "primaryKey": false, 737 - "notNull": true 738 - }, 739 - "xata_version": { 740 - "name": "xata_version", 741 - "type": "text", 742 - "primaryKey": false, 743 - "notNull": false 744 - }, 745 - "xata_createdat": { 746 - "name": "xata_createdat", 747 - "type": "timestamp", 748 - "primaryKey": false, 749 - "notNull": true, 750 - "default": "now()" 751 - }, 752 - "xata_updatedat": { 753 - "name": "xata_updatedat", 754 - "type": "timestamp", 755 - "primaryKey": false, 756 - "notNull": true, 757 - "default": "now()" 758 - } 759 - }, 760 - "indexes": {}, 761 - "foreignKeys": { 762 - "dropbox_directories_parent_id_dropbox_directories_xata_id_fk": { 763 - "name": "dropbox_directories_parent_id_dropbox_directories_xata_id_fk", 764 - "tableFrom": "dropbox_directories", 765 - "tableTo": "dropbox_directories", 766 - "columnsFrom": [ 767 - "parent_id" 768 - ], 769 - "columnsTo": [ 770 - "xata_id" 771 - ], 772 - "onDelete": "no action", 773 - "onUpdate": "no action" 774 - } 775 - }, 776 - "compositePrimaryKeys": {}, 777 - "uniqueConstraints": { 778 - "dropbox_directories_file_id_unique": { 779 - "name": "dropbox_directories_file_id_unique", 780 - "nullsNotDistinct": false, 781 - "columns": [ 782 - "file_id" 783 - ] 784 - } 785 - }, 786 - "policies": {}, 787 - "checkConstraints": {}, 788 - "isRLSEnabled": false 789 - }, 790 - "public.dropbox_paths": { 791 - "name": "dropbox_paths", 792 - "schema": "", 793 - "columns": { 794 - "xata_id": { 795 - "name": "xata_id", 796 - "type": "text", 797 - "primaryKey": true, 798 - "notNull": true, 799 - "default": "xata_id()" 800 - }, 801 - "path": { 802 - "name": "path", 803 - "type": "text", 804 - "primaryKey": false, 805 - "notNull": true 806 - }, 807 - "name": { 808 - "name": "name", 809 - "type": "text", 810 - "primaryKey": false, 811 - "notNull": true 812 - }, 813 - "dropbox_id": { 814 - "name": "dropbox_id", 815 - "type": "text", 816 - "primaryKey": false, 817 - "notNull": true 818 - }, 819 - "track_id": { 820 - "name": "track_id", 821 - "type": "text", 822 - "primaryKey": false, 823 - "notNull": true 824 - }, 825 - "directory_id": { 826 - "name": "directory_id", 827 - "type": "text", 828 - "primaryKey": false, 829 - "notNull": false 830 - }, 831 - "file_id": { 832 - "name": "file_id", 833 - "type": "text", 834 - "primaryKey": false, 835 - "notNull": true 836 - }, 837 - "xata_version": { 838 - "name": "xata_version", 839 - "type": "text", 840 - "primaryKey": false, 841 - "notNull": false 842 - }, 843 - "xata_createdat": { 844 - "name": "xata_createdat", 845 - "type": "timestamp", 846 - "primaryKey": false, 847 - "notNull": true, 848 - "default": "now()" 849 - }, 850 - "xata_updatedat": { 851 - "name": "xata_updatedat", 852 - "type": "timestamp", 853 - "primaryKey": false, 854 - "notNull": true, 855 - "default": "now()" 856 - } 857 - }, 858 - "indexes": {}, 859 - "foreignKeys": { 860 - "dropbox_paths_directory_id_dropbox_directories_xata_id_fk": { 861 - "name": "dropbox_paths_directory_id_dropbox_directories_xata_id_fk", 862 - "tableFrom": "dropbox_paths", 863 - "tableTo": "dropbox_directories", 864 - "columnsFrom": [ 865 - "directory_id" 866 - ], 867 - "columnsTo": [ 868 - "xata_id" 869 - ], 870 - "onDelete": "no action", 871 - "onUpdate": "no action" 872 - } 873 - }, 874 - "compositePrimaryKeys": {}, 875 - "uniqueConstraints": { 876 - "dropbox_paths_file_id_unique": { 877 - "name": "dropbox_paths_file_id_unique", 878 - "nullsNotDistinct": false, 879 - "columns": [ 880 - "file_id" 881 - ] 882 - } 883 - }, 884 - "policies": {}, 885 - "checkConstraints": {}, 886 - "isRLSEnabled": false 887 - }, 888 - "public.dropbox_tokens": { 889 - "name": "dropbox_tokens", 890 - "schema": "", 891 - "columns": { 892 - "xata_id": { 893 - "name": "xata_id", 894 - "type": "text", 895 - "primaryKey": true, 896 - "notNull": true, 897 - "default": "xata_id()" 898 - }, 899 - "refresh_token": { 900 - "name": "refresh_token", 901 - "type": "text", 902 - "primaryKey": false, 903 - "notNull": true 904 - }, 905 - "xata_createdat": { 906 - "name": "xata_createdat", 907 - "type": "timestamp", 908 - "primaryKey": false, 909 - "notNull": true, 910 - "default": "now()" 911 - }, 912 - "xata_updatedat": { 913 - "name": "xata_updatedat", 914 - "type": "timestamp", 915 - "primaryKey": false, 916 - "notNull": true, 917 - "default": "now()" 918 - } 919 - }, 920 - "indexes": {}, 921 - "foreignKeys": {}, 922 - "compositePrimaryKeys": {}, 923 - "uniqueConstraints": {}, 924 - "policies": {}, 925 - "checkConstraints": {}, 926 - "isRLSEnabled": false 927 - }, 928 - "public.dropbox": { 929 - "name": "dropbox", 930 - "schema": "", 931 - "columns": { 932 - "xata_id": { 933 - "name": "xata_id", 934 - "type": "text", 935 - "primaryKey": true, 936 - "notNull": true, 937 - "default": "xata_id()" 938 - }, 939 - "user_id": { 940 - "name": "user_id", 941 - "type": "text", 942 - "primaryKey": false, 943 - "notNull": true 944 - }, 945 - "dropbox_token_id": { 946 - "name": "dropbox_token_id", 947 - "type": "text", 948 - "primaryKey": false, 949 - "notNull": true 950 - }, 951 - "xata_version": { 952 - "name": "xata_version", 953 - "type": "text", 954 - "primaryKey": false, 955 - "notNull": false 956 - }, 957 - "xata_createdat": { 958 - "name": "xata_createdat", 959 - "type": "timestamp", 960 - "primaryKey": false, 961 - "notNull": true, 962 - "default": "now()" 963 - }, 964 - "xata_updatedat": { 965 - "name": "xata_updatedat", 966 - "type": "timestamp", 967 - "primaryKey": false, 968 - "notNull": true, 969 - "default": "now()" 970 - } 971 - }, 972 - "indexes": {}, 973 - "foreignKeys": { 974 - "dropbox_user_id_users_xata_id_fk": { 975 - "name": "dropbox_user_id_users_xata_id_fk", 976 - "tableFrom": "dropbox", 977 - "tableTo": "users", 978 - "columnsFrom": [ 979 - "user_id" 980 - ], 981 - "columnsTo": [ 982 - "xata_id" 983 - ], 984 - "onDelete": "no action", 985 - "onUpdate": "no action" 986 - }, 987 - "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk": { 988 - "name": "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk", 989 - "tableFrom": "dropbox", 990 - "tableTo": "dropbox_tokens", 991 - "columnsFrom": [ 992 - "dropbox_token_id" 993 - ], 994 - "columnsTo": [ 995 - "xata_id" 996 - ], 997 - "onDelete": "no action", 998 - "onUpdate": "no action" 999 - } 1000 - }, 1001 - "compositePrimaryKeys": {}, 1002 - "uniqueConstraints": {}, 1003 - "policies": {}, 1004 - "checkConstraints": {}, 1005 - "isRLSEnabled": false 1006 - }, 1007 - "public.google_drive_accounts": { 1008 - "name": "google_drive_accounts", 1009 - "schema": "", 1010 - "columns": { 1011 - "xata_id": { 1012 - "name": "xata_id", 1013 - "type": "text", 1014 - "primaryKey": true, 1015 - "notNull": true, 1016 - "default": "xata_id()" 1017 - }, 1018 - "email": { 1019 - "name": "email", 1020 - "type": "text", 1021 - "primaryKey": false, 1022 - "notNull": true 1023 - }, 1024 - "is_beta_user": { 1025 - "name": "is_beta_user", 1026 - "type": "boolean", 1027 - "primaryKey": false, 1028 - "notNull": true, 1029 - "default": false 1030 - }, 1031 - "user_id": { 1032 - "name": "user_id", 1033 - "type": "text", 1034 - "primaryKey": false, 1035 - "notNull": true 1036 - }, 1037 - "xata_version": { 1038 - "name": "xata_version", 1039 - "type": "text", 1040 - "primaryKey": false, 1041 - "notNull": false 1042 - }, 1043 - "xata_createdat": { 1044 - "name": "xata_createdat", 1045 - "type": "timestamp", 1046 - "primaryKey": false, 1047 - "notNull": true, 1048 - "default": "now()" 1049 - }, 1050 - "xata_updatedat": { 1051 - "name": "xata_updatedat", 1052 - "type": "timestamp", 1053 - "primaryKey": false, 1054 - "notNull": true, 1055 - "default": "now()" 1056 - } 1057 - }, 1058 - "indexes": {}, 1059 - "foreignKeys": { 1060 - "google_drive_accounts_user_id_users_xata_id_fk": { 1061 - "name": "google_drive_accounts_user_id_users_xata_id_fk", 1062 - "tableFrom": "google_drive_accounts", 1063 - "tableTo": "users", 1064 - "columnsFrom": [ 1065 - "user_id" 1066 - ], 1067 - "columnsTo": [ 1068 - "xata_id" 1069 - ], 1070 - "onDelete": "no action", 1071 - "onUpdate": "no action" 1072 - } 1073 - }, 1074 - "compositePrimaryKeys": {}, 1075 - "uniqueConstraints": { 1076 - "google_drive_accounts_email_unique": { 1077 - "name": "google_drive_accounts_email_unique", 1078 - "nullsNotDistinct": false, 1079 - "columns": [ 1080 - "email" 1081 - ] 1082 - } 1083 - }, 1084 - "policies": {}, 1085 - "checkConstraints": {}, 1086 - "isRLSEnabled": false 1087 - }, 1088 - "public.google_drive_directories": { 1089 - "name": "google_drive_directories", 1090 - "schema": "", 1091 - "columns": { 1092 - "xata_id": { 1093 - "name": "xata_id", 1094 - "type": "text", 1095 - "primaryKey": true, 1096 - "notNull": true, 1097 - "default": "xata_id()" 1098 - }, 1099 - "name": { 1100 - "name": "name", 1101 - "type": "text", 1102 - "primaryKey": false, 1103 - "notNull": true 1104 - }, 1105 - "path": { 1106 - "name": "path", 1107 - "type": "text", 1108 - "primaryKey": false, 1109 - "notNull": true 1110 - }, 1111 - "parent_id": { 1112 - "name": "parent_id", 1113 - "type": "text", 1114 - "primaryKey": false, 1115 - "notNull": false 1116 - }, 1117 - "google_drive_id": { 1118 - "name": "google_drive_id", 1119 - "type": "text", 1120 - "primaryKey": false, 1121 - "notNull": true 1122 - }, 1123 - "file_id": { 1124 - "name": "file_id", 1125 - "type": "text", 1126 - "primaryKey": false, 1127 - "notNull": true 1128 - }, 1129 - "xata_version": { 1130 - "name": "xata_version", 1131 - "type": "text", 1132 - "primaryKey": false, 1133 - "notNull": false 1134 - }, 1135 - "xata_createdat": { 1136 - "name": "xata_createdat", 1137 - "type": "timestamp", 1138 - "primaryKey": false, 1139 - "notNull": true, 1140 - "default": "now()" 1141 - }, 1142 - "xata_updatedat": { 1143 - "name": "xata_updatedat", 1144 - "type": "timestamp", 1145 - "primaryKey": false, 1146 - "notNull": true, 1147 - "default": "now()" 1148 - } 1149 - }, 1150 - "indexes": {}, 1151 - "foreignKeys": { 1152 - "google_drive_directories_parent_id_google_drive_directories_xata_id_fk": { 1153 - "name": "google_drive_directories_parent_id_google_drive_directories_xata_id_fk", 1154 - "tableFrom": "google_drive_directories", 1155 - "tableTo": "google_drive_directories", 1156 - "columnsFrom": [ 1157 - "parent_id" 1158 - ], 1159 - "columnsTo": [ 1160 - "xata_id" 1161 - ], 1162 - "onDelete": "no action", 1163 - "onUpdate": "no action" 1164 - } 1165 - }, 1166 - "compositePrimaryKeys": {}, 1167 - "uniqueConstraints": { 1168 - "google_drive_directories_file_id_unique": { 1169 - "name": "google_drive_directories_file_id_unique", 1170 - "nullsNotDistinct": false, 1171 - "columns": [ 1172 - "file_id" 1173 - ] 1174 - } 1175 - }, 1176 - "policies": {}, 1177 - "checkConstraints": {}, 1178 - "isRLSEnabled": false 1179 - }, 1180 - "public.google_drive_paths": { 1181 - "name": "google_drive_paths", 1182 - "schema": "", 1183 - "columns": { 1184 - "xata_id": { 1185 - "name": "xata_id", 1186 - "type": "text", 1187 - "primaryKey": true, 1188 - "notNull": true, 1189 - "default": "xata_id()" 1190 - }, 1191 - "google_drive_id": { 1192 - "name": "google_drive_id", 1193 - "type": "text", 1194 - "primaryKey": false, 1195 - "notNull": true 1196 - }, 1197 - "track_id": { 1198 - "name": "track_id", 1199 - "type": "text", 1200 - "primaryKey": false, 1201 - "notNull": true 1202 - }, 1203 - "name": { 1204 - "name": "name", 1205 - "type": "text", 1206 - "primaryKey": false, 1207 - "notNull": true 1208 - }, 1209 - "directory_id": { 1210 - "name": "directory_id", 1211 - "type": "text", 1212 - "primaryKey": false, 1213 - "notNull": false 1214 - }, 1215 - "file_id": { 1216 - "name": "file_id", 1217 - "type": "text", 1218 - "primaryKey": false, 1219 - "notNull": true 1220 - }, 1221 - "xata_version": { 1222 - "name": "xata_version", 1223 - "type": "text", 1224 - "primaryKey": false, 1225 - "notNull": false 1226 - }, 1227 - "xata_createdat": { 1228 - "name": "xata_createdat", 1229 - "type": "timestamp", 1230 - "primaryKey": false, 1231 - "notNull": true, 1232 - "default": "now()" 1233 - }, 1234 - "xata_updatedat": { 1235 - "name": "xata_updatedat", 1236 - "type": "timestamp", 1237 - "primaryKey": false, 1238 - "notNull": true, 1239 - "default": "now()" 1240 - } 1241 - }, 1242 - "indexes": {}, 1243 - "foreignKeys": { 1244 - "google_drive_paths_directory_id_google_drive_directories_xata_id_fk": { 1245 - "name": "google_drive_paths_directory_id_google_drive_directories_xata_id_fk", 1246 - "tableFrom": "google_drive_paths", 1247 - "tableTo": "google_drive_directories", 1248 - "columnsFrom": [ 1249 - "directory_id" 1250 - ], 1251 - "columnsTo": [ 1252 - "xata_id" 1253 - ], 1254 - "onDelete": "no action", 1255 - "onUpdate": "no action" 1256 - } 1257 - }, 1258 - "compositePrimaryKeys": {}, 1259 - "uniqueConstraints": { 1260 - "google_drive_paths_file_id_unique": { 1261 - "name": "google_drive_paths_file_id_unique", 1262 - "nullsNotDistinct": false, 1263 - "columns": [ 1264 - "file_id" 1265 - ] 1266 - } 1267 - }, 1268 - "policies": {}, 1269 - "checkConstraints": {}, 1270 - "isRLSEnabled": false 1271 - }, 1272 - "public.google_drive_tokens": { 1273 - "name": "google_drive_tokens", 1274 - "schema": "", 1275 - "columns": { 1276 - "xata_id": { 1277 - "name": "xata_id", 1278 - "type": "text", 1279 - "primaryKey": true, 1280 - "notNull": true, 1281 - "default": "xata_id()" 1282 - }, 1283 - "refresh_token": { 1284 - "name": "refresh_token", 1285 - "type": "text", 1286 - "primaryKey": false, 1287 - "notNull": true 1288 - }, 1289 - "xata_createdat": { 1290 - "name": "xata_createdat", 1291 - "type": "timestamp", 1292 - "primaryKey": false, 1293 - "notNull": true, 1294 - "default": "now()" 1295 - }, 1296 - "xata_updatedat": { 1297 - "name": "xata_updatedat", 1298 - "type": "timestamp", 1299 - "primaryKey": false, 1300 - "notNull": true, 1301 - "default": "now()" 1302 - } 1303 - }, 1304 - "indexes": {}, 1305 - "foreignKeys": {}, 1306 - "compositePrimaryKeys": {}, 1307 - "uniqueConstraints": {}, 1308 - "policies": {}, 1309 - "checkConstraints": {}, 1310 - "isRLSEnabled": false 1311 - }, 1312 - "public.google_drive": { 1313 - "name": "google_drive", 1314 - "schema": "", 1315 - "columns": { 1316 - "xata_id": { 1317 - "name": "xata_id", 1318 - "type": "text", 1319 - "primaryKey": true, 1320 - "notNull": true, 1321 - "default": "xata_id()" 1322 - }, 1323 - "google_drive_token_id": { 1324 - "name": "google_drive_token_id", 1325 - "type": "text", 1326 - "primaryKey": false, 1327 - "notNull": true 1328 - }, 1329 - "user_id": { 1330 - "name": "user_id", 1331 - "type": "text", 1332 - "primaryKey": false, 1333 - "notNull": true 1334 - }, 1335 - "xata_version": { 1336 - "name": "xata_version", 1337 - "type": "text", 1338 - "primaryKey": false, 1339 - "notNull": false 1340 - }, 1341 - "xata_createdat": { 1342 - "name": "xata_createdat", 1343 - "type": "timestamp", 1344 - "primaryKey": false, 1345 - "notNull": true, 1346 - "default": "now()" 1347 - }, 1348 - "xata_updatedat": { 1349 - "name": "xata_updatedat", 1350 - "type": "timestamp", 1351 - "primaryKey": false, 1352 - "notNull": true, 1353 - "default": "now()" 1354 - } 1355 - }, 1356 - "indexes": {}, 1357 - "foreignKeys": { 1358 - "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk": { 1359 - "name": "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk", 1360 - "tableFrom": "google_drive", 1361 - "tableTo": "google_drive_tokens", 1362 - "columnsFrom": [ 1363 - "google_drive_token_id" 1364 - ], 1365 - "columnsTo": [ 1366 - "xata_id" 1367 - ], 1368 - "onDelete": "no action", 1369 - "onUpdate": "no action" 1370 - }, 1371 - "google_drive_user_id_users_xata_id_fk": { 1372 - "name": "google_drive_user_id_users_xata_id_fk", 1373 - "tableFrom": "google_drive", 1374 - "tableTo": "users", 1375 - "columnsFrom": [ 1376 - "user_id" 1377 - ], 1378 - "columnsTo": [ 1379 - "xata_id" 1380 - ], 1381 - "onDelete": "no action", 1382 - "onUpdate": "no action" 1383 - } 1384 - }, 1385 - "compositePrimaryKeys": {}, 1386 - "uniqueConstraints": {}, 1387 - "policies": {}, 1388 - "checkConstraints": {}, 1389 - "isRLSEnabled": false 1390 - }, 1391 - "public.loved_tracks": { 1392 - "name": "loved_tracks", 1393 - "schema": "", 1394 - "columns": { 1395 - "xata_id": { 1396 - "name": "xata_id", 1397 - "type": "text", 1398 - "primaryKey": true, 1399 - "notNull": true, 1400 - "default": "xata_id()" 1401 - }, 1402 - "user_id": { 1403 - "name": "user_id", 1404 - "type": "text", 1405 - "primaryKey": false, 1406 - "notNull": true 1407 - }, 1408 - "track_id": { 1409 - "name": "track_id", 1410 - "type": "text", 1411 - "primaryKey": false, 1412 - "notNull": true 1413 - }, 1414 - "uri": { 1415 - "name": "uri", 1416 - "type": "text", 1417 - "primaryKey": false, 1418 - "notNull": false 1419 - }, 1420 - "xata_createdat": { 1421 - "name": "xata_createdat", 1422 - "type": "timestamp", 1423 - "primaryKey": false, 1424 - "notNull": true, 1425 - "default": "now()" 1426 - } 1427 - }, 1428 - "indexes": {}, 1429 - "foreignKeys": { 1430 - "loved_tracks_user_id_users_xata_id_fk": { 1431 - "name": "loved_tracks_user_id_users_xata_id_fk", 1432 - "tableFrom": "loved_tracks", 1433 - "tableTo": "users", 1434 - "columnsFrom": [ 1435 - "user_id" 1436 - ], 1437 - "columnsTo": [ 1438 - "xata_id" 1439 - ], 1440 - "onDelete": "no action", 1441 - "onUpdate": "no action" 1442 - }, 1443 - "loved_tracks_track_id_tracks_xata_id_fk": { 1444 - "name": "loved_tracks_track_id_tracks_xata_id_fk", 1445 - "tableFrom": "loved_tracks", 1446 - "tableTo": "tracks", 1447 - "columnsFrom": [ 1448 - "track_id" 1449 - ], 1450 - "columnsTo": [ 1451 - "xata_id" 1452 - ], 1453 - "onDelete": "no action", 1454 - "onUpdate": "no action" 1455 - } 1456 - }, 1457 - "compositePrimaryKeys": {}, 1458 - "uniqueConstraints": { 1459 - "loved_tracks_uri_unique": { 1460 - "name": "loved_tracks_uri_unique", 1461 - "nullsNotDistinct": false, 1462 - "columns": [ 1463 - "uri" 1464 - ] 1465 - } 1466 - }, 1467 - "policies": {}, 1468 - "checkConstraints": {}, 1469 - "isRLSEnabled": false 1470 - }, 1471 - "public.playlist_tracks": { 1472 - "name": "playlist_tracks", 1473 - "schema": "", 1474 - "columns": { 1475 - "xata_id": { 1476 - "name": "xata_id", 1477 - "type": "text", 1478 - "primaryKey": true, 1479 - "notNull": true, 1480 - "default": "xata_id()" 1481 - }, 1482 - "playlist_id": { 1483 - "name": "playlist_id", 1484 - "type": "text", 1485 - "primaryKey": false, 1486 - "notNull": true 1487 - }, 1488 - "track_id": { 1489 - "name": "track_id", 1490 - "type": "text", 1491 - "primaryKey": false, 1492 - "notNull": true 1493 - }, 1494 - "xata_createdat": { 1495 - "name": "xata_createdat", 1496 - "type": "timestamp", 1497 - "primaryKey": false, 1498 - "notNull": true, 1499 - "default": "now()" 1500 - } 1501 - }, 1502 - "indexes": {}, 1503 - "foreignKeys": { 1504 - "playlist_tracks_playlist_id_playlists_xata_id_fk": { 1505 - "name": "playlist_tracks_playlist_id_playlists_xata_id_fk", 1506 - "tableFrom": "playlist_tracks", 1507 - "tableTo": "playlists", 1508 - "columnsFrom": [ 1509 - "playlist_id" 1510 - ], 1511 - "columnsTo": [ 1512 - "xata_id" 1513 - ], 1514 - "onDelete": "no action", 1515 - "onUpdate": "no action" 1516 - }, 1517 - "playlist_tracks_track_id_tracks_xata_id_fk": { 1518 - "name": "playlist_tracks_track_id_tracks_xata_id_fk", 1519 - "tableFrom": "playlist_tracks", 1520 - "tableTo": "tracks", 1521 - "columnsFrom": [ 1522 - "track_id" 1523 - ], 1524 - "columnsTo": [ 1525 - "xata_id" 1526 - ], 1527 - "onDelete": "no action", 1528 - "onUpdate": "no action" 1529 - } 1530 - }, 1531 - "compositePrimaryKeys": {}, 1532 - "uniqueConstraints": {}, 1533 - "policies": {}, 1534 - "checkConstraints": {}, 1535 - "isRLSEnabled": false 1536 - }, 1537 - "public.playlists": { 1538 - "name": "playlists", 1539 - "schema": "", 1540 - "columns": { 1541 - "xata_id": { 1542 - "name": "xata_id", 1543 - "type": "text", 1544 - "primaryKey": true, 1545 - "notNull": true, 1546 - "default": "xata_id()" 1547 - }, 1548 - "name": { 1549 - "name": "name", 1550 - "type": "text", 1551 - "primaryKey": false, 1552 - "notNull": true 1553 - }, 1554 - "picture": { 1555 - "name": "picture", 1556 - "type": "text", 1557 - "primaryKey": false, 1558 - "notNull": false 1559 - }, 1560 - "description": { 1561 - "name": "description", 1562 - "type": "text", 1563 - "primaryKey": false, 1564 - "notNull": false 1565 - }, 1566 - "uri": { 1567 - "name": "uri", 1568 - "type": "text", 1569 - "primaryKey": false, 1570 - "notNull": false 1571 - }, 1572 - "spotify_link": { 1573 - "name": "spotify_link", 1574 - "type": "text", 1575 - "primaryKey": false, 1576 - "notNull": false 1577 - }, 1578 - "tidal_link": { 1579 - "name": "tidal_link", 1580 - "type": "text", 1581 - "primaryKey": false, 1582 - "notNull": false 1583 - }, 1584 - "apple_music_link": { 1585 - "name": "apple_music_link", 1586 - "type": "text", 1587 - "primaryKey": false, 1588 - "notNull": false 1589 - }, 1590 - "created_by": { 1591 - "name": "created_by", 1592 - "type": "text", 1593 - "primaryKey": false, 1594 - "notNull": true 1595 - }, 1596 - "xata_createdat": { 1597 - "name": "xata_createdat", 1598 - "type": "timestamp", 1599 - "primaryKey": false, 1600 - "notNull": true, 1601 - "default": "now()" 1602 - }, 1603 - "xata_updatedat": { 1604 - "name": "xata_updatedat", 1605 - "type": "timestamp", 1606 - "primaryKey": false, 1607 - "notNull": true, 1608 - "default": "now()" 1609 - } 1610 - }, 1611 - "indexes": {}, 1612 - "foreignKeys": { 1613 - "playlists_created_by_users_xata_id_fk": { 1614 - "name": "playlists_created_by_users_xata_id_fk", 1615 - "tableFrom": "playlists", 1616 - "tableTo": "users", 1617 - "columnsFrom": [ 1618 - "created_by" 1619 - ], 1620 - "columnsTo": [ 1621 - "xata_id" 1622 - ], 1623 - "onDelete": "no action", 1624 - "onUpdate": "no action" 1625 - } 1626 - }, 1627 - "compositePrimaryKeys": {}, 1628 - "uniqueConstraints": { 1629 - "playlists_uri_unique": { 1630 - "name": "playlists_uri_unique", 1631 - "nullsNotDistinct": false, 1632 - "columns": [ 1633 - "uri" 1634 - ] 1635 - } 1636 - }, 1637 - "policies": {}, 1638 - "checkConstraints": {}, 1639 - "isRLSEnabled": false 1640 - }, 1641 - "public.profile_shouts": { 1642 - "name": "profile_shouts", 1643 - "schema": "", 1644 - "columns": { 1645 - "xata_id": { 1646 - "name": "xata_id", 1647 - "type": "text", 1648 - "primaryKey": true, 1649 - "notNull": true, 1650 - "default": "xata_id()" 1651 - }, 1652 - "user_id": { 1653 - "name": "user_id", 1654 - "type": "text", 1655 - "primaryKey": false, 1656 - "notNull": true 1657 - }, 1658 - "shout_id": { 1659 - "name": "shout_id", 1660 - "type": "text", 1661 - "primaryKey": false, 1662 - "notNull": true 1663 - }, 1664 - "xata_createdat": { 1665 - "name": "xata_createdat", 1666 - "type": "timestamp", 1667 - "primaryKey": false, 1668 - "notNull": true, 1669 - "default": "now()" 1670 - } 1671 - }, 1672 - "indexes": {}, 1673 - "foreignKeys": { 1674 - "profile_shouts_user_id_users_xata_id_fk": { 1675 - "name": "profile_shouts_user_id_users_xata_id_fk", 1676 - "tableFrom": "profile_shouts", 1677 - "tableTo": "users", 1678 - "columnsFrom": [ 1679 - "user_id" 1680 - ], 1681 - "columnsTo": [ 1682 - "xata_id" 1683 - ], 1684 - "onDelete": "no action", 1685 - "onUpdate": "no action" 1686 - }, 1687 - "profile_shouts_shout_id_shouts_xata_id_fk": { 1688 - "name": "profile_shouts_shout_id_shouts_xata_id_fk", 1689 - "tableFrom": "profile_shouts", 1690 - "tableTo": "shouts", 1691 - "columnsFrom": [ 1692 - "shout_id" 1693 - ], 1694 - "columnsTo": [ 1695 - "xata_id" 1696 - ], 1697 - "onDelete": "no action", 1698 - "onUpdate": "no action" 1699 - } 1700 - }, 1701 - "compositePrimaryKeys": {}, 1702 - "uniqueConstraints": {}, 1703 - "policies": {}, 1704 - "checkConstraints": {}, 1705 - "isRLSEnabled": false 1706 - }, 1707 - "public.queue_tracks": { 1708 - "name": "queue_tracks", 1709 - "schema": "", 1710 - "columns": { 1711 - "xata_id": { 1712 - "name": "xata_id", 1713 - "type": "text", 1714 - "primaryKey": true, 1715 - "notNull": true, 1716 - "default": "xata_id()" 1717 - }, 1718 - "user_id": { 1719 - "name": "user_id", 1720 - "type": "text", 1721 - "primaryKey": false, 1722 - "notNull": true 1723 - }, 1724 - "track_id": { 1725 - "name": "track_id", 1726 - "type": "text", 1727 - "primaryKey": false, 1728 - "notNull": true 1729 - }, 1730 - "position": { 1731 - "name": "position", 1732 - "type": "integer", 1733 - "primaryKey": false, 1734 - "notNull": true 1735 - }, 1736 - "file_uri": { 1737 - "name": "file_uri", 1738 - "type": "text", 1739 - "primaryKey": false, 1740 - "notNull": true 1741 - }, 1742 - "xata_version": { 1743 - "name": "xata_version", 1744 - "type": "integer", 1745 - "primaryKey": false, 1746 - "notNull": true, 1747 - "default": 0 1748 - }, 1749 - "xata_createdat": { 1750 - "name": "xata_createdat", 1751 - "type": "timestamp", 1752 - "primaryKey": false, 1753 - "notNull": true, 1754 - "default": "now()" 1755 - }, 1756 - "xata_updatedat": { 1757 - "name": "xata_updatedat", 1758 - "type": "timestamp", 1759 - "primaryKey": false, 1760 - "notNull": true, 1761 - "default": "now()" 1762 - } 1763 - }, 1764 - "indexes": {}, 1765 - "foreignKeys": { 1766 - "queue_tracks_user_id_users_xata_id_fk": { 1767 - "name": "queue_tracks_user_id_users_xata_id_fk", 1768 - "tableFrom": "queue_tracks", 1769 - "tableTo": "users", 1770 - "columnsFrom": [ 1771 - "user_id" 1772 - ], 1773 - "columnsTo": [ 1774 - "xata_id" 1775 - ], 1776 - "onDelete": "no action", 1777 - "onUpdate": "no action" 1778 - }, 1779 - "queue_tracks_track_id_tracks_xata_id_fk": { 1780 - "name": "queue_tracks_track_id_tracks_xata_id_fk", 1781 - "tableFrom": "queue_tracks", 1782 - "tableTo": "tracks", 1783 - "columnsFrom": [ 1784 - "track_id" 1785 - ], 1786 - "columnsTo": [ 1787 - "xata_id" 1788 - ], 1789 - "onDelete": "no action", 1790 - "onUpdate": "no action" 1791 - } 1792 - }, 1793 - "compositePrimaryKeys": {}, 1794 - "uniqueConstraints": {}, 1795 - "policies": {}, 1796 - "checkConstraints": {}, 1797 - "isRLSEnabled": false 1798 - }, 1799 - "public.scrobbles": { 1800 - "name": "scrobbles", 1801 - "schema": "", 1802 - "columns": { 1803 - "xata_id": { 1804 - "name": "xata_id", 1805 - "type": "text", 1806 - "primaryKey": true, 1807 - "notNull": true, 1808 - "default": "xata_id()" 1809 - }, 1810 - "user_id": { 1811 - "name": "user_id", 1812 - "type": "text", 1813 - "primaryKey": false, 1814 - "notNull": false 1815 - }, 1816 - "track_id": { 1817 - "name": "track_id", 1818 - "type": "text", 1819 - "primaryKey": false, 1820 - "notNull": false 1821 - }, 1822 - "album_id": { 1823 - "name": "album_id", 1824 - "type": "text", 1825 - "primaryKey": false, 1826 - "notNull": false 1827 - }, 1828 - "artist_id": { 1829 - "name": "artist_id", 1830 - "type": "text", 1831 - "primaryKey": false, 1832 - "notNull": false 1833 - }, 1834 - "uri": { 1835 - "name": "uri", 1836 - "type": "text", 1837 - "primaryKey": false, 1838 - "notNull": false 1839 - }, 1840 - "xata_createdat": { 1841 - "name": "xata_createdat", 1842 - "type": "timestamp", 1843 - "primaryKey": false, 1844 - "notNull": true, 1845 - "default": "now()" 1846 - }, 1847 - "xata_updatedat": { 1848 - "name": "xata_updatedat", 1849 - "type": "timestamp", 1850 - "primaryKey": false, 1851 - "notNull": true, 1852 - "default": "now()" 1853 - }, 1854 - "xata_version": { 1855 - "name": "xata_version", 1856 - "type": "integer", 1857 - "primaryKey": false, 1858 - "notNull": false 1859 - }, 1860 - "timestamp": { 1861 - "name": "timestamp", 1862 - "type": "timestamp", 1863 - "primaryKey": false, 1864 - "notNull": true, 1865 - "default": "now()" 1866 - } 1867 - }, 1868 - "indexes": {}, 1869 - "foreignKeys": { 1870 - "scrobbles_user_id_users_xata_id_fk": { 1871 - "name": "scrobbles_user_id_users_xata_id_fk", 1872 - "tableFrom": "scrobbles", 1873 - "tableTo": "users", 1874 - "columnsFrom": [ 1875 - "user_id" 1876 - ], 1877 - "columnsTo": [ 1878 - "xata_id" 1879 - ], 1880 - "onDelete": "no action", 1881 - "onUpdate": "no action" 1882 - }, 1883 - "scrobbles_track_id_tracks_xata_id_fk": { 1884 - "name": "scrobbles_track_id_tracks_xata_id_fk", 1885 - "tableFrom": "scrobbles", 1886 - "tableTo": "tracks", 1887 - "columnsFrom": [ 1888 - "track_id" 1889 - ], 1890 - "columnsTo": [ 1891 - "xata_id" 1892 - ], 1893 - "onDelete": "no action", 1894 - "onUpdate": "no action" 1895 - }, 1896 - "scrobbles_album_id_albums_xata_id_fk": { 1897 - "name": "scrobbles_album_id_albums_xata_id_fk", 1898 - "tableFrom": "scrobbles", 1899 - "tableTo": "albums", 1900 - "columnsFrom": [ 1901 - "album_id" 1902 - ], 1903 - "columnsTo": [ 1904 - "xata_id" 1905 - ], 1906 - "onDelete": "no action", 1907 - "onUpdate": "no action" 1908 - }, 1909 - "scrobbles_artist_id_artists_xata_id_fk": { 1910 - "name": "scrobbles_artist_id_artists_xata_id_fk", 1911 - "tableFrom": "scrobbles", 1912 - "tableTo": "artists", 1913 - "columnsFrom": [ 1914 - "artist_id" 1915 - ], 1916 - "columnsTo": [ 1917 - "xata_id" 1918 - ], 1919 - "onDelete": "no action", 1920 - "onUpdate": "no action" 1921 - } 1922 - }, 1923 - "compositePrimaryKeys": {}, 1924 - "uniqueConstraints": { 1925 - "scrobbles_uri_unique": { 1926 - "name": "scrobbles_uri_unique", 1927 - "nullsNotDistinct": false, 1928 - "columns": [ 1929 - "uri" 1930 - ] 1931 - } 1932 - }, 1933 - "policies": {}, 1934 - "checkConstraints": {}, 1935 - "isRLSEnabled": false 1936 - }, 1937 - "public.shout_likes": { 1938 - "name": "shout_likes", 1939 - "schema": "", 1940 - "columns": { 1941 - "xata_id": { 1942 - "name": "xata_id", 1943 - "type": "text", 1944 - "primaryKey": true, 1945 - "notNull": true, 1946 - "default": "xata_id()" 1947 - }, 1948 - "user_id": { 1949 - "name": "user_id", 1950 - "type": "text", 1951 - "primaryKey": false, 1952 - "notNull": true 1953 - }, 1954 - "shout_id": { 1955 - "name": "shout_id", 1956 - "type": "text", 1957 - "primaryKey": false, 1958 - "notNull": true 1959 - }, 1960 - "xata_createdat": { 1961 - "name": "xata_createdat", 1962 - "type": "timestamp", 1963 - "primaryKey": false, 1964 - "notNull": true, 1965 - "default": "now()" 1966 - }, 1967 - "uri": { 1968 - "name": "uri", 1969 - "type": "text", 1970 - "primaryKey": false, 1971 - "notNull": true 1972 - } 1973 - }, 1974 - "indexes": {}, 1975 - "foreignKeys": { 1976 - "shout_likes_user_id_users_xata_id_fk": { 1977 - "name": "shout_likes_user_id_users_xata_id_fk", 1978 - "tableFrom": "shout_likes", 1979 - "tableTo": "users", 1980 - "columnsFrom": [ 1981 - "user_id" 1982 - ], 1983 - "columnsTo": [ 1984 - "xata_id" 1985 - ], 1986 - "onDelete": "no action", 1987 - "onUpdate": "no action" 1988 - }, 1989 - "shout_likes_shout_id_shouts_xata_id_fk": { 1990 - "name": "shout_likes_shout_id_shouts_xata_id_fk", 1991 - "tableFrom": "shout_likes", 1992 - "tableTo": "shouts", 1993 - "columnsFrom": [ 1994 - "shout_id" 1995 - ], 1996 - "columnsTo": [ 1997 - "xata_id" 1998 - ], 1999 - "onDelete": "no action", 2000 - "onUpdate": "no action" 2001 - } 2002 - }, 2003 - "compositePrimaryKeys": {}, 2004 - "uniqueConstraints": { 2005 - "shout_likes_uri_unique": { 2006 - "name": "shout_likes_uri_unique", 2007 - "nullsNotDistinct": false, 2008 - "columns": [ 2009 - "uri" 2010 - ] 2011 - } 2012 - }, 2013 - "policies": {}, 2014 - "checkConstraints": {}, 2015 - "isRLSEnabled": false 2016 - }, 2017 - "public.shout_reports": { 2018 - "name": "shout_reports", 2019 - "schema": "", 2020 - "columns": { 2021 - "xata_id": { 2022 - "name": "xata_id", 2023 - "type": "text", 2024 - "primaryKey": true, 2025 - "notNull": true, 2026 - "default": "xata_id()" 2027 - }, 2028 - "user_id": { 2029 - "name": "user_id", 2030 - "type": "text", 2031 - "primaryKey": false, 2032 - "notNull": true 2033 - }, 2034 - "shout_id": { 2035 - "name": "shout_id", 2036 - "type": "text", 2037 - "primaryKey": false, 2038 - "notNull": true 2039 - }, 2040 - "xata_createdat": { 2041 - "name": "xata_createdat", 2042 - "type": "timestamp", 2043 - "primaryKey": false, 2044 - "notNull": true, 2045 - "default": "now()" 2046 - } 2047 - }, 2048 - "indexes": {}, 2049 - "foreignKeys": { 2050 - "shout_reports_user_id_users_xata_id_fk": { 2051 - "name": "shout_reports_user_id_users_xata_id_fk", 2052 - "tableFrom": "shout_reports", 2053 - "tableTo": "users", 2054 - "columnsFrom": [ 2055 - "user_id" 2056 - ], 2057 - "columnsTo": [ 2058 - "xata_id" 2059 - ], 2060 - "onDelete": "no action", 2061 - "onUpdate": "no action" 2062 - }, 2063 - "shout_reports_shout_id_shouts_xata_id_fk": { 2064 - "name": "shout_reports_shout_id_shouts_xata_id_fk", 2065 - "tableFrom": "shout_reports", 2066 - "tableTo": "shouts", 2067 - "columnsFrom": [ 2068 - "shout_id" 2069 - ], 2070 - "columnsTo": [ 2071 - "xata_id" 2072 - ], 2073 - "onDelete": "no action", 2074 - "onUpdate": "no action" 2075 - } 2076 - }, 2077 - "compositePrimaryKeys": {}, 2078 - "uniqueConstraints": {}, 2079 - "policies": {}, 2080 - "checkConstraints": {}, 2081 - "isRLSEnabled": false 2082 - }, 2083 - "public.shouts": { 2084 - "name": "shouts", 2085 - "schema": "", 2086 - "columns": { 2087 - "xata_id": { 2088 - "name": "xata_id", 2089 - "type": "text", 2090 - "primaryKey": true, 2091 - "notNull": true, 2092 - "default": "xata_id()" 2093 - }, 2094 - "content": { 2095 - "name": "content", 2096 - "type": "text", 2097 - "primaryKey": false, 2098 - "notNull": true 2099 - }, 2100 - "track_id": { 2101 - "name": "track_id", 2102 - "type": "text", 2103 - "primaryKey": false, 2104 - "notNull": false 2105 - }, 2106 - "artist_id": { 2107 - "name": "artist_id", 2108 - "type": "text", 2109 - "primaryKey": false, 2110 - "notNull": false 2111 - }, 2112 - "album_id": { 2113 - "name": "album_id", 2114 - "type": "text", 2115 - "primaryKey": false, 2116 - "notNull": false 2117 - }, 2118 - "scrobble_id": { 2119 - "name": "scrobble_id", 2120 - "type": "text", 2121 - "primaryKey": false, 2122 - "notNull": false 2123 - }, 2124 - "uri": { 2125 - "name": "uri", 2126 - "type": "text", 2127 - "primaryKey": false, 2128 - "notNull": true 2129 - }, 2130 - "author_id": { 2131 - "name": "author_id", 2132 - "type": "text", 2133 - "primaryKey": false, 2134 - "notNull": true 2135 - }, 2136 - "parent_id": { 2137 - "name": "parent_id", 2138 - "type": "text", 2139 - "primaryKey": false, 2140 - "notNull": false 2141 - }, 2142 - "xata_createdat": { 2143 - "name": "xata_createdat", 2144 - "type": "timestamp", 2145 - "primaryKey": false, 2146 - "notNull": true, 2147 - "default": "now()" 2148 - }, 2149 - "xata_updatedat": { 2150 - "name": "xata_updatedat", 2151 - "type": "timestamp", 2152 - "primaryKey": false, 2153 - "notNull": true, 2154 - "default": "now()" 2155 - } 2156 - }, 2157 - "indexes": {}, 2158 - "foreignKeys": { 2159 - "shouts_track_id_tracks_xata_id_fk": { 2160 - "name": "shouts_track_id_tracks_xata_id_fk", 2161 - "tableFrom": "shouts", 2162 - "tableTo": "tracks", 2163 - "columnsFrom": [ 2164 - "track_id" 2165 - ], 2166 - "columnsTo": [ 2167 - "xata_id" 2168 - ], 2169 - "onDelete": "no action", 2170 - "onUpdate": "no action" 2171 - }, 2172 - "shouts_artist_id_users_xata_id_fk": { 2173 - "name": "shouts_artist_id_users_xata_id_fk", 2174 - "tableFrom": "shouts", 2175 - "tableTo": "users", 2176 - "columnsFrom": [ 2177 - "artist_id" 2178 - ], 2179 - "columnsTo": [ 2180 - "xata_id" 2181 - ], 2182 - "onDelete": "no action", 2183 - "onUpdate": "no action" 2184 - }, 2185 - "shouts_album_id_albums_xata_id_fk": { 2186 - "name": "shouts_album_id_albums_xata_id_fk", 2187 - "tableFrom": "shouts", 2188 - "tableTo": "albums", 2189 - "columnsFrom": [ 2190 - "album_id" 2191 - ], 2192 - "columnsTo": [ 2193 - "xata_id" 2194 - ], 2195 - "onDelete": "no action", 2196 - "onUpdate": "no action" 2197 - }, 2198 - "shouts_scrobble_id_scrobbles_xata_id_fk": { 2199 - "name": "shouts_scrobble_id_scrobbles_xata_id_fk", 2200 - "tableFrom": "shouts", 2201 - "tableTo": "scrobbles", 2202 - "columnsFrom": [ 2203 - "scrobble_id" 2204 - ], 2205 - "columnsTo": [ 2206 - "xata_id" 2207 - ], 2208 - "onDelete": "no action", 2209 - "onUpdate": "no action" 2210 - }, 2211 - "shouts_author_id_users_xata_id_fk": { 2212 - "name": "shouts_author_id_users_xata_id_fk", 2213 - "tableFrom": "shouts", 2214 - "tableTo": "users", 2215 - "columnsFrom": [ 2216 - "author_id" 2217 - ], 2218 - "columnsTo": [ 2219 - "xata_id" 2220 - ], 2221 - "onDelete": "no action", 2222 - "onUpdate": "no action" 2223 - }, 2224 - "shouts_parent_id_shouts_xata_id_fk": { 2225 - "name": "shouts_parent_id_shouts_xata_id_fk", 2226 - "tableFrom": "shouts", 2227 - "tableTo": "shouts", 2228 - "columnsFrom": [ 2229 - "parent_id" 2230 - ], 2231 - "columnsTo": [ 2232 - "xata_id" 2233 - ], 2234 - "onDelete": "no action", 2235 - "onUpdate": "no action" 2236 - } 2237 - }, 2238 - "compositePrimaryKeys": {}, 2239 - "uniqueConstraints": { 2240 - "shouts_uri_unique": { 2241 - "name": "shouts_uri_unique", 2242 - "nullsNotDistinct": false, 2243 - "columns": [ 2244 - "uri" 2245 - ] 2246 - } 2247 - }, 2248 - "policies": {}, 2249 - "checkConstraints": {}, 2250 - "isRLSEnabled": false 2251 - }, 2252 - "public.spotify_accounts": { 2253 - "name": "spotify_accounts", 2254 - "schema": "", 2255 - "columns": { 2256 - "xata_id": { 2257 - "name": "xata_id", 2258 - "type": "text", 2259 - "primaryKey": true, 2260 - "notNull": true, 2261 - "default": "xata_id()" 2262 - }, 2263 - "xata_version": { 2264 - "name": "xata_version", 2265 - "type": "integer", 2266 - "primaryKey": false, 2267 - "notNull": false 2268 - }, 2269 - "email": { 2270 - "name": "email", 2271 - "type": "text", 2272 - "primaryKey": false, 2273 - "notNull": true 2274 - }, 2275 - "user_id": { 2276 - "name": "user_id", 2277 - "type": "text", 2278 - "primaryKey": false, 2279 - "notNull": true 2280 - }, 2281 - "is_beta_user": { 2282 - "name": "is_beta_user", 2283 - "type": "boolean", 2284 - "primaryKey": false, 2285 - "notNull": true, 2286 - "default": false 2287 - }, 2288 - "xata_createdat": { 2289 - "name": "xata_createdat", 2290 - "type": "timestamp", 2291 - "primaryKey": false, 2292 - "notNull": true, 2293 - "default": "now()" 2294 - }, 2295 - "xata_updatedat": { 2296 - "name": "xata_updatedat", 2297 - "type": "timestamp", 2298 - "primaryKey": false, 2299 - "notNull": true, 2300 - "default": "now()" 2301 - } 2302 - }, 2303 - "indexes": {}, 2304 - "foreignKeys": { 2305 - "spotify_accounts_user_id_users_xata_id_fk": { 2306 - "name": "spotify_accounts_user_id_users_xata_id_fk", 2307 - "tableFrom": "spotify_accounts", 2308 - "tableTo": "users", 2309 - "columnsFrom": [ 2310 - "user_id" 2311 - ], 2312 - "columnsTo": [ 2313 - "xata_id" 2314 - ], 2315 - "onDelete": "no action", 2316 - "onUpdate": "no action" 2317 - } 2318 - }, 2319 - "compositePrimaryKeys": {}, 2320 - "uniqueConstraints": {}, 2321 - "policies": {}, 2322 - "checkConstraints": {}, 2323 - "isRLSEnabled": false 2324 - }, 2325 - "public.spotify_tokens": { 2326 - "name": "spotify_tokens", 2327 - "schema": "", 2328 - "columns": { 2329 - "xata_id": { 2330 - "name": "xata_id", 2331 - "type": "text", 2332 - "primaryKey": true, 2333 - "notNull": true, 2334 - "default": "xata_id()" 2335 - }, 2336 - "xata_version": { 2337 - "name": "xata_version", 2338 - "type": "integer", 2339 - "primaryKey": false, 2340 - "notNull": false 2341 - }, 2342 - "access_token": { 2343 - "name": "access_token", 2344 - "type": "text", 2345 - "primaryKey": false, 2346 - "notNull": true 2347 - }, 2348 - "refresh_token": { 2349 - "name": "refresh_token", 2350 - "type": "text", 2351 - "primaryKey": false, 2352 - "notNull": true 2353 - }, 2354 - "user_id": { 2355 - "name": "user_id", 2356 - "type": "text", 2357 - "primaryKey": false, 2358 - "notNull": true 2359 - }, 2360 - "xata_createdat": { 2361 - "name": "xata_createdat", 2362 - "type": "timestamp", 2363 - "primaryKey": false, 2364 - "notNull": true, 2365 - "default": "now()" 2366 - }, 2367 - "xata_updatedat": { 2368 - "name": "xata_updatedat", 2369 - "type": "timestamp", 2370 - "primaryKey": false, 2371 - "notNull": true, 2372 - "default": "now()" 2373 - } 2374 - }, 2375 - "indexes": {}, 2376 - "foreignKeys": { 2377 - "spotify_tokens_user_id_users_xata_id_fk": { 2378 - "name": "spotify_tokens_user_id_users_xata_id_fk", 2379 - "tableFrom": "spotify_tokens", 2380 - "tableTo": "users", 2381 - "columnsFrom": [ 2382 - "user_id" 2383 - ], 2384 - "columnsTo": [ 2385 - "xata_id" 2386 - ], 2387 - "onDelete": "no action", 2388 - "onUpdate": "no action" 2389 - } 2390 - }, 2391 - "compositePrimaryKeys": {}, 2392 - "uniqueConstraints": {}, 2393 - "policies": {}, 2394 - "checkConstraints": {}, 2395 - "isRLSEnabled": false 2396 - }, 2397 - "public.tracks": { 2398 - "name": "tracks", 2399 - "schema": "", 2400 - "columns": { 2401 - "xata_id": { 2402 - "name": "xata_id", 2403 - "type": "text", 2404 - "primaryKey": true, 2405 - "notNull": true, 2406 - "default": "xata_id()" 2407 - }, 2408 - "title": { 2409 - "name": "title", 2410 - "type": "text", 2411 - "primaryKey": false, 2412 - "notNull": true 2413 - }, 2414 - "artist": { 2415 - "name": "artist", 2416 - "type": "text", 2417 - "primaryKey": false, 2418 - "notNull": true 2419 - }, 2420 - "album_artist": { 2421 - "name": "album_artist", 2422 - "type": "text", 2423 - "primaryKey": false, 2424 - "notNull": true 2425 - }, 2426 - "album_art": { 2427 - "name": "album_art", 2428 - "type": "text", 2429 - "primaryKey": false, 2430 - "notNull": false 2431 - }, 2432 - "album": { 2433 - "name": "album", 2434 - "type": "text", 2435 - "primaryKey": false, 2436 - "notNull": true 2437 - }, 2438 - "track_number": { 2439 - "name": "track_number", 2440 - "type": "integer", 2441 - "primaryKey": false, 2442 - "notNull": false 2443 - }, 2444 - "duration": { 2445 - "name": "duration", 2446 - "type": "integer", 2447 - "primaryKey": false, 2448 - "notNull": true 2449 - }, 2450 - "mb_id": { 2451 - "name": "mb_id", 2452 - "type": "text", 2453 - "primaryKey": false, 2454 - "notNull": false 2455 - }, 2456 - "youtube_link": { 2457 - "name": "youtube_link", 2458 - "type": "text", 2459 - "primaryKey": false, 2460 - "notNull": false 2461 - }, 2462 - "spotify_link": { 2463 - "name": "spotify_link", 2464 - "type": "text", 2465 - "primaryKey": false, 2466 - "notNull": false 2467 - }, 2468 - "apple_music_link": { 2469 - "name": "apple_music_link", 2470 - "type": "text", 2471 - "primaryKey": false, 2472 - "notNull": false 2473 - }, 2474 - "tidal_link": { 2475 - "name": "tidal_link", 2476 - "type": "text", 2477 - "primaryKey": false, 2478 - "notNull": false 2479 - }, 2480 - "sha256": { 2481 - "name": "sha256", 2482 - "type": "text", 2483 - "primaryKey": false, 2484 - "notNull": true 2485 - }, 2486 - "disc_number": { 2487 - "name": "disc_number", 2488 - "type": "integer", 2489 - "primaryKey": false, 2490 - "notNull": false 2491 - }, 2492 - "lyrics": { 2493 - "name": "lyrics", 2494 - "type": "text", 2495 - "primaryKey": false, 2496 - "notNull": false 2497 - }, 2498 - "composer": { 2499 - "name": "composer", 2500 - "type": "text", 2501 - "primaryKey": false, 2502 - "notNull": false 2503 - }, 2504 - "genre": { 2505 - "name": "genre", 2506 - "type": "text", 2507 - "primaryKey": false, 2508 - "notNull": false 2509 - }, 2510 - "label": { 2511 - "name": "label", 2512 - "type": "text", 2513 - "primaryKey": false, 2514 - "notNull": false 2515 - }, 2516 - "copyright_message": { 2517 - "name": "copyright_message", 2518 - "type": "text", 2519 - "primaryKey": false, 2520 - "notNull": false 2521 - }, 2522 - "uri": { 2523 - "name": "uri", 2524 - "type": "text", 2525 - "primaryKey": false, 2526 - "notNull": false 2527 - }, 2528 - "album_uri": { 2529 - "name": "album_uri", 2530 - "type": "text", 2531 - "primaryKey": false, 2532 - "notNull": false 2533 - }, 2534 - "artist_uri": { 2535 - "name": "artist_uri", 2536 - "type": "text", 2537 - "primaryKey": false, 2538 - "notNull": false 2539 - }, 2540 - "xata_createdat": { 2541 - "name": "xata_createdat", 2542 - "type": "timestamp", 2543 - "primaryKey": false, 2544 - "notNull": true, 2545 - "default": "now()" 2546 - }, 2547 - "xata_updatedat": { 2548 - "name": "xata_updatedat", 2549 - "type": "timestamp", 2550 - "primaryKey": false, 2551 - "notNull": true, 2552 - "default": "now()" 2553 - }, 2554 - "xata_version": { 2555 - "name": "xata_version", 2556 - "type": "integer", 2557 - "primaryKey": false, 2558 - "notNull": false 2559 - } 2560 - }, 2561 - "indexes": {}, 2562 - "foreignKeys": {}, 2563 - "compositePrimaryKeys": {}, 2564 - "uniqueConstraints": { 2565 - "tracks_mb_id_unique": { 2566 - "name": "tracks_mb_id_unique", 2567 - "nullsNotDistinct": false, 2568 - "columns": [ 2569 - "mb_id" 2570 - ] 2571 - }, 2572 - "tracks_youtube_link_unique": { 2573 - "name": "tracks_youtube_link_unique", 2574 - "nullsNotDistinct": false, 2575 - "columns": [ 2576 - "youtube_link" 2577 - ] 2578 - }, 2579 - "tracks_spotify_link_unique": { 2580 - "name": "tracks_spotify_link_unique", 2581 - "nullsNotDistinct": false, 2582 - "columns": [ 2583 - "spotify_link" 2584 - ] 2585 - }, 2586 - "tracks_apple_music_link_unique": { 2587 - "name": "tracks_apple_music_link_unique", 2588 - "nullsNotDistinct": false, 2589 - "columns": [ 2590 - "apple_music_link" 2591 - ] 2592 - }, 2593 - "tracks_tidal_link_unique": { 2594 - "name": "tracks_tidal_link_unique", 2595 - "nullsNotDistinct": false, 2596 - "columns": [ 2597 - "tidal_link" 2598 - ] 2599 - }, 2600 - "tracks_sha256_unique": { 2601 - "name": "tracks_sha256_unique", 2602 - "nullsNotDistinct": false, 2603 - "columns": [ 2604 - "sha256" 2605 - ] 2606 - }, 2607 - "tracks_uri_unique": { 2608 - "name": "tracks_uri_unique", 2609 - "nullsNotDistinct": false, 2610 - "columns": [ 2611 - "uri" 2612 - ] 2613 - } 2614 - }, 2615 - "policies": {}, 2616 - "checkConstraints": {}, 2617 - "isRLSEnabled": false 2618 - }, 2619 - "public.user_albums": { 2620 - "name": "user_albums", 2621 - "schema": "", 2622 - "columns": { 2623 - "xata_id": { 2624 - "name": "xata_id", 2625 - "type": "text", 2626 - "primaryKey": true, 2627 - "notNull": true, 2628 - "default": "xata_id()" 2629 - }, 2630 - "user_id": { 2631 - "name": "user_id", 2632 - "type": "text", 2633 - "primaryKey": false, 2634 - "notNull": true 2635 - }, 2636 - "album_id": { 2637 - "name": "album_id", 2638 - "type": "text", 2639 - "primaryKey": false, 2640 - "notNull": true 2641 - }, 2642 - "xata_createdat": { 2643 - "name": "xata_createdat", 2644 - "type": "timestamp", 2645 - "primaryKey": false, 2646 - "notNull": true, 2647 - "default": "now()" 2648 - }, 2649 - "xata_updatedat": { 2650 - "name": "xata_updatedat", 2651 - "type": "timestamp", 2652 - "primaryKey": false, 2653 - "notNull": true, 2654 - "default": "now()" 2655 - }, 2656 - "xata_version": { 2657 - "name": "xata_version", 2658 - "type": "integer", 2659 - "primaryKey": false, 2660 - "notNull": false 2661 - }, 2662 - "scrobbles": { 2663 - "name": "scrobbles", 2664 - "type": "integer", 2665 - "primaryKey": false, 2666 - "notNull": false 2667 - }, 2668 - "uri": { 2669 - "name": "uri", 2670 - "type": "text", 2671 - "primaryKey": false, 2672 - "notNull": true 2673 - } 2674 - }, 2675 - "indexes": {}, 2676 - "foreignKeys": { 2677 - "user_albums_user_id_users_xata_id_fk": { 2678 - "name": "user_albums_user_id_users_xata_id_fk", 2679 - "tableFrom": "user_albums", 2680 - "tableTo": "users", 2681 - "columnsFrom": [ 2682 - "user_id" 2683 - ], 2684 - "columnsTo": [ 2685 - "xata_id" 2686 - ], 2687 - "onDelete": "no action", 2688 - "onUpdate": "no action" 2689 - }, 2690 - "user_albums_album_id_albums_xata_id_fk": { 2691 - "name": "user_albums_album_id_albums_xata_id_fk", 2692 - "tableFrom": "user_albums", 2693 - "tableTo": "albums", 2694 - "columnsFrom": [ 2695 - "album_id" 2696 - ], 2697 - "columnsTo": [ 2698 - "xata_id" 2699 - ], 2700 - "onDelete": "no action", 2701 - "onUpdate": "no action" 2702 - } 2703 - }, 2704 - "compositePrimaryKeys": {}, 2705 - "uniqueConstraints": { 2706 - "user_albums_uri_unique": { 2707 - "name": "user_albums_uri_unique", 2708 - "nullsNotDistinct": false, 2709 - "columns": [ 2710 - "uri" 2711 - ] 2712 - } 2713 - }, 2714 - "policies": {}, 2715 - "checkConstraints": {}, 2716 - "isRLSEnabled": false 2717 - }, 2718 - "public.user_artists": { 2719 - "name": "user_artists", 2720 - "schema": "", 2721 - "columns": { 2722 - "xata_id": { 2723 - "name": "xata_id", 2724 - "type": "text", 2725 - "primaryKey": true, 2726 - "notNull": true, 2727 - "default": "xata_id()" 2728 - }, 2729 - "user_id": { 2730 - "name": "user_id", 2731 - "type": "text", 2732 - "primaryKey": false, 2733 - "notNull": true 2734 - }, 2735 - "artist_id": { 2736 - "name": "artist_id", 2737 - "type": "text", 2738 - "primaryKey": false, 2739 - "notNull": true 2740 - }, 2741 - "xata_createdat": { 2742 - "name": "xata_createdat", 2743 - "type": "timestamp", 2744 - "primaryKey": false, 2745 - "notNull": true, 2746 - "default": "now()" 2747 - }, 2748 - "xata_updatedat": { 2749 - "name": "xata_updatedat", 2750 - "type": "timestamp", 2751 - "primaryKey": false, 2752 - "notNull": true, 2753 - "default": "now()" 2754 - }, 2755 - "xata_version": { 2756 - "name": "xata_version", 2757 - "type": "integer", 2758 - "primaryKey": false, 2759 - "notNull": false 2760 - }, 2761 - "scrobbles": { 2762 - "name": "scrobbles", 2763 - "type": "integer", 2764 - "primaryKey": false, 2765 - "notNull": false 2766 - }, 2767 - "uri": { 2768 - "name": "uri", 2769 - "type": "text", 2770 - "primaryKey": false, 2771 - "notNull": true 2772 - } 2773 - }, 2774 - "indexes": {}, 2775 - "foreignKeys": { 2776 - "user_artists_user_id_users_xata_id_fk": { 2777 - "name": "user_artists_user_id_users_xata_id_fk", 2778 - "tableFrom": "user_artists", 2779 - "tableTo": "users", 2780 - "columnsFrom": [ 2781 - "user_id" 2782 - ], 2783 - "columnsTo": [ 2784 - "xata_id" 2785 - ], 2786 - "onDelete": "no action", 2787 - "onUpdate": "no action" 2788 - }, 2789 - "user_artists_artist_id_artists_xata_id_fk": { 2790 - "name": "user_artists_artist_id_artists_xata_id_fk", 2791 - "tableFrom": "user_artists", 2792 - "tableTo": "artists", 2793 - "columnsFrom": [ 2794 - "artist_id" 2795 - ], 2796 - "columnsTo": [ 2797 - "xata_id" 2798 - ], 2799 - "onDelete": "no action", 2800 - "onUpdate": "no action" 2801 - } 2802 - }, 2803 - "compositePrimaryKeys": {}, 2804 - "uniqueConstraints": { 2805 - "user_artists_uri_unique": { 2806 - "name": "user_artists_uri_unique", 2807 - "nullsNotDistinct": false, 2808 - "columns": [ 2809 - "uri" 2810 - ] 2811 - } 2812 - }, 2813 - "policies": {}, 2814 - "checkConstraints": {}, 2815 - "isRLSEnabled": false 2816 - }, 2817 - "public.user_playlists": { 2818 - "name": "user_playlists", 2819 - "schema": "", 2820 - "columns": { 2821 - "xata_id": { 2822 - "name": "xata_id", 2823 - "type": "text", 2824 - "primaryKey": true, 2825 - "notNull": true, 2826 - "default": "xata_id()" 2827 - }, 2828 - "user_id": { 2829 - "name": "user_id", 2830 - "type": "text", 2831 - "primaryKey": false, 2832 - "notNull": true 2833 - }, 2834 - "playlist_id": { 2835 - "name": "playlist_id", 2836 - "type": "text", 2837 - "primaryKey": false, 2838 - "notNull": true 2839 - }, 2840 - "xata_createdat": { 2841 - "name": "xata_createdat", 2842 - "type": "timestamp", 2843 - "primaryKey": false, 2844 - "notNull": true, 2845 - "default": "now()" 2846 - }, 2847 - "uri": { 2848 - "name": "uri", 2849 - "type": "text", 2850 - "primaryKey": false, 2851 - "notNull": false 2852 - } 2853 - }, 2854 - "indexes": {}, 2855 - "foreignKeys": { 2856 - "user_playlists_user_id_users_xata_id_fk": { 2857 - "name": "user_playlists_user_id_users_xata_id_fk", 2858 - "tableFrom": "user_playlists", 2859 - "tableTo": "users", 2860 - "columnsFrom": [ 2861 - "user_id" 2862 - ], 2863 - "columnsTo": [ 2864 - "xata_id" 2865 - ], 2866 - "onDelete": "no action", 2867 - "onUpdate": "no action" 2868 - }, 2869 - "user_playlists_playlist_id_playlists_xata_id_fk": { 2870 - "name": "user_playlists_playlist_id_playlists_xata_id_fk", 2871 - "tableFrom": "user_playlists", 2872 - "tableTo": "playlists", 2873 - "columnsFrom": [ 2874 - "playlist_id" 2875 - ], 2876 - "columnsTo": [ 2877 - "xata_id" 2878 - ], 2879 - "onDelete": "no action", 2880 - "onUpdate": "no action" 2881 - } 2882 - }, 2883 - "compositePrimaryKeys": {}, 2884 - "uniqueConstraints": { 2885 - "user_playlists_uri_unique": { 2886 - "name": "user_playlists_uri_unique", 2887 - "nullsNotDistinct": false, 2888 - "columns": [ 2889 - "uri" 2890 - ] 2891 - } 2892 - }, 2893 - "policies": {}, 2894 - "checkConstraints": {}, 2895 - "isRLSEnabled": false 2896 - }, 2897 - "public.user_tracks": { 2898 - "name": "user_tracks", 2899 - "schema": "", 2900 - "columns": { 2901 - "xata_id": { 2902 - "name": "xata_id", 2903 - "type": "text", 2904 - "primaryKey": true, 2905 - "notNull": true, 2906 - "default": "xata_id()" 2907 - }, 2908 - "user_id": { 2909 - "name": "user_id", 2910 - "type": "text", 2911 - "primaryKey": false, 2912 - "notNull": true 2913 - }, 2914 - "track_id": { 2915 - "name": "track_id", 2916 - "type": "text", 2917 - "primaryKey": false, 2918 - "notNull": true 2919 - }, 2920 - "xata_createdat": { 2921 - "name": "xata_createdat", 2922 - "type": "timestamp", 2923 - "primaryKey": false, 2924 - "notNull": true, 2925 - "default": "now()" 2926 - }, 2927 - "xata_updatedat": { 2928 - "name": "xata_updatedat", 2929 - "type": "timestamp", 2930 - "primaryKey": false, 2931 - "notNull": true, 2932 - "default": "now()" 2933 - }, 2934 - "xata_version": { 2935 - "name": "xata_version", 2936 - "type": "integer", 2937 - "primaryKey": false, 2938 - "notNull": false 2939 - }, 2940 - "uri": { 2941 - "name": "uri", 2942 - "type": "text", 2943 - "primaryKey": false, 2944 - "notNull": true 2945 - }, 2946 - "scrobbles": { 2947 - "name": "scrobbles", 2948 - "type": "integer", 2949 - "primaryKey": false, 2950 - "notNull": false 2951 - } 2952 - }, 2953 - "indexes": {}, 2954 - "foreignKeys": { 2955 - "user_tracks_user_id_users_xata_id_fk": { 2956 - "name": "user_tracks_user_id_users_xata_id_fk", 2957 - "tableFrom": "user_tracks", 2958 - "tableTo": "users", 2959 - "columnsFrom": [ 2960 - "user_id" 2961 - ], 2962 - "columnsTo": [ 2963 - "xata_id" 2964 - ], 2965 - "onDelete": "no action", 2966 - "onUpdate": "no action" 2967 - }, 2968 - "user_tracks_track_id_tracks_xata_id_fk": { 2969 - "name": "user_tracks_track_id_tracks_xata_id_fk", 2970 - "tableFrom": "user_tracks", 2971 - "tableTo": "tracks", 2972 - "columnsFrom": [ 2973 - "track_id" 2974 - ], 2975 - "columnsTo": [ 2976 - "xata_id" 2977 - ], 2978 - "onDelete": "no action", 2979 - "onUpdate": "no action" 2980 - } 2981 - }, 2982 - "compositePrimaryKeys": {}, 2983 - "uniqueConstraints": { 2984 - "user_tracks_uri_unique": { 2985 - "name": "user_tracks_uri_unique", 2986 - "nullsNotDistinct": false, 2987 - "columns": [ 2988 - "uri" 2989 - ] 2990 - } 2991 - }, 2992 - "policies": {}, 2993 - "checkConstraints": {}, 2994 - "isRLSEnabled": false 2995 - }, 2996 - "public.users": { 2997 - "name": "users", 2998 - "schema": "", 2999 - "columns": { 3000 - "xata_id": { 3001 - "name": "xata_id", 3002 - "type": "text", 3003 - "primaryKey": true, 3004 - "notNull": true, 3005 - "default": "xata_id()" 3006 - }, 3007 - "did": { 3008 - "name": "did", 3009 - "type": "text", 3010 - "primaryKey": false, 3011 - "notNull": true 3012 - }, 3013 - "display_name": { 3014 - "name": "display_name", 3015 - "type": "text", 3016 - "primaryKey": false, 3017 - "notNull": false 3018 - }, 3019 - "handle": { 3020 - "name": "handle", 3021 - "type": "text", 3022 - "primaryKey": false, 3023 - "notNull": true 3024 - }, 3025 - "avatar": { 3026 - "name": "avatar", 3027 - "type": "text", 3028 - "primaryKey": false, 3029 - "notNull": true 3030 - }, 3031 - "xata_createdat": { 3032 - "name": "xata_createdat", 3033 - "type": "timestamp", 3034 - "primaryKey": false, 3035 - "notNull": true, 3036 - "default": "now()" 3037 - }, 3038 - "xata_updatedat": { 3039 - "name": "xata_updatedat", 3040 - "type": "timestamp", 3041 - "primaryKey": false, 3042 - "notNull": true, 3043 - "default": "now()" 3044 - }, 3045 - "xata_version": { 3046 - "name": "xata_version", 3047 - "type": "integer", 3048 - "primaryKey": false, 3049 - "notNull": false 3050 - } 3051 - }, 3052 - "indexes": {}, 3053 - "foreignKeys": {}, 3054 - "compositePrimaryKeys": {}, 3055 - "uniqueConstraints": { 3056 - "users_did_unique": { 3057 - "name": "users_did_unique", 3058 - "nullsNotDistinct": false, 3059 - "columns": [ 3060 - "did" 3061 - ] 3062 - }, 3063 - "users_handle_unique": { 3064 - "name": "users_handle_unique", 3065 - "nullsNotDistinct": false, 3066 - "columns": [ 3067 - "handle" 3068 - ] 3069 - } 3070 - }, 3071 - "policies": {}, 3072 - "checkConstraints": {}, 3073 - "isRLSEnabled": false 3074 - }, 3075 - "public.webscrobblers": { 3076 - "name": "webscrobblers", 3077 - "schema": "", 3078 - "columns": { 3079 - "xata_id": { 3080 - "name": "xata_id", 3081 - "type": "text", 3082 - "primaryKey": true, 3083 - "notNull": true, 3084 - "default": "xata_id()" 3085 - }, 3086 - "name": { 3087 - "name": "name", 3088 - "type": "text", 3089 - "primaryKey": false, 3090 - "notNull": true 3091 - }, 3092 - "uuid": { 3093 - "name": "uuid", 3094 - "type": "text", 3095 - "primaryKey": false, 3096 - "notNull": true 3097 - }, 3098 - "description": { 3099 - "name": "description", 3100 - "type": "text", 3101 - "primaryKey": false, 3102 - "notNull": false 3103 - }, 3104 - "enabled": { 3105 - "name": "enabled", 3106 - "type": "boolean", 3107 - "primaryKey": false, 3108 - "notNull": true, 3109 - "default": true 3110 - }, 3111 - "user_id": { 3112 - "name": "user_id", 3113 - "type": "text", 3114 - "primaryKey": false, 3115 - "notNull": true 3116 - }, 3117 - "xata_createdat": { 3118 - "name": "xata_createdat", 3119 - "type": "timestamp", 3120 - "primaryKey": false, 3121 - "notNull": true, 3122 - "default": "now()" 3123 - }, 3124 - "xata_updatedat": { 3125 - "name": "xata_updatedat", 3126 - "type": "timestamp", 3127 - "primaryKey": false, 3128 - "notNull": true, 3129 - "default": "now()" 3130 - } 3131 - }, 3132 - "indexes": {}, 3133 - "foreignKeys": { 3134 - "webscrobblers_user_id_users_xata_id_fk": { 3135 - "name": "webscrobblers_user_id_users_xata_id_fk", 3136 - "tableFrom": "webscrobblers", 3137 - "tableTo": "users", 3138 - "columnsFrom": [ 3139 - "user_id" 3140 - ], 3141 - "columnsTo": [ 3142 - "xata_id" 3143 - ], 3144 - "onDelete": "no action", 3145 - "onUpdate": "no action" 3146 - } 3147 - }, 3148 - "compositePrimaryKeys": {}, 3149 - "uniqueConstraints": {}, 3150 - "policies": {}, 3151 - "checkConstraints": {}, 3152 - "isRLSEnabled": false 3153 - } 3154 - }, 3155 - "enums": {}, 3156 - "schemas": {}, 3157 - "sequences": {}, 3158 - "roles": {}, 3159 - "policies": {}, 3160 - "views": {}, 3161 - "_meta": { 3162 - "columns": {}, 3163 - "schemas": {}, 3164 - "tables": {} 3165 - } 3166 - }
-3323
apps/api/drizzle/meta/0004_snapshot.json
··· 1 - { 2 - "id": "3294c136-37d7-4c61-8633-26d17c05a059", 3 - "prevId": "015093fe-a66e-4ec3-b5b6-5466c6266a39", 4 - "version": "7", 5 - "dialect": "postgresql", 6 - "tables": { 7 - "public.album_tracks": { 8 - "name": "album_tracks", 9 - "schema": "", 10 - "columns": { 11 - "xata_id": { 12 - "name": "xata_id", 13 - "type": "text", 14 - "primaryKey": true, 15 - "notNull": true, 16 - "default": "xata_id()" 17 - }, 18 - "album_id": { 19 - "name": "album_id", 20 - "type": "text", 21 - "primaryKey": false, 22 - "notNull": true 23 - }, 24 - "track_id": { 25 - "name": "track_id", 26 - "type": "text", 27 - "primaryKey": false, 28 - "notNull": true 29 - }, 30 - "xata_createdat": { 31 - "name": "xata_createdat", 32 - "type": "timestamp", 33 - "primaryKey": false, 34 - "notNull": true, 35 - "default": "now()" 36 - }, 37 - "xata_updatedat": { 38 - "name": "xata_updatedat", 39 - "type": "timestamp", 40 - "primaryKey": false, 41 - "notNull": true, 42 - "default": "now()" 43 - }, 44 - "xata_version": { 45 - "name": "xata_version", 46 - "type": "integer", 47 - "primaryKey": false, 48 - "notNull": false 49 - } 50 - }, 51 - "indexes": {}, 52 - "foreignKeys": { 53 - "album_tracks_album_id_albums_xata_id_fk": { 54 - "name": "album_tracks_album_id_albums_xata_id_fk", 55 - "tableFrom": "album_tracks", 56 - "tableTo": "albums", 57 - "columnsFrom": [ 58 - "album_id" 59 - ], 60 - "columnsTo": [ 61 - "xata_id" 62 - ], 63 - "onDelete": "no action", 64 - "onUpdate": "no action" 65 - }, 66 - "album_tracks_track_id_tracks_xata_id_fk": { 67 - "name": "album_tracks_track_id_tracks_xata_id_fk", 68 - "tableFrom": "album_tracks", 69 - "tableTo": "tracks", 70 - "columnsFrom": [ 71 - "track_id" 72 - ], 73 - "columnsTo": [ 74 - "xata_id" 75 - ], 76 - "onDelete": "no action", 77 - "onUpdate": "no action" 78 - } 79 - }, 80 - "compositePrimaryKeys": {}, 81 - "uniqueConstraints": {}, 82 - "policies": {}, 83 - "checkConstraints": {}, 84 - "isRLSEnabled": false 85 - }, 86 - "public.albums": { 87 - "name": "albums", 88 - "schema": "", 89 - "columns": { 90 - "xata_id": { 91 - "name": "xata_id", 92 - "type": "text", 93 - "primaryKey": true, 94 - "notNull": true, 95 - "default": "xata_id()" 96 - }, 97 - "title": { 98 - "name": "title", 99 - "type": "text", 100 - "primaryKey": false, 101 - "notNull": true 102 - }, 103 - "artist": { 104 - "name": "artist", 105 - "type": "text", 106 - "primaryKey": false, 107 - "notNull": true 108 - }, 109 - "release_date": { 110 - "name": "release_date", 111 - "type": "text", 112 - "primaryKey": false, 113 - "notNull": false 114 - }, 115 - "year": { 116 - "name": "year", 117 - "type": "integer", 118 - "primaryKey": false, 119 - "notNull": false 120 - }, 121 - "album_art": { 122 - "name": "album_art", 123 - "type": "text", 124 - "primaryKey": false, 125 - "notNull": false 126 - }, 127 - "uri": { 128 - "name": "uri", 129 - "type": "text", 130 - "primaryKey": false, 131 - "notNull": false 132 - }, 133 - "artist_uri": { 134 - "name": "artist_uri", 135 - "type": "text", 136 - "primaryKey": false, 137 - "notNull": false 138 - }, 139 - "apple_music_link": { 140 - "name": "apple_music_link", 141 - "type": "text", 142 - "primaryKey": false, 143 - "notNull": false 144 - }, 145 - "spotify_link": { 146 - "name": "spotify_link", 147 - "type": "text", 148 - "primaryKey": false, 149 - "notNull": false 150 - }, 151 - "tidal_link": { 152 - "name": "tidal_link", 153 - "type": "text", 154 - "primaryKey": false, 155 - "notNull": false 156 - }, 157 - "youtube_link": { 158 - "name": "youtube_link", 159 - "type": "text", 160 - "primaryKey": false, 161 - "notNull": false 162 - }, 163 - "sha256": { 164 - "name": "sha256", 165 - "type": "text", 166 - "primaryKey": false, 167 - "notNull": true 168 - }, 169 - "xata_createdat": { 170 - "name": "xata_createdat", 171 - "type": "timestamp", 172 - "primaryKey": false, 173 - "notNull": true, 174 - "default": "now()" 175 - }, 176 - "xata_updatedat": { 177 - "name": "xata_updatedat", 178 - "type": "timestamp", 179 - "primaryKey": false, 180 - "notNull": true, 181 - "default": "now()" 182 - }, 183 - "xata_version": { 184 - "name": "xata_version", 185 - "type": "integer", 186 - "primaryKey": false, 187 - "notNull": false 188 - } 189 - }, 190 - "indexes": {}, 191 - "foreignKeys": {}, 192 - "compositePrimaryKeys": {}, 193 - "uniqueConstraints": { 194 - "albums_uri_unique": { 195 - "name": "albums_uri_unique", 196 - "nullsNotDistinct": false, 197 - "columns": [ 198 - "uri" 199 - ] 200 - }, 201 - "albums_apple_music_link_unique": { 202 - "name": "albums_apple_music_link_unique", 203 - "nullsNotDistinct": false, 204 - "columns": [ 205 - "apple_music_link" 206 - ] 207 - }, 208 - "albums_spotify_link_unique": { 209 - "name": "albums_spotify_link_unique", 210 - "nullsNotDistinct": false, 211 - "columns": [ 212 - "spotify_link" 213 - ] 214 - }, 215 - "albums_tidal_link_unique": { 216 - "name": "albums_tidal_link_unique", 217 - "nullsNotDistinct": false, 218 - "columns": [ 219 - "tidal_link" 220 - ] 221 - }, 222 - "albums_youtube_link_unique": { 223 - "name": "albums_youtube_link_unique", 224 - "nullsNotDistinct": false, 225 - "columns": [ 226 - "youtube_link" 227 - ] 228 - }, 229 - "albums_sha256_unique": { 230 - "name": "albums_sha256_unique", 231 - "nullsNotDistinct": false, 232 - "columns": [ 233 - "sha256" 234 - ] 235 - } 236 - }, 237 - "policies": {}, 238 - "checkConstraints": {}, 239 - "isRLSEnabled": false 240 - }, 241 - "public.api_keys": { 242 - "name": "api_keys", 243 - "schema": "", 244 - "columns": { 245 - "xata_id": { 246 - "name": "xata_id", 247 - "type": "text", 248 - "primaryKey": true, 249 - "notNull": true, 250 - "default": "xata_id()" 251 - }, 252 - "name": { 253 - "name": "name", 254 - "type": "text", 255 - "primaryKey": false, 256 - "notNull": true 257 - }, 258 - "api_key": { 259 - "name": "api_key", 260 - "type": "text", 261 - "primaryKey": false, 262 - "notNull": true 263 - }, 264 - "shared_secret": { 265 - "name": "shared_secret", 266 - "type": "text", 267 - "primaryKey": false, 268 - "notNull": true 269 - }, 270 - "description": { 271 - "name": "description", 272 - "type": "text", 273 - "primaryKey": false, 274 - "notNull": false 275 - }, 276 - "enabled": { 277 - "name": "enabled", 278 - "type": "boolean", 279 - "primaryKey": false, 280 - "notNull": true, 281 - "default": true 282 - }, 283 - "user_id": { 284 - "name": "user_id", 285 - "type": "text", 286 - "primaryKey": false, 287 - "notNull": true 288 - }, 289 - "xata_createdat": { 290 - "name": "xata_createdat", 291 - "type": "timestamp", 292 - "primaryKey": false, 293 - "notNull": true, 294 - "default": "now()" 295 - }, 296 - "xata_updatedat": { 297 - "name": "xata_updatedat", 298 - "type": "timestamp", 299 - "primaryKey": false, 300 - "notNull": true, 301 - "default": "now()" 302 - } 303 - }, 304 - "indexes": {}, 305 - "foreignKeys": { 306 - "api_keys_user_id_users_xata_id_fk": { 307 - "name": "api_keys_user_id_users_xata_id_fk", 308 - "tableFrom": "api_keys", 309 - "tableTo": "users", 310 - "columnsFrom": [ 311 - "user_id" 312 - ], 313 - "columnsTo": [ 314 - "xata_id" 315 - ], 316 - "onDelete": "no action", 317 - "onUpdate": "no action" 318 - } 319 - }, 320 - "compositePrimaryKeys": {}, 321 - "uniqueConstraints": {}, 322 - "policies": {}, 323 - "checkConstraints": {}, 324 - "isRLSEnabled": false 325 - }, 326 - "public.artist_albums": { 327 - "name": "artist_albums", 328 - "schema": "", 329 - "columns": { 330 - "xata_id": { 331 - "name": "xata_id", 332 - "type": "text", 333 - "primaryKey": true, 334 - "notNull": true, 335 - "default": "xata_id()" 336 - }, 337 - "artist_id": { 338 - "name": "artist_id", 339 - "type": "text", 340 - "primaryKey": false, 341 - "notNull": true 342 - }, 343 - "album_id": { 344 - "name": "album_id", 345 - "type": "text", 346 - "primaryKey": false, 347 - "notNull": true 348 - }, 349 - "xata_createdat": { 350 - "name": "xata_createdat", 351 - "type": "timestamp", 352 - "primaryKey": false, 353 - "notNull": true, 354 - "default": "now()" 355 - }, 356 - "xata_updatedat": { 357 - "name": "xata_updatedat", 358 - "type": "timestamp", 359 - "primaryKey": false, 360 - "notNull": true, 361 - "default": "now()" 362 - }, 363 - "xata_version": { 364 - "name": "xata_version", 365 - "type": "integer", 366 - "primaryKey": false, 367 - "notNull": false 368 - } 369 - }, 370 - "indexes": {}, 371 - "foreignKeys": { 372 - "artist_albums_artist_id_artists_xata_id_fk": { 373 - "name": "artist_albums_artist_id_artists_xata_id_fk", 374 - "tableFrom": "artist_albums", 375 - "tableTo": "artists", 376 - "columnsFrom": [ 377 - "artist_id" 378 - ], 379 - "columnsTo": [ 380 - "xata_id" 381 - ], 382 - "onDelete": "no action", 383 - "onUpdate": "no action" 384 - }, 385 - "artist_albums_album_id_albums_xata_id_fk": { 386 - "name": "artist_albums_album_id_albums_xata_id_fk", 387 - "tableFrom": "artist_albums", 388 - "tableTo": "albums", 389 - "columnsFrom": [ 390 - "album_id" 391 - ], 392 - "columnsTo": [ 393 - "xata_id" 394 - ], 395 - "onDelete": "no action", 396 - "onUpdate": "no action" 397 - } 398 - }, 399 - "compositePrimaryKeys": {}, 400 - "uniqueConstraints": {}, 401 - "policies": {}, 402 - "checkConstraints": {}, 403 - "isRLSEnabled": false 404 - }, 405 - "public.artist_tracks": { 406 - "name": "artist_tracks", 407 - "schema": "", 408 - "columns": { 409 - "xata_id": { 410 - "name": "xata_id", 411 - "type": "text", 412 - "primaryKey": true, 413 - "notNull": true, 414 - "default": "xata_id()" 415 - }, 416 - "artist_id": { 417 - "name": "artist_id", 418 - "type": "text", 419 - "primaryKey": false, 420 - "notNull": true 421 - }, 422 - "track_id": { 423 - "name": "track_id", 424 - "type": "text", 425 - "primaryKey": false, 426 - "notNull": true 427 - }, 428 - "xata_createdat": { 429 - "name": "xata_createdat", 430 - "type": "timestamp", 431 - "primaryKey": false, 432 - "notNull": true, 433 - "default": "now()" 434 - }, 435 - "xata_updatedat": { 436 - "name": "xata_updatedat", 437 - "type": "timestamp", 438 - "primaryKey": false, 439 - "notNull": true, 440 - "default": "now()" 441 - }, 442 - "xata_version": { 443 - "name": "xata_version", 444 - "type": "integer", 445 - "primaryKey": false, 446 - "notNull": false 447 - } 448 - }, 449 - "indexes": {}, 450 - "foreignKeys": { 451 - "artist_tracks_artist_id_artists_xata_id_fk": { 452 - "name": "artist_tracks_artist_id_artists_xata_id_fk", 453 - "tableFrom": "artist_tracks", 454 - "tableTo": "artists", 455 - "columnsFrom": [ 456 - "artist_id" 457 - ], 458 - "columnsTo": [ 459 - "xata_id" 460 - ], 461 - "onDelete": "no action", 462 - "onUpdate": "no action" 463 - }, 464 - "artist_tracks_track_id_tracks_xata_id_fk": { 465 - "name": "artist_tracks_track_id_tracks_xata_id_fk", 466 - "tableFrom": "artist_tracks", 467 - "tableTo": "tracks", 468 - "columnsFrom": [ 469 - "track_id" 470 - ], 471 - "columnsTo": [ 472 - "xata_id" 473 - ], 474 - "onDelete": "no action", 475 - "onUpdate": "no action" 476 - } 477 - }, 478 - "compositePrimaryKeys": {}, 479 - "uniqueConstraints": {}, 480 - "policies": {}, 481 - "checkConstraints": {}, 482 - "isRLSEnabled": false 483 - }, 484 - "public.artists": { 485 - "name": "artists", 486 - "schema": "", 487 - "columns": { 488 - "xata_id": { 489 - "name": "xata_id", 490 - "type": "text", 491 - "primaryKey": true, 492 - "notNull": true, 493 - "default": "xata_id()" 494 - }, 495 - "name": { 496 - "name": "name", 497 - "type": "text", 498 - "primaryKey": false, 499 - "notNull": true 500 - }, 501 - "biography": { 502 - "name": "biography", 503 - "type": "text", 504 - "primaryKey": false, 505 - "notNull": false 506 - }, 507 - "born": { 508 - "name": "born", 509 - "type": "timestamp", 510 - "primaryKey": false, 511 - "notNull": false 512 - }, 513 - "born_in": { 514 - "name": "born_in", 515 - "type": "text", 516 - "primaryKey": false, 517 - "notNull": false 518 - }, 519 - "died": { 520 - "name": "died", 521 - "type": "timestamp", 522 - "primaryKey": false, 523 - "notNull": false 524 - }, 525 - "picture": { 526 - "name": "picture", 527 - "type": "text", 528 - "primaryKey": false, 529 - "notNull": false 530 - }, 531 - "sha256": { 532 - "name": "sha256", 533 - "type": "text", 534 - "primaryKey": false, 535 - "notNull": true 536 - }, 537 - "uri": { 538 - "name": "uri", 539 - "type": "text", 540 - "primaryKey": false, 541 - "notNull": false 542 - }, 543 - "apple_music_link": { 544 - "name": "apple_music_link", 545 - "type": "text", 546 - "primaryKey": false, 547 - "notNull": false 548 - }, 549 - "spotify_link": { 550 - "name": "spotify_link", 551 - "type": "text", 552 - "primaryKey": false, 553 - "notNull": false 554 - }, 555 - "tidal_link": { 556 - "name": "tidal_link", 557 - "type": "text", 558 - "primaryKey": false, 559 - "notNull": false 560 - }, 561 - "youtube_link": { 562 - "name": "youtube_link", 563 - "type": "text", 564 - "primaryKey": false, 565 - "notNull": false 566 - }, 567 - "genres": { 568 - "name": "genres", 569 - "type": "text[]", 570 - "primaryKey": false, 571 - "notNull": false 572 - }, 573 - "xata_createdat": { 574 - "name": "xata_createdat", 575 - "type": "timestamp", 576 - "primaryKey": false, 577 - "notNull": true, 578 - "default": "now()" 579 - }, 580 - "xata_updatedat": { 581 - "name": "xata_updatedat", 582 - "type": "timestamp", 583 - "primaryKey": false, 584 - "notNull": true, 585 - "default": "now()" 586 - }, 587 - "xata_version": { 588 - "name": "xata_version", 589 - "type": "integer", 590 - "primaryKey": false, 591 - "notNull": false 592 - } 593 - }, 594 - "indexes": {}, 595 - "foreignKeys": {}, 596 - "compositePrimaryKeys": {}, 597 - "uniqueConstraints": { 598 - "artists_sha256_unique": { 599 - "name": "artists_sha256_unique", 600 - "nullsNotDistinct": false, 601 - "columns": [ 602 - "sha256" 603 - ] 604 - }, 605 - "artists_uri_unique": { 606 - "name": "artists_uri_unique", 607 - "nullsNotDistinct": false, 608 - "columns": [ 609 - "uri" 610 - ] 611 - } 612 - }, 613 - "policies": {}, 614 - "checkConstraints": {}, 615 - "isRLSEnabled": false 616 - }, 617 - "public.dropbox_accounts": { 618 - "name": "dropbox_accounts", 619 - "schema": "", 620 - "columns": { 621 - "xata_id": { 622 - "name": "xata_id", 623 - "type": "text", 624 - "primaryKey": true, 625 - "notNull": true, 626 - "default": "xata_id()" 627 - }, 628 - "email": { 629 - "name": "email", 630 - "type": "text", 631 - "primaryKey": false, 632 - "notNull": true 633 - }, 634 - "is_beta_user": { 635 - "name": "is_beta_user", 636 - "type": "boolean", 637 - "primaryKey": false, 638 - "notNull": true, 639 - "default": false 640 - }, 641 - "user_id": { 642 - "name": "user_id", 643 - "type": "text", 644 - "primaryKey": false, 645 - "notNull": true 646 - }, 647 - "xata_version": { 648 - "name": "xata_version", 649 - "type": "text", 650 - "primaryKey": false, 651 - "notNull": false 652 - }, 653 - "xata_createdat": { 654 - "name": "xata_createdat", 655 - "type": "timestamp", 656 - "primaryKey": false, 657 - "notNull": true, 658 - "default": "now()" 659 - }, 660 - "xata_updatedat": { 661 - "name": "xata_updatedat", 662 - "type": "timestamp", 663 - "primaryKey": false, 664 - "notNull": true, 665 - "default": "now()" 666 - } 667 - }, 668 - "indexes": {}, 669 - "foreignKeys": { 670 - "dropbox_accounts_user_id_users_xata_id_fk": { 671 - "name": "dropbox_accounts_user_id_users_xata_id_fk", 672 - "tableFrom": "dropbox_accounts", 673 - "tableTo": "users", 674 - "columnsFrom": [ 675 - "user_id" 676 - ], 677 - "columnsTo": [ 678 - "xata_id" 679 - ], 680 - "onDelete": "no action", 681 - "onUpdate": "no action" 682 - } 683 - }, 684 - "compositePrimaryKeys": {}, 685 - "uniqueConstraints": { 686 - "dropbox_accounts_email_unique": { 687 - "name": "dropbox_accounts_email_unique", 688 - "nullsNotDistinct": false, 689 - "columns": [ 690 - "email" 691 - ] 692 - } 693 - }, 694 - "policies": {}, 695 - "checkConstraints": {}, 696 - "isRLSEnabled": false 697 - }, 698 - "public.dropbox_directories": { 699 - "name": "dropbox_directories", 700 - "schema": "", 701 - "columns": { 702 - "xata_id": { 703 - "name": "xata_id", 704 - "type": "text", 705 - "primaryKey": true, 706 - "notNull": true, 707 - "default": "xata_id()" 708 - }, 709 - "name": { 710 - "name": "name", 711 - "type": "text", 712 - "primaryKey": false, 713 - "notNull": true 714 - }, 715 - "path": { 716 - "name": "path", 717 - "type": "text", 718 - "primaryKey": false, 719 - "notNull": true 720 - }, 721 - "parent_id": { 722 - "name": "parent_id", 723 - "type": "text", 724 - "primaryKey": false, 725 - "notNull": false 726 - }, 727 - "dropbox_id": { 728 - "name": "dropbox_id", 729 - "type": "text", 730 - "primaryKey": false, 731 - "notNull": true 732 - }, 733 - "file_id": { 734 - "name": "file_id", 735 - "type": "text", 736 - "primaryKey": false, 737 - "notNull": true 738 - }, 739 - "xata_version": { 740 - "name": "xata_version", 741 - "type": "text", 742 - "primaryKey": false, 743 - "notNull": false 744 - }, 745 - "xata_createdat": { 746 - "name": "xata_createdat", 747 - "type": "timestamp", 748 - "primaryKey": false, 749 - "notNull": true, 750 - "default": "now()" 751 - }, 752 - "xata_updatedat": { 753 - "name": "xata_updatedat", 754 - "type": "timestamp", 755 - "primaryKey": false, 756 - "notNull": true, 757 - "default": "now()" 758 - } 759 - }, 760 - "indexes": {}, 761 - "foreignKeys": { 762 - "dropbox_directories_parent_id_dropbox_directories_xata_id_fk": { 763 - "name": "dropbox_directories_parent_id_dropbox_directories_xata_id_fk", 764 - "tableFrom": "dropbox_directories", 765 - "tableTo": "dropbox_directories", 766 - "columnsFrom": [ 767 - "parent_id" 768 - ], 769 - "columnsTo": [ 770 - "xata_id" 771 - ], 772 - "onDelete": "no action", 773 - "onUpdate": "no action" 774 - } 775 - }, 776 - "compositePrimaryKeys": {}, 777 - "uniqueConstraints": { 778 - "dropbox_directories_file_id_unique": { 779 - "name": "dropbox_directories_file_id_unique", 780 - "nullsNotDistinct": false, 781 - "columns": [ 782 - "file_id" 783 - ] 784 - } 785 - }, 786 - "policies": {}, 787 - "checkConstraints": {}, 788 - "isRLSEnabled": false 789 - }, 790 - "public.dropbox_paths": { 791 - "name": "dropbox_paths", 792 - "schema": "", 793 - "columns": { 794 - "xata_id": { 795 - "name": "xata_id", 796 - "type": "text", 797 - "primaryKey": true, 798 - "notNull": true, 799 - "default": "xata_id()" 800 - }, 801 - "path": { 802 - "name": "path", 803 - "type": "text", 804 - "primaryKey": false, 805 - "notNull": true 806 - }, 807 - "name": { 808 - "name": "name", 809 - "type": "text", 810 - "primaryKey": false, 811 - "notNull": true 812 - }, 813 - "dropbox_id": { 814 - "name": "dropbox_id", 815 - "type": "text", 816 - "primaryKey": false, 817 - "notNull": true 818 - }, 819 - "track_id": { 820 - "name": "track_id", 821 - "type": "text", 822 - "primaryKey": false, 823 - "notNull": true 824 - }, 825 - "directory_id": { 826 - "name": "directory_id", 827 - "type": "text", 828 - "primaryKey": false, 829 - "notNull": false 830 - }, 831 - "file_id": { 832 - "name": "file_id", 833 - "type": "text", 834 - "primaryKey": false, 835 - "notNull": true 836 - }, 837 - "xata_version": { 838 - "name": "xata_version", 839 - "type": "text", 840 - "primaryKey": false, 841 - "notNull": false 842 - }, 843 - "xata_createdat": { 844 - "name": "xata_createdat", 845 - "type": "timestamp", 846 - "primaryKey": false, 847 - "notNull": true, 848 - "default": "now()" 849 - }, 850 - "xata_updatedat": { 851 - "name": "xata_updatedat", 852 - "type": "timestamp", 853 - "primaryKey": false, 854 - "notNull": true, 855 - "default": "now()" 856 - } 857 - }, 858 - "indexes": {}, 859 - "foreignKeys": { 860 - "dropbox_paths_directory_id_dropbox_directories_xata_id_fk": { 861 - "name": "dropbox_paths_directory_id_dropbox_directories_xata_id_fk", 862 - "tableFrom": "dropbox_paths", 863 - "tableTo": "dropbox_directories", 864 - "columnsFrom": [ 865 - "directory_id" 866 - ], 867 - "columnsTo": [ 868 - "xata_id" 869 - ], 870 - "onDelete": "no action", 871 - "onUpdate": "no action" 872 - } 873 - }, 874 - "compositePrimaryKeys": {}, 875 - "uniqueConstraints": { 876 - "dropbox_paths_file_id_unique": { 877 - "name": "dropbox_paths_file_id_unique", 878 - "nullsNotDistinct": false, 879 - "columns": [ 880 - "file_id" 881 - ] 882 - } 883 - }, 884 - "policies": {}, 885 - "checkConstraints": {}, 886 - "isRLSEnabled": false 887 - }, 888 - "public.dropbox_tokens": { 889 - "name": "dropbox_tokens", 890 - "schema": "", 891 - "columns": { 892 - "xata_id": { 893 - "name": "xata_id", 894 - "type": "text", 895 - "primaryKey": true, 896 - "notNull": true, 897 - "default": "xata_id()" 898 - }, 899 - "refresh_token": { 900 - "name": "refresh_token", 901 - "type": "text", 902 - "primaryKey": false, 903 - "notNull": true 904 - }, 905 - "xata_createdat": { 906 - "name": "xata_createdat", 907 - "type": "timestamp", 908 - "primaryKey": false, 909 - "notNull": true, 910 - "default": "now()" 911 - }, 912 - "xata_updatedat": { 913 - "name": "xata_updatedat", 914 - "type": "timestamp", 915 - "primaryKey": false, 916 - "notNull": true, 917 - "default": "now()" 918 - } 919 - }, 920 - "indexes": {}, 921 - "foreignKeys": {}, 922 - "compositePrimaryKeys": {}, 923 - "uniqueConstraints": {}, 924 - "policies": {}, 925 - "checkConstraints": {}, 926 - "isRLSEnabled": false 927 - }, 928 - "public.dropbox": { 929 - "name": "dropbox", 930 - "schema": "", 931 - "columns": { 932 - "xata_id": { 933 - "name": "xata_id", 934 - "type": "text", 935 - "primaryKey": true, 936 - "notNull": true, 937 - "default": "xata_id()" 938 - }, 939 - "user_id": { 940 - "name": "user_id", 941 - "type": "text", 942 - "primaryKey": false, 943 - "notNull": true 944 - }, 945 - "dropbox_token_id": { 946 - "name": "dropbox_token_id", 947 - "type": "text", 948 - "primaryKey": false, 949 - "notNull": true 950 - }, 951 - "xata_version": { 952 - "name": "xata_version", 953 - "type": "text", 954 - "primaryKey": false, 955 - "notNull": false 956 - }, 957 - "xata_createdat": { 958 - "name": "xata_createdat", 959 - "type": "timestamp", 960 - "primaryKey": false, 961 - "notNull": true, 962 - "default": "now()" 963 - }, 964 - "xata_updatedat": { 965 - "name": "xata_updatedat", 966 - "type": "timestamp", 967 - "primaryKey": false, 968 - "notNull": true, 969 - "default": "now()" 970 - } 971 - }, 972 - "indexes": {}, 973 - "foreignKeys": { 974 - "dropbox_user_id_users_xata_id_fk": { 975 - "name": "dropbox_user_id_users_xata_id_fk", 976 - "tableFrom": "dropbox", 977 - "tableTo": "users", 978 - "columnsFrom": [ 979 - "user_id" 980 - ], 981 - "columnsTo": [ 982 - "xata_id" 983 - ], 984 - "onDelete": "no action", 985 - "onUpdate": "no action" 986 - }, 987 - "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk": { 988 - "name": "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk", 989 - "tableFrom": "dropbox", 990 - "tableTo": "dropbox_tokens", 991 - "columnsFrom": [ 992 - "dropbox_token_id" 993 - ], 994 - "columnsTo": [ 995 - "xata_id" 996 - ], 997 - "onDelete": "no action", 998 - "onUpdate": "no action" 999 - } 1000 - }, 1001 - "compositePrimaryKeys": {}, 1002 - "uniqueConstraints": {}, 1003 - "policies": {}, 1004 - "checkConstraints": {}, 1005 - "isRLSEnabled": false 1006 - }, 1007 - "public.feeds": { 1008 - "name": "feeds", 1009 - "schema": "", 1010 - "columns": { 1011 - "xata_id": { 1012 - "name": "xata_id", 1013 - "type": "text", 1014 - "primaryKey": true, 1015 - "notNull": true, 1016 - "default": "xata_id()" 1017 - }, 1018 - "display_name": { 1019 - "name": "display_name", 1020 - "type": "text", 1021 - "primaryKey": false, 1022 - "notNull": true 1023 - }, 1024 - "description": { 1025 - "name": "description", 1026 - "type": "text", 1027 - "primaryKey": false, 1028 - "notNull": false 1029 - }, 1030 - "did": { 1031 - "name": "did", 1032 - "type": "text", 1033 - "primaryKey": false, 1034 - "notNull": true 1035 - }, 1036 - "uri": { 1037 - "name": "uri", 1038 - "type": "text", 1039 - "primaryKey": false, 1040 - "notNull": true 1041 - }, 1042 - "user_id": { 1043 - "name": "user_id", 1044 - "type": "text", 1045 - "primaryKey": false, 1046 - "notNull": true 1047 - }, 1048 - "xata_version": { 1049 - "name": "xata_version", 1050 - "type": "integer", 1051 - "primaryKey": false, 1052 - "notNull": false 1053 - }, 1054 - "xata_createdat": { 1055 - "name": "xata_createdat", 1056 - "type": "timestamp", 1057 - "primaryKey": false, 1058 - "notNull": true, 1059 - "default": "now()" 1060 - }, 1061 - "xata_updatedat": { 1062 - "name": "xata_updatedat", 1063 - "type": "timestamp", 1064 - "primaryKey": false, 1065 - "notNull": true, 1066 - "default": "now()" 1067 - } 1068 - }, 1069 - "indexes": {}, 1070 - "foreignKeys": { 1071 - "feeds_user_id_users_xata_id_fk": { 1072 - "name": "feeds_user_id_users_xata_id_fk", 1073 - "tableFrom": "feeds", 1074 - "tableTo": "users", 1075 - "columnsFrom": [ 1076 - "user_id" 1077 - ], 1078 - "columnsTo": [ 1079 - "xata_id" 1080 - ], 1081 - "onDelete": "no action", 1082 - "onUpdate": "no action" 1083 - } 1084 - }, 1085 - "compositePrimaryKeys": {}, 1086 - "uniqueConstraints": { 1087 - "feeds_did_unique": { 1088 - "name": "feeds_did_unique", 1089 - "nullsNotDistinct": false, 1090 - "columns": [ 1091 - "did" 1092 - ] 1093 - }, 1094 - "feeds_uri_unique": { 1095 - "name": "feeds_uri_unique", 1096 - "nullsNotDistinct": false, 1097 - "columns": [ 1098 - "uri" 1099 - ] 1100 - } 1101 - }, 1102 - "policies": {}, 1103 - "checkConstraints": {}, 1104 - "isRLSEnabled": false 1105 - }, 1106 - "public.google_drive_accounts": { 1107 - "name": "google_drive_accounts", 1108 - "schema": "", 1109 - "columns": { 1110 - "xata_id": { 1111 - "name": "xata_id", 1112 - "type": "text", 1113 - "primaryKey": true, 1114 - "notNull": true, 1115 - "default": "xata_id()" 1116 - }, 1117 - "email": { 1118 - "name": "email", 1119 - "type": "text", 1120 - "primaryKey": false, 1121 - "notNull": true 1122 - }, 1123 - "is_beta_user": { 1124 - "name": "is_beta_user", 1125 - "type": "boolean", 1126 - "primaryKey": false, 1127 - "notNull": true, 1128 - "default": false 1129 - }, 1130 - "user_id": { 1131 - "name": "user_id", 1132 - "type": "text", 1133 - "primaryKey": false, 1134 - "notNull": true 1135 - }, 1136 - "xata_version": { 1137 - "name": "xata_version", 1138 - "type": "text", 1139 - "primaryKey": false, 1140 - "notNull": false 1141 - }, 1142 - "xata_createdat": { 1143 - "name": "xata_createdat", 1144 - "type": "timestamp", 1145 - "primaryKey": false, 1146 - "notNull": true, 1147 - "default": "now()" 1148 - }, 1149 - "xata_updatedat": { 1150 - "name": "xata_updatedat", 1151 - "type": "timestamp", 1152 - "primaryKey": false, 1153 - "notNull": true, 1154 - "default": "now()" 1155 - } 1156 - }, 1157 - "indexes": {}, 1158 - "foreignKeys": { 1159 - "google_drive_accounts_user_id_users_xata_id_fk": { 1160 - "name": "google_drive_accounts_user_id_users_xata_id_fk", 1161 - "tableFrom": "google_drive_accounts", 1162 - "tableTo": "users", 1163 - "columnsFrom": [ 1164 - "user_id" 1165 - ], 1166 - "columnsTo": [ 1167 - "xata_id" 1168 - ], 1169 - "onDelete": "no action", 1170 - "onUpdate": "no action" 1171 - } 1172 - }, 1173 - "compositePrimaryKeys": {}, 1174 - "uniqueConstraints": { 1175 - "google_drive_accounts_email_unique": { 1176 - "name": "google_drive_accounts_email_unique", 1177 - "nullsNotDistinct": false, 1178 - "columns": [ 1179 - "email" 1180 - ] 1181 - } 1182 - }, 1183 - "policies": {}, 1184 - "checkConstraints": {}, 1185 - "isRLSEnabled": false 1186 - }, 1187 - "public.google_drive_directories": { 1188 - "name": "google_drive_directories", 1189 - "schema": "", 1190 - "columns": { 1191 - "xata_id": { 1192 - "name": "xata_id", 1193 - "type": "text", 1194 - "primaryKey": true, 1195 - "notNull": true, 1196 - "default": "xata_id()" 1197 - }, 1198 - "name": { 1199 - "name": "name", 1200 - "type": "text", 1201 - "primaryKey": false, 1202 - "notNull": true 1203 - }, 1204 - "path": { 1205 - "name": "path", 1206 - "type": "text", 1207 - "primaryKey": false, 1208 - "notNull": true 1209 - }, 1210 - "parent_id": { 1211 - "name": "parent_id", 1212 - "type": "text", 1213 - "primaryKey": false, 1214 - "notNull": false 1215 - }, 1216 - "google_drive_id": { 1217 - "name": "google_drive_id", 1218 - "type": "text", 1219 - "primaryKey": false, 1220 - "notNull": true 1221 - }, 1222 - "file_id": { 1223 - "name": "file_id", 1224 - "type": "text", 1225 - "primaryKey": false, 1226 - "notNull": true 1227 - }, 1228 - "xata_version": { 1229 - "name": "xata_version", 1230 - "type": "text", 1231 - "primaryKey": false, 1232 - "notNull": false 1233 - }, 1234 - "xata_createdat": { 1235 - "name": "xata_createdat", 1236 - "type": "timestamp", 1237 - "primaryKey": false, 1238 - "notNull": true, 1239 - "default": "now()" 1240 - }, 1241 - "xata_updatedat": { 1242 - "name": "xata_updatedat", 1243 - "type": "timestamp", 1244 - "primaryKey": false, 1245 - "notNull": true, 1246 - "default": "now()" 1247 - } 1248 - }, 1249 - "indexes": {}, 1250 - "foreignKeys": { 1251 - "google_drive_directories_parent_id_google_drive_directories_xata_id_fk": { 1252 - "name": "google_drive_directories_parent_id_google_drive_directories_xata_id_fk", 1253 - "tableFrom": "google_drive_directories", 1254 - "tableTo": "google_drive_directories", 1255 - "columnsFrom": [ 1256 - "parent_id" 1257 - ], 1258 - "columnsTo": [ 1259 - "xata_id" 1260 - ], 1261 - "onDelete": "no action", 1262 - "onUpdate": "no action" 1263 - } 1264 - }, 1265 - "compositePrimaryKeys": {}, 1266 - "uniqueConstraints": { 1267 - "google_drive_directories_file_id_unique": { 1268 - "name": "google_drive_directories_file_id_unique", 1269 - "nullsNotDistinct": false, 1270 - "columns": [ 1271 - "file_id" 1272 - ] 1273 - } 1274 - }, 1275 - "policies": {}, 1276 - "checkConstraints": {}, 1277 - "isRLSEnabled": false 1278 - }, 1279 - "public.google_drive_paths": { 1280 - "name": "google_drive_paths", 1281 - "schema": "", 1282 - "columns": { 1283 - "xata_id": { 1284 - "name": "xata_id", 1285 - "type": "text", 1286 - "primaryKey": true, 1287 - "notNull": true, 1288 - "default": "xata_id()" 1289 - }, 1290 - "google_drive_id": { 1291 - "name": "google_drive_id", 1292 - "type": "text", 1293 - "primaryKey": false, 1294 - "notNull": true 1295 - }, 1296 - "track_id": { 1297 - "name": "track_id", 1298 - "type": "text", 1299 - "primaryKey": false, 1300 - "notNull": true 1301 - }, 1302 - "name": { 1303 - "name": "name", 1304 - "type": "text", 1305 - "primaryKey": false, 1306 - "notNull": true 1307 - }, 1308 - "directory_id": { 1309 - "name": "directory_id", 1310 - "type": "text", 1311 - "primaryKey": false, 1312 - "notNull": false 1313 - }, 1314 - "file_id": { 1315 - "name": "file_id", 1316 - "type": "text", 1317 - "primaryKey": false, 1318 - "notNull": true 1319 - }, 1320 - "xata_version": { 1321 - "name": "xata_version", 1322 - "type": "text", 1323 - "primaryKey": false, 1324 - "notNull": false 1325 - }, 1326 - "xata_createdat": { 1327 - "name": "xata_createdat", 1328 - "type": "timestamp", 1329 - "primaryKey": false, 1330 - "notNull": true, 1331 - "default": "now()" 1332 - }, 1333 - "xata_updatedat": { 1334 - "name": "xata_updatedat", 1335 - "type": "timestamp", 1336 - "primaryKey": false, 1337 - "notNull": true, 1338 - "default": "now()" 1339 - } 1340 - }, 1341 - "indexes": {}, 1342 - "foreignKeys": { 1343 - "google_drive_paths_directory_id_google_drive_directories_xata_id_fk": { 1344 - "name": "google_drive_paths_directory_id_google_drive_directories_xata_id_fk", 1345 - "tableFrom": "google_drive_paths", 1346 - "tableTo": "google_drive_directories", 1347 - "columnsFrom": [ 1348 - "directory_id" 1349 - ], 1350 - "columnsTo": [ 1351 - "xata_id" 1352 - ], 1353 - "onDelete": "no action", 1354 - "onUpdate": "no action" 1355 - } 1356 - }, 1357 - "compositePrimaryKeys": {}, 1358 - "uniqueConstraints": { 1359 - "google_drive_paths_file_id_unique": { 1360 - "name": "google_drive_paths_file_id_unique", 1361 - "nullsNotDistinct": false, 1362 - "columns": [ 1363 - "file_id" 1364 - ] 1365 - } 1366 - }, 1367 - "policies": {}, 1368 - "checkConstraints": {}, 1369 - "isRLSEnabled": false 1370 - }, 1371 - "public.google_drive_tokens": { 1372 - "name": "google_drive_tokens", 1373 - "schema": "", 1374 - "columns": { 1375 - "xata_id": { 1376 - "name": "xata_id", 1377 - "type": "text", 1378 - "primaryKey": true, 1379 - "notNull": true, 1380 - "default": "xata_id()" 1381 - }, 1382 - "refresh_token": { 1383 - "name": "refresh_token", 1384 - "type": "text", 1385 - "primaryKey": false, 1386 - "notNull": true 1387 - }, 1388 - "xata_createdat": { 1389 - "name": "xata_createdat", 1390 - "type": "timestamp", 1391 - "primaryKey": false, 1392 - "notNull": true, 1393 - "default": "now()" 1394 - }, 1395 - "xata_updatedat": { 1396 - "name": "xata_updatedat", 1397 - "type": "timestamp", 1398 - "primaryKey": false, 1399 - "notNull": true, 1400 - "default": "now()" 1401 - } 1402 - }, 1403 - "indexes": {}, 1404 - "foreignKeys": {}, 1405 - "compositePrimaryKeys": {}, 1406 - "uniqueConstraints": {}, 1407 - "policies": {}, 1408 - "checkConstraints": {}, 1409 - "isRLSEnabled": false 1410 - }, 1411 - "public.google_drive": { 1412 - "name": "google_drive", 1413 - "schema": "", 1414 - "columns": { 1415 - "xata_id": { 1416 - "name": "xata_id", 1417 - "type": "text", 1418 - "primaryKey": true, 1419 - "notNull": true, 1420 - "default": "xata_id()" 1421 - }, 1422 - "google_drive_token_id": { 1423 - "name": "google_drive_token_id", 1424 - "type": "text", 1425 - "primaryKey": false, 1426 - "notNull": true 1427 - }, 1428 - "user_id": { 1429 - "name": "user_id", 1430 - "type": "text", 1431 - "primaryKey": false, 1432 - "notNull": true 1433 - }, 1434 - "xata_version": { 1435 - "name": "xata_version", 1436 - "type": "text", 1437 - "primaryKey": false, 1438 - "notNull": false 1439 - }, 1440 - "xata_createdat": { 1441 - "name": "xata_createdat", 1442 - "type": "timestamp", 1443 - "primaryKey": false, 1444 - "notNull": true, 1445 - "default": "now()" 1446 - }, 1447 - "xata_updatedat": { 1448 - "name": "xata_updatedat", 1449 - "type": "timestamp", 1450 - "primaryKey": false, 1451 - "notNull": true, 1452 - "default": "now()" 1453 - } 1454 - }, 1455 - "indexes": {}, 1456 - "foreignKeys": { 1457 - "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk": { 1458 - "name": "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk", 1459 - "tableFrom": "google_drive", 1460 - "tableTo": "google_drive_tokens", 1461 - "columnsFrom": [ 1462 - "google_drive_token_id" 1463 - ], 1464 - "columnsTo": [ 1465 - "xata_id" 1466 - ], 1467 - "onDelete": "no action", 1468 - "onUpdate": "no action" 1469 - }, 1470 - "google_drive_user_id_users_xata_id_fk": { 1471 - "name": "google_drive_user_id_users_xata_id_fk", 1472 - "tableFrom": "google_drive", 1473 - "tableTo": "users", 1474 - "columnsFrom": [ 1475 - "user_id" 1476 - ], 1477 - "columnsTo": [ 1478 - "xata_id" 1479 - ], 1480 - "onDelete": "no action", 1481 - "onUpdate": "no action" 1482 - } 1483 - }, 1484 - "compositePrimaryKeys": {}, 1485 - "uniqueConstraints": {}, 1486 - "policies": {}, 1487 - "checkConstraints": {}, 1488 - "isRLSEnabled": false 1489 - }, 1490 - "public.loved_tracks": { 1491 - "name": "loved_tracks", 1492 - "schema": "", 1493 - "columns": { 1494 - "xata_id": { 1495 - "name": "xata_id", 1496 - "type": "text", 1497 - "primaryKey": true, 1498 - "notNull": true, 1499 - "default": "xata_id()" 1500 - }, 1501 - "user_id": { 1502 - "name": "user_id", 1503 - "type": "text", 1504 - "primaryKey": false, 1505 - "notNull": true 1506 - }, 1507 - "track_id": { 1508 - "name": "track_id", 1509 - "type": "text", 1510 - "primaryKey": false, 1511 - "notNull": true 1512 - }, 1513 - "uri": { 1514 - "name": "uri", 1515 - "type": "text", 1516 - "primaryKey": false, 1517 - "notNull": false 1518 - }, 1519 - "xata_createdat": { 1520 - "name": "xata_createdat", 1521 - "type": "timestamp", 1522 - "primaryKey": false, 1523 - "notNull": true, 1524 - "default": "now()" 1525 - } 1526 - }, 1527 - "indexes": {}, 1528 - "foreignKeys": { 1529 - "loved_tracks_user_id_users_xata_id_fk": { 1530 - "name": "loved_tracks_user_id_users_xata_id_fk", 1531 - "tableFrom": "loved_tracks", 1532 - "tableTo": "users", 1533 - "columnsFrom": [ 1534 - "user_id" 1535 - ], 1536 - "columnsTo": [ 1537 - "xata_id" 1538 - ], 1539 - "onDelete": "no action", 1540 - "onUpdate": "no action" 1541 - }, 1542 - "loved_tracks_track_id_tracks_xata_id_fk": { 1543 - "name": "loved_tracks_track_id_tracks_xata_id_fk", 1544 - "tableFrom": "loved_tracks", 1545 - "tableTo": "tracks", 1546 - "columnsFrom": [ 1547 - "track_id" 1548 - ], 1549 - "columnsTo": [ 1550 - "xata_id" 1551 - ], 1552 - "onDelete": "no action", 1553 - "onUpdate": "no action" 1554 - } 1555 - }, 1556 - "compositePrimaryKeys": {}, 1557 - "uniqueConstraints": { 1558 - "loved_tracks_uri_unique": { 1559 - "name": "loved_tracks_uri_unique", 1560 - "nullsNotDistinct": false, 1561 - "columns": [ 1562 - "uri" 1563 - ] 1564 - } 1565 - }, 1566 - "policies": {}, 1567 - "checkConstraints": {}, 1568 - "isRLSEnabled": false 1569 - }, 1570 - "public.playlist_tracks": { 1571 - "name": "playlist_tracks", 1572 - "schema": "", 1573 - "columns": { 1574 - "xata_id": { 1575 - "name": "xata_id", 1576 - "type": "text", 1577 - "primaryKey": true, 1578 - "notNull": true, 1579 - "default": "xata_id()" 1580 - }, 1581 - "playlist_id": { 1582 - "name": "playlist_id", 1583 - "type": "text", 1584 - "primaryKey": false, 1585 - "notNull": true 1586 - }, 1587 - "track_id": { 1588 - "name": "track_id", 1589 - "type": "text", 1590 - "primaryKey": false, 1591 - "notNull": true 1592 - }, 1593 - "xata_createdat": { 1594 - "name": "xata_createdat", 1595 - "type": "timestamp", 1596 - "primaryKey": false, 1597 - "notNull": true, 1598 - "default": "now()" 1599 - } 1600 - }, 1601 - "indexes": {}, 1602 - "foreignKeys": { 1603 - "playlist_tracks_playlist_id_playlists_xata_id_fk": { 1604 - "name": "playlist_tracks_playlist_id_playlists_xata_id_fk", 1605 - "tableFrom": "playlist_tracks", 1606 - "tableTo": "playlists", 1607 - "columnsFrom": [ 1608 - "playlist_id" 1609 - ], 1610 - "columnsTo": [ 1611 - "xata_id" 1612 - ], 1613 - "onDelete": "no action", 1614 - "onUpdate": "no action" 1615 - }, 1616 - "playlist_tracks_track_id_tracks_xata_id_fk": { 1617 - "name": "playlist_tracks_track_id_tracks_xata_id_fk", 1618 - "tableFrom": "playlist_tracks", 1619 - "tableTo": "tracks", 1620 - "columnsFrom": [ 1621 - "track_id" 1622 - ], 1623 - "columnsTo": [ 1624 - "xata_id" 1625 - ], 1626 - "onDelete": "no action", 1627 - "onUpdate": "no action" 1628 - } 1629 - }, 1630 - "compositePrimaryKeys": {}, 1631 - "uniqueConstraints": {}, 1632 - "policies": {}, 1633 - "checkConstraints": {}, 1634 - "isRLSEnabled": false 1635 - }, 1636 - "public.playlists": { 1637 - "name": "playlists", 1638 - "schema": "", 1639 - "columns": { 1640 - "xata_id": { 1641 - "name": "xata_id", 1642 - "type": "text", 1643 - "primaryKey": true, 1644 - "notNull": true, 1645 - "default": "xata_id()" 1646 - }, 1647 - "name": { 1648 - "name": "name", 1649 - "type": "text", 1650 - "primaryKey": false, 1651 - "notNull": true 1652 - }, 1653 - "picture": { 1654 - "name": "picture", 1655 - "type": "text", 1656 - "primaryKey": false, 1657 - "notNull": false 1658 - }, 1659 - "description": { 1660 - "name": "description", 1661 - "type": "text", 1662 - "primaryKey": false, 1663 - "notNull": false 1664 - }, 1665 - "uri": { 1666 - "name": "uri", 1667 - "type": "text", 1668 - "primaryKey": false, 1669 - "notNull": false 1670 - }, 1671 - "spotify_link": { 1672 - "name": "spotify_link", 1673 - "type": "text", 1674 - "primaryKey": false, 1675 - "notNull": false 1676 - }, 1677 - "tidal_link": { 1678 - "name": "tidal_link", 1679 - "type": "text", 1680 - "primaryKey": false, 1681 - "notNull": false 1682 - }, 1683 - "apple_music_link": { 1684 - "name": "apple_music_link", 1685 - "type": "text", 1686 - "primaryKey": false, 1687 - "notNull": false 1688 - }, 1689 - "created_by": { 1690 - "name": "created_by", 1691 - "type": "text", 1692 - "primaryKey": false, 1693 - "notNull": true 1694 - }, 1695 - "xata_createdat": { 1696 - "name": "xata_createdat", 1697 - "type": "timestamp", 1698 - "primaryKey": false, 1699 - "notNull": true, 1700 - "default": "now()" 1701 - }, 1702 - "xata_updatedat": { 1703 - "name": "xata_updatedat", 1704 - "type": "timestamp", 1705 - "primaryKey": false, 1706 - "notNull": true, 1707 - "default": "now()" 1708 - } 1709 - }, 1710 - "indexes": {}, 1711 - "foreignKeys": { 1712 - "playlists_created_by_users_xata_id_fk": { 1713 - "name": "playlists_created_by_users_xata_id_fk", 1714 - "tableFrom": "playlists", 1715 - "tableTo": "users", 1716 - "columnsFrom": [ 1717 - "created_by" 1718 - ], 1719 - "columnsTo": [ 1720 - "xata_id" 1721 - ], 1722 - "onDelete": "no action", 1723 - "onUpdate": "no action" 1724 - } 1725 - }, 1726 - "compositePrimaryKeys": {}, 1727 - "uniqueConstraints": { 1728 - "playlists_uri_unique": { 1729 - "name": "playlists_uri_unique", 1730 - "nullsNotDistinct": false, 1731 - "columns": [ 1732 - "uri" 1733 - ] 1734 - } 1735 - }, 1736 - "policies": {}, 1737 - "checkConstraints": {}, 1738 - "isRLSEnabled": false 1739 - }, 1740 - "public.profile_shouts": { 1741 - "name": "profile_shouts", 1742 - "schema": "", 1743 - "columns": { 1744 - "xata_id": { 1745 - "name": "xata_id", 1746 - "type": "text", 1747 - "primaryKey": true, 1748 - "notNull": true, 1749 - "default": "xata_id()" 1750 - }, 1751 - "user_id": { 1752 - "name": "user_id", 1753 - "type": "text", 1754 - "primaryKey": false, 1755 - "notNull": true 1756 - }, 1757 - "shout_id": { 1758 - "name": "shout_id", 1759 - "type": "text", 1760 - "primaryKey": false, 1761 - "notNull": true 1762 - }, 1763 - "xata_createdat": { 1764 - "name": "xata_createdat", 1765 - "type": "timestamp", 1766 - "primaryKey": false, 1767 - "notNull": true, 1768 - "default": "now()" 1769 - } 1770 - }, 1771 - "indexes": {}, 1772 - "foreignKeys": { 1773 - "profile_shouts_user_id_users_xata_id_fk": { 1774 - "name": "profile_shouts_user_id_users_xata_id_fk", 1775 - "tableFrom": "profile_shouts", 1776 - "tableTo": "users", 1777 - "columnsFrom": [ 1778 - "user_id" 1779 - ], 1780 - "columnsTo": [ 1781 - "xata_id" 1782 - ], 1783 - "onDelete": "no action", 1784 - "onUpdate": "no action" 1785 - }, 1786 - "profile_shouts_shout_id_shouts_xata_id_fk": { 1787 - "name": "profile_shouts_shout_id_shouts_xata_id_fk", 1788 - "tableFrom": "profile_shouts", 1789 - "tableTo": "shouts", 1790 - "columnsFrom": [ 1791 - "shout_id" 1792 - ], 1793 - "columnsTo": [ 1794 - "xata_id" 1795 - ], 1796 - "onDelete": "no action", 1797 - "onUpdate": "no action" 1798 - } 1799 - }, 1800 - "compositePrimaryKeys": {}, 1801 - "uniqueConstraints": {}, 1802 - "policies": {}, 1803 - "checkConstraints": {}, 1804 - "isRLSEnabled": false 1805 - }, 1806 - "public.queue_tracks": { 1807 - "name": "queue_tracks", 1808 - "schema": "", 1809 - "columns": { 1810 - "xata_id": { 1811 - "name": "xata_id", 1812 - "type": "text", 1813 - "primaryKey": true, 1814 - "notNull": true, 1815 - "default": "xata_id()" 1816 - }, 1817 - "user_id": { 1818 - "name": "user_id", 1819 - "type": "text", 1820 - "primaryKey": false, 1821 - "notNull": true 1822 - }, 1823 - "track_id": { 1824 - "name": "track_id", 1825 - "type": "text", 1826 - "primaryKey": false, 1827 - "notNull": true 1828 - }, 1829 - "position": { 1830 - "name": "position", 1831 - "type": "integer", 1832 - "primaryKey": false, 1833 - "notNull": true 1834 - }, 1835 - "file_uri": { 1836 - "name": "file_uri", 1837 - "type": "text", 1838 - "primaryKey": false, 1839 - "notNull": true 1840 - }, 1841 - "xata_version": { 1842 - "name": "xata_version", 1843 - "type": "integer", 1844 - "primaryKey": false, 1845 - "notNull": true, 1846 - "default": 0 1847 - }, 1848 - "xata_createdat": { 1849 - "name": "xata_createdat", 1850 - "type": "timestamp", 1851 - "primaryKey": false, 1852 - "notNull": true, 1853 - "default": "now()" 1854 - }, 1855 - "xata_updatedat": { 1856 - "name": "xata_updatedat", 1857 - "type": "timestamp", 1858 - "primaryKey": false, 1859 - "notNull": true, 1860 - "default": "now()" 1861 - } 1862 - }, 1863 - "indexes": {}, 1864 - "foreignKeys": { 1865 - "queue_tracks_user_id_users_xata_id_fk": { 1866 - "name": "queue_tracks_user_id_users_xata_id_fk", 1867 - "tableFrom": "queue_tracks", 1868 - "tableTo": "users", 1869 - "columnsFrom": [ 1870 - "user_id" 1871 - ], 1872 - "columnsTo": [ 1873 - "xata_id" 1874 - ], 1875 - "onDelete": "no action", 1876 - "onUpdate": "no action" 1877 - }, 1878 - "queue_tracks_track_id_tracks_xata_id_fk": { 1879 - "name": "queue_tracks_track_id_tracks_xata_id_fk", 1880 - "tableFrom": "queue_tracks", 1881 - "tableTo": "tracks", 1882 - "columnsFrom": [ 1883 - "track_id" 1884 - ], 1885 - "columnsTo": [ 1886 - "xata_id" 1887 - ], 1888 - "onDelete": "no action", 1889 - "onUpdate": "no action" 1890 - } 1891 - }, 1892 - "compositePrimaryKeys": {}, 1893 - "uniqueConstraints": {}, 1894 - "policies": {}, 1895 - "checkConstraints": {}, 1896 - "isRLSEnabled": false 1897 - }, 1898 - "public.scrobbles": { 1899 - "name": "scrobbles", 1900 - "schema": "", 1901 - "columns": { 1902 - "xata_id": { 1903 - "name": "xata_id", 1904 - "type": "text", 1905 - "primaryKey": true, 1906 - "notNull": true, 1907 - "default": "xata_id()" 1908 - }, 1909 - "user_id": { 1910 - "name": "user_id", 1911 - "type": "text", 1912 - "primaryKey": false, 1913 - "notNull": false 1914 - }, 1915 - "track_id": { 1916 - "name": "track_id", 1917 - "type": "text", 1918 - "primaryKey": false, 1919 - "notNull": false 1920 - }, 1921 - "album_id": { 1922 - "name": "album_id", 1923 - "type": "text", 1924 - "primaryKey": false, 1925 - "notNull": false 1926 - }, 1927 - "artist_id": { 1928 - "name": "artist_id", 1929 - "type": "text", 1930 - "primaryKey": false, 1931 - "notNull": false 1932 - }, 1933 - "uri": { 1934 - "name": "uri", 1935 - "type": "text", 1936 - "primaryKey": false, 1937 - "notNull": false 1938 - }, 1939 - "xata_createdat": { 1940 - "name": "xata_createdat", 1941 - "type": "timestamp", 1942 - "primaryKey": false, 1943 - "notNull": true, 1944 - "default": "now()" 1945 - }, 1946 - "xata_updatedat": { 1947 - "name": "xata_updatedat", 1948 - "type": "timestamp", 1949 - "primaryKey": false, 1950 - "notNull": true, 1951 - "default": "now()" 1952 - }, 1953 - "xata_version": { 1954 - "name": "xata_version", 1955 - "type": "integer", 1956 - "primaryKey": false, 1957 - "notNull": false 1958 - }, 1959 - "timestamp": { 1960 - "name": "timestamp", 1961 - "type": "timestamp", 1962 - "primaryKey": false, 1963 - "notNull": true, 1964 - "default": "now()" 1965 - } 1966 - }, 1967 - "indexes": {}, 1968 - "foreignKeys": { 1969 - "scrobbles_user_id_users_xata_id_fk": { 1970 - "name": "scrobbles_user_id_users_xata_id_fk", 1971 - "tableFrom": "scrobbles", 1972 - "tableTo": "users", 1973 - "columnsFrom": [ 1974 - "user_id" 1975 - ], 1976 - "columnsTo": [ 1977 - "xata_id" 1978 - ], 1979 - "onDelete": "no action", 1980 - "onUpdate": "no action" 1981 - }, 1982 - "scrobbles_track_id_tracks_xata_id_fk": { 1983 - "name": "scrobbles_track_id_tracks_xata_id_fk", 1984 - "tableFrom": "scrobbles", 1985 - "tableTo": "tracks", 1986 - "columnsFrom": [ 1987 - "track_id" 1988 - ], 1989 - "columnsTo": [ 1990 - "xata_id" 1991 - ], 1992 - "onDelete": "no action", 1993 - "onUpdate": "no action" 1994 - }, 1995 - "scrobbles_album_id_albums_xata_id_fk": { 1996 - "name": "scrobbles_album_id_albums_xata_id_fk", 1997 - "tableFrom": "scrobbles", 1998 - "tableTo": "albums", 1999 - "columnsFrom": [ 2000 - "album_id" 2001 - ], 2002 - "columnsTo": [ 2003 - "xata_id" 2004 - ], 2005 - "onDelete": "no action", 2006 - "onUpdate": "no action" 2007 - }, 2008 - "scrobbles_artist_id_artists_xata_id_fk": { 2009 - "name": "scrobbles_artist_id_artists_xata_id_fk", 2010 - "tableFrom": "scrobbles", 2011 - "tableTo": "artists", 2012 - "columnsFrom": [ 2013 - "artist_id" 2014 - ], 2015 - "columnsTo": [ 2016 - "xata_id" 2017 - ], 2018 - "onDelete": "no action", 2019 - "onUpdate": "no action" 2020 - } 2021 - }, 2022 - "compositePrimaryKeys": {}, 2023 - "uniqueConstraints": { 2024 - "scrobbles_uri_unique": { 2025 - "name": "scrobbles_uri_unique", 2026 - "nullsNotDistinct": false, 2027 - "columns": [ 2028 - "uri" 2029 - ] 2030 - } 2031 - }, 2032 - "policies": {}, 2033 - "checkConstraints": {}, 2034 - "isRLSEnabled": false 2035 - }, 2036 - "public.shout_likes": { 2037 - "name": "shout_likes", 2038 - "schema": "", 2039 - "columns": { 2040 - "xata_id": { 2041 - "name": "xata_id", 2042 - "type": "text", 2043 - "primaryKey": true, 2044 - "notNull": true, 2045 - "default": "xata_id()" 2046 - }, 2047 - "user_id": { 2048 - "name": "user_id", 2049 - "type": "text", 2050 - "primaryKey": false, 2051 - "notNull": true 2052 - }, 2053 - "shout_id": { 2054 - "name": "shout_id", 2055 - "type": "text", 2056 - "primaryKey": false, 2057 - "notNull": true 2058 - }, 2059 - "xata_createdat": { 2060 - "name": "xata_createdat", 2061 - "type": "timestamp", 2062 - "primaryKey": false, 2063 - "notNull": true, 2064 - "default": "now()" 2065 - }, 2066 - "uri": { 2067 - "name": "uri", 2068 - "type": "text", 2069 - "primaryKey": false, 2070 - "notNull": true 2071 - } 2072 - }, 2073 - "indexes": {}, 2074 - "foreignKeys": { 2075 - "shout_likes_user_id_users_xata_id_fk": { 2076 - "name": "shout_likes_user_id_users_xata_id_fk", 2077 - "tableFrom": "shout_likes", 2078 - "tableTo": "users", 2079 - "columnsFrom": [ 2080 - "user_id" 2081 - ], 2082 - "columnsTo": [ 2083 - "xata_id" 2084 - ], 2085 - "onDelete": "no action", 2086 - "onUpdate": "no action" 2087 - }, 2088 - "shout_likes_shout_id_shouts_xata_id_fk": { 2089 - "name": "shout_likes_shout_id_shouts_xata_id_fk", 2090 - "tableFrom": "shout_likes", 2091 - "tableTo": "shouts", 2092 - "columnsFrom": [ 2093 - "shout_id" 2094 - ], 2095 - "columnsTo": [ 2096 - "xata_id" 2097 - ], 2098 - "onDelete": "no action", 2099 - "onUpdate": "no action" 2100 - } 2101 - }, 2102 - "compositePrimaryKeys": {}, 2103 - "uniqueConstraints": { 2104 - "shout_likes_uri_unique": { 2105 - "name": "shout_likes_uri_unique", 2106 - "nullsNotDistinct": false, 2107 - "columns": [ 2108 - "uri" 2109 - ] 2110 - } 2111 - }, 2112 - "policies": {}, 2113 - "checkConstraints": {}, 2114 - "isRLSEnabled": false 2115 - }, 2116 - "public.shout_reports": { 2117 - "name": "shout_reports", 2118 - "schema": "", 2119 - "columns": { 2120 - "xata_id": { 2121 - "name": "xata_id", 2122 - "type": "text", 2123 - "primaryKey": true, 2124 - "notNull": true, 2125 - "default": "xata_id()" 2126 - }, 2127 - "user_id": { 2128 - "name": "user_id", 2129 - "type": "text", 2130 - "primaryKey": false, 2131 - "notNull": true 2132 - }, 2133 - "shout_id": { 2134 - "name": "shout_id", 2135 - "type": "text", 2136 - "primaryKey": false, 2137 - "notNull": true 2138 - }, 2139 - "xata_createdat": { 2140 - "name": "xata_createdat", 2141 - "type": "timestamp", 2142 - "primaryKey": false, 2143 - "notNull": true, 2144 - "default": "now()" 2145 - } 2146 - }, 2147 - "indexes": {}, 2148 - "foreignKeys": { 2149 - "shout_reports_user_id_users_xata_id_fk": { 2150 - "name": "shout_reports_user_id_users_xata_id_fk", 2151 - "tableFrom": "shout_reports", 2152 - "tableTo": "users", 2153 - "columnsFrom": [ 2154 - "user_id" 2155 - ], 2156 - "columnsTo": [ 2157 - "xata_id" 2158 - ], 2159 - "onDelete": "no action", 2160 - "onUpdate": "no action" 2161 - }, 2162 - "shout_reports_shout_id_shouts_xata_id_fk": { 2163 - "name": "shout_reports_shout_id_shouts_xata_id_fk", 2164 - "tableFrom": "shout_reports", 2165 - "tableTo": "shouts", 2166 - "columnsFrom": [ 2167 - "shout_id" 2168 - ], 2169 - "columnsTo": [ 2170 - "xata_id" 2171 - ], 2172 - "onDelete": "no action", 2173 - "onUpdate": "no action" 2174 - } 2175 - }, 2176 - "compositePrimaryKeys": {}, 2177 - "uniqueConstraints": {}, 2178 - "policies": {}, 2179 - "checkConstraints": {}, 2180 - "isRLSEnabled": false 2181 - }, 2182 - "public.shouts": { 2183 - "name": "shouts", 2184 - "schema": "", 2185 - "columns": { 2186 - "xata_id": { 2187 - "name": "xata_id", 2188 - "type": "text", 2189 - "primaryKey": true, 2190 - "notNull": true, 2191 - "default": "xata_id()" 2192 - }, 2193 - "content": { 2194 - "name": "content", 2195 - "type": "text", 2196 - "primaryKey": false, 2197 - "notNull": true 2198 - }, 2199 - "track_id": { 2200 - "name": "track_id", 2201 - "type": "text", 2202 - "primaryKey": false, 2203 - "notNull": false 2204 - }, 2205 - "artist_id": { 2206 - "name": "artist_id", 2207 - "type": "text", 2208 - "primaryKey": false, 2209 - "notNull": false 2210 - }, 2211 - "album_id": { 2212 - "name": "album_id", 2213 - "type": "text", 2214 - "primaryKey": false, 2215 - "notNull": false 2216 - }, 2217 - "scrobble_id": { 2218 - "name": "scrobble_id", 2219 - "type": "text", 2220 - "primaryKey": false, 2221 - "notNull": false 2222 - }, 2223 - "uri": { 2224 - "name": "uri", 2225 - "type": "text", 2226 - "primaryKey": false, 2227 - "notNull": true 2228 - }, 2229 - "author_id": { 2230 - "name": "author_id", 2231 - "type": "text", 2232 - "primaryKey": false, 2233 - "notNull": true 2234 - }, 2235 - "parent_id": { 2236 - "name": "parent_id", 2237 - "type": "text", 2238 - "primaryKey": false, 2239 - "notNull": false 2240 - }, 2241 - "xata_createdat": { 2242 - "name": "xata_createdat", 2243 - "type": "timestamp", 2244 - "primaryKey": false, 2245 - "notNull": true, 2246 - "default": "now()" 2247 - }, 2248 - "xata_updatedat": { 2249 - "name": "xata_updatedat", 2250 - "type": "timestamp", 2251 - "primaryKey": false, 2252 - "notNull": true, 2253 - "default": "now()" 2254 - } 2255 - }, 2256 - "indexes": {}, 2257 - "foreignKeys": { 2258 - "shouts_track_id_tracks_xata_id_fk": { 2259 - "name": "shouts_track_id_tracks_xata_id_fk", 2260 - "tableFrom": "shouts", 2261 - "tableTo": "tracks", 2262 - "columnsFrom": [ 2263 - "track_id" 2264 - ], 2265 - "columnsTo": [ 2266 - "xata_id" 2267 - ], 2268 - "onDelete": "no action", 2269 - "onUpdate": "no action" 2270 - }, 2271 - "shouts_artist_id_users_xata_id_fk": { 2272 - "name": "shouts_artist_id_users_xata_id_fk", 2273 - "tableFrom": "shouts", 2274 - "tableTo": "users", 2275 - "columnsFrom": [ 2276 - "artist_id" 2277 - ], 2278 - "columnsTo": [ 2279 - "xata_id" 2280 - ], 2281 - "onDelete": "no action", 2282 - "onUpdate": "no action" 2283 - }, 2284 - "shouts_album_id_albums_xata_id_fk": { 2285 - "name": "shouts_album_id_albums_xata_id_fk", 2286 - "tableFrom": "shouts", 2287 - "tableTo": "albums", 2288 - "columnsFrom": [ 2289 - "album_id" 2290 - ], 2291 - "columnsTo": [ 2292 - "xata_id" 2293 - ], 2294 - "onDelete": "no action", 2295 - "onUpdate": "no action" 2296 - }, 2297 - "shouts_scrobble_id_scrobbles_xata_id_fk": { 2298 - "name": "shouts_scrobble_id_scrobbles_xata_id_fk", 2299 - "tableFrom": "shouts", 2300 - "tableTo": "scrobbles", 2301 - "columnsFrom": [ 2302 - "scrobble_id" 2303 - ], 2304 - "columnsTo": [ 2305 - "xata_id" 2306 - ], 2307 - "onDelete": "no action", 2308 - "onUpdate": "no action" 2309 - }, 2310 - "shouts_author_id_users_xata_id_fk": { 2311 - "name": "shouts_author_id_users_xata_id_fk", 2312 - "tableFrom": "shouts", 2313 - "tableTo": "users", 2314 - "columnsFrom": [ 2315 - "author_id" 2316 - ], 2317 - "columnsTo": [ 2318 - "xata_id" 2319 - ], 2320 - "onDelete": "no action", 2321 - "onUpdate": "no action" 2322 - }, 2323 - "shouts_parent_id_shouts_xata_id_fk": { 2324 - "name": "shouts_parent_id_shouts_xata_id_fk", 2325 - "tableFrom": "shouts", 2326 - "tableTo": "shouts", 2327 - "columnsFrom": [ 2328 - "parent_id" 2329 - ], 2330 - "columnsTo": [ 2331 - "xata_id" 2332 - ], 2333 - "onDelete": "no action", 2334 - "onUpdate": "no action" 2335 - } 2336 - }, 2337 - "compositePrimaryKeys": {}, 2338 - "uniqueConstraints": { 2339 - "shouts_uri_unique": { 2340 - "name": "shouts_uri_unique", 2341 - "nullsNotDistinct": false, 2342 - "columns": [ 2343 - "uri" 2344 - ] 2345 - } 2346 - }, 2347 - "policies": {}, 2348 - "checkConstraints": {}, 2349 - "isRLSEnabled": false 2350 - }, 2351 - "public.spotify_accounts": { 2352 - "name": "spotify_accounts", 2353 - "schema": "", 2354 - "columns": { 2355 - "xata_id": { 2356 - "name": "xata_id", 2357 - "type": "text", 2358 - "primaryKey": true, 2359 - "notNull": true, 2360 - "default": "xata_id()" 2361 - }, 2362 - "xata_version": { 2363 - "name": "xata_version", 2364 - "type": "integer", 2365 - "primaryKey": false, 2366 - "notNull": false 2367 - }, 2368 - "email": { 2369 - "name": "email", 2370 - "type": "text", 2371 - "primaryKey": false, 2372 - "notNull": true 2373 - }, 2374 - "user_id": { 2375 - "name": "user_id", 2376 - "type": "text", 2377 - "primaryKey": false, 2378 - "notNull": true 2379 - }, 2380 - "is_beta_user": { 2381 - "name": "is_beta_user", 2382 - "type": "boolean", 2383 - "primaryKey": false, 2384 - "notNull": true, 2385 - "default": false 2386 - }, 2387 - "spotify_app_id": { 2388 - "name": "spotify_app_id", 2389 - "type": "text", 2390 - "primaryKey": false, 2391 - "notNull": true 2392 - }, 2393 - "xata_createdat": { 2394 - "name": "xata_createdat", 2395 - "type": "timestamp", 2396 - "primaryKey": false, 2397 - "notNull": true, 2398 - "default": "now()" 2399 - }, 2400 - "xata_updatedat": { 2401 - "name": "xata_updatedat", 2402 - "type": "timestamp", 2403 - "primaryKey": false, 2404 - "notNull": true, 2405 - "default": "now()" 2406 - } 2407 - }, 2408 - "indexes": {}, 2409 - "foreignKeys": { 2410 - "spotify_accounts_user_id_users_xata_id_fk": { 2411 - "name": "spotify_accounts_user_id_users_xata_id_fk", 2412 - "tableFrom": "spotify_accounts", 2413 - "tableTo": "users", 2414 - "columnsFrom": [ 2415 - "user_id" 2416 - ], 2417 - "columnsTo": [ 2418 - "xata_id" 2419 - ], 2420 - "onDelete": "no action", 2421 - "onUpdate": "no action" 2422 - } 2423 - }, 2424 - "compositePrimaryKeys": {}, 2425 - "uniqueConstraints": {}, 2426 - "policies": {}, 2427 - "checkConstraints": {}, 2428 - "isRLSEnabled": false 2429 - }, 2430 - "public.spotify_apps": { 2431 - "name": "spotify_apps", 2432 - "schema": "", 2433 - "columns": { 2434 - "xata_id": { 2435 - "name": "xata_id", 2436 - "type": "text", 2437 - "primaryKey": true, 2438 - "notNull": true, 2439 - "default": "xata_id()" 2440 - }, 2441 - "xata_version": { 2442 - "name": "xata_version", 2443 - "type": "integer", 2444 - "primaryKey": false, 2445 - "notNull": false 2446 - }, 2447 - "spotify_app_id": { 2448 - "name": "spotify_app_id", 2449 - "type": "text", 2450 - "primaryKey": false, 2451 - "notNull": true 2452 - }, 2453 - "xata_createdat": { 2454 - "name": "xata_createdat", 2455 - "type": "timestamp", 2456 - "primaryKey": false, 2457 - "notNull": true, 2458 - "default": "now()" 2459 - }, 2460 - "xata_updatedat": { 2461 - "name": "xata_updatedat", 2462 - "type": "timestamp", 2463 - "primaryKey": false, 2464 - "notNull": true, 2465 - "default": "now()" 2466 - } 2467 - }, 2468 - "indexes": {}, 2469 - "foreignKeys": {}, 2470 - "compositePrimaryKeys": {}, 2471 - "uniqueConstraints": {}, 2472 - "policies": {}, 2473 - "checkConstraints": {}, 2474 - "isRLSEnabled": false 2475 - }, 2476 - "public.spotify_tokens": { 2477 - "name": "spotify_tokens", 2478 - "schema": "", 2479 - "columns": { 2480 - "xata_id": { 2481 - "name": "xata_id", 2482 - "type": "text", 2483 - "primaryKey": true, 2484 - "notNull": true, 2485 - "default": "xata_id()" 2486 - }, 2487 - "xata_version": { 2488 - "name": "xata_version", 2489 - "type": "integer", 2490 - "primaryKey": false, 2491 - "notNull": false 2492 - }, 2493 - "access_token": { 2494 - "name": "access_token", 2495 - "type": "text", 2496 - "primaryKey": false, 2497 - "notNull": true 2498 - }, 2499 - "refresh_token": { 2500 - "name": "refresh_token", 2501 - "type": "text", 2502 - "primaryKey": false, 2503 - "notNull": true 2504 - }, 2505 - "user_id": { 2506 - "name": "user_id", 2507 - "type": "text", 2508 - "primaryKey": false, 2509 - "notNull": true 2510 - }, 2511 - "spotify_app_id": { 2512 - "name": "spotify_app_id", 2513 - "type": "text", 2514 - "primaryKey": false, 2515 - "notNull": true 2516 - }, 2517 - "xata_createdat": { 2518 - "name": "xata_createdat", 2519 - "type": "timestamp", 2520 - "primaryKey": false, 2521 - "notNull": true, 2522 - "default": "now()" 2523 - }, 2524 - "xata_updatedat": { 2525 - "name": "xata_updatedat", 2526 - "type": "timestamp", 2527 - "primaryKey": false, 2528 - "notNull": true, 2529 - "default": "now()" 2530 - } 2531 - }, 2532 - "indexes": {}, 2533 - "foreignKeys": { 2534 - "spotify_tokens_user_id_users_xata_id_fk": { 2535 - "name": "spotify_tokens_user_id_users_xata_id_fk", 2536 - "tableFrom": "spotify_tokens", 2537 - "tableTo": "users", 2538 - "columnsFrom": [ 2539 - "user_id" 2540 - ], 2541 - "columnsTo": [ 2542 - "xata_id" 2543 - ], 2544 - "onDelete": "no action", 2545 - "onUpdate": "no action" 2546 - } 2547 - }, 2548 - "compositePrimaryKeys": {}, 2549 - "uniqueConstraints": {}, 2550 - "policies": {}, 2551 - "checkConstraints": {}, 2552 - "isRLSEnabled": false 2553 - }, 2554 - "public.tracks": { 2555 - "name": "tracks", 2556 - "schema": "", 2557 - "columns": { 2558 - "xata_id": { 2559 - "name": "xata_id", 2560 - "type": "text", 2561 - "primaryKey": true, 2562 - "notNull": true, 2563 - "default": "xata_id()" 2564 - }, 2565 - "title": { 2566 - "name": "title", 2567 - "type": "text", 2568 - "primaryKey": false, 2569 - "notNull": true 2570 - }, 2571 - "artist": { 2572 - "name": "artist", 2573 - "type": "text", 2574 - "primaryKey": false, 2575 - "notNull": true 2576 - }, 2577 - "album_artist": { 2578 - "name": "album_artist", 2579 - "type": "text", 2580 - "primaryKey": false, 2581 - "notNull": true 2582 - }, 2583 - "album_art": { 2584 - "name": "album_art", 2585 - "type": "text", 2586 - "primaryKey": false, 2587 - "notNull": false 2588 - }, 2589 - "album": { 2590 - "name": "album", 2591 - "type": "text", 2592 - "primaryKey": false, 2593 - "notNull": true 2594 - }, 2595 - "track_number": { 2596 - "name": "track_number", 2597 - "type": "integer", 2598 - "primaryKey": false, 2599 - "notNull": false 2600 - }, 2601 - "duration": { 2602 - "name": "duration", 2603 - "type": "integer", 2604 - "primaryKey": false, 2605 - "notNull": true 2606 - }, 2607 - "mb_id": { 2608 - "name": "mb_id", 2609 - "type": "text", 2610 - "primaryKey": false, 2611 - "notNull": false 2612 - }, 2613 - "youtube_link": { 2614 - "name": "youtube_link", 2615 - "type": "text", 2616 - "primaryKey": false, 2617 - "notNull": false 2618 - }, 2619 - "spotify_link": { 2620 - "name": "spotify_link", 2621 - "type": "text", 2622 - "primaryKey": false, 2623 - "notNull": false 2624 - }, 2625 - "apple_music_link": { 2626 - "name": "apple_music_link", 2627 - "type": "text", 2628 - "primaryKey": false, 2629 - "notNull": false 2630 - }, 2631 - "tidal_link": { 2632 - "name": "tidal_link", 2633 - "type": "text", 2634 - "primaryKey": false, 2635 - "notNull": false 2636 - }, 2637 - "sha256": { 2638 - "name": "sha256", 2639 - "type": "text", 2640 - "primaryKey": false, 2641 - "notNull": true 2642 - }, 2643 - "disc_number": { 2644 - "name": "disc_number", 2645 - "type": "integer", 2646 - "primaryKey": false, 2647 - "notNull": false 2648 - }, 2649 - "lyrics": { 2650 - "name": "lyrics", 2651 - "type": "text", 2652 - "primaryKey": false, 2653 - "notNull": false 2654 - }, 2655 - "composer": { 2656 - "name": "composer", 2657 - "type": "text", 2658 - "primaryKey": false, 2659 - "notNull": false 2660 - }, 2661 - "genre": { 2662 - "name": "genre", 2663 - "type": "text", 2664 - "primaryKey": false, 2665 - "notNull": false 2666 - }, 2667 - "label": { 2668 - "name": "label", 2669 - "type": "text", 2670 - "primaryKey": false, 2671 - "notNull": false 2672 - }, 2673 - "copyright_message": { 2674 - "name": "copyright_message", 2675 - "type": "text", 2676 - "primaryKey": false, 2677 - "notNull": false 2678 - }, 2679 - "uri": { 2680 - "name": "uri", 2681 - "type": "text", 2682 - "primaryKey": false, 2683 - "notNull": false 2684 - }, 2685 - "album_uri": { 2686 - "name": "album_uri", 2687 - "type": "text", 2688 - "primaryKey": false, 2689 - "notNull": false 2690 - }, 2691 - "artist_uri": { 2692 - "name": "artist_uri", 2693 - "type": "text", 2694 - "primaryKey": false, 2695 - "notNull": false 2696 - }, 2697 - "xata_createdat": { 2698 - "name": "xata_createdat", 2699 - "type": "timestamp", 2700 - "primaryKey": false, 2701 - "notNull": true, 2702 - "default": "now()" 2703 - }, 2704 - "xata_updatedat": { 2705 - "name": "xata_updatedat", 2706 - "type": "timestamp", 2707 - "primaryKey": false, 2708 - "notNull": true, 2709 - "default": "now()" 2710 - }, 2711 - "xata_version": { 2712 - "name": "xata_version", 2713 - "type": "integer", 2714 - "primaryKey": false, 2715 - "notNull": false 2716 - } 2717 - }, 2718 - "indexes": {}, 2719 - "foreignKeys": {}, 2720 - "compositePrimaryKeys": {}, 2721 - "uniqueConstraints": { 2722 - "tracks_mb_id_unique": { 2723 - "name": "tracks_mb_id_unique", 2724 - "nullsNotDistinct": false, 2725 - "columns": [ 2726 - "mb_id" 2727 - ] 2728 - }, 2729 - "tracks_youtube_link_unique": { 2730 - "name": "tracks_youtube_link_unique", 2731 - "nullsNotDistinct": false, 2732 - "columns": [ 2733 - "youtube_link" 2734 - ] 2735 - }, 2736 - "tracks_spotify_link_unique": { 2737 - "name": "tracks_spotify_link_unique", 2738 - "nullsNotDistinct": false, 2739 - "columns": [ 2740 - "spotify_link" 2741 - ] 2742 - }, 2743 - "tracks_apple_music_link_unique": { 2744 - "name": "tracks_apple_music_link_unique", 2745 - "nullsNotDistinct": false, 2746 - "columns": [ 2747 - "apple_music_link" 2748 - ] 2749 - }, 2750 - "tracks_tidal_link_unique": { 2751 - "name": "tracks_tidal_link_unique", 2752 - "nullsNotDistinct": false, 2753 - "columns": [ 2754 - "tidal_link" 2755 - ] 2756 - }, 2757 - "tracks_sha256_unique": { 2758 - "name": "tracks_sha256_unique", 2759 - "nullsNotDistinct": false, 2760 - "columns": [ 2761 - "sha256" 2762 - ] 2763 - }, 2764 - "tracks_uri_unique": { 2765 - "name": "tracks_uri_unique", 2766 - "nullsNotDistinct": false, 2767 - "columns": [ 2768 - "uri" 2769 - ] 2770 - } 2771 - }, 2772 - "policies": {}, 2773 - "checkConstraints": {}, 2774 - "isRLSEnabled": false 2775 - }, 2776 - "public.user_albums": { 2777 - "name": "user_albums", 2778 - "schema": "", 2779 - "columns": { 2780 - "xata_id": { 2781 - "name": "xata_id", 2782 - "type": "text", 2783 - "primaryKey": true, 2784 - "notNull": true, 2785 - "default": "xata_id()" 2786 - }, 2787 - "user_id": { 2788 - "name": "user_id", 2789 - "type": "text", 2790 - "primaryKey": false, 2791 - "notNull": true 2792 - }, 2793 - "album_id": { 2794 - "name": "album_id", 2795 - "type": "text", 2796 - "primaryKey": false, 2797 - "notNull": true 2798 - }, 2799 - "xata_createdat": { 2800 - "name": "xata_createdat", 2801 - "type": "timestamp", 2802 - "primaryKey": false, 2803 - "notNull": true, 2804 - "default": "now()" 2805 - }, 2806 - "xata_updatedat": { 2807 - "name": "xata_updatedat", 2808 - "type": "timestamp", 2809 - "primaryKey": false, 2810 - "notNull": true, 2811 - "default": "now()" 2812 - }, 2813 - "xata_version": { 2814 - "name": "xata_version", 2815 - "type": "integer", 2816 - "primaryKey": false, 2817 - "notNull": false 2818 - }, 2819 - "scrobbles": { 2820 - "name": "scrobbles", 2821 - "type": "integer", 2822 - "primaryKey": false, 2823 - "notNull": false 2824 - }, 2825 - "uri": { 2826 - "name": "uri", 2827 - "type": "text", 2828 - "primaryKey": false, 2829 - "notNull": true 2830 - } 2831 - }, 2832 - "indexes": {}, 2833 - "foreignKeys": { 2834 - "user_albums_user_id_users_xata_id_fk": { 2835 - "name": "user_albums_user_id_users_xata_id_fk", 2836 - "tableFrom": "user_albums", 2837 - "tableTo": "users", 2838 - "columnsFrom": [ 2839 - "user_id" 2840 - ], 2841 - "columnsTo": [ 2842 - "xata_id" 2843 - ], 2844 - "onDelete": "no action", 2845 - "onUpdate": "no action" 2846 - }, 2847 - "user_albums_album_id_albums_xata_id_fk": { 2848 - "name": "user_albums_album_id_albums_xata_id_fk", 2849 - "tableFrom": "user_albums", 2850 - "tableTo": "albums", 2851 - "columnsFrom": [ 2852 - "album_id" 2853 - ], 2854 - "columnsTo": [ 2855 - "xata_id" 2856 - ], 2857 - "onDelete": "no action", 2858 - "onUpdate": "no action" 2859 - } 2860 - }, 2861 - "compositePrimaryKeys": {}, 2862 - "uniqueConstraints": { 2863 - "user_albums_uri_unique": { 2864 - "name": "user_albums_uri_unique", 2865 - "nullsNotDistinct": false, 2866 - "columns": [ 2867 - "uri" 2868 - ] 2869 - } 2870 - }, 2871 - "policies": {}, 2872 - "checkConstraints": {}, 2873 - "isRLSEnabled": false 2874 - }, 2875 - "public.user_artists": { 2876 - "name": "user_artists", 2877 - "schema": "", 2878 - "columns": { 2879 - "xata_id": { 2880 - "name": "xata_id", 2881 - "type": "text", 2882 - "primaryKey": true, 2883 - "notNull": true, 2884 - "default": "xata_id()" 2885 - }, 2886 - "user_id": { 2887 - "name": "user_id", 2888 - "type": "text", 2889 - "primaryKey": false, 2890 - "notNull": true 2891 - }, 2892 - "artist_id": { 2893 - "name": "artist_id", 2894 - "type": "text", 2895 - "primaryKey": false, 2896 - "notNull": true 2897 - }, 2898 - "xata_createdat": { 2899 - "name": "xata_createdat", 2900 - "type": "timestamp", 2901 - "primaryKey": false, 2902 - "notNull": true, 2903 - "default": "now()" 2904 - }, 2905 - "xata_updatedat": { 2906 - "name": "xata_updatedat", 2907 - "type": "timestamp", 2908 - "primaryKey": false, 2909 - "notNull": true, 2910 - "default": "now()" 2911 - }, 2912 - "xata_version": { 2913 - "name": "xata_version", 2914 - "type": "integer", 2915 - "primaryKey": false, 2916 - "notNull": false 2917 - }, 2918 - "scrobbles": { 2919 - "name": "scrobbles", 2920 - "type": "integer", 2921 - "primaryKey": false, 2922 - "notNull": false 2923 - }, 2924 - "uri": { 2925 - "name": "uri", 2926 - "type": "text", 2927 - "primaryKey": false, 2928 - "notNull": true 2929 - } 2930 - }, 2931 - "indexes": {}, 2932 - "foreignKeys": { 2933 - "user_artists_user_id_users_xata_id_fk": { 2934 - "name": "user_artists_user_id_users_xata_id_fk", 2935 - "tableFrom": "user_artists", 2936 - "tableTo": "users", 2937 - "columnsFrom": [ 2938 - "user_id" 2939 - ], 2940 - "columnsTo": [ 2941 - "xata_id" 2942 - ], 2943 - "onDelete": "no action", 2944 - "onUpdate": "no action" 2945 - }, 2946 - "user_artists_artist_id_artists_xata_id_fk": { 2947 - "name": "user_artists_artist_id_artists_xata_id_fk", 2948 - "tableFrom": "user_artists", 2949 - "tableTo": "artists", 2950 - "columnsFrom": [ 2951 - "artist_id" 2952 - ], 2953 - "columnsTo": [ 2954 - "xata_id" 2955 - ], 2956 - "onDelete": "no action", 2957 - "onUpdate": "no action" 2958 - } 2959 - }, 2960 - "compositePrimaryKeys": {}, 2961 - "uniqueConstraints": { 2962 - "user_artists_uri_unique": { 2963 - "name": "user_artists_uri_unique", 2964 - "nullsNotDistinct": false, 2965 - "columns": [ 2966 - "uri" 2967 - ] 2968 - } 2969 - }, 2970 - "policies": {}, 2971 - "checkConstraints": {}, 2972 - "isRLSEnabled": false 2973 - }, 2974 - "public.user_playlists": { 2975 - "name": "user_playlists", 2976 - "schema": "", 2977 - "columns": { 2978 - "xata_id": { 2979 - "name": "xata_id", 2980 - "type": "text", 2981 - "primaryKey": true, 2982 - "notNull": true, 2983 - "default": "xata_id()" 2984 - }, 2985 - "user_id": { 2986 - "name": "user_id", 2987 - "type": "text", 2988 - "primaryKey": false, 2989 - "notNull": true 2990 - }, 2991 - "playlist_id": { 2992 - "name": "playlist_id", 2993 - "type": "text", 2994 - "primaryKey": false, 2995 - "notNull": true 2996 - }, 2997 - "xata_createdat": { 2998 - "name": "xata_createdat", 2999 - "type": "timestamp", 3000 - "primaryKey": false, 3001 - "notNull": true, 3002 - "default": "now()" 3003 - }, 3004 - "uri": { 3005 - "name": "uri", 3006 - "type": "text", 3007 - "primaryKey": false, 3008 - "notNull": false 3009 - } 3010 - }, 3011 - "indexes": {}, 3012 - "foreignKeys": { 3013 - "user_playlists_user_id_users_xata_id_fk": { 3014 - "name": "user_playlists_user_id_users_xata_id_fk", 3015 - "tableFrom": "user_playlists", 3016 - "tableTo": "users", 3017 - "columnsFrom": [ 3018 - "user_id" 3019 - ], 3020 - "columnsTo": [ 3021 - "xata_id" 3022 - ], 3023 - "onDelete": "no action", 3024 - "onUpdate": "no action" 3025 - }, 3026 - "user_playlists_playlist_id_playlists_xata_id_fk": { 3027 - "name": "user_playlists_playlist_id_playlists_xata_id_fk", 3028 - "tableFrom": "user_playlists", 3029 - "tableTo": "playlists", 3030 - "columnsFrom": [ 3031 - "playlist_id" 3032 - ], 3033 - "columnsTo": [ 3034 - "xata_id" 3035 - ], 3036 - "onDelete": "no action", 3037 - "onUpdate": "no action" 3038 - } 3039 - }, 3040 - "compositePrimaryKeys": {}, 3041 - "uniqueConstraints": { 3042 - "user_playlists_uri_unique": { 3043 - "name": "user_playlists_uri_unique", 3044 - "nullsNotDistinct": false, 3045 - "columns": [ 3046 - "uri" 3047 - ] 3048 - } 3049 - }, 3050 - "policies": {}, 3051 - "checkConstraints": {}, 3052 - "isRLSEnabled": false 3053 - }, 3054 - "public.user_tracks": { 3055 - "name": "user_tracks", 3056 - "schema": "", 3057 - "columns": { 3058 - "xata_id": { 3059 - "name": "xata_id", 3060 - "type": "text", 3061 - "primaryKey": true, 3062 - "notNull": true, 3063 - "default": "xata_id()" 3064 - }, 3065 - "user_id": { 3066 - "name": "user_id", 3067 - "type": "text", 3068 - "primaryKey": false, 3069 - "notNull": true 3070 - }, 3071 - "track_id": { 3072 - "name": "track_id", 3073 - "type": "text", 3074 - "primaryKey": false, 3075 - "notNull": true 3076 - }, 3077 - "xata_createdat": { 3078 - "name": "xata_createdat", 3079 - "type": "timestamp", 3080 - "primaryKey": false, 3081 - "notNull": true, 3082 - "default": "now()" 3083 - }, 3084 - "xata_updatedat": { 3085 - "name": "xata_updatedat", 3086 - "type": "timestamp", 3087 - "primaryKey": false, 3088 - "notNull": true, 3089 - "default": "now()" 3090 - }, 3091 - "xata_version": { 3092 - "name": "xata_version", 3093 - "type": "integer", 3094 - "primaryKey": false, 3095 - "notNull": false 3096 - }, 3097 - "uri": { 3098 - "name": "uri", 3099 - "type": "text", 3100 - "primaryKey": false, 3101 - "notNull": true 3102 - }, 3103 - "scrobbles": { 3104 - "name": "scrobbles", 3105 - "type": "integer", 3106 - "primaryKey": false, 3107 - "notNull": false 3108 - } 3109 - }, 3110 - "indexes": {}, 3111 - "foreignKeys": { 3112 - "user_tracks_user_id_users_xata_id_fk": { 3113 - "name": "user_tracks_user_id_users_xata_id_fk", 3114 - "tableFrom": "user_tracks", 3115 - "tableTo": "users", 3116 - "columnsFrom": [ 3117 - "user_id" 3118 - ], 3119 - "columnsTo": [ 3120 - "xata_id" 3121 - ], 3122 - "onDelete": "no action", 3123 - "onUpdate": "no action" 3124 - }, 3125 - "user_tracks_track_id_tracks_xata_id_fk": { 3126 - "name": "user_tracks_track_id_tracks_xata_id_fk", 3127 - "tableFrom": "user_tracks", 3128 - "tableTo": "tracks", 3129 - "columnsFrom": [ 3130 - "track_id" 3131 - ], 3132 - "columnsTo": [ 3133 - "xata_id" 3134 - ], 3135 - "onDelete": "no action", 3136 - "onUpdate": "no action" 3137 - } 3138 - }, 3139 - "compositePrimaryKeys": {}, 3140 - "uniqueConstraints": { 3141 - "user_tracks_uri_unique": { 3142 - "name": "user_tracks_uri_unique", 3143 - "nullsNotDistinct": false, 3144 - "columns": [ 3145 - "uri" 3146 - ] 3147 - } 3148 - }, 3149 - "policies": {}, 3150 - "checkConstraints": {}, 3151 - "isRLSEnabled": false 3152 - }, 3153 - "public.users": { 3154 - "name": "users", 3155 - "schema": "", 3156 - "columns": { 3157 - "xata_id": { 3158 - "name": "xata_id", 3159 - "type": "text", 3160 - "primaryKey": true, 3161 - "notNull": true, 3162 - "default": "xata_id()" 3163 - }, 3164 - "did": { 3165 - "name": "did", 3166 - "type": "text", 3167 - "primaryKey": false, 3168 - "notNull": true 3169 - }, 3170 - "display_name": { 3171 - "name": "display_name", 3172 - "type": "text", 3173 - "primaryKey": false, 3174 - "notNull": false 3175 - }, 3176 - "handle": { 3177 - "name": "handle", 3178 - "type": "text", 3179 - "primaryKey": false, 3180 - "notNull": true 3181 - }, 3182 - "avatar": { 3183 - "name": "avatar", 3184 - "type": "text", 3185 - "primaryKey": false, 3186 - "notNull": true 3187 - }, 3188 - "xata_createdat": { 3189 - "name": "xata_createdat", 3190 - "type": "timestamp", 3191 - "primaryKey": false, 3192 - "notNull": true, 3193 - "default": "now()" 3194 - }, 3195 - "xata_updatedat": { 3196 - "name": "xata_updatedat", 3197 - "type": "timestamp", 3198 - "primaryKey": false, 3199 - "notNull": true, 3200 - "default": "now()" 3201 - }, 3202 - "xata_version": { 3203 - "name": "xata_version", 3204 - "type": "integer", 3205 - "primaryKey": false, 3206 - "notNull": false 3207 - } 3208 - }, 3209 - "indexes": {}, 3210 - "foreignKeys": {}, 3211 - "compositePrimaryKeys": {}, 3212 - "uniqueConstraints": { 3213 - "users_did_unique": { 3214 - "name": "users_did_unique", 3215 - "nullsNotDistinct": false, 3216 - "columns": [ 3217 - "did" 3218 - ] 3219 - }, 3220 - "users_handle_unique": { 3221 - "name": "users_handle_unique", 3222 - "nullsNotDistinct": false, 3223 - "columns": [ 3224 - "handle" 3225 - ] 3226 - } 3227 - }, 3228 - "policies": {}, 3229 - "checkConstraints": {}, 3230 - "isRLSEnabled": false 3231 - }, 3232 - "public.webscrobblers": { 3233 - "name": "webscrobblers", 3234 - "schema": "", 3235 - "columns": { 3236 - "xata_id": { 3237 - "name": "xata_id", 3238 - "type": "text", 3239 - "primaryKey": true, 3240 - "notNull": true, 3241 - "default": "xata_id()" 3242 - }, 3243 - "name": { 3244 - "name": "name", 3245 - "type": "text", 3246 - "primaryKey": false, 3247 - "notNull": true 3248 - }, 3249 - "uuid": { 3250 - "name": "uuid", 3251 - "type": "text", 3252 - "primaryKey": false, 3253 - "notNull": true 3254 - }, 3255 - "description": { 3256 - "name": "description", 3257 - "type": "text", 3258 - "primaryKey": false, 3259 - "notNull": false 3260 - }, 3261 - "enabled": { 3262 - "name": "enabled", 3263 - "type": "boolean", 3264 - "primaryKey": false, 3265 - "notNull": true, 3266 - "default": true 3267 - }, 3268 - "user_id": { 3269 - "name": "user_id", 3270 - "type": "text", 3271 - "primaryKey": false, 3272 - "notNull": true 3273 - }, 3274 - "xata_createdat": { 3275 - "name": "xata_createdat", 3276 - "type": "timestamp", 3277 - "primaryKey": false, 3278 - "notNull": true, 3279 - "default": "now()" 3280 - }, 3281 - "xata_updatedat": { 3282 - "name": "xata_updatedat", 3283 - "type": "timestamp", 3284 - "primaryKey": false, 3285 - "notNull": true, 3286 - "default": "now()" 3287 - } 3288 - }, 3289 - "indexes": {}, 3290 - "foreignKeys": { 3291 - "webscrobblers_user_id_users_xata_id_fk": { 3292 - "name": "webscrobblers_user_id_users_xata_id_fk", 3293 - "tableFrom": "webscrobblers", 3294 - "tableTo": "users", 3295 - "columnsFrom": [ 3296 - "user_id" 3297 - ], 3298 - "columnsTo": [ 3299 - "xata_id" 3300 - ], 3301 - "onDelete": "no action", 3302 - "onUpdate": "no action" 3303 - } 3304 - }, 3305 - "compositePrimaryKeys": {}, 3306 - "uniqueConstraints": {}, 3307 - "policies": {}, 3308 - "checkConstraints": {}, 3309 - "isRLSEnabled": false 3310 - } 3311 - }, 3312 - "enums": {}, 3313 - "schemas": {}, 3314 - "sequences": {}, 3315 - "roles": {}, 3316 - "policies": {}, 3317 - "views": {}, 3318 - "_meta": { 3319 - "columns": {}, 3320 - "schemas": {}, 3321 - "tables": {} 3322 - } 3323 - }
-3335
apps/api/drizzle/meta/0005_snapshot.json
··· 1 - { 2 - "id": "b4f141d3-3e14-4aaf-b3f1-b3165d009289", 3 - "prevId": "3294c136-37d7-4c61-8633-26d17c05a059", 4 - "version": "7", 5 - "dialect": "postgresql", 6 - "tables": { 7 - "public.album_tracks": { 8 - "name": "album_tracks", 9 - "schema": "", 10 - "columns": { 11 - "xata_id": { 12 - "name": "xata_id", 13 - "type": "text", 14 - "primaryKey": true, 15 - "notNull": true, 16 - "default": "xata_id()" 17 - }, 18 - "album_id": { 19 - "name": "album_id", 20 - "type": "text", 21 - "primaryKey": false, 22 - "notNull": true 23 - }, 24 - "track_id": { 25 - "name": "track_id", 26 - "type": "text", 27 - "primaryKey": false, 28 - "notNull": true 29 - }, 30 - "xata_createdat": { 31 - "name": "xata_createdat", 32 - "type": "timestamp", 33 - "primaryKey": false, 34 - "notNull": true, 35 - "default": "now()" 36 - }, 37 - "xata_updatedat": { 38 - "name": "xata_updatedat", 39 - "type": "timestamp", 40 - "primaryKey": false, 41 - "notNull": true, 42 - "default": "now()" 43 - }, 44 - "xata_version": { 45 - "name": "xata_version", 46 - "type": "integer", 47 - "primaryKey": false, 48 - "notNull": false 49 - } 50 - }, 51 - "indexes": {}, 52 - "foreignKeys": { 53 - "album_tracks_album_id_albums_xata_id_fk": { 54 - "name": "album_tracks_album_id_albums_xata_id_fk", 55 - "tableFrom": "album_tracks", 56 - "tableTo": "albums", 57 - "columnsFrom": [ 58 - "album_id" 59 - ], 60 - "columnsTo": [ 61 - "xata_id" 62 - ], 63 - "onDelete": "no action", 64 - "onUpdate": "no action" 65 - }, 66 - "album_tracks_track_id_tracks_xata_id_fk": { 67 - "name": "album_tracks_track_id_tracks_xata_id_fk", 68 - "tableFrom": "album_tracks", 69 - "tableTo": "tracks", 70 - "columnsFrom": [ 71 - "track_id" 72 - ], 73 - "columnsTo": [ 74 - "xata_id" 75 - ], 76 - "onDelete": "no action", 77 - "onUpdate": "no action" 78 - } 79 - }, 80 - "compositePrimaryKeys": {}, 81 - "uniqueConstraints": {}, 82 - "policies": {}, 83 - "checkConstraints": {}, 84 - "isRLSEnabled": false 85 - }, 86 - "public.albums": { 87 - "name": "albums", 88 - "schema": "", 89 - "columns": { 90 - "xata_id": { 91 - "name": "xata_id", 92 - "type": "text", 93 - "primaryKey": true, 94 - "notNull": true, 95 - "default": "xata_id()" 96 - }, 97 - "title": { 98 - "name": "title", 99 - "type": "text", 100 - "primaryKey": false, 101 - "notNull": true 102 - }, 103 - "artist": { 104 - "name": "artist", 105 - "type": "text", 106 - "primaryKey": false, 107 - "notNull": true 108 - }, 109 - "release_date": { 110 - "name": "release_date", 111 - "type": "text", 112 - "primaryKey": false, 113 - "notNull": false 114 - }, 115 - "year": { 116 - "name": "year", 117 - "type": "integer", 118 - "primaryKey": false, 119 - "notNull": false 120 - }, 121 - "album_art": { 122 - "name": "album_art", 123 - "type": "text", 124 - "primaryKey": false, 125 - "notNull": false 126 - }, 127 - "uri": { 128 - "name": "uri", 129 - "type": "text", 130 - "primaryKey": false, 131 - "notNull": false 132 - }, 133 - "artist_uri": { 134 - "name": "artist_uri", 135 - "type": "text", 136 - "primaryKey": false, 137 - "notNull": false 138 - }, 139 - "apple_music_link": { 140 - "name": "apple_music_link", 141 - "type": "text", 142 - "primaryKey": false, 143 - "notNull": false 144 - }, 145 - "spotify_link": { 146 - "name": "spotify_link", 147 - "type": "text", 148 - "primaryKey": false, 149 - "notNull": false 150 - }, 151 - "tidal_link": { 152 - "name": "tidal_link", 153 - "type": "text", 154 - "primaryKey": false, 155 - "notNull": false 156 - }, 157 - "youtube_link": { 158 - "name": "youtube_link", 159 - "type": "text", 160 - "primaryKey": false, 161 - "notNull": false 162 - }, 163 - "sha256": { 164 - "name": "sha256", 165 - "type": "text", 166 - "primaryKey": false, 167 - "notNull": true 168 - }, 169 - "xata_createdat": { 170 - "name": "xata_createdat", 171 - "type": "timestamp", 172 - "primaryKey": false, 173 - "notNull": true, 174 - "default": "now()" 175 - }, 176 - "xata_updatedat": { 177 - "name": "xata_updatedat", 178 - "type": "timestamp", 179 - "primaryKey": false, 180 - "notNull": true, 181 - "default": "now()" 182 - }, 183 - "xata_version": { 184 - "name": "xata_version", 185 - "type": "integer", 186 - "primaryKey": false, 187 - "notNull": false 188 - } 189 - }, 190 - "indexes": {}, 191 - "foreignKeys": {}, 192 - "compositePrimaryKeys": {}, 193 - "uniqueConstraints": { 194 - "albums_uri_unique": { 195 - "name": "albums_uri_unique", 196 - "nullsNotDistinct": false, 197 - "columns": [ 198 - "uri" 199 - ] 200 - }, 201 - "albums_apple_music_link_unique": { 202 - "name": "albums_apple_music_link_unique", 203 - "nullsNotDistinct": false, 204 - "columns": [ 205 - "apple_music_link" 206 - ] 207 - }, 208 - "albums_spotify_link_unique": { 209 - "name": "albums_spotify_link_unique", 210 - "nullsNotDistinct": false, 211 - "columns": [ 212 - "spotify_link" 213 - ] 214 - }, 215 - "albums_tidal_link_unique": { 216 - "name": "albums_tidal_link_unique", 217 - "nullsNotDistinct": false, 218 - "columns": [ 219 - "tidal_link" 220 - ] 221 - }, 222 - "albums_youtube_link_unique": { 223 - "name": "albums_youtube_link_unique", 224 - "nullsNotDistinct": false, 225 - "columns": [ 226 - "youtube_link" 227 - ] 228 - }, 229 - "albums_sha256_unique": { 230 - "name": "albums_sha256_unique", 231 - "nullsNotDistinct": false, 232 - "columns": [ 233 - "sha256" 234 - ] 235 - } 236 - }, 237 - "policies": {}, 238 - "checkConstraints": {}, 239 - "isRLSEnabled": false 240 - }, 241 - "public.api_keys": { 242 - "name": "api_keys", 243 - "schema": "", 244 - "columns": { 245 - "xata_id": { 246 - "name": "xata_id", 247 - "type": "text", 248 - "primaryKey": true, 249 - "notNull": true, 250 - "default": "xata_id()" 251 - }, 252 - "name": { 253 - "name": "name", 254 - "type": "text", 255 - "primaryKey": false, 256 - "notNull": true 257 - }, 258 - "api_key": { 259 - "name": "api_key", 260 - "type": "text", 261 - "primaryKey": false, 262 - "notNull": true 263 - }, 264 - "shared_secret": { 265 - "name": "shared_secret", 266 - "type": "text", 267 - "primaryKey": false, 268 - "notNull": true 269 - }, 270 - "description": { 271 - "name": "description", 272 - "type": "text", 273 - "primaryKey": false, 274 - "notNull": false 275 - }, 276 - "enabled": { 277 - "name": "enabled", 278 - "type": "boolean", 279 - "primaryKey": false, 280 - "notNull": true, 281 - "default": true 282 - }, 283 - "user_id": { 284 - "name": "user_id", 285 - "type": "text", 286 - "primaryKey": false, 287 - "notNull": true 288 - }, 289 - "xata_createdat": { 290 - "name": "xata_createdat", 291 - "type": "timestamp", 292 - "primaryKey": false, 293 - "notNull": true, 294 - "default": "now()" 295 - }, 296 - "xata_updatedat": { 297 - "name": "xata_updatedat", 298 - "type": "timestamp", 299 - "primaryKey": false, 300 - "notNull": true, 301 - "default": "now()" 302 - } 303 - }, 304 - "indexes": {}, 305 - "foreignKeys": { 306 - "api_keys_user_id_users_xata_id_fk": { 307 - "name": "api_keys_user_id_users_xata_id_fk", 308 - "tableFrom": "api_keys", 309 - "tableTo": "users", 310 - "columnsFrom": [ 311 - "user_id" 312 - ], 313 - "columnsTo": [ 314 - "xata_id" 315 - ], 316 - "onDelete": "no action", 317 - "onUpdate": "no action" 318 - } 319 - }, 320 - "compositePrimaryKeys": {}, 321 - "uniqueConstraints": {}, 322 - "policies": {}, 323 - "checkConstraints": {}, 324 - "isRLSEnabled": false 325 - }, 326 - "public.artist_albums": { 327 - "name": "artist_albums", 328 - "schema": "", 329 - "columns": { 330 - "xata_id": { 331 - "name": "xata_id", 332 - "type": "text", 333 - "primaryKey": true, 334 - "notNull": true, 335 - "default": "xata_id()" 336 - }, 337 - "artist_id": { 338 - "name": "artist_id", 339 - "type": "text", 340 - "primaryKey": false, 341 - "notNull": true 342 - }, 343 - "album_id": { 344 - "name": "album_id", 345 - "type": "text", 346 - "primaryKey": false, 347 - "notNull": true 348 - }, 349 - "xata_createdat": { 350 - "name": "xata_createdat", 351 - "type": "timestamp", 352 - "primaryKey": false, 353 - "notNull": true, 354 - "default": "now()" 355 - }, 356 - "xata_updatedat": { 357 - "name": "xata_updatedat", 358 - "type": "timestamp", 359 - "primaryKey": false, 360 - "notNull": true, 361 - "default": "now()" 362 - }, 363 - "xata_version": { 364 - "name": "xata_version", 365 - "type": "integer", 366 - "primaryKey": false, 367 - "notNull": false 368 - } 369 - }, 370 - "indexes": {}, 371 - "foreignKeys": { 372 - "artist_albums_artist_id_artists_xata_id_fk": { 373 - "name": "artist_albums_artist_id_artists_xata_id_fk", 374 - "tableFrom": "artist_albums", 375 - "tableTo": "artists", 376 - "columnsFrom": [ 377 - "artist_id" 378 - ], 379 - "columnsTo": [ 380 - "xata_id" 381 - ], 382 - "onDelete": "no action", 383 - "onUpdate": "no action" 384 - }, 385 - "artist_albums_album_id_albums_xata_id_fk": { 386 - "name": "artist_albums_album_id_albums_xata_id_fk", 387 - "tableFrom": "artist_albums", 388 - "tableTo": "albums", 389 - "columnsFrom": [ 390 - "album_id" 391 - ], 392 - "columnsTo": [ 393 - "xata_id" 394 - ], 395 - "onDelete": "no action", 396 - "onUpdate": "no action" 397 - } 398 - }, 399 - "compositePrimaryKeys": {}, 400 - "uniqueConstraints": {}, 401 - "policies": {}, 402 - "checkConstraints": {}, 403 - "isRLSEnabled": false 404 - }, 405 - "public.artist_tracks": { 406 - "name": "artist_tracks", 407 - "schema": "", 408 - "columns": { 409 - "xata_id": { 410 - "name": "xata_id", 411 - "type": "text", 412 - "primaryKey": true, 413 - "notNull": true, 414 - "default": "xata_id()" 415 - }, 416 - "artist_id": { 417 - "name": "artist_id", 418 - "type": "text", 419 - "primaryKey": false, 420 - "notNull": true 421 - }, 422 - "track_id": { 423 - "name": "track_id", 424 - "type": "text", 425 - "primaryKey": false, 426 - "notNull": true 427 - }, 428 - "xata_createdat": { 429 - "name": "xata_createdat", 430 - "type": "timestamp", 431 - "primaryKey": false, 432 - "notNull": true, 433 - "default": "now()" 434 - }, 435 - "xata_updatedat": { 436 - "name": "xata_updatedat", 437 - "type": "timestamp", 438 - "primaryKey": false, 439 - "notNull": true, 440 - "default": "now()" 441 - }, 442 - "xata_version": { 443 - "name": "xata_version", 444 - "type": "integer", 445 - "primaryKey": false, 446 - "notNull": false 447 - } 448 - }, 449 - "indexes": {}, 450 - "foreignKeys": { 451 - "artist_tracks_artist_id_artists_xata_id_fk": { 452 - "name": "artist_tracks_artist_id_artists_xata_id_fk", 453 - "tableFrom": "artist_tracks", 454 - "tableTo": "artists", 455 - "columnsFrom": [ 456 - "artist_id" 457 - ], 458 - "columnsTo": [ 459 - "xata_id" 460 - ], 461 - "onDelete": "no action", 462 - "onUpdate": "no action" 463 - }, 464 - "artist_tracks_track_id_tracks_xata_id_fk": { 465 - "name": "artist_tracks_track_id_tracks_xata_id_fk", 466 - "tableFrom": "artist_tracks", 467 - "tableTo": "tracks", 468 - "columnsFrom": [ 469 - "track_id" 470 - ], 471 - "columnsTo": [ 472 - "xata_id" 473 - ], 474 - "onDelete": "no action", 475 - "onUpdate": "no action" 476 - } 477 - }, 478 - "compositePrimaryKeys": {}, 479 - "uniqueConstraints": {}, 480 - "policies": {}, 481 - "checkConstraints": {}, 482 - "isRLSEnabled": false 483 - }, 484 - "public.artists": { 485 - "name": "artists", 486 - "schema": "", 487 - "columns": { 488 - "xata_id": { 489 - "name": "xata_id", 490 - "type": "text", 491 - "primaryKey": true, 492 - "notNull": true, 493 - "default": "xata_id()" 494 - }, 495 - "name": { 496 - "name": "name", 497 - "type": "text", 498 - "primaryKey": false, 499 - "notNull": true 500 - }, 501 - "biography": { 502 - "name": "biography", 503 - "type": "text", 504 - "primaryKey": false, 505 - "notNull": false 506 - }, 507 - "born": { 508 - "name": "born", 509 - "type": "timestamp", 510 - "primaryKey": false, 511 - "notNull": false 512 - }, 513 - "born_in": { 514 - "name": "born_in", 515 - "type": "text", 516 - "primaryKey": false, 517 - "notNull": false 518 - }, 519 - "died": { 520 - "name": "died", 521 - "type": "timestamp", 522 - "primaryKey": false, 523 - "notNull": false 524 - }, 525 - "picture": { 526 - "name": "picture", 527 - "type": "text", 528 - "primaryKey": false, 529 - "notNull": false 530 - }, 531 - "sha256": { 532 - "name": "sha256", 533 - "type": "text", 534 - "primaryKey": false, 535 - "notNull": true 536 - }, 537 - "uri": { 538 - "name": "uri", 539 - "type": "text", 540 - "primaryKey": false, 541 - "notNull": false 542 - }, 543 - "apple_music_link": { 544 - "name": "apple_music_link", 545 - "type": "text", 546 - "primaryKey": false, 547 - "notNull": false 548 - }, 549 - "spotify_link": { 550 - "name": "spotify_link", 551 - "type": "text", 552 - "primaryKey": false, 553 - "notNull": false 554 - }, 555 - "tidal_link": { 556 - "name": "tidal_link", 557 - "type": "text", 558 - "primaryKey": false, 559 - "notNull": false 560 - }, 561 - "youtube_link": { 562 - "name": "youtube_link", 563 - "type": "text", 564 - "primaryKey": false, 565 - "notNull": false 566 - }, 567 - "genres": { 568 - "name": "genres", 569 - "type": "text[]", 570 - "primaryKey": false, 571 - "notNull": false 572 - }, 573 - "xata_createdat": { 574 - "name": "xata_createdat", 575 - "type": "timestamp", 576 - "primaryKey": false, 577 - "notNull": true, 578 - "default": "now()" 579 - }, 580 - "xata_updatedat": { 581 - "name": "xata_updatedat", 582 - "type": "timestamp", 583 - "primaryKey": false, 584 - "notNull": true, 585 - "default": "now()" 586 - }, 587 - "xata_version": { 588 - "name": "xata_version", 589 - "type": "integer", 590 - "primaryKey": false, 591 - "notNull": false 592 - } 593 - }, 594 - "indexes": {}, 595 - "foreignKeys": {}, 596 - "compositePrimaryKeys": {}, 597 - "uniqueConstraints": { 598 - "artists_sha256_unique": { 599 - "name": "artists_sha256_unique", 600 - "nullsNotDistinct": false, 601 - "columns": [ 602 - "sha256" 603 - ] 604 - }, 605 - "artists_uri_unique": { 606 - "name": "artists_uri_unique", 607 - "nullsNotDistinct": false, 608 - "columns": [ 609 - "uri" 610 - ] 611 - } 612 - }, 613 - "policies": {}, 614 - "checkConstraints": {}, 615 - "isRLSEnabled": false 616 - }, 617 - "public.dropbox_accounts": { 618 - "name": "dropbox_accounts", 619 - "schema": "", 620 - "columns": { 621 - "xata_id": { 622 - "name": "xata_id", 623 - "type": "text", 624 - "primaryKey": true, 625 - "notNull": true, 626 - "default": "xata_id()" 627 - }, 628 - "email": { 629 - "name": "email", 630 - "type": "text", 631 - "primaryKey": false, 632 - "notNull": true 633 - }, 634 - "is_beta_user": { 635 - "name": "is_beta_user", 636 - "type": "boolean", 637 - "primaryKey": false, 638 - "notNull": true, 639 - "default": false 640 - }, 641 - "user_id": { 642 - "name": "user_id", 643 - "type": "text", 644 - "primaryKey": false, 645 - "notNull": true 646 - }, 647 - "xata_version": { 648 - "name": "xata_version", 649 - "type": "text", 650 - "primaryKey": false, 651 - "notNull": false 652 - }, 653 - "xata_createdat": { 654 - "name": "xata_createdat", 655 - "type": "timestamp", 656 - "primaryKey": false, 657 - "notNull": true, 658 - "default": "now()" 659 - }, 660 - "xata_updatedat": { 661 - "name": "xata_updatedat", 662 - "type": "timestamp", 663 - "primaryKey": false, 664 - "notNull": true, 665 - "default": "now()" 666 - } 667 - }, 668 - "indexes": {}, 669 - "foreignKeys": { 670 - "dropbox_accounts_user_id_users_xata_id_fk": { 671 - "name": "dropbox_accounts_user_id_users_xata_id_fk", 672 - "tableFrom": "dropbox_accounts", 673 - "tableTo": "users", 674 - "columnsFrom": [ 675 - "user_id" 676 - ], 677 - "columnsTo": [ 678 - "xata_id" 679 - ], 680 - "onDelete": "no action", 681 - "onUpdate": "no action" 682 - } 683 - }, 684 - "compositePrimaryKeys": {}, 685 - "uniqueConstraints": { 686 - "dropbox_accounts_email_unique": { 687 - "name": "dropbox_accounts_email_unique", 688 - "nullsNotDistinct": false, 689 - "columns": [ 690 - "email" 691 - ] 692 - } 693 - }, 694 - "policies": {}, 695 - "checkConstraints": {}, 696 - "isRLSEnabled": false 697 - }, 698 - "public.dropbox_directories": { 699 - "name": "dropbox_directories", 700 - "schema": "", 701 - "columns": { 702 - "xata_id": { 703 - "name": "xata_id", 704 - "type": "text", 705 - "primaryKey": true, 706 - "notNull": true, 707 - "default": "xata_id()" 708 - }, 709 - "name": { 710 - "name": "name", 711 - "type": "text", 712 - "primaryKey": false, 713 - "notNull": true 714 - }, 715 - "path": { 716 - "name": "path", 717 - "type": "text", 718 - "primaryKey": false, 719 - "notNull": true 720 - }, 721 - "parent_id": { 722 - "name": "parent_id", 723 - "type": "text", 724 - "primaryKey": false, 725 - "notNull": false 726 - }, 727 - "dropbox_id": { 728 - "name": "dropbox_id", 729 - "type": "text", 730 - "primaryKey": false, 731 - "notNull": true 732 - }, 733 - "file_id": { 734 - "name": "file_id", 735 - "type": "text", 736 - "primaryKey": false, 737 - "notNull": true 738 - }, 739 - "xata_version": { 740 - "name": "xata_version", 741 - "type": "text", 742 - "primaryKey": false, 743 - "notNull": false 744 - }, 745 - "xata_createdat": { 746 - "name": "xata_createdat", 747 - "type": "timestamp", 748 - "primaryKey": false, 749 - "notNull": true, 750 - "default": "now()" 751 - }, 752 - "xata_updatedat": { 753 - "name": "xata_updatedat", 754 - "type": "timestamp", 755 - "primaryKey": false, 756 - "notNull": true, 757 - "default": "now()" 758 - } 759 - }, 760 - "indexes": {}, 761 - "foreignKeys": { 762 - "dropbox_directories_parent_id_dropbox_directories_xata_id_fk": { 763 - "name": "dropbox_directories_parent_id_dropbox_directories_xata_id_fk", 764 - "tableFrom": "dropbox_directories", 765 - "tableTo": "dropbox_directories", 766 - "columnsFrom": [ 767 - "parent_id" 768 - ], 769 - "columnsTo": [ 770 - "xata_id" 771 - ], 772 - "onDelete": "no action", 773 - "onUpdate": "no action" 774 - } 775 - }, 776 - "compositePrimaryKeys": {}, 777 - "uniqueConstraints": { 778 - "dropbox_directories_file_id_unique": { 779 - "name": "dropbox_directories_file_id_unique", 780 - "nullsNotDistinct": false, 781 - "columns": [ 782 - "file_id" 783 - ] 784 - } 785 - }, 786 - "policies": {}, 787 - "checkConstraints": {}, 788 - "isRLSEnabled": false 789 - }, 790 - "public.dropbox_paths": { 791 - "name": "dropbox_paths", 792 - "schema": "", 793 - "columns": { 794 - "xata_id": { 795 - "name": "xata_id", 796 - "type": "text", 797 - "primaryKey": true, 798 - "notNull": true, 799 - "default": "xata_id()" 800 - }, 801 - "path": { 802 - "name": "path", 803 - "type": "text", 804 - "primaryKey": false, 805 - "notNull": true 806 - }, 807 - "name": { 808 - "name": "name", 809 - "type": "text", 810 - "primaryKey": false, 811 - "notNull": true 812 - }, 813 - "dropbox_id": { 814 - "name": "dropbox_id", 815 - "type": "text", 816 - "primaryKey": false, 817 - "notNull": true 818 - }, 819 - "track_id": { 820 - "name": "track_id", 821 - "type": "text", 822 - "primaryKey": false, 823 - "notNull": true 824 - }, 825 - "directory_id": { 826 - "name": "directory_id", 827 - "type": "text", 828 - "primaryKey": false, 829 - "notNull": false 830 - }, 831 - "file_id": { 832 - "name": "file_id", 833 - "type": "text", 834 - "primaryKey": false, 835 - "notNull": true 836 - }, 837 - "xata_version": { 838 - "name": "xata_version", 839 - "type": "text", 840 - "primaryKey": false, 841 - "notNull": false 842 - }, 843 - "xata_createdat": { 844 - "name": "xata_createdat", 845 - "type": "timestamp", 846 - "primaryKey": false, 847 - "notNull": true, 848 - "default": "now()" 849 - }, 850 - "xata_updatedat": { 851 - "name": "xata_updatedat", 852 - "type": "timestamp", 853 - "primaryKey": false, 854 - "notNull": true, 855 - "default": "now()" 856 - } 857 - }, 858 - "indexes": {}, 859 - "foreignKeys": { 860 - "dropbox_paths_directory_id_dropbox_directories_xata_id_fk": { 861 - "name": "dropbox_paths_directory_id_dropbox_directories_xata_id_fk", 862 - "tableFrom": "dropbox_paths", 863 - "tableTo": "dropbox_directories", 864 - "columnsFrom": [ 865 - "directory_id" 866 - ], 867 - "columnsTo": [ 868 - "xata_id" 869 - ], 870 - "onDelete": "no action", 871 - "onUpdate": "no action" 872 - } 873 - }, 874 - "compositePrimaryKeys": {}, 875 - "uniqueConstraints": { 876 - "dropbox_paths_file_id_unique": { 877 - "name": "dropbox_paths_file_id_unique", 878 - "nullsNotDistinct": false, 879 - "columns": [ 880 - "file_id" 881 - ] 882 - } 883 - }, 884 - "policies": {}, 885 - "checkConstraints": {}, 886 - "isRLSEnabled": false 887 - }, 888 - "public.dropbox_tokens": { 889 - "name": "dropbox_tokens", 890 - "schema": "", 891 - "columns": { 892 - "xata_id": { 893 - "name": "xata_id", 894 - "type": "text", 895 - "primaryKey": true, 896 - "notNull": true, 897 - "default": "xata_id()" 898 - }, 899 - "refresh_token": { 900 - "name": "refresh_token", 901 - "type": "text", 902 - "primaryKey": false, 903 - "notNull": true 904 - }, 905 - "xata_createdat": { 906 - "name": "xata_createdat", 907 - "type": "timestamp", 908 - "primaryKey": false, 909 - "notNull": true, 910 - "default": "now()" 911 - }, 912 - "xata_updatedat": { 913 - "name": "xata_updatedat", 914 - "type": "timestamp", 915 - "primaryKey": false, 916 - "notNull": true, 917 - "default": "now()" 918 - } 919 - }, 920 - "indexes": {}, 921 - "foreignKeys": {}, 922 - "compositePrimaryKeys": {}, 923 - "uniqueConstraints": {}, 924 - "policies": {}, 925 - "checkConstraints": {}, 926 - "isRLSEnabled": false 927 - }, 928 - "public.dropbox": { 929 - "name": "dropbox", 930 - "schema": "", 931 - "columns": { 932 - "xata_id": { 933 - "name": "xata_id", 934 - "type": "text", 935 - "primaryKey": true, 936 - "notNull": true, 937 - "default": "xata_id()" 938 - }, 939 - "user_id": { 940 - "name": "user_id", 941 - "type": "text", 942 - "primaryKey": false, 943 - "notNull": true 944 - }, 945 - "dropbox_token_id": { 946 - "name": "dropbox_token_id", 947 - "type": "text", 948 - "primaryKey": false, 949 - "notNull": true 950 - }, 951 - "xata_version": { 952 - "name": "xata_version", 953 - "type": "text", 954 - "primaryKey": false, 955 - "notNull": false 956 - }, 957 - "xata_createdat": { 958 - "name": "xata_createdat", 959 - "type": "timestamp", 960 - "primaryKey": false, 961 - "notNull": true, 962 - "default": "now()" 963 - }, 964 - "xata_updatedat": { 965 - "name": "xata_updatedat", 966 - "type": "timestamp", 967 - "primaryKey": false, 968 - "notNull": true, 969 - "default": "now()" 970 - } 971 - }, 972 - "indexes": {}, 973 - "foreignKeys": { 974 - "dropbox_user_id_users_xata_id_fk": { 975 - "name": "dropbox_user_id_users_xata_id_fk", 976 - "tableFrom": "dropbox", 977 - "tableTo": "users", 978 - "columnsFrom": [ 979 - "user_id" 980 - ], 981 - "columnsTo": [ 982 - "xata_id" 983 - ], 984 - "onDelete": "no action", 985 - "onUpdate": "no action" 986 - }, 987 - "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk": { 988 - "name": "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk", 989 - "tableFrom": "dropbox", 990 - "tableTo": "dropbox_tokens", 991 - "columnsFrom": [ 992 - "dropbox_token_id" 993 - ], 994 - "columnsTo": [ 995 - "xata_id" 996 - ], 997 - "onDelete": "no action", 998 - "onUpdate": "no action" 999 - } 1000 - }, 1001 - "compositePrimaryKeys": {}, 1002 - "uniqueConstraints": {}, 1003 - "policies": {}, 1004 - "checkConstraints": {}, 1005 - "isRLSEnabled": false 1006 - }, 1007 - "public.feeds": { 1008 - "name": "feeds", 1009 - "schema": "", 1010 - "columns": { 1011 - "xata_id": { 1012 - "name": "xata_id", 1013 - "type": "text", 1014 - "primaryKey": true, 1015 - "notNull": true, 1016 - "default": "xata_id()" 1017 - }, 1018 - "display_name": { 1019 - "name": "display_name", 1020 - "type": "text", 1021 - "primaryKey": false, 1022 - "notNull": true 1023 - }, 1024 - "description": { 1025 - "name": "description", 1026 - "type": "text", 1027 - "primaryKey": false, 1028 - "notNull": false 1029 - }, 1030 - "did": { 1031 - "name": "did", 1032 - "type": "text", 1033 - "primaryKey": false, 1034 - "notNull": true 1035 - }, 1036 - "uri": { 1037 - "name": "uri", 1038 - "type": "text", 1039 - "primaryKey": false, 1040 - "notNull": true 1041 - }, 1042 - "avatar": { 1043 - "name": "avatar", 1044 - "type": "text", 1045 - "primaryKey": false, 1046 - "notNull": false 1047 - }, 1048 - "user_id": { 1049 - "name": "user_id", 1050 - "type": "text", 1051 - "primaryKey": false, 1052 - "notNull": true 1053 - }, 1054 - "xata_version": { 1055 - "name": "xata_version", 1056 - "type": "integer", 1057 - "primaryKey": false, 1058 - "notNull": false 1059 - }, 1060 - "xata_createdat": { 1061 - "name": "xata_createdat", 1062 - "type": "timestamp", 1063 - "primaryKey": false, 1064 - "notNull": true, 1065 - "default": "now()" 1066 - }, 1067 - "xata_updatedat": { 1068 - "name": "xata_updatedat", 1069 - "type": "timestamp", 1070 - "primaryKey": false, 1071 - "notNull": true, 1072 - "default": "now()" 1073 - } 1074 - }, 1075 - "indexes": {}, 1076 - "foreignKeys": { 1077 - "feeds_user_id_users_xata_id_fk": { 1078 - "name": "feeds_user_id_users_xata_id_fk", 1079 - "tableFrom": "feeds", 1080 - "tableTo": "users", 1081 - "columnsFrom": [ 1082 - "user_id" 1083 - ], 1084 - "columnsTo": [ 1085 - "xata_id" 1086 - ], 1087 - "onDelete": "no action", 1088 - "onUpdate": "no action" 1089 - } 1090 - }, 1091 - "compositePrimaryKeys": {}, 1092 - "uniqueConstraints": { 1093 - "feeds_did_unique": { 1094 - "name": "feeds_did_unique", 1095 - "nullsNotDistinct": false, 1096 - "columns": [ 1097 - "did" 1098 - ] 1099 - }, 1100 - "feeds_uri_unique": { 1101 - "name": "feeds_uri_unique", 1102 - "nullsNotDistinct": false, 1103 - "columns": [ 1104 - "uri" 1105 - ] 1106 - } 1107 - }, 1108 - "policies": {}, 1109 - "checkConstraints": {}, 1110 - "isRLSEnabled": false 1111 - }, 1112 - "public.google_drive_accounts": { 1113 - "name": "google_drive_accounts", 1114 - "schema": "", 1115 - "columns": { 1116 - "xata_id": { 1117 - "name": "xata_id", 1118 - "type": "text", 1119 - "primaryKey": true, 1120 - "notNull": true, 1121 - "default": "xata_id()" 1122 - }, 1123 - "email": { 1124 - "name": "email", 1125 - "type": "text", 1126 - "primaryKey": false, 1127 - "notNull": true 1128 - }, 1129 - "is_beta_user": { 1130 - "name": "is_beta_user", 1131 - "type": "boolean", 1132 - "primaryKey": false, 1133 - "notNull": true, 1134 - "default": false 1135 - }, 1136 - "user_id": { 1137 - "name": "user_id", 1138 - "type": "text", 1139 - "primaryKey": false, 1140 - "notNull": true 1141 - }, 1142 - "xata_version": { 1143 - "name": "xata_version", 1144 - "type": "text", 1145 - "primaryKey": false, 1146 - "notNull": false 1147 - }, 1148 - "xata_createdat": { 1149 - "name": "xata_createdat", 1150 - "type": "timestamp", 1151 - "primaryKey": false, 1152 - "notNull": true, 1153 - "default": "now()" 1154 - }, 1155 - "xata_updatedat": { 1156 - "name": "xata_updatedat", 1157 - "type": "timestamp", 1158 - "primaryKey": false, 1159 - "notNull": true, 1160 - "default": "now()" 1161 - } 1162 - }, 1163 - "indexes": {}, 1164 - "foreignKeys": { 1165 - "google_drive_accounts_user_id_users_xata_id_fk": { 1166 - "name": "google_drive_accounts_user_id_users_xata_id_fk", 1167 - "tableFrom": "google_drive_accounts", 1168 - "tableTo": "users", 1169 - "columnsFrom": [ 1170 - "user_id" 1171 - ], 1172 - "columnsTo": [ 1173 - "xata_id" 1174 - ], 1175 - "onDelete": "no action", 1176 - "onUpdate": "no action" 1177 - } 1178 - }, 1179 - "compositePrimaryKeys": {}, 1180 - "uniqueConstraints": { 1181 - "google_drive_accounts_email_unique": { 1182 - "name": "google_drive_accounts_email_unique", 1183 - "nullsNotDistinct": false, 1184 - "columns": [ 1185 - "email" 1186 - ] 1187 - } 1188 - }, 1189 - "policies": {}, 1190 - "checkConstraints": {}, 1191 - "isRLSEnabled": false 1192 - }, 1193 - "public.google_drive_directories": { 1194 - "name": "google_drive_directories", 1195 - "schema": "", 1196 - "columns": { 1197 - "xata_id": { 1198 - "name": "xata_id", 1199 - "type": "text", 1200 - "primaryKey": true, 1201 - "notNull": true, 1202 - "default": "xata_id()" 1203 - }, 1204 - "name": { 1205 - "name": "name", 1206 - "type": "text", 1207 - "primaryKey": false, 1208 - "notNull": true 1209 - }, 1210 - "path": { 1211 - "name": "path", 1212 - "type": "text", 1213 - "primaryKey": false, 1214 - "notNull": true 1215 - }, 1216 - "parent_id": { 1217 - "name": "parent_id", 1218 - "type": "text", 1219 - "primaryKey": false, 1220 - "notNull": false 1221 - }, 1222 - "google_drive_id": { 1223 - "name": "google_drive_id", 1224 - "type": "text", 1225 - "primaryKey": false, 1226 - "notNull": true 1227 - }, 1228 - "file_id": { 1229 - "name": "file_id", 1230 - "type": "text", 1231 - "primaryKey": false, 1232 - "notNull": true 1233 - }, 1234 - "xata_version": { 1235 - "name": "xata_version", 1236 - "type": "text", 1237 - "primaryKey": false, 1238 - "notNull": false 1239 - }, 1240 - "xata_createdat": { 1241 - "name": "xata_createdat", 1242 - "type": "timestamp", 1243 - "primaryKey": false, 1244 - "notNull": true, 1245 - "default": "now()" 1246 - }, 1247 - "xata_updatedat": { 1248 - "name": "xata_updatedat", 1249 - "type": "timestamp", 1250 - "primaryKey": false, 1251 - "notNull": true, 1252 - "default": "now()" 1253 - } 1254 - }, 1255 - "indexes": {}, 1256 - "foreignKeys": { 1257 - "google_drive_directories_parent_id_google_drive_directories_xata_id_fk": { 1258 - "name": "google_drive_directories_parent_id_google_drive_directories_xata_id_fk", 1259 - "tableFrom": "google_drive_directories", 1260 - "tableTo": "google_drive_directories", 1261 - "columnsFrom": [ 1262 - "parent_id" 1263 - ], 1264 - "columnsTo": [ 1265 - "xata_id" 1266 - ], 1267 - "onDelete": "no action", 1268 - "onUpdate": "no action" 1269 - } 1270 - }, 1271 - "compositePrimaryKeys": {}, 1272 - "uniqueConstraints": { 1273 - "google_drive_directories_file_id_unique": { 1274 - "name": "google_drive_directories_file_id_unique", 1275 - "nullsNotDistinct": false, 1276 - "columns": [ 1277 - "file_id" 1278 - ] 1279 - } 1280 - }, 1281 - "policies": {}, 1282 - "checkConstraints": {}, 1283 - "isRLSEnabled": false 1284 - }, 1285 - "public.google_drive_paths": { 1286 - "name": "google_drive_paths", 1287 - "schema": "", 1288 - "columns": { 1289 - "xata_id": { 1290 - "name": "xata_id", 1291 - "type": "text", 1292 - "primaryKey": true, 1293 - "notNull": true, 1294 - "default": "xata_id()" 1295 - }, 1296 - "google_drive_id": { 1297 - "name": "google_drive_id", 1298 - "type": "text", 1299 - "primaryKey": false, 1300 - "notNull": true 1301 - }, 1302 - "track_id": { 1303 - "name": "track_id", 1304 - "type": "text", 1305 - "primaryKey": false, 1306 - "notNull": true 1307 - }, 1308 - "name": { 1309 - "name": "name", 1310 - "type": "text", 1311 - "primaryKey": false, 1312 - "notNull": true 1313 - }, 1314 - "directory_id": { 1315 - "name": "directory_id", 1316 - "type": "text", 1317 - "primaryKey": false, 1318 - "notNull": false 1319 - }, 1320 - "file_id": { 1321 - "name": "file_id", 1322 - "type": "text", 1323 - "primaryKey": false, 1324 - "notNull": true 1325 - }, 1326 - "xata_version": { 1327 - "name": "xata_version", 1328 - "type": "text", 1329 - "primaryKey": false, 1330 - "notNull": false 1331 - }, 1332 - "xata_createdat": { 1333 - "name": "xata_createdat", 1334 - "type": "timestamp", 1335 - "primaryKey": false, 1336 - "notNull": true, 1337 - "default": "now()" 1338 - }, 1339 - "xata_updatedat": { 1340 - "name": "xata_updatedat", 1341 - "type": "timestamp", 1342 - "primaryKey": false, 1343 - "notNull": true, 1344 - "default": "now()" 1345 - } 1346 - }, 1347 - "indexes": {}, 1348 - "foreignKeys": { 1349 - "google_drive_paths_directory_id_google_drive_directories_xata_id_fk": { 1350 - "name": "google_drive_paths_directory_id_google_drive_directories_xata_id_fk", 1351 - "tableFrom": "google_drive_paths", 1352 - "tableTo": "google_drive_directories", 1353 - "columnsFrom": [ 1354 - "directory_id" 1355 - ], 1356 - "columnsTo": [ 1357 - "xata_id" 1358 - ], 1359 - "onDelete": "no action", 1360 - "onUpdate": "no action" 1361 - } 1362 - }, 1363 - "compositePrimaryKeys": {}, 1364 - "uniqueConstraints": { 1365 - "google_drive_paths_file_id_unique": { 1366 - "name": "google_drive_paths_file_id_unique", 1367 - "nullsNotDistinct": false, 1368 - "columns": [ 1369 - "file_id" 1370 - ] 1371 - } 1372 - }, 1373 - "policies": {}, 1374 - "checkConstraints": {}, 1375 - "isRLSEnabled": false 1376 - }, 1377 - "public.google_drive_tokens": { 1378 - "name": "google_drive_tokens", 1379 - "schema": "", 1380 - "columns": { 1381 - "xata_id": { 1382 - "name": "xata_id", 1383 - "type": "text", 1384 - "primaryKey": true, 1385 - "notNull": true, 1386 - "default": "xata_id()" 1387 - }, 1388 - "refresh_token": { 1389 - "name": "refresh_token", 1390 - "type": "text", 1391 - "primaryKey": false, 1392 - "notNull": true 1393 - }, 1394 - "xata_createdat": { 1395 - "name": "xata_createdat", 1396 - "type": "timestamp", 1397 - "primaryKey": false, 1398 - "notNull": true, 1399 - "default": "now()" 1400 - }, 1401 - "xata_updatedat": { 1402 - "name": "xata_updatedat", 1403 - "type": "timestamp", 1404 - "primaryKey": false, 1405 - "notNull": true, 1406 - "default": "now()" 1407 - } 1408 - }, 1409 - "indexes": {}, 1410 - "foreignKeys": {}, 1411 - "compositePrimaryKeys": {}, 1412 - "uniqueConstraints": {}, 1413 - "policies": {}, 1414 - "checkConstraints": {}, 1415 - "isRLSEnabled": false 1416 - }, 1417 - "public.google_drive": { 1418 - "name": "google_drive", 1419 - "schema": "", 1420 - "columns": { 1421 - "xata_id": { 1422 - "name": "xata_id", 1423 - "type": "text", 1424 - "primaryKey": true, 1425 - "notNull": true, 1426 - "default": "xata_id()" 1427 - }, 1428 - "google_drive_token_id": { 1429 - "name": "google_drive_token_id", 1430 - "type": "text", 1431 - "primaryKey": false, 1432 - "notNull": true 1433 - }, 1434 - "user_id": { 1435 - "name": "user_id", 1436 - "type": "text", 1437 - "primaryKey": false, 1438 - "notNull": true 1439 - }, 1440 - "xata_version": { 1441 - "name": "xata_version", 1442 - "type": "text", 1443 - "primaryKey": false, 1444 - "notNull": false 1445 - }, 1446 - "xata_createdat": { 1447 - "name": "xata_createdat", 1448 - "type": "timestamp", 1449 - "primaryKey": false, 1450 - "notNull": true, 1451 - "default": "now()" 1452 - }, 1453 - "xata_updatedat": { 1454 - "name": "xata_updatedat", 1455 - "type": "timestamp", 1456 - "primaryKey": false, 1457 - "notNull": true, 1458 - "default": "now()" 1459 - } 1460 - }, 1461 - "indexes": {}, 1462 - "foreignKeys": { 1463 - "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk": { 1464 - "name": "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk", 1465 - "tableFrom": "google_drive", 1466 - "tableTo": "google_drive_tokens", 1467 - "columnsFrom": [ 1468 - "google_drive_token_id" 1469 - ], 1470 - "columnsTo": [ 1471 - "xata_id" 1472 - ], 1473 - "onDelete": "no action", 1474 - "onUpdate": "no action" 1475 - }, 1476 - "google_drive_user_id_users_xata_id_fk": { 1477 - "name": "google_drive_user_id_users_xata_id_fk", 1478 - "tableFrom": "google_drive", 1479 - "tableTo": "users", 1480 - "columnsFrom": [ 1481 - "user_id" 1482 - ], 1483 - "columnsTo": [ 1484 - "xata_id" 1485 - ], 1486 - "onDelete": "no action", 1487 - "onUpdate": "no action" 1488 - } 1489 - }, 1490 - "compositePrimaryKeys": {}, 1491 - "uniqueConstraints": {}, 1492 - "policies": {}, 1493 - "checkConstraints": {}, 1494 - "isRLSEnabled": false 1495 - }, 1496 - "public.loved_tracks": { 1497 - "name": "loved_tracks", 1498 - "schema": "", 1499 - "columns": { 1500 - "xata_id": { 1501 - "name": "xata_id", 1502 - "type": "text", 1503 - "primaryKey": true, 1504 - "notNull": true, 1505 - "default": "xata_id()" 1506 - }, 1507 - "user_id": { 1508 - "name": "user_id", 1509 - "type": "text", 1510 - "primaryKey": false, 1511 - "notNull": true 1512 - }, 1513 - "track_id": { 1514 - "name": "track_id", 1515 - "type": "text", 1516 - "primaryKey": false, 1517 - "notNull": true 1518 - }, 1519 - "uri": { 1520 - "name": "uri", 1521 - "type": "text", 1522 - "primaryKey": false, 1523 - "notNull": false 1524 - }, 1525 - "xata_createdat": { 1526 - "name": "xata_createdat", 1527 - "type": "timestamp", 1528 - "primaryKey": false, 1529 - "notNull": true, 1530 - "default": "now()" 1531 - } 1532 - }, 1533 - "indexes": {}, 1534 - "foreignKeys": { 1535 - "loved_tracks_user_id_users_xata_id_fk": { 1536 - "name": "loved_tracks_user_id_users_xata_id_fk", 1537 - "tableFrom": "loved_tracks", 1538 - "tableTo": "users", 1539 - "columnsFrom": [ 1540 - "user_id" 1541 - ], 1542 - "columnsTo": [ 1543 - "xata_id" 1544 - ], 1545 - "onDelete": "no action", 1546 - "onUpdate": "no action" 1547 - }, 1548 - "loved_tracks_track_id_tracks_xata_id_fk": { 1549 - "name": "loved_tracks_track_id_tracks_xata_id_fk", 1550 - "tableFrom": "loved_tracks", 1551 - "tableTo": "tracks", 1552 - "columnsFrom": [ 1553 - "track_id" 1554 - ], 1555 - "columnsTo": [ 1556 - "xata_id" 1557 - ], 1558 - "onDelete": "no action", 1559 - "onUpdate": "no action" 1560 - } 1561 - }, 1562 - "compositePrimaryKeys": {}, 1563 - "uniqueConstraints": { 1564 - "loved_tracks_uri_unique": { 1565 - "name": "loved_tracks_uri_unique", 1566 - "nullsNotDistinct": false, 1567 - "columns": [ 1568 - "uri" 1569 - ] 1570 - } 1571 - }, 1572 - "policies": {}, 1573 - "checkConstraints": {}, 1574 - "isRLSEnabled": false 1575 - }, 1576 - "public.playlist_tracks": { 1577 - "name": "playlist_tracks", 1578 - "schema": "", 1579 - "columns": { 1580 - "xata_id": { 1581 - "name": "xata_id", 1582 - "type": "text", 1583 - "primaryKey": true, 1584 - "notNull": true, 1585 - "default": "xata_id()" 1586 - }, 1587 - "playlist_id": { 1588 - "name": "playlist_id", 1589 - "type": "text", 1590 - "primaryKey": false, 1591 - "notNull": true 1592 - }, 1593 - "track_id": { 1594 - "name": "track_id", 1595 - "type": "text", 1596 - "primaryKey": false, 1597 - "notNull": true 1598 - }, 1599 - "xata_createdat": { 1600 - "name": "xata_createdat", 1601 - "type": "timestamp", 1602 - "primaryKey": false, 1603 - "notNull": true, 1604 - "default": "now()" 1605 - } 1606 - }, 1607 - "indexes": {}, 1608 - "foreignKeys": { 1609 - "playlist_tracks_playlist_id_playlists_xata_id_fk": { 1610 - "name": "playlist_tracks_playlist_id_playlists_xata_id_fk", 1611 - "tableFrom": "playlist_tracks", 1612 - "tableTo": "playlists", 1613 - "columnsFrom": [ 1614 - "playlist_id" 1615 - ], 1616 - "columnsTo": [ 1617 - "xata_id" 1618 - ], 1619 - "onDelete": "no action", 1620 - "onUpdate": "no action" 1621 - }, 1622 - "playlist_tracks_track_id_tracks_xata_id_fk": { 1623 - "name": "playlist_tracks_track_id_tracks_xata_id_fk", 1624 - "tableFrom": "playlist_tracks", 1625 - "tableTo": "tracks", 1626 - "columnsFrom": [ 1627 - "track_id" 1628 - ], 1629 - "columnsTo": [ 1630 - "xata_id" 1631 - ], 1632 - "onDelete": "no action", 1633 - "onUpdate": "no action" 1634 - } 1635 - }, 1636 - "compositePrimaryKeys": {}, 1637 - "uniqueConstraints": {}, 1638 - "policies": {}, 1639 - "checkConstraints": {}, 1640 - "isRLSEnabled": false 1641 - }, 1642 - "public.playlists": { 1643 - "name": "playlists", 1644 - "schema": "", 1645 - "columns": { 1646 - "xata_id": { 1647 - "name": "xata_id", 1648 - "type": "text", 1649 - "primaryKey": true, 1650 - "notNull": true, 1651 - "default": "xata_id()" 1652 - }, 1653 - "name": { 1654 - "name": "name", 1655 - "type": "text", 1656 - "primaryKey": false, 1657 - "notNull": true 1658 - }, 1659 - "picture": { 1660 - "name": "picture", 1661 - "type": "text", 1662 - "primaryKey": false, 1663 - "notNull": false 1664 - }, 1665 - "description": { 1666 - "name": "description", 1667 - "type": "text", 1668 - "primaryKey": false, 1669 - "notNull": false 1670 - }, 1671 - "uri": { 1672 - "name": "uri", 1673 - "type": "text", 1674 - "primaryKey": false, 1675 - "notNull": false 1676 - }, 1677 - "spotify_link": { 1678 - "name": "spotify_link", 1679 - "type": "text", 1680 - "primaryKey": false, 1681 - "notNull": false 1682 - }, 1683 - "tidal_link": { 1684 - "name": "tidal_link", 1685 - "type": "text", 1686 - "primaryKey": false, 1687 - "notNull": false 1688 - }, 1689 - "apple_music_link": { 1690 - "name": "apple_music_link", 1691 - "type": "text", 1692 - "primaryKey": false, 1693 - "notNull": false 1694 - }, 1695 - "created_by": { 1696 - "name": "created_by", 1697 - "type": "text", 1698 - "primaryKey": false, 1699 - "notNull": true 1700 - }, 1701 - "xata_createdat": { 1702 - "name": "xata_createdat", 1703 - "type": "timestamp", 1704 - "primaryKey": false, 1705 - "notNull": true, 1706 - "default": "now()" 1707 - }, 1708 - "xata_updatedat": { 1709 - "name": "xata_updatedat", 1710 - "type": "timestamp", 1711 - "primaryKey": false, 1712 - "notNull": true, 1713 - "default": "now()" 1714 - } 1715 - }, 1716 - "indexes": {}, 1717 - "foreignKeys": { 1718 - "playlists_created_by_users_xata_id_fk": { 1719 - "name": "playlists_created_by_users_xata_id_fk", 1720 - "tableFrom": "playlists", 1721 - "tableTo": "users", 1722 - "columnsFrom": [ 1723 - "created_by" 1724 - ], 1725 - "columnsTo": [ 1726 - "xata_id" 1727 - ], 1728 - "onDelete": "no action", 1729 - "onUpdate": "no action" 1730 - } 1731 - }, 1732 - "compositePrimaryKeys": {}, 1733 - "uniqueConstraints": { 1734 - "playlists_uri_unique": { 1735 - "name": "playlists_uri_unique", 1736 - "nullsNotDistinct": false, 1737 - "columns": [ 1738 - "uri" 1739 - ] 1740 - } 1741 - }, 1742 - "policies": {}, 1743 - "checkConstraints": {}, 1744 - "isRLSEnabled": false 1745 - }, 1746 - "public.profile_shouts": { 1747 - "name": "profile_shouts", 1748 - "schema": "", 1749 - "columns": { 1750 - "xata_id": { 1751 - "name": "xata_id", 1752 - "type": "text", 1753 - "primaryKey": true, 1754 - "notNull": true, 1755 - "default": "xata_id()" 1756 - }, 1757 - "user_id": { 1758 - "name": "user_id", 1759 - "type": "text", 1760 - "primaryKey": false, 1761 - "notNull": true 1762 - }, 1763 - "shout_id": { 1764 - "name": "shout_id", 1765 - "type": "text", 1766 - "primaryKey": false, 1767 - "notNull": true 1768 - }, 1769 - "xata_createdat": { 1770 - "name": "xata_createdat", 1771 - "type": "timestamp", 1772 - "primaryKey": false, 1773 - "notNull": true, 1774 - "default": "now()" 1775 - } 1776 - }, 1777 - "indexes": {}, 1778 - "foreignKeys": { 1779 - "profile_shouts_user_id_users_xata_id_fk": { 1780 - "name": "profile_shouts_user_id_users_xata_id_fk", 1781 - "tableFrom": "profile_shouts", 1782 - "tableTo": "users", 1783 - "columnsFrom": [ 1784 - "user_id" 1785 - ], 1786 - "columnsTo": [ 1787 - "xata_id" 1788 - ], 1789 - "onDelete": "no action", 1790 - "onUpdate": "no action" 1791 - }, 1792 - "profile_shouts_shout_id_shouts_xata_id_fk": { 1793 - "name": "profile_shouts_shout_id_shouts_xata_id_fk", 1794 - "tableFrom": "profile_shouts", 1795 - "tableTo": "shouts", 1796 - "columnsFrom": [ 1797 - "shout_id" 1798 - ], 1799 - "columnsTo": [ 1800 - "xata_id" 1801 - ], 1802 - "onDelete": "no action", 1803 - "onUpdate": "no action" 1804 - } 1805 - }, 1806 - "compositePrimaryKeys": {}, 1807 - "uniqueConstraints": {}, 1808 - "policies": {}, 1809 - "checkConstraints": {}, 1810 - "isRLSEnabled": false 1811 - }, 1812 - "public.queue_tracks": { 1813 - "name": "queue_tracks", 1814 - "schema": "", 1815 - "columns": { 1816 - "xata_id": { 1817 - "name": "xata_id", 1818 - "type": "text", 1819 - "primaryKey": true, 1820 - "notNull": true, 1821 - "default": "xata_id()" 1822 - }, 1823 - "user_id": { 1824 - "name": "user_id", 1825 - "type": "text", 1826 - "primaryKey": false, 1827 - "notNull": true 1828 - }, 1829 - "track_id": { 1830 - "name": "track_id", 1831 - "type": "text", 1832 - "primaryKey": false, 1833 - "notNull": true 1834 - }, 1835 - "position": { 1836 - "name": "position", 1837 - "type": "integer", 1838 - "primaryKey": false, 1839 - "notNull": true 1840 - }, 1841 - "file_uri": { 1842 - "name": "file_uri", 1843 - "type": "text", 1844 - "primaryKey": false, 1845 - "notNull": true 1846 - }, 1847 - "xata_version": { 1848 - "name": "xata_version", 1849 - "type": "integer", 1850 - "primaryKey": false, 1851 - "notNull": true, 1852 - "default": 0 1853 - }, 1854 - "xata_createdat": { 1855 - "name": "xata_createdat", 1856 - "type": "timestamp", 1857 - "primaryKey": false, 1858 - "notNull": true, 1859 - "default": "now()" 1860 - }, 1861 - "xata_updatedat": { 1862 - "name": "xata_updatedat", 1863 - "type": "timestamp", 1864 - "primaryKey": false, 1865 - "notNull": true, 1866 - "default": "now()" 1867 - } 1868 - }, 1869 - "indexes": {}, 1870 - "foreignKeys": { 1871 - "queue_tracks_user_id_users_xata_id_fk": { 1872 - "name": "queue_tracks_user_id_users_xata_id_fk", 1873 - "tableFrom": "queue_tracks", 1874 - "tableTo": "users", 1875 - "columnsFrom": [ 1876 - "user_id" 1877 - ], 1878 - "columnsTo": [ 1879 - "xata_id" 1880 - ], 1881 - "onDelete": "no action", 1882 - "onUpdate": "no action" 1883 - }, 1884 - "queue_tracks_track_id_tracks_xata_id_fk": { 1885 - "name": "queue_tracks_track_id_tracks_xata_id_fk", 1886 - "tableFrom": "queue_tracks", 1887 - "tableTo": "tracks", 1888 - "columnsFrom": [ 1889 - "track_id" 1890 - ], 1891 - "columnsTo": [ 1892 - "xata_id" 1893 - ], 1894 - "onDelete": "no action", 1895 - "onUpdate": "no action" 1896 - } 1897 - }, 1898 - "compositePrimaryKeys": {}, 1899 - "uniqueConstraints": {}, 1900 - "policies": {}, 1901 - "checkConstraints": {}, 1902 - "isRLSEnabled": false 1903 - }, 1904 - "public.scrobbles": { 1905 - "name": "scrobbles", 1906 - "schema": "", 1907 - "columns": { 1908 - "xata_id": { 1909 - "name": "xata_id", 1910 - "type": "text", 1911 - "primaryKey": true, 1912 - "notNull": true, 1913 - "default": "xata_id()" 1914 - }, 1915 - "user_id": { 1916 - "name": "user_id", 1917 - "type": "text", 1918 - "primaryKey": false, 1919 - "notNull": false 1920 - }, 1921 - "track_id": { 1922 - "name": "track_id", 1923 - "type": "text", 1924 - "primaryKey": false, 1925 - "notNull": false 1926 - }, 1927 - "album_id": { 1928 - "name": "album_id", 1929 - "type": "text", 1930 - "primaryKey": false, 1931 - "notNull": false 1932 - }, 1933 - "artist_id": { 1934 - "name": "artist_id", 1935 - "type": "text", 1936 - "primaryKey": false, 1937 - "notNull": false 1938 - }, 1939 - "uri": { 1940 - "name": "uri", 1941 - "type": "text", 1942 - "primaryKey": false, 1943 - "notNull": false 1944 - }, 1945 - "xata_createdat": { 1946 - "name": "xata_createdat", 1947 - "type": "timestamp", 1948 - "primaryKey": false, 1949 - "notNull": true, 1950 - "default": "now()" 1951 - }, 1952 - "xata_updatedat": { 1953 - "name": "xata_updatedat", 1954 - "type": "timestamp", 1955 - "primaryKey": false, 1956 - "notNull": true, 1957 - "default": "now()" 1958 - }, 1959 - "xata_version": { 1960 - "name": "xata_version", 1961 - "type": "integer", 1962 - "primaryKey": false, 1963 - "notNull": false 1964 - }, 1965 - "timestamp": { 1966 - "name": "timestamp", 1967 - "type": "timestamp", 1968 - "primaryKey": false, 1969 - "notNull": true, 1970 - "default": "now()" 1971 - } 1972 - }, 1973 - "indexes": {}, 1974 - "foreignKeys": { 1975 - "scrobbles_user_id_users_xata_id_fk": { 1976 - "name": "scrobbles_user_id_users_xata_id_fk", 1977 - "tableFrom": "scrobbles", 1978 - "tableTo": "users", 1979 - "columnsFrom": [ 1980 - "user_id" 1981 - ], 1982 - "columnsTo": [ 1983 - "xata_id" 1984 - ], 1985 - "onDelete": "no action", 1986 - "onUpdate": "no action" 1987 - }, 1988 - "scrobbles_track_id_tracks_xata_id_fk": { 1989 - "name": "scrobbles_track_id_tracks_xata_id_fk", 1990 - "tableFrom": "scrobbles", 1991 - "tableTo": "tracks", 1992 - "columnsFrom": [ 1993 - "track_id" 1994 - ], 1995 - "columnsTo": [ 1996 - "xata_id" 1997 - ], 1998 - "onDelete": "no action", 1999 - "onUpdate": "no action" 2000 - }, 2001 - "scrobbles_album_id_albums_xata_id_fk": { 2002 - "name": "scrobbles_album_id_albums_xata_id_fk", 2003 - "tableFrom": "scrobbles", 2004 - "tableTo": "albums", 2005 - "columnsFrom": [ 2006 - "album_id" 2007 - ], 2008 - "columnsTo": [ 2009 - "xata_id" 2010 - ], 2011 - "onDelete": "no action", 2012 - "onUpdate": "no action" 2013 - }, 2014 - "scrobbles_artist_id_artists_xata_id_fk": { 2015 - "name": "scrobbles_artist_id_artists_xata_id_fk", 2016 - "tableFrom": "scrobbles", 2017 - "tableTo": "artists", 2018 - "columnsFrom": [ 2019 - "artist_id" 2020 - ], 2021 - "columnsTo": [ 2022 - "xata_id" 2023 - ], 2024 - "onDelete": "no action", 2025 - "onUpdate": "no action" 2026 - } 2027 - }, 2028 - "compositePrimaryKeys": {}, 2029 - "uniqueConstraints": { 2030 - "scrobbles_uri_unique": { 2031 - "name": "scrobbles_uri_unique", 2032 - "nullsNotDistinct": false, 2033 - "columns": [ 2034 - "uri" 2035 - ] 2036 - } 2037 - }, 2038 - "policies": {}, 2039 - "checkConstraints": {}, 2040 - "isRLSEnabled": false 2041 - }, 2042 - "public.shout_likes": { 2043 - "name": "shout_likes", 2044 - "schema": "", 2045 - "columns": { 2046 - "xata_id": { 2047 - "name": "xata_id", 2048 - "type": "text", 2049 - "primaryKey": true, 2050 - "notNull": true, 2051 - "default": "xata_id()" 2052 - }, 2053 - "user_id": { 2054 - "name": "user_id", 2055 - "type": "text", 2056 - "primaryKey": false, 2057 - "notNull": true 2058 - }, 2059 - "shout_id": { 2060 - "name": "shout_id", 2061 - "type": "text", 2062 - "primaryKey": false, 2063 - "notNull": true 2064 - }, 2065 - "xata_createdat": { 2066 - "name": "xata_createdat", 2067 - "type": "timestamp", 2068 - "primaryKey": false, 2069 - "notNull": true, 2070 - "default": "now()" 2071 - }, 2072 - "uri": { 2073 - "name": "uri", 2074 - "type": "text", 2075 - "primaryKey": false, 2076 - "notNull": true 2077 - } 2078 - }, 2079 - "indexes": {}, 2080 - "foreignKeys": { 2081 - "shout_likes_user_id_users_xata_id_fk": { 2082 - "name": "shout_likes_user_id_users_xata_id_fk", 2083 - "tableFrom": "shout_likes", 2084 - "tableTo": "users", 2085 - "columnsFrom": [ 2086 - "user_id" 2087 - ], 2088 - "columnsTo": [ 2089 - "xata_id" 2090 - ], 2091 - "onDelete": "no action", 2092 - "onUpdate": "no action" 2093 - }, 2094 - "shout_likes_shout_id_shouts_xata_id_fk": { 2095 - "name": "shout_likes_shout_id_shouts_xata_id_fk", 2096 - "tableFrom": "shout_likes", 2097 - "tableTo": "shouts", 2098 - "columnsFrom": [ 2099 - "shout_id" 2100 - ], 2101 - "columnsTo": [ 2102 - "xata_id" 2103 - ], 2104 - "onDelete": "no action", 2105 - "onUpdate": "no action" 2106 - } 2107 - }, 2108 - "compositePrimaryKeys": {}, 2109 - "uniqueConstraints": { 2110 - "shout_likes_uri_unique": { 2111 - "name": "shout_likes_uri_unique", 2112 - "nullsNotDistinct": false, 2113 - "columns": [ 2114 - "uri" 2115 - ] 2116 - } 2117 - }, 2118 - "policies": {}, 2119 - "checkConstraints": {}, 2120 - "isRLSEnabled": false 2121 - }, 2122 - "public.shout_reports": { 2123 - "name": "shout_reports", 2124 - "schema": "", 2125 - "columns": { 2126 - "xata_id": { 2127 - "name": "xata_id", 2128 - "type": "text", 2129 - "primaryKey": true, 2130 - "notNull": true, 2131 - "default": "xata_id()" 2132 - }, 2133 - "user_id": { 2134 - "name": "user_id", 2135 - "type": "text", 2136 - "primaryKey": false, 2137 - "notNull": true 2138 - }, 2139 - "shout_id": { 2140 - "name": "shout_id", 2141 - "type": "text", 2142 - "primaryKey": false, 2143 - "notNull": true 2144 - }, 2145 - "xata_createdat": { 2146 - "name": "xata_createdat", 2147 - "type": "timestamp", 2148 - "primaryKey": false, 2149 - "notNull": true, 2150 - "default": "now()" 2151 - } 2152 - }, 2153 - "indexes": {}, 2154 - "foreignKeys": { 2155 - "shout_reports_user_id_users_xata_id_fk": { 2156 - "name": "shout_reports_user_id_users_xata_id_fk", 2157 - "tableFrom": "shout_reports", 2158 - "tableTo": "users", 2159 - "columnsFrom": [ 2160 - "user_id" 2161 - ], 2162 - "columnsTo": [ 2163 - "xata_id" 2164 - ], 2165 - "onDelete": "no action", 2166 - "onUpdate": "no action" 2167 - }, 2168 - "shout_reports_shout_id_shouts_xata_id_fk": { 2169 - "name": "shout_reports_shout_id_shouts_xata_id_fk", 2170 - "tableFrom": "shout_reports", 2171 - "tableTo": "shouts", 2172 - "columnsFrom": [ 2173 - "shout_id" 2174 - ], 2175 - "columnsTo": [ 2176 - "xata_id" 2177 - ], 2178 - "onDelete": "no action", 2179 - "onUpdate": "no action" 2180 - } 2181 - }, 2182 - "compositePrimaryKeys": {}, 2183 - "uniqueConstraints": {}, 2184 - "policies": {}, 2185 - "checkConstraints": {}, 2186 - "isRLSEnabled": false 2187 - }, 2188 - "public.shouts": { 2189 - "name": "shouts", 2190 - "schema": "", 2191 - "columns": { 2192 - "xata_id": { 2193 - "name": "xata_id", 2194 - "type": "text", 2195 - "primaryKey": true, 2196 - "notNull": true, 2197 - "default": "xata_id()" 2198 - }, 2199 - "content": { 2200 - "name": "content", 2201 - "type": "text", 2202 - "primaryKey": false, 2203 - "notNull": true 2204 - }, 2205 - "track_id": { 2206 - "name": "track_id", 2207 - "type": "text", 2208 - "primaryKey": false, 2209 - "notNull": false 2210 - }, 2211 - "artist_id": { 2212 - "name": "artist_id", 2213 - "type": "text", 2214 - "primaryKey": false, 2215 - "notNull": false 2216 - }, 2217 - "album_id": { 2218 - "name": "album_id", 2219 - "type": "text", 2220 - "primaryKey": false, 2221 - "notNull": false 2222 - }, 2223 - "scrobble_id": { 2224 - "name": "scrobble_id", 2225 - "type": "text", 2226 - "primaryKey": false, 2227 - "notNull": false 2228 - }, 2229 - "uri": { 2230 - "name": "uri", 2231 - "type": "text", 2232 - "primaryKey": false, 2233 - "notNull": true 2234 - }, 2235 - "author_id": { 2236 - "name": "author_id", 2237 - "type": "text", 2238 - "primaryKey": false, 2239 - "notNull": true 2240 - }, 2241 - "parent_id": { 2242 - "name": "parent_id", 2243 - "type": "text", 2244 - "primaryKey": false, 2245 - "notNull": false 2246 - }, 2247 - "xata_createdat": { 2248 - "name": "xata_createdat", 2249 - "type": "timestamp", 2250 - "primaryKey": false, 2251 - "notNull": true, 2252 - "default": "now()" 2253 - }, 2254 - "xata_updatedat": { 2255 - "name": "xata_updatedat", 2256 - "type": "timestamp", 2257 - "primaryKey": false, 2258 - "notNull": true, 2259 - "default": "now()" 2260 - } 2261 - }, 2262 - "indexes": {}, 2263 - "foreignKeys": { 2264 - "shouts_track_id_tracks_xata_id_fk": { 2265 - "name": "shouts_track_id_tracks_xata_id_fk", 2266 - "tableFrom": "shouts", 2267 - "tableTo": "tracks", 2268 - "columnsFrom": [ 2269 - "track_id" 2270 - ], 2271 - "columnsTo": [ 2272 - "xata_id" 2273 - ], 2274 - "onDelete": "no action", 2275 - "onUpdate": "no action" 2276 - }, 2277 - "shouts_artist_id_users_xata_id_fk": { 2278 - "name": "shouts_artist_id_users_xata_id_fk", 2279 - "tableFrom": "shouts", 2280 - "tableTo": "users", 2281 - "columnsFrom": [ 2282 - "artist_id" 2283 - ], 2284 - "columnsTo": [ 2285 - "xata_id" 2286 - ], 2287 - "onDelete": "no action", 2288 - "onUpdate": "no action" 2289 - }, 2290 - "shouts_album_id_albums_xata_id_fk": { 2291 - "name": "shouts_album_id_albums_xata_id_fk", 2292 - "tableFrom": "shouts", 2293 - "tableTo": "albums", 2294 - "columnsFrom": [ 2295 - "album_id" 2296 - ], 2297 - "columnsTo": [ 2298 - "xata_id" 2299 - ], 2300 - "onDelete": "no action", 2301 - "onUpdate": "no action" 2302 - }, 2303 - "shouts_scrobble_id_scrobbles_xata_id_fk": { 2304 - "name": "shouts_scrobble_id_scrobbles_xata_id_fk", 2305 - "tableFrom": "shouts", 2306 - "tableTo": "scrobbles", 2307 - "columnsFrom": [ 2308 - "scrobble_id" 2309 - ], 2310 - "columnsTo": [ 2311 - "xata_id" 2312 - ], 2313 - "onDelete": "no action", 2314 - "onUpdate": "no action" 2315 - }, 2316 - "shouts_author_id_users_xata_id_fk": { 2317 - "name": "shouts_author_id_users_xata_id_fk", 2318 - "tableFrom": "shouts", 2319 - "tableTo": "users", 2320 - "columnsFrom": [ 2321 - "author_id" 2322 - ], 2323 - "columnsTo": [ 2324 - "xata_id" 2325 - ], 2326 - "onDelete": "no action", 2327 - "onUpdate": "no action" 2328 - }, 2329 - "shouts_parent_id_shouts_xata_id_fk": { 2330 - "name": "shouts_parent_id_shouts_xata_id_fk", 2331 - "tableFrom": "shouts", 2332 - "tableTo": "shouts", 2333 - "columnsFrom": [ 2334 - "parent_id" 2335 - ], 2336 - "columnsTo": [ 2337 - "xata_id" 2338 - ], 2339 - "onDelete": "no action", 2340 - "onUpdate": "no action" 2341 - } 2342 - }, 2343 - "compositePrimaryKeys": {}, 2344 - "uniqueConstraints": { 2345 - "shouts_uri_unique": { 2346 - "name": "shouts_uri_unique", 2347 - "nullsNotDistinct": false, 2348 - "columns": [ 2349 - "uri" 2350 - ] 2351 - } 2352 - }, 2353 - "policies": {}, 2354 - "checkConstraints": {}, 2355 - "isRLSEnabled": false 2356 - }, 2357 - "public.spotify_accounts": { 2358 - "name": "spotify_accounts", 2359 - "schema": "", 2360 - "columns": { 2361 - "xata_id": { 2362 - "name": "xata_id", 2363 - "type": "text", 2364 - "primaryKey": true, 2365 - "notNull": true, 2366 - "default": "xata_id()" 2367 - }, 2368 - "xata_version": { 2369 - "name": "xata_version", 2370 - "type": "integer", 2371 - "primaryKey": false, 2372 - "notNull": false 2373 - }, 2374 - "email": { 2375 - "name": "email", 2376 - "type": "text", 2377 - "primaryKey": false, 2378 - "notNull": true 2379 - }, 2380 - "user_id": { 2381 - "name": "user_id", 2382 - "type": "text", 2383 - "primaryKey": false, 2384 - "notNull": true 2385 - }, 2386 - "is_beta_user": { 2387 - "name": "is_beta_user", 2388 - "type": "boolean", 2389 - "primaryKey": false, 2390 - "notNull": true, 2391 - "default": false 2392 - }, 2393 - "spotify_app_id": { 2394 - "name": "spotify_app_id", 2395 - "type": "text", 2396 - "primaryKey": false, 2397 - "notNull": false 2398 - }, 2399 - "xata_createdat": { 2400 - "name": "xata_createdat", 2401 - "type": "timestamp", 2402 - "primaryKey": false, 2403 - "notNull": true, 2404 - "default": "now()" 2405 - }, 2406 - "xata_updatedat": { 2407 - "name": "xata_updatedat", 2408 - "type": "timestamp", 2409 - "primaryKey": false, 2410 - "notNull": true, 2411 - "default": "now()" 2412 - } 2413 - }, 2414 - "indexes": {}, 2415 - "foreignKeys": { 2416 - "spotify_accounts_user_id_users_xata_id_fk": { 2417 - "name": "spotify_accounts_user_id_users_xata_id_fk", 2418 - "tableFrom": "spotify_accounts", 2419 - "tableTo": "users", 2420 - "columnsFrom": [ 2421 - "user_id" 2422 - ], 2423 - "columnsTo": [ 2424 - "xata_id" 2425 - ], 2426 - "onDelete": "no action", 2427 - "onUpdate": "no action" 2428 - } 2429 - }, 2430 - "compositePrimaryKeys": {}, 2431 - "uniqueConstraints": {}, 2432 - "policies": {}, 2433 - "checkConstraints": {}, 2434 - "isRLSEnabled": false 2435 - }, 2436 - "public.spotify_apps": { 2437 - "name": "spotify_apps", 2438 - "schema": "", 2439 - "columns": { 2440 - "xata_id": { 2441 - "name": "xata_id", 2442 - "type": "text", 2443 - "primaryKey": true, 2444 - "notNull": true, 2445 - "default": "xata_id()" 2446 - }, 2447 - "xata_version": { 2448 - "name": "xata_version", 2449 - "type": "integer", 2450 - "primaryKey": false, 2451 - "notNull": false 2452 - }, 2453 - "spotify_app_id": { 2454 - "name": "spotify_app_id", 2455 - "type": "text", 2456 - "primaryKey": false, 2457 - "notNull": true 2458 - }, 2459 - "spotify_secret": { 2460 - "name": "spotify_secret", 2461 - "type": "text", 2462 - "primaryKey": false, 2463 - "notNull": true 2464 - }, 2465 - "xata_createdat": { 2466 - "name": "xata_createdat", 2467 - "type": "timestamp", 2468 - "primaryKey": false, 2469 - "notNull": true, 2470 - "default": "now()" 2471 - }, 2472 - "xata_updatedat": { 2473 - "name": "xata_updatedat", 2474 - "type": "timestamp", 2475 - "primaryKey": false, 2476 - "notNull": true, 2477 - "default": "now()" 2478 - } 2479 - }, 2480 - "indexes": {}, 2481 - "foreignKeys": {}, 2482 - "compositePrimaryKeys": {}, 2483 - "uniqueConstraints": {}, 2484 - "policies": {}, 2485 - "checkConstraints": {}, 2486 - "isRLSEnabled": false 2487 - }, 2488 - "public.spotify_tokens": { 2489 - "name": "spotify_tokens", 2490 - "schema": "", 2491 - "columns": { 2492 - "xata_id": { 2493 - "name": "xata_id", 2494 - "type": "text", 2495 - "primaryKey": true, 2496 - "notNull": true, 2497 - "default": "xata_id()" 2498 - }, 2499 - "xata_version": { 2500 - "name": "xata_version", 2501 - "type": "integer", 2502 - "primaryKey": false, 2503 - "notNull": false 2504 - }, 2505 - "access_token": { 2506 - "name": "access_token", 2507 - "type": "text", 2508 - "primaryKey": false, 2509 - "notNull": true 2510 - }, 2511 - "refresh_token": { 2512 - "name": "refresh_token", 2513 - "type": "text", 2514 - "primaryKey": false, 2515 - "notNull": true 2516 - }, 2517 - "user_id": { 2518 - "name": "user_id", 2519 - "type": "text", 2520 - "primaryKey": false, 2521 - "notNull": true 2522 - }, 2523 - "spotify_app_id": { 2524 - "name": "spotify_app_id", 2525 - "type": "text", 2526 - "primaryKey": false, 2527 - "notNull": true 2528 - }, 2529 - "xata_createdat": { 2530 - "name": "xata_createdat", 2531 - "type": "timestamp", 2532 - "primaryKey": false, 2533 - "notNull": true, 2534 - "default": "now()" 2535 - }, 2536 - "xata_updatedat": { 2537 - "name": "xata_updatedat", 2538 - "type": "timestamp", 2539 - "primaryKey": false, 2540 - "notNull": true, 2541 - "default": "now()" 2542 - } 2543 - }, 2544 - "indexes": {}, 2545 - "foreignKeys": { 2546 - "spotify_tokens_user_id_users_xata_id_fk": { 2547 - "name": "spotify_tokens_user_id_users_xata_id_fk", 2548 - "tableFrom": "spotify_tokens", 2549 - "tableTo": "users", 2550 - "columnsFrom": [ 2551 - "user_id" 2552 - ], 2553 - "columnsTo": [ 2554 - "xata_id" 2555 - ], 2556 - "onDelete": "no action", 2557 - "onUpdate": "no action" 2558 - } 2559 - }, 2560 - "compositePrimaryKeys": {}, 2561 - "uniqueConstraints": {}, 2562 - "policies": {}, 2563 - "checkConstraints": {}, 2564 - "isRLSEnabled": false 2565 - }, 2566 - "public.tracks": { 2567 - "name": "tracks", 2568 - "schema": "", 2569 - "columns": { 2570 - "xata_id": { 2571 - "name": "xata_id", 2572 - "type": "text", 2573 - "primaryKey": true, 2574 - "notNull": true, 2575 - "default": "xata_id()" 2576 - }, 2577 - "title": { 2578 - "name": "title", 2579 - "type": "text", 2580 - "primaryKey": false, 2581 - "notNull": true 2582 - }, 2583 - "artist": { 2584 - "name": "artist", 2585 - "type": "text", 2586 - "primaryKey": false, 2587 - "notNull": true 2588 - }, 2589 - "album_artist": { 2590 - "name": "album_artist", 2591 - "type": "text", 2592 - "primaryKey": false, 2593 - "notNull": true 2594 - }, 2595 - "album_art": { 2596 - "name": "album_art", 2597 - "type": "text", 2598 - "primaryKey": false, 2599 - "notNull": false 2600 - }, 2601 - "album": { 2602 - "name": "album", 2603 - "type": "text", 2604 - "primaryKey": false, 2605 - "notNull": true 2606 - }, 2607 - "track_number": { 2608 - "name": "track_number", 2609 - "type": "integer", 2610 - "primaryKey": false, 2611 - "notNull": false 2612 - }, 2613 - "duration": { 2614 - "name": "duration", 2615 - "type": "integer", 2616 - "primaryKey": false, 2617 - "notNull": true 2618 - }, 2619 - "mb_id": { 2620 - "name": "mb_id", 2621 - "type": "text", 2622 - "primaryKey": false, 2623 - "notNull": false 2624 - }, 2625 - "youtube_link": { 2626 - "name": "youtube_link", 2627 - "type": "text", 2628 - "primaryKey": false, 2629 - "notNull": false 2630 - }, 2631 - "spotify_link": { 2632 - "name": "spotify_link", 2633 - "type": "text", 2634 - "primaryKey": false, 2635 - "notNull": false 2636 - }, 2637 - "apple_music_link": { 2638 - "name": "apple_music_link", 2639 - "type": "text", 2640 - "primaryKey": false, 2641 - "notNull": false 2642 - }, 2643 - "tidal_link": { 2644 - "name": "tidal_link", 2645 - "type": "text", 2646 - "primaryKey": false, 2647 - "notNull": false 2648 - }, 2649 - "sha256": { 2650 - "name": "sha256", 2651 - "type": "text", 2652 - "primaryKey": false, 2653 - "notNull": true 2654 - }, 2655 - "disc_number": { 2656 - "name": "disc_number", 2657 - "type": "integer", 2658 - "primaryKey": false, 2659 - "notNull": false 2660 - }, 2661 - "lyrics": { 2662 - "name": "lyrics", 2663 - "type": "text", 2664 - "primaryKey": false, 2665 - "notNull": false 2666 - }, 2667 - "composer": { 2668 - "name": "composer", 2669 - "type": "text", 2670 - "primaryKey": false, 2671 - "notNull": false 2672 - }, 2673 - "genre": { 2674 - "name": "genre", 2675 - "type": "text", 2676 - "primaryKey": false, 2677 - "notNull": false 2678 - }, 2679 - "label": { 2680 - "name": "label", 2681 - "type": "text", 2682 - "primaryKey": false, 2683 - "notNull": false 2684 - }, 2685 - "copyright_message": { 2686 - "name": "copyright_message", 2687 - "type": "text", 2688 - "primaryKey": false, 2689 - "notNull": false 2690 - }, 2691 - "uri": { 2692 - "name": "uri", 2693 - "type": "text", 2694 - "primaryKey": false, 2695 - "notNull": false 2696 - }, 2697 - "album_uri": { 2698 - "name": "album_uri", 2699 - "type": "text", 2700 - "primaryKey": false, 2701 - "notNull": false 2702 - }, 2703 - "artist_uri": { 2704 - "name": "artist_uri", 2705 - "type": "text", 2706 - "primaryKey": false, 2707 - "notNull": false 2708 - }, 2709 - "xata_createdat": { 2710 - "name": "xata_createdat", 2711 - "type": "timestamp", 2712 - "primaryKey": false, 2713 - "notNull": true, 2714 - "default": "now()" 2715 - }, 2716 - "xata_updatedat": { 2717 - "name": "xata_updatedat", 2718 - "type": "timestamp", 2719 - "primaryKey": false, 2720 - "notNull": true, 2721 - "default": "now()" 2722 - }, 2723 - "xata_version": { 2724 - "name": "xata_version", 2725 - "type": "integer", 2726 - "primaryKey": false, 2727 - "notNull": false 2728 - } 2729 - }, 2730 - "indexes": {}, 2731 - "foreignKeys": {}, 2732 - "compositePrimaryKeys": {}, 2733 - "uniqueConstraints": { 2734 - "tracks_mb_id_unique": { 2735 - "name": "tracks_mb_id_unique", 2736 - "nullsNotDistinct": false, 2737 - "columns": [ 2738 - "mb_id" 2739 - ] 2740 - }, 2741 - "tracks_youtube_link_unique": { 2742 - "name": "tracks_youtube_link_unique", 2743 - "nullsNotDistinct": false, 2744 - "columns": [ 2745 - "youtube_link" 2746 - ] 2747 - }, 2748 - "tracks_spotify_link_unique": { 2749 - "name": "tracks_spotify_link_unique", 2750 - "nullsNotDistinct": false, 2751 - "columns": [ 2752 - "spotify_link" 2753 - ] 2754 - }, 2755 - "tracks_apple_music_link_unique": { 2756 - "name": "tracks_apple_music_link_unique", 2757 - "nullsNotDistinct": false, 2758 - "columns": [ 2759 - "apple_music_link" 2760 - ] 2761 - }, 2762 - "tracks_tidal_link_unique": { 2763 - "name": "tracks_tidal_link_unique", 2764 - "nullsNotDistinct": false, 2765 - "columns": [ 2766 - "tidal_link" 2767 - ] 2768 - }, 2769 - "tracks_sha256_unique": { 2770 - "name": "tracks_sha256_unique", 2771 - "nullsNotDistinct": false, 2772 - "columns": [ 2773 - "sha256" 2774 - ] 2775 - }, 2776 - "tracks_uri_unique": { 2777 - "name": "tracks_uri_unique", 2778 - "nullsNotDistinct": false, 2779 - "columns": [ 2780 - "uri" 2781 - ] 2782 - } 2783 - }, 2784 - "policies": {}, 2785 - "checkConstraints": {}, 2786 - "isRLSEnabled": false 2787 - }, 2788 - "public.user_albums": { 2789 - "name": "user_albums", 2790 - "schema": "", 2791 - "columns": { 2792 - "xata_id": { 2793 - "name": "xata_id", 2794 - "type": "text", 2795 - "primaryKey": true, 2796 - "notNull": true, 2797 - "default": "xata_id()" 2798 - }, 2799 - "user_id": { 2800 - "name": "user_id", 2801 - "type": "text", 2802 - "primaryKey": false, 2803 - "notNull": true 2804 - }, 2805 - "album_id": { 2806 - "name": "album_id", 2807 - "type": "text", 2808 - "primaryKey": false, 2809 - "notNull": true 2810 - }, 2811 - "xata_createdat": { 2812 - "name": "xata_createdat", 2813 - "type": "timestamp", 2814 - "primaryKey": false, 2815 - "notNull": true, 2816 - "default": "now()" 2817 - }, 2818 - "xata_updatedat": { 2819 - "name": "xata_updatedat", 2820 - "type": "timestamp", 2821 - "primaryKey": false, 2822 - "notNull": true, 2823 - "default": "now()" 2824 - }, 2825 - "xata_version": { 2826 - "name": "xata_version", 2827 - "type": "integer", 2828 - "primaryKey": false, 2829 - "notNull": false 2830 - }, 2831 - "scrobbles": { 2832 - "name": "scrobbles", 2833 - "type": "integer", 2834 - "primaryKey": false, 2835 - "notNull": false 2836 - }, 2837 - "uri": { 2838 - "name": "uri", 2839 - "type": "text", 2840 - "primaryKey": false, 2841 - "notNull": true 2842 - } 2843 - }, 2844 - "indexes": {}, 2845 - "foreignKeys": { 2846 - "user_albums_user_id_users_xata_id_fk": { 2847 - "name": "user_albums_user_id_users_xata_id_fk", 2848 - "tableFrom": "user_albums", 2849 - "tableTo": "users", 2850 - "columnsFrom": [ 2851 - "user_id" 2852 - ], 2853 - "columnsTo": [ 2854 - "xata_id" 2855 - ], 2856 - "onDelete": "no action", 2857 - "onUpdate": "no action" 2858 - }, 2859 - "user_albums_album_id_albums_xata_id_fk": { 2860 - "name": "user_albums_album_id_albums_xata_id_fk", 2861 - "tableFrom": "user_albums", 2862 - "tableTo": "albums", 2863 - "columnsFrom": [ 2864 - "album_id" 2865 - ], 2866 - "columnsTo": [ 2867 - "xata_id" 2868 - ], 2869 - "onDelete": "no action", 2870 - "onUpdate": "no action" 2871 - } 2872 - }, 2873 - "compositePrimaryKeys": {}, 2874 - "uniqueConstraints": { 2875 - "user_albums_uri_unique": { 2876 - "name": "user_albums_uri_unique", 2877 - "nullsNotDistinct": false, 2878 - "columns": [ 2879 - "uri" 2880 - ] 2881 - } 2882 - }, 2883 - "policies": {}, 2884 - "checkConstraints": {}, 2885 - "isRLSEnabled": false 2886 - }, 2887 - "public.user_artists": { 2888 - "name": "user_artists", 2889 - "schema": "", 2890 - "columns": { 2891 - "xata_id": { 2892 - "name": "xata_id", 2893 - "type": "text", 2894 - "primaryKey": true, 2895 - "notNull": true, 2896 - "default": "xata_id()" 2897 - }, 2898 - "user_id": { 2899 - "name": "user_id", 2900 - "type": "text", 2901 - "primaryKey": false, 2902 - "notNull": true 2903 - }, 2904 - "artist_id": { 2905 - "name": "artist_id", 2906 - "type": "text", 2907 - "primaryKey": false, 2908 - "notNull": true 2909 - }, 2910 - "xata_createdat": { 2911 - "name": "xata_createdat", 2912 - "type": "timestamp", 2913 - "primaryKey": false, 2914 - "notNull": true, 2915 - "default": "now()" 2916 - }, 2917 - "xata_updatedat": { 2918 - "name": "xata_updatedat", 2919 - "type": "timestamp", 2920 - "primaryKey": false, 2921 - "notNull": true, 2922 - "default": "now()" 2923 - }, 2924 - "xata_version": { 2925 - "name": "xata_version", 2926 - "type": "integer", 2927 - "primaryKey": false, 2928 - "notNull": false 2929 - }, 2930 - "scrobbles": { 2931 - "name": "scrobbles", 2932 - "type": "integer", 2933 - "primaryKey": false, 2934 - "notNull": false 2935 - }, 2936 - "uri": { 2937 - "name": "uri", 2938 - "type": "text", 2939 - "primaryKey": false, 2940 - "notNull": true 2941 - } 2942 - }, 2943 - "indexes": {}, 2944 - "foreignKeys": { 2945 - "user_artists_user_id_users_xata_id_fk": { 2946 - "name": "user_artists_user_id_users_xata_id_fk", 2947 - "tableFrom": "user_artists", 2948 - "tableTo": "users", 2949 - "columnsFrom": [ 2950 - "user_id" 2951 - ], 2952 - "columnsTo": [ 2953 - "xata_id" 2954 - ], 2955 - "onDelete": "no action", 2956 - "onUpdate": "no action" 2957 - }, 2958 - "user_artists_artist_id_artists_xata_id_fk": { 2959 - "name": "user_artists_artist_id_artists_xata_id_fk", 2960 - "tableFrom": "user_artists", 2961 - "tableTo": "artists", 2962 - "columnsFrom": [ 2963 - "artist_id" 2964 - ], 2965 - "columnsTo": [ 2966 - "xata_id" 2967 - ], 2968 - "onDelete": "no action", 2969 - "onUpdate": "no action" 2970 - } 2971 - }, 2972 - "compositePrimaryKeys": {}, 2973 - "uniqueConstraints": { 2974 - "user_artists_uri_unique": { 2975 - "name": "user_artists_uri_unique", 2976 - "nullsNotDistinct": false, 2977 - "columns": [ 2978 - "uri" 2979 - ] 2980 - } 2981 - }, 2982 - "policies": {}, 2983 - "checkConstraints": {}, 2984 - "isRLSEnabled": false 2985 - }, 2986 - "public.user_playlists": { 2987 - "name": "user_playlists", 2988 - "schema": "", 2989 - "columns": { 2990 - "xata_id": { 2991 - "name": "xata_id", 2992 - "type": "text", 2993 - "primaryKey": true, 2994 - "notNull": true, 2995 - "default": "xata_id()" 2996 - }, 2997 - "user_id": { 2998 - "name": "user_id", 2999 - "type": "text", 3000 - "primaryKey": false, 3001 - "notNull": true 3002 - }, 3003 - "playlist_id": { 3004 - "name": "playlist_id", 3005 - "type": "text", 3006 - "primaryKey": false, 3007 - "notNull": true 3008 - }, 3009 - "xata_createdat": { 3010 - "name": "xata_createdat", 3011 - "type": "timestamp", 3012 - "primaryKey": false, 3013 - "notNull": true, 3014 - "default": "now()" 3015 - }, 3016 - "uri": { 3017 - "name": "uri", 3018 - "type": "text", 3019 - "primaryKey": false, 3020 - "notNull": false 3021 - } 3022 - }, 3023 - "indexes": {}, 3024 - "foreignKeys": { 3025 - "user_playlists_user_id_users_xata_id_fk": { 3026 - "name": "user_playlists_user_id_users_xata_id_fk", 3027 - "tableFrom": "user_playlists", 3028 - "tableTo": "users", 3029 - "columnsFrom": [ 3030 - "user_id" 3031 - ], 3032 - "columnsTo": [ 3033 - "xata_id" 3034 - ], 3035 - "onDelete": "no action", 3036 - "onUpdate": "no action" 3037 - }, 3038 - "user_playlists_playlist_id_playlists_xata_id_fk": { 3039 - "name": "user_playlists_playlist_id_playlists_xata_id_fk", 3040 - "tableFrom": "user_playlists", 3041 - "tableTo": "playlists", 3042 - "columnsFrom": [ 3043 - "playlist_id" 3044 - ], 3045 - "columnsTo": [ 3046 - "xata_id" 3047 - ], 3048 - "onDelete": "no action", 3049 - "onUpdate": "no action" 3050 - } 3051 - }, 3052 - "compositePrimaryKeys": {}, 3053 - "uniqueConstraints": { 3054 - "user_playlists_uri_unique": { 3055 - "name": "user_playlists_uri_unique", 3056 - "nullsNotDistinct": false, 3057 - "columns": [ 3058 - "uri" 3059 - ] 3060 - } 3061 - }, 3062 - "policies": {}, 3063 - "checkConstraints": {}, 3064 - "isRLSEnabled": false 3065 - }, 3066 - "public.user_tracks": { 3067 - "name": "user_tracks", 3068 - "schema": "", 3069 - "columns": { 3070 - "xata_id": { 3071 - "name": "xata_id", 3072 - "type": "text", 3073 - "primaryKey": true, 3074 - "notNull": true, 3075 - "default": "xata_id()" 3076 - }, 3077 - "user_id": { 3078 - "name": "user_id", 3079 - "type": "text", 3080 - "primaryKey": false, 3081 - "notNull": true 3082 - }, 3083 - "track_id": { 3084 - "name": "track_id", 3085 - "type": "text", 3086 - "primaryKey": false, 3087 - "notNull": true 3088 - }, 3089 - "xata_createdat": { 3090 - "name": "xata_createdat", 3091 - "type": "timestamp", 3092 - "primaryKey": false, 3093 - "notNull": true, 3094 - "default": "now()" 3095 - }, 3096 - "xata_updatedat": { 3097 - "name": "xata_updatedat", 3098 - "type": "timestamp", 3099 - "primaryKey": false, 3100 - "notNull": true, 3101 - "default": "now()" 3102 - }, 3103 - "xata_version": { 3104 - "name": "xata_version", 3105 - "type": "integer", 3106 - "primaryKey": false, 3107 - "notNull": false 3108 - }, 3109 - "uri": { 3110 - "name": "uri", 3111 - "type": "text", 3112 - "primaryKey": false, 3113 - "notNull": true 3114 - }, 3115 - "scrobbles": { 3116 - "name": "scrobbles", 3117 - "type": "integer", 3118 - "primaryKey": false, 3119 - "notNull": false 3120 - } 3121 - }, 3122 - "indexes": {}, 3123 - "foreignKeys": { 3124 - "user_tracks_user_id_users_xata_id_fk": { 3125 - "name": "user_tracks_user_id_users_xata_id_fk", 3126 - "tableFrom": "user_tracks", 3127 - "tableTo": "users", 3128 - "columnsFrom": [ 3129 - "user_id" 3130 - ], 3131 - "columnsTo": [ 3132 - "xata_id" 3133 - ], 3134 - "onDelete": "no action", 3135 - "onUpdate": "no action" 3136 - }, 3137 - "user_tracks_track_id_tracks_xata_id_fk": { 3138 - "name": "user_tracks_track_id_tracks_xata_id_fk", 3139 - "tableFrom": "user_tracks", 3140 - "tableTo": "tracks", 3141 - "columnsFrom": [ 3142 - "track_id" 3143 - ], 3144 - "columnsTo": [ 3145 - "xata_id" 3146 - ], 3147 - "onDelete": "no action", 3148 - "onUpdate": "no action" 3149 - } 3150 - }, 3151 - "compositePrimaryKeys": {}, 3152 - "uniqueConstraints": { 3153 - "user_tracks_uri_unique": { 3154 - "name": "user_tracks_uri_unique", 3155 - "nullsNotDistinct": false, 3156 - "columns": [ 3157 - "uri" 3158 - ] 3159 - } 3160 - }, 3161 - "policies": {}, 3162 - "checkConstraints": {}, 3163 - "isRLSEnabled": false 3164 - }, 3165 - "public.users": { 3166 - "name": "users", 3167 - "schema": "", 3168 - "columns": { 3169 - "xata_id": { 3170 - "name": "xata_id", 3171 - "type": "text", 3172 - "primaryKey": true, 3173 - "notNull": true, 3174 - "default": "xata_id()" 3175 - }, 3176 - "did": { 3177 - "name": "did", 3178 - "type": "text", 3179 - "primaryKey": false, 3180 - "notNull": true 3181 - }, 3182 - "display_name": { 3183 - "name": "display_name", 3184 - "type": "text", 3185 - "primaryKey": false, 3186 - "notNull": false 3187 - }, 3188 - "handle": { 3189 - "name": "handle", 3190 - "type": "text", 3191 - "primaryKey": false, 3192 - "notNull": true 3193 - }, 3194 - "avatar": { 3195 - "name": "avatar", 3196 - "type": "text", 3197 - "primaryKey": false, 3198 - "notNull": true 3199 - }, 3200 - "xata_createdat": { 3201 - "name": "xata_createdat", 3202 - "type": "timestamp", 3203 - "primaryKey": false, 3204 - "notNull": true, 3205 - "default": "now()" 3206 - }, 3207 - "xata_updatedat": { 3208 - "name": "xata_updatedat", 3209 - "type": "timestamp", 3210 - "primaryKey": false, 3211 - "notNull": true, 3212 - "default": "now()" 3213 - }, 3214 - "xata_version": { 3215 - "name": "xata_version", 3216 - "type": "integer", 3217 - "primaryKey": false, 3218 - "notNull": false 3219 - } 3220 - }, 3221 - "indexes": {}, 3222 - "foreignKeys": {}, 3223 - "compositePrimaryKeys": {}, 3224 - "uniqueConstraints": { 3225 - "users_did_unique": { 3226 - "name": "users_did_unique", 3227 - "nullsNotDistinct": false, 3228 - "columns": [ 3229 - "did" 3230 - ] 3231 - }, 3232 - "users_handle_unique": { 3233 - "name": "users_handle_unique", 3234 - "nullsNotDistinct": false, 3235 - "columns": [ 3236 - "handle" 3237 - ] 3238 - } 3239 - }, 3240 - "policies": {}, 3241 - "checkConstraints": {}, 3242 - "isRLSEnabled": false 3243 - }, 3244 - "public.webscrobblers": { 3245 - "name": "webscrobblers", 3246 - "schema": "", 3247 - "columns": { 3248 - "xata_id": { 3249 - "name": "xata_id", 3250 - "type": "text", 3251 - "primaryKey": true, 3252 - "notNull": true, 3253 - "default": "xata_id()" 3254 - }, 3255 - "name": { 3256 - "name": "name", 3257 - "type": "text", 3258 - "primaryKey": false, 3259 - "notNull": true 3260 - }, 3261 - "uuid": { 3262 - "name": "uuid", 3263 - "type": "text", 3264 - "primaryKey": false, 3265 - "notNull": true 3266 - }, 3267 - "description": { 3268 - "name": "description", 3269 - "type": "text", 3270 - "primaryKey": false, 3271 - "notNull": false 3272 - }, 3273 - "enabled": { 3274 - "name": "enabled", 3275 - "type": "boolean", 3276 - "primaryKey": false, 3277 - "notNull": true, 3278 - "default": true 3279 - }, 3280 - "user_id": { 3281 - "name": "user_id", 3282 - "type": "text", 3283 - "primaryKey": false, 3284 - "notNull": true 3285 - }, 3286 - "xata_createdat": { 3287 - "name": "xata_createdat", 3288 - "type": "timestamp", 3289 - "primaryKey": false, 3290 - "notNull": true, 3291 - "default": "now()" 3292 - }, 3293 - "xata_updatedat": { 3294 - "name": "xata_updatedat", 3295 - "type": "timestamp", 3296 - "primaryKey": false, 3297 - "notNull": true, 3298 - "default": "now()" 3299 - } 3300 - }, 3301 - "indexes": {}, 3302 - "foreignKeys": { 3303 - "webscrobblers_user_id_users_xata_id_fk": { 3304 - "name": "webscrobblers_user_id_users_xata_id_fk", 3305 - "tableFrom": "webscrobblers", 3306 - "tableTo": "users", 3307 - "columnsFrom": [ 3308 - "user_id" 3309 - ], 3310 - "columnsTo": [ 3311 - "xata_id" 3312 - ], 3313 - "onDelete": "no action", 3314 - "onUpdate": "no action" 3315 - } 3316 - }, 3317 - "compositePrimaryKeys": {}, 3318 - "uniqueConstraints": {}, 3319 - "policies": {}, 3320 - "checkConstraints": {}, 3321 - "isRLSEnabled": false 3322 - } 3323 - }, 3324 - "enums": {}, 3325 - "schemas": {}, 3326 - "sequences": {}, 3327 - "roles": {}, 3328 - "policies": {}, 3329 - "views": {}, 3330 - "_meta": { 3331 - "columns": {}, 3332 - "schemas": {}, 3333 - "tables": {} 3334 - } 3335 - }
-3238
apps/api/drizzle/meta/0006_snapshot.json
··· 1 - { 2 - "id": "876823a6-883c-4fec-9072-9ec67f483c8d", 3 - "prevId": "b4f141d3-3e14-4aaf-b3f1-b3165d009289", 4 - "version": "7", 5 - "dialect": "postgresql", 6 - "tables": { 7 - "public.album_tracks": { 8 - "name": "album_tracks", 9 - "schema": "", 10 - "columns": { 11 - "xata_id": { 12 - "name": "xata_id", 13 - "type": "text", 14 - "primaryKey": true, 15 - "notNull": true, 16 - "default": "xata_id()" 17 - }, 18 - "album_id": { 19 - "name": "album_id", 20 - "type": "text", 21 - "primaryKey": false, 22 - "notNull": true 23 - }, 24 - "track_id": { 25 - "name": "track_id", 26 - "type": "text", 27 - "primaryKey": false, 28 - "notNull": true 29 - }, 30 - "xata_createdat": { 31 - "name": "xata_createdat", 32 - "type": "timestamp", 33 - "primaryKey": false, 34 - "notNull": true, 35 - "default": "now()" 36 - }, 37 - "xata_updatedat": { 38 - "name": "xata_updatedat", 39 - "type": "timestamp", 40 - "primaryKey": false, 41 - "notNull": true, 42 - "default": "now()" 43 - }, 44 - "xata_version": { 45 - "name": "xata_version", 46 - "type": "integer", 47 - "primaryKey": false, 48 - "notNull": false 49 - } 50 - }, 51 - "indexes": {}, 52 - "foreignKeys": { 53 - "album_tracks_album_id_albums_xata_id_fk": { 54 - "name": "album_tracks_album_id_albums_xata_id_fk", 55 - "tableFrom": "album_tracks", 56 - "tableTo": "albums", 57 - "columnsFrom": [ 58 - "album_id" 59 - ], 60 - "columnsTo": [ 61 - "xata_id" 62 - ], 63 - "onDelete": "no action", 64 - "onUpdate": "no action" 65 - }, 66 - "album_tracks_track_id_tracks_xata_id_fk": { 67 - "name": "album_tracks_track_id_tracks_xata_id_fk", 68 - "tableFrom": "album_tracks", 69 - "tableTo": "tracks", 70 - "columnsFrom": [ 71 - "track_id" 72 - ], 73 - "columnsTo": [ 74 - "xata_id" 75 - ], 76 - "onDelete": "no action", 77 - "onUpdate": "no action" 78 - } 79 - }, 80 - "compositePrimaryKeys": {}, 81 - "uniqueConstraints": {}, 82 - "policies": {}, 83 - "checkConstraints": {}, 84 - "isRLSEnabled": false 85 - }, 86 - "public.albums": { 87 - "name": "albums", 88 - "schema": "", 89 - "columns": { 90 - "xata_id": { 91 - "name": "xata_id", 92 - "type": "text", 93 - "primaryKey": true, 94 - "notNull": true, 95 - "default": "xata_id()" 96 - }, 97 - "title": { 98 - "name": "title", 99 - "type": "text", 100 - "primaryKey": false, 101 - "notNull": true 102 - }, 103 - "artist": { 104 - "name": "artist", 105 - "type": "text", 106 - "primaryKey": false, 107 - "notNull": true 108 - }, 109 - "release_date": { 110 - "name": "release_date", 111 - "type": "text", 112 - "primaryKey": false, 113 - "notNull": false 114 - }, 115 - "year": { 116 - "name": "year", 117 - "type": "integer", 118 - "primaryKey": false, 119 - "notNull": false 120 - }, 121 - "album_art": { 122 - "name": "album_art", 123 - "type": "text", 124 - "primaryKey": false, 125 - "notNull": false 126 - }, 127 - "uri": { 128 - "name": "uri", 129 - "type": "text", 130 - "primaryKey": false, 131 - "notNull": false 132 - }, 133 - "artist_uri": { 134 - "name": "artist_uri", 135 - "type": "text", 136 - "primaryKey": false, 137 - "notNull": false 138 - }, 139 - "apple_music_link": { 140 - "name": "apple_music_link", 141 - "type": "text", 142 - "primaryKey": false, 143 - "notNull": false 144 - }, 145 - "spotify_link": { 146 - "name": "spotify_link", 147 - "type": "text", 148 - "primaryKey": false, 149 - "notNull": false 150 - }, 151 - "tidal_link": { 152 - "name": "tidal_link", 153 - "type": "text", 154 - "primaryKey": false, 155 - "notNull": false 156 - }, 157 - "youtube_link": { 158 - "name": "youtube_link", 159 - "type": "text", 160 - "primaryKey": false, 161 - "notNull": false 162 - }, 163 - "sha256": { 164 - "name": "sha256", 165 - "type": "text", 166 - "primaryKey": false, 167 - "notNull": true 168 - }, 169 - "xata_createdat": { 170 - "name": "xata_createdat", 171 - "type": "timestamp", 172 - "primaryKey": false, 173 - "notNull": true, 174 - "default": "now()" 175 - }, 176 - "xata_updatedat": { 177 - "name": "xata_updatedat", 178 - "type": "timestamp", 179 - "primaryKey": false, 180 - "notNull": true, 181 - "default": "now()" 182 - }, 183 - "xata_version": { 184 - "name": "xata_version", 185 - "type": "integer", 186 - "primaryKey": false, 187 - "notNull": false 188 - } 189 - }, 190 - "indexes": {}, 191 - "foreignKeys": {}, 192 - "compositePrimaryKeys": {}, 193 - "uniqueConstraints": { 194 - "albums_uri_unique": { 195 - "name": "albums_uri_unique", 196 - "nullsNotDistinct": false, 197 - "columns": [ 198 - "uri" 199 - ] 200 - }, 201 - "albums_apple_music_link_unique": { 202 - "name": "albums_apple_music_link_unique", 203 - "nullsNotDistinct": false, 204 - "columns": [ 205 - "apple_music_link" 206 - ] 207 - }, 208 - "albums_spotify_link_unique": { 209 - "name": "albums_spotify_link_unique", 210 - "nullsNotDistinct": false, 211 - "columns": [ 212 - "spotify_link" 213 - ] 214 - }, 215 - "albums_tidal_link_unique": { 216 - "name": "albums_tidal_link_unique", 217 - "nullsNotDistinct": false, 218 - "columns": [ 219 - "tidal_link" 220 - ] 221 - }, 222 - "albums_youtube_link_unique": { 223 - "name": "albums_youtube_link_unique", 224 - "nullsNotDistinct": false, 225 - "columns": [ 226 - "youtube_link" 227 - ] 228 - }, 229 - "albums_sha256_unique": { 230 - "name": "albums_sha256_unique", 231 - "nullsNotDistinct": false, 232 - "columns": [ 233 - "sha256" 234 - ] 235 - } 236 - }, 237 - "policies": {}, 238 - "checkConstraints": {}, 239 - "isRLSEnabled": false 240 - }, 241 - "public.api_keys": { 242 - "name": "api_keys", 243 - "schema": "", 244 - "columns": { 245 - "xata_id": { 246 - "name": "xata_id", 247 - "type": "text", 248 - "primaryKey": true, 249 - "notNull": true, 250 - "default": "xata_id()" 251 - }, 252 - "name": { 253 - "name": "name", 254 - "type": "text", 255 - "primaryKey": false, 256 - "notNull": true 257 - }, 258 - "api_key": { 259 - "name": "api_key", 260 - "type": "text", 261 - "primaryKey": false, 262 - "notNull": true 263 - }, 264 - "shared_secret": { 265 - "name": "shared_secret", 266 - "type": "text", 267 - "primaryKey": false, 268 - "notNull": true 269 - }, 270 - "description": { 271 - "name": "description", 272 - "type": "text", 273 - "primaryKey": false, 274 - "notNull": false 275 - }, 276 - "enabled": { 277 - "name": "enabled", 278 - "type": "boolean", 279 - "primaryKey": false, 280 - "notNull": true, 281 - "default": true 282 - }, 283 - "user_id": { 284 - "name": "user_id", 285 - "type": "text", 286 - "primaryKey": false, 287 - "notNull": true 288 - }, 289 - "xata_createdat": { 290 - "name": "xata_createdat", 291 - "type": "timestamp", 292 - "primaryKey": false, 293 - "notNull": true, 294 - "default": "now()" 295 - }, 296 - "xata_updatedat": { 297 - "name": "xata_updatedat", 298 - "type": "timestamp", 299 - "primaryKey": false, 300 - "notNull": true, 301 - "default": "now()" 302 - } 303 - }, 304 - "indexes": {}, 305 - "foreignKeys": { 306 - "api_keys_user_id_users_xata_id_fk": { 307 - "name": "api_keys_user_id_users_xata_id_fk", 308 - "tableFrom": "api_keys", 309 - "tableTo": "users", 310 - "columnsFrom": [ 311 - "user_id" 312 - ], 313 - "columnsTo": [ 314 - "xata_id" 315 - ], 316 - "onDelete": "no action", 317 - "onUpdate": "no action" 318 - } 319 - }, 320 - "compositePrimaryKeys": {}, 321 - "uniqueConstraints": {}, 322 - "policies": {}, 323 - "checkConstraints": {}, 324 - "isRLSEnabled": false 325 - }, 326 - "public.artist_albums": { 327 - "name": "artist_albums", 328 - "schema": "", 329 - "columns": { 330 - "xata_id": { 331 - "name": "xata_id", 332 - "type": "text", 333 - "primaryKey": true, 334 - "notNull": true, 335 - "default": "xata_id()" 336 - }, 337 - "artist_id": { 338 - "name": "artist_id", 339 - "type": "text", 340 - "primaryKey": false, 341 - "notNull": true 342 - }, 343 - "album_id": { 344 - "name": "album_id", 345 - "type": "text", 346 - "primaryKey": false, 347 - "notNull": true 348 - }, 349 - "xata_createdat": { 350 - "name": "xata_createdat", 351 - "type": "timestamp", 352 - "primaryKey": false, 353 - "notNull": true, 354 - "default": "now()" 355 - }, 356 - "xata_updatedat": { 357 - "name": "xata_updatedat", 358 - "type": "timestamp", 359 - "primaryKey": false, 360 - "notNull": true, 361 - "default": "now()" 362 - }, 363 - "xata_version": { 364 - "name": "xata_version", 365 - "type": "integer", 366 - "primaryKey": false, 367 - "notNull": false 368 - } 369 - }, 370 - "indexes": {}, 371 - "foreignKeys": { 372 - "artist_albums_artist_id_artists_xata_id_fk": { 373 - "name": "artist_albums_artist_id_artists_xata_id_fk", 374 - "tableFrom": "artist_albums", 375 - "tableTo": "artists", 376 - "columnsFrom": [ 377 - "artist_id" 378 - ], 379 - "columnsTo": [ 380 - "xata_id" 381 - ], 382 - "onDelete": "no action", 383 - "onUpdate": "no action" 384 - }, 385 - "artist_albums_album_id_albums_xata_id_fk": { 386 - "name": "artist_albums_album_id_albums_xata_id_fk", 387 - "tableFrom": "artist_albums", 388 - "tableTo": "albums", 389 - "columnsFrom": [ 390 - "album_id" 391 - ], 392 - "columnsTo": [ 393 - "xata_id" 394 - ], 395 - "onDelete": "no action", 396 - "onUpdate": "no action" 397 - } 398 - }, 399 - "compositePrimaryKeys": {}, 400 - "uniqueConstraints": {}, 401 - "policies": {}, 402 - "checkConstraints": {}, 403 - "isRLSEnabled": false 404 - }, 405 - "public.artist_tracks": { 406 - "name": "artist_tracks", 407 - "schema": "", 408 - "columns": { 409 - "xata_id": { 410 - "name": "xata_id", 411 - "type": "text", 412 - "primaryKey": true, 413 - "notNull": true, 414 - "default": "xata_id()" 415 - }, 416 - "artist_id": { 417 - "name": "artist_id", 418 - "type": "text", 419 - "primaryKey": false, 420 - "notNull": true 421 - }, 422 - "track_id": { 423 - "name": "track_id", 424 - "type": "text", 425 - "primaryKey": false, 426 - "notNull": true 427 - }, 428 - "xata_createdat": { 429 - "name": "xata_createdat", 430 - "type": "timestamp", 431 - "primaryKey": false, 432 - "notNull": true, 433 - "default": "now()" 434 - }, 435 - "xata_updatedat": { 436 - "name": "xata_updatedat", 437 - "type": "timestamp", 438 - "primaryKey": false, 439 - "notNull": true, 440 - "default": "now()" 441 - }, 442 - "xata_version": { 443 - "name": "xata_version", 444 - "type": "integer", 445 - "primaryKey": false, 446 - "notNull": false 447 - } 448 - }, 449 - "indexes": {}, 450 - "foreignKeys": { 451 - "artist_tracks_artist_id_artists_xata_id_fk": { 452 - "name": "artist_tracks_artist_id_artists_xata_id_fk", 453 - "tableFrom": "artist_tracks", 454 - "tableTo": "artists", 455 - "columnsFrom": [ 456 - "artist_id" 457 - ], 458 - "columnsTo": [ 459 - "xata_id" 460 - ], 461 - "onDelete": "no action", 462 - "onUpdate": "no action" 463 - }, 464 - "artist_tracks_track_id_tracks_xata_id_fk": { 465 - "name": "artist_tracks_track_id_tracks_xata_id_fk", 466 - "tableFrom": "artist_tracks", 467 - "tableTo": "tracks", 468 - "columnsFrom": [ 469 - "track_id" 470 - ], 471 - "columnsTo": [ 472 - "xata_id" 473 - ], 474 - "onDelete": "no action", 475 - "onUpdate": "no action" 476 - } 477 - }, 478 - "compositePrimaryKeys": {}, 479 - "uniqueConstraints": {}, 480 - "policies": {}, 481 - "checkConstraints": {}, 482 - "isRLSEnabled": false 483 - }, 484 - "public.artists": { 485 - "name": "artists", 486 - "schema": "", 487 - "columns": { 488 - "xata_id": { 489 - "name": "xata_id", 490 - "type": "text", 491 - "primaryKey": true, 492 - "notNull": true, 493 - "default": "xata_id()" 494 - }, 495 - "name": { 496 - "name": "name", 497 - "type": "text", 498 - "primaryKey": false, 499 - "notNull": true 500 - }, 501 - "biography": { 502 - "name": "biography", 503 - "type": "text", 504 - "primaryKey": false, 505 - "notNull": false 506 - }, 507 - "born": { 508 - "name": "born", 509 - "type": "timestamp", 510 - "primaryKey": false, 511 - "notNull": false 512 - }, 513 - "born_in": { 514 - "name": "born_in", 515 - "type": "text", 516 - "primaryKey": false, 517 - "notNull": false 518 - }, 519 - "died": { 520 - "name": "died", 521 - "type": "timestamp", 522 - "primaryKey": false, 523 - "notNull": false 524 - }, 525 - "picture": { 526 - "name": "picture", 527 - "type": "text", 528 - "primaryKey": false, 529 - "notNull": false 530 - }, 531 - "sha256": { 532 - "name": "sha256", 533 - "type": "text", 534 - "primaryKey": false, 535 - "notNull": true 536 - }, 537 - "uri": { 538 - "name": "uri", 539 - "type": "text", 540 - "primaryKey": false, 541 - "notNull": false 542 - }, 543 - "apple_music_link": { 544 - "name": "apple_music_link", 545 - "type": "text", 546 - "primaryKey": false, 547 - "notNull": false 548 - }, 549 - "spotify_link": { 550 - "name": "spotify_link", 551 - "type": "text", 552 - "primaryKey": false, 553 - "notNull": false 554 - }, 555 - "tidal_link": { 556 - "name": "tidal_link", 557 - "type": "text", 558 - "primaryKey": false, 559 - "notNull": false 560 - }, 561 - "youtube_link": { 562 - "name": "youtube_link", 563 - "type": "text", 564 - "primaryKey": false, 565 - "notNull": false 566 - }, 567 - "genres": { 568 - "name": "genres", 569 - "type": "text[]", 570 - "primaryKey": false, 571 - "notNull": false 572 - }, 573 - "xata_createdat": { 574 - "name": "xata_createdat", 575 - "type": "timestamp", 576 - "primaryKey": false, 577 - "notNull": true, 578 - "default": "now()" 579 - }, 580 - "xata_updatedat": { 581 - "name": "xata_updatedat", 582 - "type": "timestamp", 583 - "primaryKey": false, 584 - "notNull": true, 585 - "default": "now()" 586 - }, 587 - "xata_version": { 588 - "name": "xata_version", 589 - "type": "integer", 590 - "primaryKey": false, 591 - "notNull": false 592 - } 593 - }, 594 - "indexes": {}, 595 - "foreignKeys": {}, 596 - "compositePrimaryKeys": {}, 597 - "uniqueConstraints": { 598 - "artists_sha256_unique": { 599 - "name": "artists_sha256_unique", 600 - "nullsNotDistinct": false, 601 - "columns": [ 602 - "sha256" 603 - ] 604 - }, 605 - "artists_uri_unique": { 606 - "name": "artists_uri_unique", 607 - "nullsNotDistinct": false, 608 - "columns": [ 609 - "uri" 610 - ] 611 - } 612 - }, 613 - "policies": {}, 614 - "checkConstraints": {}, 615 - "isRLSEnabled": false 616 - }, 617 - "public.dropbox_accounts": { 618 - "name": "dropbox_accounts", 619 - "schema": "", 620 - "columns": { 621 - "xata_id": { 622 - "name": "xata_id", 623 - "type": "text", 624 - "primaryKey": true, 625 - "notNull": true, 626 - "default": "xata_id()" 627 - }, 628 - "email": { 629 - "name": "email", 630 - "type": "text", 631 - "primaryKey": false, 632 - "notNull": true 633 - }, 634 - "is_beta_user": { 635 - "name": "is_beta_user", 636 - "type": "boolean", 637 - "primaryKey": false, 638 - "notNull": true, 639 - "default": false 640 - }, 641 - "user_id": { 642 - "name": "user_id", 643 - "type": "text", 644 - "primaryKey": false, 645 - "notNull": true 646 - }, 647 - "xata_version": { 648 - "name": "xata_version", 649 - "type": "text", 650 - "primaryKey": false, 651 - "notNull": false 652 - }, 653 - "xata_createdat": { 654 - "name": "xata_createdat", 655 - "type": "timestamp", 656 - "primaryKey": false, 657 - "notNull": true, 658 - "default": "now()" 659 - }, 660 - "xata_updatedat": { 661 - "name": "xata_updatedat", 662 - "type": "timestamp", 663 - "primaryKey": false, 664 - "notNull": true, 665 - "default": "now()" 666 - } 667 - }, 668 - "indexes": {}, 669 - "foreignKeys": { 670 - "dropbox_accounts_user_id_users_xata_id_fk": { 671 - "name": "dropbox_accounts_user_id_users_xata_id_fk", 672 - "tableFrom": "dropbox_accounts", 673 - "tableTo": "users", 674 - "columnsFrom": [ 675 - "user_id" 676 - ], 677 - "columnsTo": [ 678 - "xata_id" 679 - ], 680 - "onDelete": "no action", 681 - "onUpdate": "no action" 682 - } 683 - }, 684 - "compositePrimaryKeys": {}, 685 - "uniqueConstraints": { 686 - "dropbox_accounts_email_unique": { 687 - "name": "dropbox_accounts_email_unique", 688 - "nullsNotDistinct": false, 689 - "columns": [ 690 - "email" 691 - ] 692 - } 693 - }, 694 - "policies": {}, 695 - "checkConstraints": {}, 696 - "isRLSEnabled": false 697 - }, 698 - "public.dropbox_directories": { 699 - "name": "dropbox_directories", 700 - "schema": "", 701 - "columns": { 702 - "xata_id": { 703 - "name": "xata_id", 704 - "type": "text", 705 - "primaryKey": true, 706 - "notNull": true, 707 - "default": "xata_id()" 708 - }, 709 - "name": { 710 - "name": "name", 711 - "type": "text", 712 - "primaryKey": false, 713 - "notNull": true 714 - }, 715 - "path": { 716 - "name": "path", 717 - "type": "text", 718 - "primaryKey": false, 719 - "notNull": true 720 - }, 721 - "parent_id": { 722 - "name": "parent_id", 723 - "type": "text", 724 - "primaryKey": false, 725 - "notNull": false 726 - }, 727 - "dropbox_id": { 728 - "name": "dropbox_id", 729 - "type": "text", 730 - "primaryKey": false, 731 - "notNull": true 732 - }, 733 - "file_id": { 734 - "name": "file_id", 735 - "type": "text", 736 - "primaryKey": false, 737 - "notNull": true 738 - }, 739 - "xata_version": { 740 - "name": "xata_version", 741 - "type": "text", 742 - "primaryKey": false, 743 - "notNull": false 744 - }, 745 - "xata_createdat": { 746 - "name": "xata_createdat", 747 - "type": "timestamp", 748 - "primaryKey": false, 749 - "notNull": true, 750 - "default": "now()" 751 - }, 752 - "xata_updatedat": { 753 - "name": "xata_updatedat", 754 - "type": "timestamp", 755 - "primaryKey": false, 756 - "notNull": true, 757 - "default": "now()" 758 - } 759 - }, 760 - "indexes": {}, 761 - "foreignKeys": { 762 - "dropbox_directories_parent_id_dropbox_directories_xata_id_fk": { 763 - "name": "dropbox_directories_parent_id_dropbox_directories_xata_id_fk", 764 - "tableFrom": "dropbox_directories", 765 - "tableTo": "dropbox_directories", 766 - "columnsFrom": [ 767 - "parent_id" 768 - ], 769 - "columnsTo": [ 770 - "xata_id" 771 - ], 772 - "onDelete": "no action", 773 - "onUpdate": "no action" 774 - } 775 - }, 776 - "compositePrimaryKeys": {}, 777 - "uniqueConstraints": { 778 - "dropbox_directories_file_id_unique": { 779 - "name": "dropbox_directories_file_id_unique", 780 - "nullsNotDistinct": false, 781 - "columns": [ 782 - "file_id" 783 - ] 784 - } 785 - }, 786 - "policies": {}, 787 - "checkConstraints": {}, 788 - "isRLSEnabled": false 789 - }, 790 - "public.dropbox_paths": { 791 - "name": "dropbox_paths", 792 - "schema": "", 793 - "columns": { 794 - "xata_id": { 795 - "name": "xata_id", 796 - "type": "text", 797 - "primaryKey": true, 798 - "notNull": true, 799 - "default": "xata_id()" 800 - }, 801 - "path": { 802 - "name": "path", 803 - "type": "text", 804 - "primaryKey": false, 805 - "notNull": true 806 - }, 807 - "name": { 808 - "name": "name", 809 - "type": "text", 810 - "primaryKey": false, 811 - "notNull": true 812 - }, 813 - "dropbox_id": { 814 - "name": "dropbox_id", 815 - "type": "text", 816 - "primaryKey": false, 817 - "notNull": true 818 - }, 819 - "track_id": { 820 - "name": "track_id", 821 - "type": "text", 822 - "primaryKey": false, 823 - "notNull": true 824 - }, 825 - "directory_id": { 826 - "name": "directory_id", 827 - "type": "text", 828 - "primaryKey": false, 829 - "notNull": false 830 - }, 831 - "file_id": { 832 - "name": "file_id", 833 - "type": "text", 834 - "primaryKey": false, 835 - "notNull": true 836 - }, 837 - "xata_version": { 838 - "name": "xata_version", 839 - "type": "text", 840 - "primaryKey": false, 841 - "notNull": false 842 - }, 843 - "xata_createdat": { 844 - "name": "xata_createdat", 845 - "type": "timestamp", 846 - "primaryKey": false, 847 - "notNull": true, 848 - "default": "now()" 849 - }, 850 - "xata_updatedat": { 851 - "name": "xata_updatedat", 852 - "type": "timestamp", 853 - "primaryKey": false, 854 - "notNull": true, 855 - "default": "now()" 856 - } 857 - }, 858 - "indexes": {}, 859 - "foreignKeys": { 860 - "dropbox_paths_directory_id_dropbox_directories_xata_id_fk": { 861 - "name": "dropbox_paths_directory_id_dropbox_directories_xata_id_fk", 862 - "tableFrom": "dropbox_paths", 863 - "tableTo": "dropbox_directories", 864 - "columnsFrom": [ 865 - "directory_id" 866 - ], 867 - "columnsTo": [ 868 - "xata_id" 869 - ], 870 - "onDelete": "no action", 871 - "onUpdate": "no action" 872 - } 873 - }, 874 - "compositePrimaryKeys": {}, 875 - "uniqueConstraints": { 876 - "dropbox_paths_file_id_unique": { 877 - "name": "dropbox_paths_file_id_unique", 878 - "nullsNotDistinct": false, 879 - "columns": [ 880 - "file_id" 881 - ] 882 - } 883 - }, 884 - "policies": {}, 885 - "checkConstraints": {}, 886 - "isRLSEnabled": false 887 - }, 888 - "public.dropbox_tokens": { 889 - "name": "dropbox_tokens", 890 - "schema": "", 891 - "columns": { 892 - "xata_id": { 893 - "name": "xata_id", 894 - "type": "text", 895 - "primaryKey": true, 896 - "notNull": true, 897 - "default": "xata_id()" 898 - }, 899 - "refresh_token": { 900 - "name": "refresh_token", 901 - "type": "text", 902 - "primaryKey": false, 903 - "notNull": true 904 - }, 905 - "xata_createdat": { 906 - "name": "xata_createdat", 907 - "type": "timestamp", 908 - "primaryKey": false, 909 - "notNull": true, 910 - "default": "now()" 911 - }, 912 - "xata_updatedat": { 913 - "name": "xata_updatedat", 914 - "type": "timestamp", 915 - "primaryKey": false, 916 - "notNull": true, 917 - "default": "now()" 918 - } 919 - }, 920 - "indexes": {}, 921 - "foreignKeys": {}, 922 - "compositePrimaryKeys": {}, 923 - "uniqueConstraints": {}, 924 - "policies": {}, 925 - "checkConstraints": {}, 926 - "isRLSEnabled": false 927 - }, 928 - "public.dropbox": { 929 - "name": "dropbox", 930 - "schema": "", 931 - "columns": { 932 - "xata_id": { 933 - "name": "xata_id", 934 - "type": "text", 935 - "primaryKey": true, 936 - "notNull": true, 937 - "default": "xata_id()" 938 - }, 939 - "user_id": { 940 - "name": "user_id", 941 - "type": "text", 942 - "primaryKey": false, 943 - "notNull": true 944 - }, 945 - "dropbox_token_id": { 946 - "name": "dropbox_token_id", 947 - "type": "text", 948 - "primaryKey": false, 949 - "notNull": true 950 - }, 951 - "xata_version": { 952 - "name": "xata_version", 953 - "type": "text", 954 - "primaryKey": false, 955 - "notNull": false 956 - }, 957 - "xata_createdat": { 958 - "name": "xata_createdat", 959 - "type": "timestamp", 960 - "primaryKey": false, 961 - "notNull": true, 962 - "default": "now()" 963 - }, 964 - "xata_updatedat": { 965 - "name": "xata_updatedat", 966 - "type": "timestamp", 967 - "primaryKey": false, 968 - "notNull": true, 969 - "default": "now()" 970 - } 971 - }, 972 - "indexes": {}, 973 - "foreignKeys": { 974 - "dropbox_user_id_users_xata_id_fk": { 975 - "name": "dropbox_user_id_users_xata_id_fk", 976 - "tableFrom": "dropbox", 977 - "tableTo": "users", 978 - "columnsFrom": [ 979 - "user_id" 980 - ], 981 - "columnsTo": [ 982 - "xata_id" 983 - ], 984 - "onDelete": "no action", 985 - "onUpdate": "no action" 986 - }, 987 - "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk": { 988 - "name": "dropbox_dropbox_token_id_dropbox_tokens_xata_id_fk", 989 - "tableFrom": "dropbox", 990 - "tableTo": "dropbox_tokens", 991 - "columnsFrom": [ 992 - "dropbox_token_id" 993 - ], 994 - "columnsTo": [ 995 - "xata_id" 996 - ], 997 - "onDelete": "no action", 998 - "onUpdate": "no action" 999 - } 1000 - }, 1001 - "compositePrimaryKeys": {}, 1002 - "uniqueConstraints": {}, 1003 - "policies": {}, 1004 - "checkConstraints": {}, 1005 - "isRLSEnabled": false 1006 - }, 1007 - "public.google_drive_accounts": { 1008 - "name": "google_drive_accounts", 1009 - "schema": "", 1010 - "columns": { 1011 - "xata_id": { 1012 - "name": "xata_id", 1013 - "type": "text", 1014 - "primaryKey": true, 1015 - "notNull": true, 1016 - "default": "xata_id()" 1017 - }, 1018 - "email": { 1019 - "name": "email", 1020 - "type": "text", 1021 - "primaryKey": false, 1022 - "notNull": true 1023 - }, 1024 - "is_beta_user": { 1025 - "name": "is_beta_user", 1026 - "type": "boolean", 1027 - "primaryKey": false, 1028 - "notNull": true, 1029 - "default": false 1030 - }, 1031 - "user_id": { 1032 - "name": "user_id", 1033 - "type": "text", 1034 - "primaryKey": false, 1035 - "notNull": true 1036 - }, 1037 - "xata_version": { 1038 - "name": "xata_version", 1039 - "type": "text", 1040 - "primaryKey": false, 1041 - "notNull": false 1042 - }, 1043 - "xata_createdat": { 1044 - "name": "xata_createdat", 1045 - "type": "timestamp", 1046 - "primaryKey": false, 1047 - "notNull": true, 1048 - "default": "now()" 1049 - }, 1050 - "xata_updatedat": { 1051 - "name": "xata_updatedat", 1052 - "type": "timestamp", 1053 - "primaryKey": false, 1054 - "notNull": true, 1055 - "default": "now()" 1056 - } 1057 - }, 1058 - "indexes": {}, 1059 - "foreignKeys": { 1060 - "google_drive_accounts_user_id_users_xata_id_fk": { 1061 - "name": "google_drive_accounts_user_id_users_xata_id_fk", 1062 - "tableFrom": "google_drive_accounts", 1063 - "tableTo": "users", 1064 - "columnsFrom": [ 1065 - "user_id" 1066 - ], 1067 - "columnsTo": [ 1068 - "xata_id" 1069 - ], 1070 - "onDelete": "no action", 1071 - "onUpdate": "no action" 1072 - } 1073 - }, 1074 - "compositePrimaryKeys": {}, 1075 - "uniqueConstraints": { 1076 - "google_drive_accounts_email_unique": { 1077 - "name": "google_drive_accounts_email_unique", 1078 - "nullsNotDistinct": false, 1079 - "columns": [ 1080 - "email" 1081 - ] 1082 - } 1083 - }, 1084 - "policies": {}, 1085 - "checkConstraints": {}, 1086 - "isRLSEnabled": false 1087 - }, 1088 - "public.google_drive_directories": { 1089 - "name": "google_drive_directories", 1090 - "schema": "", 1091 - "columns": { 1092 - "xata_id": { 1093 - "name": "xata_id", 1094 - "type": "text", 1095 - "primaryKey": true, 1096 - "notNull": true, 1097 - "default": "xata_id()" 1098 - }, 1099 - "name": { 1100 - "name": "name", 1101 - "type": "text", 1102 - "primaryKey": false, 1103 - "notNull": true 1104 - }, 1105 - "path": { 1106 - "name": "path", 1107 - "type": "text", 1108 - "primaryKey": false, 1109 - "notNull": true 1110 - }, 1111 - "parent_id": { 1112 - "name": "parent_id", 1113 - "type": "text", 1114 - "primaryKey": false, 1115 - "notNull": false 1116 - }, 1117 - "google_drive_id": { 1118 - "name": "google_drive_id", 1119 - "type": "text", 1120 - "primaryKey": false, 1121 - "notNull": true 1122 - }, 1123 - "file_id": { 1124 - "name": "file_id", 1125 - "type": "text", 1126 - "primaryKey": false, 1127 - "notNull": true 1128 - }, 1129 - "xata_version": { 1130 - "name": "xata_version", 1131 - "type": "text", 1132 - "primaryKey": false, 1133 - "notNull": false 1134 - }, 1135 - "xata_createdat": { 1136 - "name": "xata_createdat", 1137 - "type": "timestamp", 1138 - "primaryKey": false, 1139 - "notNull": true, 1140 - "default": "now()" 1141 - }, 1142 - "xata_updatedat": { 1143 - "name": "xata_updatedat", 1144 - "type": "timestamp", 1145 - "primaryKey": false, 1146 - "notNull": true, 1147 - "default": "now()" 1148 - } 1149 - }, 1150 - "indexes": {}, 1151 - "foreignKeys": { 1152 - "google_drive_directories_parent_id_google_drive_directories_xata_id_fk": { 1153 - "name": "google_drive_directories_parent_id_google_drive_directories_xata_id_fk", 1154 - "tableFrom": "google_drive_directories", 1155 - "tableTo": "google_drive_directories", 1156 - "columnsFrom": [ 1157 - "parent_id" 1158 - ], 1159 - "columnsTo": [ 1160 - "xata_id" 1161 - ], 1162 - "onDelete": "no action", 1163 - "onUpdate": "no action" 1164 - } 1165 - }, 1166 - "compositePrimaryKeys": {}, 1167 - "uniqueConstraints": { 1168 - "google_drive_directories_file_id_unique": { 1169 - "name": "google_drive_directories_file_id_unique", 1170 - "nullsNotDistinct": false, 1171 - "columns": [ 1172 - "file_id" 1173 - ] 1174 - } 1175 - }, 1176 - "policies": {}, 1177 - "checkConstraints": {}, 1178 - "isRLSEnabled": false 1179 - }, 1180 - "public.google_drive_paths": { 1181 - "name": "google_drive_paths", 1182 - "schema": "", 1183 - "columns": { 1184 - "xata_id": { 1185 - "name": "xata_id", 1186 - "type": "text", 1187 - "primaryKey": true, 1188 - "notNull": true, 1189 - "default": "xata_id()" 1190 - }, 1191 - "google_drive_id": { 1192 - "name": "google_drive_id", 1193 - "type": "text", 1194 - "primaryKey": false, 1195 - "notNull": true 1196 - }, 1197 - "track_id": { 1198 - "name": "track_id", 1199 - "type": "text", 1200 - "primaryKey": false, 1201 - "notNull": true 1202 - }, 1203 - "name": { 1204 - "name": "name", 1205 - "type": "text", 1206 - "primaryKey": false, 1207 - "notNull": true 1208 - }, 1209 - "directory_id": { 1210 - "name": "directory_id", 1211 - "type": "text", 1212 - "primaryKey": false, 1213 - "notNull": false 1214 - }, 1215 - "file_id": { 1216 - "name": "file_id", 1217 - "type": "text", 1218 - "primaryKey": false, 1219 - "notNull": true 1220 - }, 1221 - "xata_version": { 1222 - "name": "xata_version", 1223 - "type": "text", 1224 - "primaryKey": false, 1225 - "notNull": false 1226 - }, 1227 - "xata_createdat": { 1228 - "name": "xata_createdat", 1229 - "type": "timestamp", 1230 - "primaryKey": false, 1231 - "notNull": true, 1232 - "default": "now()" 1233 - }, 1234 - "xata_updatedat": { 1235 - "name": "xata_updatedat", 1236 - "type": "timestamp", 1237 - "primaryKey": false, 1238 - "notNull": true, 1239 - "default": "now()" 1240 - } 1241 - }, 1242 - "indexes": {}, 1243 - "foreignKeys": { 1244 - "google_drive_paths_directory_id_google_drive_directories_xata_id_fk": { 1245 - "name": "google_drive_paths_directory_id_google_drive_directories_xata_id_fk", 1246 - "tableFrom": "google_drive_paths", 1247 - "tableTo": "google_drive_directories", 1248 - "columnsFrom": [ 1249 - "directory_id" 1250 - ], 1251 - "columnsTo": [ 1252 - "xata_id" 1253 - ], 1254 - "onDelete": "no action", 1255 - "onUpdate": "no action" 1256 - } 1257 - }, 1258 - "compositePrimaryKeys": {}, 1259 - "uniqueConstraints": { 1260 - "google_drive_paths_file_id_unique": { 1261 - "name": "google_drive_paths_file_id_unique", 1262 - "nullsNotDistinct": false, 1263 - "columns": [ 1264 - "file_id" 1265 - ] 1266 - } 1267 - }, 1268 - "policies": {}, 1269 - "checkConstraints": {}, 1270 - "isRLSEnabled": false 1271 - }, 1272 - "public.google_drive_tokens": { 1273 - "name": "google_drive_tokens", 1274 - "schema": "", 1275 - "columns": { 1276 - "xata_id": { 1277 - "name": "xata_id", 1278 - "type": "text", 1279 - "primaryKey": true, 1280 - "notNull": true, 1281 - "default": "xata_id()" 1282 - }, 1283 - "refresh_token": { 1284 - "name": "refresh_token", 1285 - "type": "text", 1286 - "primaryKey": false, 1287 - "notNull": true 1288 - }, 1289 - "xata_createdat": { 1290 - "name": "xata_createdat", 1291 - "type": "timestamp", 1292 - "primaryKey": false, 1293 - "notNull": true, 1294 - "default": "now()" 1295 - }, 1296 - "xata_updatedat": { 1297 - "name": "xata_updatedat", 1298 - "type": "timestamp", 1299 - "primaryKey": false, 1300 - "notNull": true, 1301 - "default": "now()" 1302 - } 1303 - }, 1304 - "indexes": {}, 1305 - "foreignKeys": {}, 1306 - "compositePrimaryKeys": {}, 1307 - "uniqueConstraints": {}, 1308 - "policies": {}, 1309 - "checkConstraints": {}, 1310 - "isRLSEnabled": false 1311 - }, 1312 - "public.google_drive": { 1313 - "name": "google_drive", 1314 - "schema": "", 1315 - "columns": { 1316 - "xata_id": { 1317 - "name": "xata_id", 1318 - "type": "text", 1319 - "primaryKey": true, 1320 - "notNull": true, 1321 - "default": "xata_id()" 1322 - }, 1323 - "google_drive_token_id": { 1324 - "name": "google_drive_token_id", 1325 - "type": "text", 1326 - "primaryKey": false, 1327 - "notNull": true 1328 - }, 1329 - "user_id": { 1330 - "name": "user_id", 1331 - "type": "text", 1332 - "primaryKey": false, 1333 - "notNull": true 1334 - }, 1335 - "xata_version": { 1336 - "name": "xata_version", 1337 - "type": "text", 1338 - "primaryKey": false, 1339 - "notNull": false 1340 - }, 1341 - "xata_createdat": { 1342 - "name": "xata_createdat", 1343 - "type": "timestamp", 1344 - "primaryKey": false, 1345 - "notNull": true, 1346 - "default": "now()" 1347 - }, 1348 - "xata_updatedat": { 1349 - "name": "xata_updatedat", 1350 - "type": "timestamp", 1351 - "primaryKey": false, 1352 - "notNull": true, 1353 - "default": "now()" 1354 - } 1355 - }, 1356 - "indexes": {}, 1357 - "foreignKeys": { 1358 - "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk": { 1359 - "name": "google_drive_google_drive_token_id_google_drive_tokens_xata_id_fk", 1360 - "tableFrom": "google_drive", 1361 - "tableTo": "google_drive_tokens", 1362 - "columnsFrom": [ 1363 - "google_drive_token_id" 1364 - ], 1365 - "columnsTo": [ 1366 - "xata_id" 1367 - ], 1368 - "onDelete": "no action", 1369 - "onUpdate": "no action" 1370 - }, 1371 - "google_drive_user_id_users_xata_id_fk": { 1372 - "name": "google_drive_user_id_users_xata_id_fk", 1373 - "tableFrom": "google_drive", 1374 - "tableTo": "users", 1375 - "columnsFrom": [ 1376 - "user_id" 1377 - ], 1378 - "columnsTo": [ 1379 - "xata_id" 1380 - ], 1381 - "onDelete": "no action", 1382 - "onUpdate": "no action" 1383 - } 1384 - }, 1385 - "compositePrimaryKeys": {}, 1386 - "uniqueConstraints": {}, 1387 - "policies": {}, 1388 - "checkConstraints": {}, 1389 - "isRLSEnabled": false 1390 - }, 1391 - "public.loved_tracks": { 1392 - "name": "loved_tracks", 1393 - "schema": "", 1394 - "columns": { 1395 - "xata_id": { 1396 - "name": "xata_id", 1397 - "type": "text", 1398 - "primaryKey": true, 1399 - "notNull": true, 1400 - "default": "xata_id()" 1401 - }, 1402 - "user_id": { 1403 - "name": "user_id", 1404 - "type": "text", 1405 - "primaryKey": false, 1406 - "notNull": true 1407 - }, 1408 - "track_id": { 1409 - "name": "track_id", 1410 - "type": "text", 1411 - "primaryKey": false, 1412 - "notNull": true 1413 - }, 1414 - "uri": { 1415 - "name": "uri", 1416 - "type": "text", 1417 - "primaryKey": false, 1418 - "notNull": false 1419 - }, 1420 - "xata_createdat": { 1421 - "name": "xata_createdat", 1422 - "type": "timestamp", 1423 - "primaryKey": false, 1424 - "notNull": true, 1425 - "default": "now()" 1426 - } 1427 - }, 1428 - "indexes": {}, 1429 - "foreignKeys": { 1430 - "loved_tracks_user_id_users_xata_id_fk": { 1431 - "name": "loved_tracks_user_id_users_xata_id_fk", 1432 - "tableFrom": "loved_tracks", 1433 - "tableTo": "users", 1434 - "columnsFrom": [ 1435 - "user_id" 1436 - ], 1437 - "columnsTo": [ 1438 - "xata_id" 1439 - ], 1440 - "onDelete": "no action", 1441 - "onUpdate": "no action" 1442 - }, 1443 - "loved_tracks_track_id_tracks_xata_id_fk": { 1444 - "name": "loved_tracks_track_id_tracks_xata_id_fk", 1445 - "tableFrom": "loved_tracks", 1446 - "tableTo": "tracks", 1447 - "columnsFrom": [ 1448 - "track_id" 1449 - ], 1450 - "columnsTo": [ 1451 - "xata_id" 1452 - ], 1453 - "onDelete": "no action", 1454 - "onUpdate": "no action" 1455 - } 1456 - }, 1457 - "compositePrimaryKeys": {}, 1458 - "uniqueConstraints": { 1459 - "loved_tracks_uri_unique": { 1460 - "name": "loved_tracks_uri_unique", 1461 - "nullsNotDistinct": false, 1462 - "columns": [ 1463 - "uri" 1464 - ] 1465 - } 1466 - }, 1467 - "policies": {}, 1468 - "checkConstraints": {}, 1469 - "isRLSEnabled": false 1470 - }, 1471 - "public.playlist_tracks": { 1472 - "name": "playlist_tracks", 1473 - "schema": "", 1474 - "columns": { 1475 - "xata_id": { 1476 - "name": "xata_id", 1477 - "type": "text", 1478 - "primaryKey": true, 1479 - "notNull": true, 1480 - "default": "xata_id()" 1481 - }, 1482 - "playlist_id": { 1483 - "name": "playlist_id", 1484 - "type": "text", 1485 - "primaryKey": false, 1486 - "notNull": true 1487 - }, 1488 - "track_id": { 1489 - "name": "track_id", 1490 - "type": "text", 1491 - "primaryKey": false, 1492 - "notNull": true 1493 - }, 1494 - "xata_createdat": { 1495 - "name": "xata_createdat", 1496 - "type": "timestamp", 1497 - "primaryKey": false, 1498 - "notNull": true, 1499 - "default": "now()" 1500 - } 1501 - }, 1502 - "indexes": {}, 1503 - "foreignKeys": { 1504 - "playlist_tracks_playlist_id_playlists_xata_id_fk": { 1505 - "name": "playlist_tracks_playlist_id_playlists_xata_id_fk", 1506 - "tableFrom": "playlist_tracks", 1507 - "tableTo": "playlists", 1508 - "columnsFrom": [ 1509 - "playlist_id" 1510 - ], 1511 - "columnsTo": [ 1512 - "xata_id" 1513 - ], 1514 - "onDelete": "no action", 1515 - "onUpdate": "no action" 1516 - }, 1517 - "playlist_tracks_track_id_tracks_xata_id_fk": { 1518 - "name": "playlist_tracks_track_id_tracks_xata_id_fk", 1519 - "tableFrom": "playlist_tracks", 1520 - "tableTo": "tracks", 1521 - "columnsFrom": [ 1522 - "track_id" 1523 - ], 1524 - "columnsTo": [ 1525 - "xata_id" 1526 - ], 1527 - "onDelete": "no action", 1528 - "onUpdate": "no action" 1529 - } 1530 - }, 1531 - "compositePrimaryKeys": {}, 1532 - "uniqueConstraints": {}, 1533 - "policies": {}, 1534 - "checkConstraints": {}, 1535 - "isRLSEnabled": false 1536 - }, 1537 - "public.playlists": { 1538 - "name": "playlists", 1539 - "schema": "", 1540 - "columns": { 1541 - "xata_id": { 1542 - "name": "xata_id", 1543 - "type": "text", 1544 - "primaryKey": true, 1545 - "notNull": true, 1546 - "default": "xata_id()" 1547 - }, 1548 - "name": { 1549 - "name": "name", 1550 - "type": "text", 1551 - "primaryKey": false, 1552 - "notNull": true 1553 - }, 1554 - "picture": { 1555 - "name": "picture", 1556 - "type": "text", 1557 - "primaryKey": false, 1558 - "notNull": false 1559 - }, 1560 - "description": { 1561 - "name": "description", 1562 - "type": "text", 1563 - "primaryKey": false, 1564 - "notNull": false 1565 - }, 1566 - "uri": { 1567 - "name": "uri", 1568 - "type": "text", 1569 - "primaryKey": false, 1570 - "notNull": false 1571 - }, 1572 - "spotify_link": { 1573 - "name": "spotify_link", 1574 - "type": "text", 1575 - "primaryKey": false, 1576 - "notNull": false 1577 - }, 1578 - "tidal_link": { 1579 - "name": "tidal_link", 1580 - "type": "text", 1581 - "primaryKey": false, 1582 - "notNull": false 1583 - }, 1584 - "apple_music_link": { 1585 - "name": "apple_music_link", 1586 - "type": "text", 1587 - "primaryKey": false, 1588 - "notNull": false 1589 - }, 1590 - "created_by": { 1591 - "name": "created_by", 1592 - "type": "text", 1593 - "primaryKey": false, 1594 - "notNull": true 1595 - }, 1596 - "xata_createdat": { 1597 - "name": "xata_createdat", 1598 - "type": "timestamp", 1599 - "primaryKey": false, 1600 - "notNull": true, 1601 - "default": "now()" 1602 - }, 1603 - "xata_updatedat": { 1604 - "name": "xata_updatedat", 1605 - "type": "timestamp", 1606 - "primaryKey": false, 1607 - "notNull": true, 1608 - "default": "now()" 1609 - } 1610 - }, 1611 - "indexes": {}, 1612 - "foreignKeys": { 1613 - "playlists_created_by_users_xata_id_fk": { 1614 - "name": "playlists_created_by_users_xata_id_fk", 1615 - "tableFrom": "playlists", 1616 - "tableTo": "users", 1617 - "columnsFrom": [ 1618 - "created_by" 1619 - ], 1620 - "columnsTo": [ 1621 - "xata_id" 1622 - ], 1623 - "onDelete": "no action", 1624 - "onUpdate": "no action" 1625 - } 1626 - }, 1627 - "compositePrimaryKeys": {}, 1628 - "uniqueConstraints": { 1629 - "playlists_uri_unique": { 1630 - "name": "playlists_uri_unique", 1631 - "nullsNotDistinct": false, 1632 - "columns": [ 1633 - "uri" 1634 - ] 1635 - } 1636 - }, 1637 - "policies": {}, 1638 - "checkConstraints": {}, 1639 - "isRLSEnabled": false 1640 - }, 1641 - "public.profile_shouts": { 1642 - "name": "profile_shouts", 1643 - "schema": "", 1644 - "columns": { 1645 - "xata_id": { 1646 - "name": "xata_id", 1647 - "type": "text", 1648 - "primaryKey": true, 1649 - "notNull": true, 1650 - "default": "xata_id()" 1651 - }, 1652 - "user_id": { 1653 - "name": "user_id", 1654 - "type": "text", 1655 - "primaryKey": false, 1656 - "notNull": true 1657 - }, 1658 - "shout_id": { 1659 - "name": "shout_id", 1660 - "type": "text", 1661 - "primaryKey": false, 1662 - "notNull": true 1663 - }, 1664 - "xata_createdat": { 1665 - "name": "xata_createdat", 1666 - "type": "timestamp", 1667 - "primaryKey": false, 1668 - "notNull": true, 1669 - "default": "now()" 1670 - } 1671 - }, 1672 - "indexes": {}, 1673 - "foreignKeys": { 1674 - "profile_shouts_user_id_users_xata_id_fk": { 1675 - "name": "profile_shouts_user_id_users_xata_id_fk", 1676 - "tableFrom": "profile_shouts", 1677 - "tableTo": "users", 1678 - "columnsFrom": [ 1679 - "user_id" 1680 - ], 1681 - "columnsTo": [ 1682 - "xata_id" 1683 - ], 1684 - "onDelete": "no action", 1685 - "onUpdate": "no action" 1686 - }, 1687 - "profile_shouts_shout_id_shouts_xata_id_fk": { 1688 - "name": "profile_shouts_shout_id_shouts_xata_id_fk", 1689 - "tableFrom": "profile_shouts", 1690 - "tableTo": "shouts", 1691 - "columnsFrom": [ 1692 - "shout_id" 1693 - ], 1694 - "columnsTo": [ 1695 - "xata_id" 1696 - ], 1697 - "onDelete": "no action", 1698 - "onUpdate": "no action" 1699 - } 1700 - }, 1701 - "compositePrimaryKeys": {}, 1702 - "uniqueConstraints": {}, 1703 - "policies": {}, 1704 - "checkConstraints": {}, 1705 - "isRLSEnabled": false 1706 - }, 1707 - "public.queue_tracks": { 1708 - "name": "queue_tracks", 1709 - "schema": "", 1710 - "columns": { 1711 - "xata_id": { 1712 - "name": "xata_id", 1713 - "type": "text", 1714 - "primaryKey": true, 1715 - "notNull": true, 1716 - "default": "xata_id()" 1717 - }, 1718 - "user_id": { 1719 - "name": "user_id", 1720 - "type": "text", 1721 - "primaryKey": false, 1722 - "notNull": true 1723 - }, 1724 - "track_id": { 1725 - "name": "track_id", 1726 - "type": "text", 1727 - "primaryKey": false, 1728 - "notNull": true 1729 - }, 1730 - "position": { 1731 - "name": "position", 1732 - "type": "integer", 1733 - "primaryKey": false, 1734 - "notNull": true 1735 - }, 1736 - "file_uri": { 1737 - "name": "file_uri", 1738 - "type": "text", 1739 - "primaryKey": false, 1740 - "notNull": true 1741 - }, 1742 - "xata_version": { 1743 - "name": "xata_version", 1744 - "type": "integer", 1745 - "primaryKey": false, 1746 - "notNull": true, 1747 - "default": 0 1748 - }, 1749 - "xata_createdat": { 1750 - "name": "xata_createdat", 1751 - "type": "timestamp", 1752 - "primaryKey": false, 1753 - "notNull": true, 1754 - "default": "now()" 1755 - }, 1756 - "xata_updatedat": { 1757 - "name": "xata_updatedat", 1758 - "type": "timestamp", 1759 - "primaryKey": false, 1760 - "notNull": true, 1761 - "default": "now()" 1762 - } 1763 - }, 1764 - "indexes": {}, 1765 - "foreignKeys": { 1766 - "queue_tracks_user_id_users_xata_id_fk": { 1767 - "name": "queue_tracks_user_id_users_xata_id_fk", 1768 - "tableFrom": "queue_tracks", 1769 - "tableTo": "users", 1770 - "columnsFrom": [ 1771 - "user_id" 1772 - ], 1773 - "columnsTo": [ 1774 - "xata_id" 1775 - ], 1776 - "onDelete": "no action", 1777 - "onUpdate": "no action" 1778 - }, 1779 - "queue_tracks_track_id_tracks_xata_id_fk": { 1780 - "name": "queue_tracks_track_id_tracks_xata_id_fk", 1781 - "tableFrom": "queue_tracks", 1782 - "tableTo": "tracks", 1783 - "columnsFrom": [ 1784 - "track_id" 1785 - ], 1786 - "columnsTo": [ 1787 - "xata_id" 1788 - ], 1789 - "onDelete": "no action", 1790 - "onUpdate": "no action" 1791 - } 1792 - }, 1793 - "compositePrimaryKeys": {}, 1794 - "uniqueConstraints": {}, 1795 - "policies": {}, 1796 - "checkConstraints": {}, 1797 - "isRLSEnabled": false 1798 - }, 1799 - "public.scrobbles": { 1800 - "name": "scrobbles", 1801 - "schema": "", 1802 - "columns": { 1803 - "xata_id": { 1804 - "name": "xata_id", 1805 - "type": "text", 1806 - "primaryKey": true, 1807 - "notNull": true, 1808 - "default": "xata_id()" 1809 - }, 1810 - "user_id": { 1811 - "name": "user_id", 1812 - "type": "text", 1813 - "primaryKey": false, 1814 - "notNull": false 1815 - }, 1816 - "track_id": { 1817 - "name": "track_id", 1818 - "type": "text", 1819 - "primaryKey": false, 1820 - "notNull": false 1821 - }, 1822 - "album_id": { 1823 - "name": "album_id", 1824 - "type": "text", 1825 - "primaryKey": false, 1826 - "notNull": false 1827 - }, 1828 - "artist_id": { 1829 - "name": "artist_id", 1830 - "type": "text", 1831 - "primaryKey": false, 1832 - "notNull": false 1833 - }, 1834 - "uri": { 1835 - "name": "uri", 1836 - "type": "text", 1837 - "primaryKey": false, 1838 - "notNull": false 1839 - }, 1840 - "xata_createdat": { 1841 - "name": "xata_createdat", 1842 - "type": "timestamp", 1843 - "primaryKey": false, 1844 - "notNull": true, 1845 - "default": "now()" 1846 - }, 1847 - "xata_updatedat": { 1848 - "name": "xata_updatedat", 1849 - "type": "timestamp", 1850 - "primaryKey": false, 1851 - "notNull": true, 1852 - "default": "now()" 1853 - }, 1854 - "xata_version": { 1855 - "name": "xata_version", 1856 - "type": "integer", 1857 - "primaryKey": false, 1858 - "notNull": false 1859 - }, 1860 - "timestamp": { 1861 - "name": "timestamp", 1862 - "type": "timestamp", 1863 - "primaryKey": false, 1864 - "notNull": true, 1865 - "default": "now()" 1866 - } 1867 - }, 1868 - "indexes": {}, 1869 - "foreignKeys": { 1870 - "scrobbles_user_id_users_xata_id_fk": { 1871 - "name": "scrobbles_user_id_users_xata_id_fk", 1872 - "tableFrom": "scrobbles", 1873 - "tableTo": "users", 1874 - "columnsFrom": [ 1875 - "user_id" 1876 - ], 1877 - "columnsTo": [ 1878 - "xata_id" 1879 - ], 1880 - "onDelete": "no action", 1881 - "onUpdate": "no action" 1882 - }, 1883 - "scrobbles_track_id_tracks_xata_id_fk": { 1884 - "name": "scrobbles_track_id_tracks_xata_id_fk", 1885 - "tableFrom": "scrobbles", 1886 - "tableTo": "tracks", 1887 - "columnsFrom": [ 1888 - "track_id" 1889 - ], 1890 - "columnsTo": [ 1891 - "xata_id" 1892 - ], 1893 - "onDelete": "no action", 1894 - "onUpdate": "no action" 1895 - }, 1896 - "scrobbles_album_id_albums_xata_id_fk": { 1897 - "name": "scrobbles_album_id_albums_xata_id_fk", 1898 - "tableFrom": "scrobbles", 1899 - "tableTo": "albums", 1900 - "columnsFrom": [ 1901 - "album_id" 1902 - ], 1903 - "columnsTo": [ 1904 - "xata_id" 1905 - ], 1906 - "onDelete": "no action", 1907 - "onUpdate": "no action" 1908 - }, 1909 - "scrobbles_artist_id_artists_xata_id_fk": { 1910 - "name": "scrobbles_artist_id_artists_xata_id_fk", 1911 - "tableFrom": "scrobbles", 1912 - "tableTo": "artists", 1913 - "columnsFrom": [ 1914 - "artist_id" 1915 - ], 1916 - "columnsTo": [ 1917 - "xata_id" 1918 - ], 1919 - "onDelete": "no action", 1920 - "onUpdate": "no action" 1921 - } 1922 - }, 1923 - "compositePrimaryKeys": {}, 1924 - "uniqueConstraints": { 1925 - "scrobbles_uri_unique": { 1926 - "name": "scrobbles_uri_unique", 1927 - "nullsNotDistinct": false, 1928 - "columns": [ 1929 - "uri" 1930 - ] 1931 - } 1932 - }, 1933 - "policies": {}, 1934 - "checkConstraints": {}, 1935 - "isRLSEnabled": false 1936 - }, 1937 - "public.shout_likes": { 1938 - "name": "shout_likes", 1939 - "schema": "", 1940 - "columns": { 1941 - "xata_id": { 1942 - "name": "xata_id", 1943 - "type": "text", 1944 - "primaryKey": true, 1945 - "notNull": true, 1946 - "default": "xata_id()" 1947 - }, 1948 - "user_id": { 1949 - "name": "user_id", 1950 - "type": "text", 1951 - "primaryKey": false, 1952 - "notNull": true 1953 - }, 1954 - "shout_id": { 1955 - "name": "shout_id", 1956 - "type": "text", 1957 - "primaryKey": false, 1958 - "notNull": true 1959 - }, 1960 - "xata_createdat": { 1961 - "name": "xata_createdat", 1962 - "type": "timestamp", 1963 - "primaryKey": false, 1964 - "notNull": true, 1965 - "default": "now()" 1966 - }, 1967 - "uri": { 1968 - "name": "uri", 1969 - "type": "text", 1970 - "primaryKey": false, 1971 - "notNull": true 1972 - } 1973 - }, 1974 - "indexes": {}, 1975 - "foreignKeys": { 1976 - "shout_likes_user_id_users_xata_id_fk": { 1977 - "name": "shout_likes_user_id_users_xata_id_fk", 1978 - "tableFrom": "shout_likes", 1979 - "tableTo": "users", 1980 - "columnsFrom": [ 1981 - "user_id" 1982 - ], 1983 - "columnsTo": [ 1984 - "xata_id" 1985 - ], 1986 - "onDelete": "no action", 1987 - "onUpdate": "no action" 1988 - }, 1989 - "shout_likes_shout_id_shouts_xata_id_fk": { 1990 - "name": "shout_likes_shout_id_shouts_xata_id_fk", 1991 - "tableFrom": "shout_likes", 1992 - "tableTo": "shouts", 1993 - "columnsFrom": [ 1994 - "shout_id" 1995 - ], 1996 - "columnsTo": [ 1997 - "xata_id" 1998 - ], 1999 - "onDelete": "no action", 2000 - "onUpdate": "no action" 2001 - } 2002 - }, 2003 - "compositePrimaryKeys": {}, 2004 - "uniqueConstraints": { 2005 - "shout_likes_uri_unique": { 2006 - "name": "shout_likes_uri_unique", 2007 - "nullsNotDistinct": false, 2008 - "columns": [ 2009 - "uri" 2010 - ] 2011 - } 2012 - }, 2013 - "policies": {}, 2014 - "checkConstraints": {}, 2015 - "isRLSEnabled": false 2016 - }, 2017 - "public.shout_reports": { 2018 - "name": "shout_reports", 2019 - "schema": "", 2020 - "columns": { 2021 - "xata_id": { 2022 - "name": "xata_id", 2023 - "type": "text", 2024 - "primaryKey": true, 2025 - "notNull": true, 2026 - "default": "xata_id()" 2027 - }, 2028 - "user_id": { 2029 - "name": "user_id", 2030 - "type": "text", 2031 - "primaryKey": false, 2032 - "notNull": true 2033 - }, 2034 - "shout_id": { 2035 - "name": "shout_id", 2036 - "type": "text", 2037 - "primaryKey": false, 2038 - "notNull": true 2039 - }, 2040 - "xata_createdat": { 2041 - "name": "xata_createdat", 2042 - "type": "timestamp", 2043 - "primaryKey": false, 2044 - "notNull": true, 2045 - "default": "now()" 2046 - } 2047 - }, 2048 - "indexes": {}, 2049 - "foreignKeys": { 2050 - "shout_reports_user_id_users_xata_id_fk": { 2051 - "name": "shout_reports_user_id_users_xata_id_fk", 2052 - "tableFrom": "shout_reports", 2053 - "tableTo": "users", 2054 - "columnsFrom": [ 2055 - "user_id" 2056 - ], 2057 - "columnsTo": [ 2058 - "xata_id" 2059 - ], 2060 - "onDelete": "no action", 2061 - "onUpdate": "no action" 2062 - }, 2063 - "shout_reports_shout_id_shouts_xata_id_fk": { 2064 - "name": "shout_reports_shout_id_shouts_xata_id_fk", 2065 - "tableFrom": "shout_reports", 2066 - "tableTo": "shouts", 2067 - "columnsFrom": [ 2068 - "shout_id" 2069 - ], 2070 - "columnsTo": [ 2071 - "xata_id" 2072 - ], 2073 - "onDelete": "no action", 2074 - "onUpdate": "no action" 2075 - } 2076 - }, 2077 - "compositePrimaryKeys": {}, 2078 - "uniqueConstraints": {}, 2079 - "policies": {}, 2080 - "checkConstraints": {}, 2081 - "isRLSEnabled": false 2082 - }, 2083 - "public.shouts": { 2084 - "name": "shouts", 2085 - "schema": "", 2086 - "columns": { 2087 - "xata_id": { 2088 - "name": "xata_id", 2089 - "type": "text", 2090 - "primaryKey": true, 2091 - "notNull": true, 2092 - "default": "xata_id()" 2093 - }, 2094 - "content": { 2095 - "name": "content", 2096 - "type": "text", 2097 - "primaryKey": false, 2098 - "notNull": true 2099 - }, 2100 - "track_id": { 2101 - "name": "track_id", 2102 - "type": "text", 2103 - "primaryKey": false, 2104 - "notNull": false 2105 - }, 2106 - "artist_id": { 2107 - "name": "artist_id", 2108 - "type": "text", 2109 - "primaryKey": false, 2110 - "notNull": false 2111 - }, 2112 - "album_id": { 2113 - "name": "album_id", 2114 - "type": "text", 2115 - "primaryKey": false, 2116 - "notNull": false 2117 - }, 2118 - "scrobble_id": { 2119 - "name": "scrobble_id", 2120 - "type": "text", 2121 - "primaryKey": false, 2122 - "notNull": false 2123 - }, 2124 - "uri": { 2125 - "name": "uri", 2126 - "type": "text", 2127 - "primaryKey": false, 2128 - "notNull": true 2129 - }, 2130 - "author_id": { 2131 - "name": "author_id", 2132 - "type": "text", 2133 - "primaryKey": false, 2134 - "notNull": true 2135 - }, 2136 - "parent_id": { 2137 - "name": "parent_id", 2138 - "type": "text", 2139 - "primaryKey": false, 2140 - "notNull": false 2141 - }, 2142 - "xata_createdat": { 2143 - "name": "xata_createdat", 2144 - "type": "timestamp", 2145 - "primaryKey": false, 2146 - "notNull": true, 2147 - "default": "now()" 2148 - }, 2149 - "xata_updatedat": { 2150 - "name": "xata_updatedat", 2151 - "type": "timestamp", 2152 - "primaryKey": false, 2153 - "notNull": true, 2154 - "default": "now()" 2155 - } 2156 - }, 2157 - "indexes": {}, 2158 - "foreignKeys": { 2159 - "shouts_track_id_tracks_xata_id_fk": { 2160 - "name": "shouts_track_id_tracks_xata_id_fk", 2161 - "tableFrom": "shouts", 2162 - "tableTo": "tracks", 2163 - "columnsFrom": [ 2164 - "track_id" 2165 - ], 2166 - "columnsTo": [ 2167 - "xata_id" 2168 - ], 2169 - "onDelete": "no action", 2170 - "onUpdate": "no action" 2171 - }, 2172 - "shouts_artist_id_users_xata_id_fk": { 2173 - "name": "shouts_artist_id_users_xata_id_fk", 2174 - "tableFrom": "shouts", 2175 - "tableTo": "users", 2176 - "columnsFrom": [ 2177 - "artist_id" 2178 - ], 2179 - "columnsTo": [ 2180 - "xata_id" 2181 - ], 2182 - "onDelete": "no action", 2183 - "onUpdate": "no action" 2184 - }, 2185 - "shouts_album_id_albums_xata_id_fk": { 2186 - "name": "shouts_album_id_albums_xata_id_fk", 2187 - "tableFrom": "shouts", 2188 - "tableTo": "albums", 2189 - "columnsFrom": [ 2190 - "album_id" 2191 - ], 2192 - "columnsTo": [ 2193 - "xata_id" 2194 - ], 2195 - "onDelete": "no action", 2196 - "onUpdate": "no action" 2197 - }, 2198 - "shouts_scrobble_id_scrobbles_xata_id_fk": { 2199 - "name": "shouts_scrobble_id_scrobbles_xata_id_fk", 2200 - "tableFrom": "shouts", 2201 - "tableTo": "scrobbles", 2202 - "columnsFrom": [ 2203 - "scrobble_id" 2204 - ], 2205 - "columnsTo": [ 2206 - "xata_id" 2207 - ], 2208 - "onDelete": "no action", 2209 - "onUpdate": "no action" 2210 - }, 2211 - "shouts_author_id_users_xata_id_fk": { 2212 - "name": "shouts_author_id_users_xata_id_fk", 2213 - "tableFrom": "shouts", 2214 - "tableTo": "users", 2215 - "columnsFrom": [ 2216 - "author_id" 2217 - ], 2218 - "columnsTo": [ 2219 - "xata_id" 2220 - ], 2221 - "onDelete": "no action", 2222 - "onUpdate": "no action" 2223 - }, 2224 - "shouts_parent_id_shouts_xata_id_fk": { 2225 - "name": "shouts_parent_id_shouts_xata_id_fk", 2226 - "tableFrom": "shouts", 2227 - "tableTo": "shouts", 2228 - "columnsFrom": [ 2229 - "parent_id" 2230 - ], 2231 - "columnsTo": [ 2232 - "xata_id" 2233 - ], 2234 - "onDelete": "no action", 2235 - "onUpdate": "no action" 2236 - } 2237 - }, 2238 - "compositePrimaryKeys": {}, 2239 - "uniqueConstraints": { 2240 - "shouts_uri_unique": { 2241 - "name": "shouts_uri_unique", 2242 - "nullsNotDistinct": false, 2243 - "columns": [ 2244 - "uri" 2245 - ] 2246 - } 2247 - }, 2248 - "policies": {}, 2249 - "checkConstraints": {}, 2250 - "isRLSEnabled": false 2251 - }, 2252 - "public.spotify_accounts": { 2253 - "name": "spotify_accounts", 2254 - "schema": "", 2255 - "columns": { 2256 - "xata_id": { 2257 - "name": "xata_id", 2258 - "type": "text", 2259 - "primaryKey": true, 2260 - "notNull": true, 2261 - "default": "xata_id()" 2262 - }, 2263 - "xata_version": { 2264 - "name": "xata_version", 2265 - "type": "integer", 2266 - "primaryKey": false, 2267 - "notNull": false 2268 - }, 2269 - "email": { 2270 - "name": "email", 2271 - "type": "text", 2272 - "primaryKey": false, 2273 - "notNull": true 2274 - }, 2275 - "user_id": { 2276 - "name": "user_id", 2277 - "type": "text", 2278 - "primaryKey": false, 2279 - "notNull": true 2280 - }, 2281 - "is_beta_user": { 2282 - "name": "is_beta_user", 2283 - "type": "boolean", 2284 - "primaryKey": false, 2285 - "notNull": true, 2286 - "default": false 2287 - }, 2288 - "spotify_app_id": { 2289 - "name": "spotify_app_id", 2290 - "type": "text", 2291 - "primaryKey": false, 2292 - "notNull": false 2293 - }, 2294 - "xata_createdat": { 2295 - "name": "xata_createdat", 2296 - "type": "timestamp", 2297 - "primaryKey": false, 2298 - "notNull": true, 2299 - "default": "now()" 2300 - }, 2301 - "xata_updatedat": { 2302 - "name": "xata_updatedat", 2303 - "type": "timestamp", 2304 - "primaryKey": false, 2305 - "notNull": true, 2306 - "default": "now()" 2307 - } 2308 - }, 2309 - "indexes": {}, 2310 - "foreignKeys": { 2311 - "spotify_accounts_user_id_users_xata_id_fk": { 2312 - "name": "spotify_accounts_user_id_users_xata_id_fk", 2313 - "tableFrom": "spotify_accounts", 2314 - "tableTo": "users", 2315 - "columnsFrom": [ 2316 - "user_id" 2317 - ], 2318 - "columnsTo": [ 2319 - "xata_id" 2320 - ], 2321 - "onDelete": "no action", 2322 - "onUpdate": "no action" 2323 - } 2324 - }, 2325 - "compositePrimaryKeys": {}, 2326 - "uniqueConstraints": {}, 2327 - "policies": {}, 2328 - "checkConstraints": {}, 2329 - "isRLSEnabled": false 2330 - }, 2331 - "public.spotify_apps": { 2332 - "name": "spotify_apps", 2333 - "schema": "", 2334 - "columns": { 2335 - "xata_id": { 2336 - "name": "xata_id", 2337 - "type": "text", 2338 - "primaryKey": true, 2339 - "notNull": true, 2340 - "default": "xata_id()" 2341 - }, 2342 - "xata_version": { 2343 - "name": "xata_version", 2344 - "type": "integer", 2345 - "primaryKey": false, 2346 - "notNull": false 2347 - }, 2348 - "spotify_app_id": { 2349 - "name": "spotify_app_id", 2350 - "type": "text", 2351 - "primaryKey": false, 2352 - "notNull": true 2353 - }, 2354 - "spotify_secret": { 2355 - "name": "spotify_secret", 2356 - "type": "text", 2357 - "primaryKey": false, 2358 - "notNull": true 2359 - }, 2360 - "xata_createdat": { 2361 - "name": "xata_createdat", 2362 - "type": "timestamp", 2363 - "primaryKey": false, 2364 - "notNull": true, 2365 - "default": "now()" 2366 - }, 2367 - "xata_updatedat": { 2368 - "name": "xata_updatedat", 2369 - "type": "timestamp", 2370 - "primaryKey": false, 2371 - "notNull": true, 2372 - "default": "now()" 2373 - } 2374 - }, 2375 - "indexes": {}, 2376 - "foreignKeys": {}, 2377 - "compositePrimaryKeys": {}, 2378 - "uniqueConstraints": { 2379 - "spotify_apps_spotify_app_id_unique": { 2380 - "name": "spotify_apps_spotify_app_id_unique", 2381 - "nullsNotDistinct": false, 2382 - "columns": [ 2383 - "spotify_app_id" 2384 - ] 2385 - } 2386 - }, 2387 - "policies": {}, 2388 - "checkConstraints": {}, 2389 - "isRLSEnabled": false 2390 - }, 2391 - "public.spotify_tokens": { 2392 - "name": "spotify_tokens", 2393 - "schema": "", 2394 - "columns": { 2395 - "xata_id": { 2396 - "name": "xata_id", 2397 - "type": "text", 2398 - "primaryKey": true, 2399 - "notNull": true, 2400 - "default": "xata_id()" 2401 - }, 2402 - "xata_version": { 2403 - "name": "xata_version", 2404 - "type": "integer", 2405 - "primaryKey": false, 2406 - "notNull": false 2407 - }, 2408 - "access_token": { 2409 - "name": "access_token", 2410 - "type": "text", 2411 - "primaryKey": false, 2412 - "notNull": true 2413 - }, 2414 - "refresh_token": { 2415 - "name": "refresh_token", 2416 - "type": "text", 2417 - "primaryKey": false, 2418 - "notNull": true 2419 - }, 2420 - "user_id": { 2421 - "name": "user_id", 2422 - "type": "text", 2423 - "primaryKey": false, 2424 - "notNull": true 2425 - }, 2426 - "spotify_app_id": { 2427 - "name": "spotify_app_id", 2428 - "type": "text", 2429 - "primaryKey": false, 2430 - "notNull": true 2431 - }, 2432 - "xata_createdat": { 2433 - "name": "xata_createdat", 2434 - "type": "timestamp", 2435 - "primaryKey": false, 2436 - "notNull": true, 2437 - "default": "now()" 2438 - }, 2439 - "xata_updatedat": { 2440 - "name": "xata_updatedat", 2441 - "type": "timestamp", 2442 - "primaryKey": false, 2443 - "notNull": true, 2444 - "default": "now()" 2445 - } 2446 - }, 2447 - "indexes": {}, 2448 - "foreignKeys": { 2449 - "spotify_tokens_user_id_users_xata_id_fk": { 2450 - "name": "spotify_tokens_user_id_users_xata_id_fk", 2451 - "tableFrom": "spotify_tokens", 2452 - "tableTo": "users", 2453 - "columnsFrom": [ 2454 - "user_id" 2455 - ], 2456 - "columnsTo": [ 2457 - "xata_id" 2458 - ], 2459 - "onDelete": "no action", 2460 - "onUpdate": "no action" 2461 - } 2462 - }, 2463 - "compositePrimaryKeys": {}, 2464 - "uniqueConstraints": {}, 2465 - "policies": {}, 2466 - "checkConstraints": {}, 2467 - "isRLSEnabled": false 2468 - }, 2469 - "public.tracks": { 2470 - "name": "tracks", 2471 - "schema": "", 2472 - "columns": { 2473 - "xata_id": { 2474 - "name": "xata_id", 2475 - "type": "text", 2476 - "primaryKey": true, 2477 - "notNull": true, 2478 - "default": "xata_id()" 2479 - }, 2480 - "title": { 2481 - "name": "title", 2482 - "type": "text", 2483 - "primaryKey": false, 2484 - "notNull": true 2485 - }, 2486 - "artist": { 2487 - "name": "artist", 2488 - "type": "text", 2489 - "primaryKey": false, 2490 - "notNull": true 2491 - }, 2492 - "album_artist": { 2493 - "name": "album_artist", 2494 - "type": "text", 2495 - "primaryKey": false, 2496 - "notNull": true 2497 - }, 2498 - "album_art": { 2499 - "name": "album_art", 2500 - "type": "text", 2501 - "primaryKey": false, 2502 - "notNull": false 2503 - }, 2504 - "album": { 2505 - "name": "album", 2506 - "type": "text", 2507 - "primaryKey": false, 2508 - "notNull": true 2509 - }, 2510 - "track_number": { 2511 - "name": "track_number", 2512 - "type": "integer", 2513 - "primaryKey": false, 2514 - "notNull": false 2515 - }, 2516 - "duration": { 2517 - "name": "duration", 2518 - "type": "integer", 2519 - "primaryKey": false, 2520 - "notNull": true 2521 - }, 2522 - "mb_id": { 2523 - "name": "mb_id", 2524 - "type": "text", 2525 - "primaryKey": false, 2526 - "notNull": false 2527 - }, 2528 - "youtube_link": { 2529 - "name": "youtube_link", 2530 - "type": "text", 2531 - "primaryKey": false, 2532 - "notNull": false 2533 - }, 2534 - "spotify_link": { 2535 - "name": "spotify_link", 2536 - "type": "text", 2537 - "primaryKey": false, 2538 - "notNull": false 2539 - }, 2540 - "apple_music_link": { 2541 - "name": "apple_music_link", 2542 - "type": "text", 2543 - "primaryKey": false, 2544 - "notNull": false 2545 - }, 2546 - "tidal_link": { 2547 - "name": "tidal_link", 2548 - "type": "text", 2549 - "primaryKey": false, 2550 - "notNull": false 2551 - }, 2552 - "sha256": { 2553 - "name": "sha256", 2554 - "type": "text", 2555 - "primaryKey": false, 2556 - "notNull": true 2557 - }, 2558 - "disc_number": { 2559 - "name": "disc_number", 2560 - "type": "integer", 2561 - "primaryKey": false, 2562 - "notNull": false 2563 - }, 2564 - "lyrics": { 2565 - "name": "lyrics", 2566 - "type": "text", 2567 - "primaryKey": false, 2568 - "notNull": false 2569 - }, 2570 - "composer": { 2571 - "name": "composer", 2572 - "type": "text", 2573 - "primaryKey": false, 2574 - "notNull": false 2575 - }, 2576 - "genre": { 2577 - "name": "genre", 2578 - "type": "text", 2579 - "primaryKey": false, 2580 - "notNull": false 2581 - }, 2582 - "label": { 2583 - "name": "label", 2584 - "type": "text", 2585 - "primaryKey": false, 2586 - "notNull": false 2587 - }, 2588 - "copyright_message": { 2589 - "name": "copyright_message", 2590 - "type": "text", 2591 - "primaryKey": false, 2592 - "notNull": false 2593 - }, 2594 - "uri": { 2595 - "name": "uri", 2596 - "type": "text", 2597 - "primaryKey": false, 2598 - "notNull": false 2599 - }, 2600 - "album_uri": { 2601 - "name": "album_uri", 2602 - "type": "text", 2603 - "primaryKey": false, 2604 - "notNull": false 2605 - }, 2606 - "artist_uri": { 2607 - "name": "artist_uri", 2608 - "type": "text", 2609 - "primaryKey": false, 2610 - "notNull": false 2611 - }, 2612 - "xata_createdat": { 2613 - "name": "xata_createdat", 2614 - "type": "timestamp", 2615 - "primaryKey": false, 2616 - "notNull": true, 2617 - "default": "now()" 2618 - }, 2619 - "xata_updatedat": { 2620 - "name": "xata_updatedat", 2621 - "type": "timestamp", 2622 - "primaryKey": false, 2623 - "notNull": true, 2624 - "default": "now()" 2625 - }, 2626 - "xata_version": { 2627 - "name": "xata_version", 2628 - "type": "integer", 2629 - "primaryKey": false, 2630 - "notNull": false 2631 - } 2632 - }, 2633 - "indexes": {}, 2634 - "foreignKeys": {}, 2635 - "compositePrimaryKeys": {}, 2636 - "uniqueConstraints": { 2637 - "tracks_mb_id_unique": { 2638 - "name": "tracks_mb_id_unique", 2639 - "nullsNotDistinct": false, 2640 - "columns": [ 2641 - "mb_id" 2642 - ] 2643 - }, 2644 - "tracks_youtube_link_unique": { 2645 - "name": "tracks_youtube_link_unique", 2646 - "nullsNotDistinct": false, 2647 - "columns": [ 2648 - "youtube_link" 2649 - ] 2650 - }, 2651 - "tracks_spotify_link_unique": { 2652 - "name": "tracks_spotify_link_unique", 2653 - "nullsNotDistinct": false, 2654 - "columns": [ 2655 - "spotify_link" 2656 - ] 2657 - }, 2658 - "tracks_apple_music_link_unique": { 2659 - "name": "tracks_apple_music_link_unique", 2660 - "nullsNotDistinct": false, 2661 - "columns": [ 2662 - "apple_music_link" 2663 - ] 2664 - }, 2665 - "tracks_tidal_link_unique": { 2666 - "name": "tracks_tidal_link_unique", 2667 - "nullsNotDistinct": false, 2668 - "columns": [ 2669 - "tidal_link" 2670 - ] 2671 - }, 2672 - "tracks_sha256_unique": { 2673 - "name": "tracks_sha256_unique", 2674 - "nullsNotDistinct": false, 2675 - "columns": [ 2676 - "sha256" 2677 - ] 2678 - }, 2679 - "tracks_uri_unique": { 2680 - "name": "tracks_uri_unique", 2681 - "nullsNotDistinct": false, 2682 - "columns": [ 2683 - "uri" 2684 - ] 2685 - } 2686 - }, 2687 - "policies": {}, 2688 - "checkConstraints": {}, 2689 - "isRLSEnabled": false 2690 - }, 2691 - "public.user_albums": { 2692 - "name": "user_albums", 2693 - "schema": "", 2694 - "columns": { 2695 - "xata_id": { 2696 - "name": "xata_id", 2697 - "type": "text", 2698 - "primaryKey": true, 2699 - "notNull": true, 2700 - "default": "xata_id()" 2701 - }, 2702 - "user_id": { 2703 - "name": "user_id", 2704 - "type": "text", 2705 - "primaryKey": false, 2706 - "notNull": true 2707 - }, 2708 - "album_id": { 2709 - "name": "album_id", 2710 - "type": "text", 2711 - "primaryKey": false, 2712 - "notNull": true 2713 - }, 2714 - "xata_createdat": { 2715 - "name": "xata_createdat", 2716 - "type": "timestamp", 2717 - "primaryKey": false, 2718 - "notNull": true, 2719 - "default": "now()" 2720 - }, 2721 - "xata_updatedat": { 2722 - "name": "xata_updatedat", 2723 - "type": "timestamp", 2724 - "primaryKey": false, 2725 - "notNull": true, 2726 - "default": "now()" 2727 - }, 2728 - "xata_version": { 2729 - "name": "xata_version", 2730 - "type": "integer", 2731 - "primaryKey": false, 2732 - "notNull": false 2733 - }, 2734 - "scrobbles": { 2735 - "name": "scrobbles", 2736 - "type": "integer", 2737 - "primaryKey": false, 2738 - "notNull": false 2739 - }, 2740 - "uri": { 2741 - "name": "uri", 2742 - "type": "text", 2743 - "primaryKey": false, 2744 - "notNull": true 2745 - } 2746 - }, 2747 - "indexes": {}, 2748 - "foreignKeys": { 2749 - "user_albums_user_id_users_xata_id_fk": { 2750 - "name": "user_albums_user_id_users_xata_id_fk", 2751 - "tableFrom": "user_albums", 2752 - "tableTo": "users", 2753 - "columnsFrom": [ 2754 - "user_id" 2755 - ], 2756 - "columnsTo": [ 2757 - "xata_id" 2758 - ], 2759 - "onDelete": "no action", 2760 - "onUpdate": "no action" 2761 - }, 2762 - "user_albums_album_id_albums_xata_id_fk": { 2763 - "name": "user_albums_album_id_albums_xata_id_fk", 2764 - "tableFrom": "user_albums", 2765 - "tableTo": "albums", 2766 - "columnsFrom": [ 2767 - "album_id" 2768 - ], 2769 - "columnsTo": [ 2770 - "xata_id" 2771 - ], 2772 - "onDelete": "no action", 2773 - "onUpdate": "no action" 2774 - } 2775 - }, 2776 - "compositePrimaryKeys": {}, 2777 - "uniqueConstraints": { 2778 - "user_albums_uri_unique": { 2779 - "name": "user_albums_uri_unique", 2780 - "nullsNotDistinct": false, 2781 - "columns": [ 2782 - "uri" 2783 - ] 2784 - } 2785 - }, 2786 - "policies": {}, 2787 - "checkConstraints": {}, 2788 - "isRLSEnabled": false 2789 - }, 2790 - "public.user_artists": { 2791 - "name": "user_artists", 2792 - "schema": "", 2793 - "columns": { 2794 - "xata_id": { 2795 - "name": "xata_id", 2796 - "type": "text", 2797 - "primaryKey": true, 2798 - "notNull": true, 2799 - "default": "xata_id()" 2800 - }, 2801 - "user_id": { 2802 - "name": "user_id", 2803 - "type": "text", 2804 - "primaryKey": false, 2805 - "notNull": true 2806 - }, 2807 - "artist_id": { 2808 - "name": "artist_id", 2809 - "type": "text", 2810 - "primaryKey": false, 2811 - "notNull": true 2812 - }, 2813 - "xata_createdat": { 2814 - "name": "xata_createdat", 2815 - "type": "timestamp", 2816 - "primaryKey": false, 2817 - "notNull": true, 2818 - "default": "now()" 2819 - }, 2820 - "xata_updatedat": { 2821 - "name": "xata_updatedat", 2822 - "type": "timestamp", 2823 - "primaryKey": false, 2824 - "notNull": true, 2825 - "default": "now()" 2826 - }, 2827 - "xata_version": { 2828 - "name": "xata_version", 2829 - "type": "integer", 2830 - "primaryKey": false, 2831 - "notNull": false 2832 - }, 2833 - "scrobbles": { 2834 - "name": "scrobbles", 2835 - "type": "integer", 2836 - "primaryKey": false, 2837 - "notNull": false 2838 - }, 2839 - "uri": { 2840 - "name": "uri", 2841 - "type": "text", 2842 - "primaryKey": false, 2843 - "notNull": true 2844 - } 2845 - }, 2846 - "indexes": {}, 2847 - "foreignKeys": { 2848 - "user_artists_user_id_users_xata_id_fk": { 2849 - "name": "user_artists_user_id_users_xata_id_fk", 2850 - "tableFrom": "user_artists", 2851 - "tableTo": "users", 2852 - "columnsFrom": [ 2853 - "user_id" 2854 - ], 2855 - "columnsTo": [ 2856 - "xata_id" 2857 - ], 2858 - "onDelete": "no action", 2859 - "onUpdate": "no action" 2860 - }, 2861 - "user_artists_artist_id_artists_xata_id_fk": { 2862 - "name": "user_artists_artist_id_artists_xata_id_fk", 2863 - "tableFrom": "user_artists", 2864 - "tableTo": "artists", 2865 - "columnsFrom": [ 2866 - "artist_id" 2867 - ], 2868 - "columnsTo": [ 2869 - "xata_id" 2870 - ], 2871 - "onDelete": "no action", 2872 - "onUpdate": "no action" 2873 - } 2874 - }, 2875 - "compositePrimaryKeys": {}, 2876 - "uniqueConstraints": { 2877 - "user_artists_uri_unique": { 2878 - "name": "user_artists_uri_unique", 2879 - "nullsNotDistinct": false, 2880 - "columns": [ 2881 - "uri" 2882 - ] 2883 - } 2884 - }, 2885 - "policies": {}, 2886 - "checkConstraints": {}, 2887 - "isRLSEnabled": false 2888 - }, 2889 - "public.user_playlists": { 2890 - "name": "user_playlists", 2891 - "schema": "", 2892 - "columns": { 2893 - "xata_id": { 2894 - "name": "xata_id", 2895 - "type": "text", 2896 - "primaryKey": true, 2897 - "notNull": true, 2898 - "default": "xata_id()" 2899 - }, 2900 - "user_id": { 2901 - "name": "user_id", 2902 - "type": "text", 2903 - "primaryKey": false, 2904 - "notNull": true 2905 - }, 2906 - "playlist_id": { 2907 - "name": "playlist_id", 2908 - "type": "text", 2909 - "primaryKey": false, 2910 - "notNull": true 2911 - }, 2912 - "xata_createdat": { 2913 - "name": "xata_createdat", 2914 - "type": "timestamp", 2915 - "primaryKey": false, 2916 - "notNull": true, 2917 - "default": "now()" 2918 - }, 2919 - "uri": { 2920 - "name": "uri", 2921 - "type": "text", 2922 - "primaryKey": false, 2923 - "notNull": false 2924 - } 2925 - }, 2926 - "indexes": {}, 2927 - "foreignKeys": { 2928 - "user_playlists_user_id_users_xata_id_fk": { 2929 - "name": "user_playlists_user_id_users_xata_id_fk", 2930 - "tableFrom": "user_playlists", 2931 - "tableTo": "users", 2932 - "columnsFrom": [ 2933 - "user_id" 2934 - ], 2935 - "columnsTo": [ 2936 - "xata_id" 2937 - ], 2938 - "onDelete": "no action", 2939 - "onUpdate": "no action" 2940 - }, 2941 - "user_playlists_playlist_id_playlists_xata_id_fk": { 2942 - "name": "user_playlists_playlist_id_playlists_xata_id_fk", 2943 - "tableFrom": "user_playlists", 2944 - "tableTo": "playlists", 2945 - "columnsFrom": [ 2946 - "playlist_id" 2947 - ], 2948 - "columnsTo": [ 2949 - "xata_id" 2950 - ], 2951 - "onDelete": "no action", 2952 - "onUpdate": "no action" 2953 - } 2954 - }, 2955 - "compositePrimaryKeys": {}, 2956 - "uniqueConstraints": { 2957 - "user_playlists_uri_unique": { 2958 - "name": "user_playlists_uri_unique", 2959 - "nullsNotDistinct": false, 2960 - "columns": [ 2961 - "uri" 2962 - ] 2963 - } 2964 - }, 2965 - "policies": {}, 2966 - "checkConstraints": {}, 2967 - "isRLSEnabled": false 2968 - }, 2969 - "public.user_tracks": { 2970 - "name": "user_tracks", 2971 - "schema": "", 2972 - "columns": { 2973 - "xata_id": { 2974 - "name": "xata_id", 2975 - "type": "text", 2976 - "primaryKey": true, 2977 - "notNull": true, 2978 - "default": "xata_id()" 2979 - }, 2980 - "user_id": { 2981 - "name": "user_id", 2982 - "type": "text", 2983 - "primaryKey": false, 2984 - "notNull": true 2985 - }, 2986 - "track_id": { 2987 - "name": "track_id", 2988 - "type": "text", 2989 - "primaryKey": false, 2990 - "notNull": true 2991 - }, 2992 - "xata_createdat": { 2993 - "name": "xata_createdat", 2994 - "type": "timestamp", 2995 - "primaryKey": false, 2996 - "notNull": true, 2997 - "default": "now()" 2998 - }, 2999 - "xata_updatedat": { 3000 - "name": "xata_updatedat", 3001 - "type": "timestamp", 3002 - "primaryKey": false, 3003 - "notNull": true, 3004 - "default": "now()" 3005 - }, 3006 - "xata_version": { 3007 - "name": "xata_version", 3008 - "type": "integer", 3009 - "primaryKey": false, 3010 - "notNull": false 3011 - }, 3012 - "uri": { 3013 - "name": "uri", 3014 - "type": "text", 3015 - "primaryKey": false, 3016 - "notNull": true 3017 - }, 3018 - "scrobbles": { 3019 - "name": "scrobbles", 3020 - "type": "integer", 3021 - "primaryKey": false, 3022 - "notNull": false 3023 - } 3024 - }, 3025 - "indexes": {}, 3026 - "foreignKeys": { 3027 - "user_tracks_user_id_users_xata_id_fk": { 3028 - "name": "user_tracks_user_id_users_xata_id_fk", 3029 - "tableFrom": "user_tracks", 3030 - "tableTo": "users", 3031 - "columnsFrom": [ 3032 - "user_id" 3033 - ], 3034 - "columnsTo": [ 3035 - "xata_id" 3036 - ], 3037 - "onDelete": "no action", 3038 - "onUpdate": "no action" 3039 - }, 3040 - "user_tracks_track_id_tracks_xata_id_fk": { 3041 - "name": "user_tracks_track_id_tracks_xata_id_fk", 3042 - "tableFrom": "user_tracks", 3043 - "tableTo": "tracks", 3044 - "columnsFrom": [ 3045 - "track_id" 3046 - ], 3047 - "columnsTo": [ 3048 - "xata_id" 3049 - ], 3050 - "onDelete": "no action", 3051 - "onUpdate": "no action" 3052 - } 3053 - }, 3054 - "compositePrimaryKeys": {}, 3055 - "uniqueConstraints": { 3056 - "user_tracks_uri_unique": { 3057 - "name": "user_tracks_uri_unique", 3058 - "nullsNotDistinct": false, 3059 - "columns": [ 3060 - "uri" 3061 - ] 3062 - } 3063 - }, 3064 - "policies": {}, 3065 - "checkConstraints": {}, 3066 - "isRLSEnabled": false 3067 - }, 3068 - "public.users": { 3069 - "name": "users", 3070 - "schema": "", 3071 - "columns": { 3072 - "xata_id": { 3073 - "name": "xata_id", 3074 - "type": "text", 3075 - "primaryKey": true, 3076 - "notNull": true, 3077 - "default": "xata_id()" 3078 - }, 3079 - "did": { 3080 - "name": "did", 3081 - "type": "text", 3082 - "primaryKey": false, 3083 - "notNull": true 3084 - }, 3085 - "display_name": { 3086 - "name": "display_name", 3087 - "type": "text", 3088 - "primaryKey": false, 3089 - "notNull": false 3090 - }, 3091 - "handle": { 3092 - "name": "handle", 3093 - "type": "text", 3094 - "primaryKey": false, 3095 - "notNull": true 3096 - }, 3097 - "avatar": { 3098 - "name": "avatar", 3099 - "type": "text", 3100 - "primaryKey": false, 3101 - "notNull": true 3102 - }, 3103 - "xata_createdat": { 3104 - "name": "xata_createdat", 3105 - "type": "timestamp", 3106 - "primaryKey": false, 3107 - "notNull": true, 3108 - "default": "now()" 3109 - }, 3110 - "xata_updatedat": { 3111 - "name": "xata_updatedat", 3112 - "type": "timestamp", 3113 - "primaryKey": false, 3114 - "notNull": true, 3115 - "default": "now()" 3116 - }, 3117 - "xata_version": { 3118 - "name": "xata_version", 3119 - "type": "integer", 3120 - "primaryKey": false, 3121 - "notNull": false 3122 - } 3123 - }, 3124 - "indexes": {}, 3125 - "foreignKeys": {}, 3126 - "compositePrimaryKeys": {}, 3127 - "uniqueConstraints": { 3128 - "users_did_unique": { 3129 - "name": "users_did_unique", 3130 - "nullsNotDistinct": false, 3131 - "columns": [ 3132 - "did" 3133 - ] 3134 - }, 3135 - "users_handle_unique": { 3136 - "name": "users_handle_unique", 3137 - "nullsNotDistinct": false, 3138 - "columns": [ 3139 - "handle" 3140 - ] 3141 - } 3142 - }, 3143 - "policies": {}, 3144 - "checkConstraints": {}, 3145 - "isRLSEnabled": false 3146 - }, 3147 - "public.webscrobblers": { 3148 - "name": "webscrobblers", 3149 - "schema": "", 3150 - "columns": { 3151 - "xata_id": { 3152 - "name": "xata_id", 3153 - "type": "text", 3154 - "primaryKey": true, 3155 - "notNull": true, 3156 - "default": "xata_id()" 3157 - }, 3158 - "name": { 3159 - "name": "name", 3160 - "type": "text", 3161 - "primaryKey": false, 3162 - "notNull": true 3163 - }, 3164 - "uuid": { 3165 - "name": "uuid", 3166 - "type": "text", 3167 - "primaryKey": false, 3168 - "notNull": true 3169 - }, 3170 - "description": { 3171 - "name": "description", 3172 - "type": "text", 3173 - "primaryKey": false, 3174 - "notNull": false 3175 - }, 3176 - "enabled": { 3177 - "name": "enabled", 3178 - "type": "boolean", 3179 - "primaryKey": false, 3180 - "notNull": true, 3181 - "default": true 3182 - }, 3183 - "user_id": { 3184 - "name": "user_id", 3185 - "type": "text", 3186 - "primaryKey": false, 3187 - "notNull": true 3188 - }, 3189 - "xata_createdat": { 3190 - "name": "xata_createdat", 3191 - "type": "timestamp", 3192 - "primaryKey": false, 3193 - "notNull": true, 3194 - "default": "now()" 3195 - }, 3196 - "xata_updatedat": { 3197 - "name": "xata_updatedat", 3198 - "type": "timestamp", 3199 - "primaryKey": false, 3200 - "notNull": true, 3201 - "default": "now()" 3202 - } 3203 - }, 3204 - "indexes": {}, 3205 - "foreignKeys": { 3206 - "webscrobblers_user_id_users_xata_id_fk": { 3207 - "name": "webscrobblers_user_id_users_xata_id_fk", 3208 - "tableFrom": "webscrobblers", 3209 - "tableTo": "users", 3210 - "columnsFrom": [ 3211 - "user_id" 3212 - ], 3213 - "columnsTo": [ 3214 - "xata_id" 3215 - ], 3216 - "onDelete": "no action", 3217 - "onUpdate": "no action" 3218 - } 3219 - }, 3220 - "compositePrimaryKeys": {}, 3221 - "uniqueConstraints": {}, 3222 - "policies": {}, 3223 - "checkConstraints": {}, 3224 - "isRLSEnabled": false 3225 - } 3226 - }, 3227 - "enums": {}, 3228 - "schemas": {}, 3229 - "sequences": {}, 3230 - "roles": {}, 3231 - "policies": {}, 3232 - "views": {}, 3233 - "_meta": { 3234 - "columns": {}, 3235 - "schemas": {}, 3236 - "tables": {} 3237 - } 3238 - }
+2 -44
apps/api/drizzle/meta/_journal.json
··· 5 5 { 6 6 "idx": 0, 7 7 "version": "7", 8 - "when": 1759744201158, 9 - "tag": "0000_left_swordsman", 10 - "breakpoints": true 11 - }, 12 - { 13 - "idx": 1, 14 - "version": "7", 15 - "when": 1759746264036, 16 - "tag": "0001_fluffy_epoch", 17 - "breakpoints": true 18 - }, 19 - { 20 - "idx": 2, 21 - "version": "7", 22 - "when": 1759747596050, 23 - "tag": "0002_sweet_randall_flagg", 24 - "breakpoints": true 25 - }, 26 - { 27 - "idx": 3, 28 - "version": "7", 29 - "when": 1759819936859, 30 - "tag": "0003_same_rocket_racer", 31 - "breakpoints": true 32 - }, 33 - { 34 - "idx": 4, 35 - "version": "7", 36 - "when": 1761572359505, 37 - "tag": "0004_long_zzzax", 38 - "breakpoints": true 39 - }, 40 - { 41 - "idx": 5, 42 - "version": "7", 43 - "when": 1761625200550, 44 - "tag": "0005_same_hydra", 45 - "breakpoints": true 46 - }, 47 - { 48 - "idx": 6, 49 - "version": "7", 50 - "when": 1761704981354, 51 - "tag": "0006_slow_bulldozer", 8 + "when": 1766859854227, 9 + "tag": "0000_puzzling_lockheed", 52 10 "breakpoints": true 53 11 } 54 12 ]
+2 -1
apps/api/package.json
··· 26 26 "format": "biome format src", 27 27 "lint": "biome lint src", 28 28 "feed": "tsx ./src/scripts/feed.ts", 29 - "dedup": "bun ./src/scripts/dedup.ts" 29 + "dedup": "bun ./src/scripts/dedup.ts", 30 + "seed:feed": "tsx ./src/scripts/seed-feed.ts" 30 31 }, 31 32 "dependencies": { 32 33 "@atproto/api": "^0.13.31",
apps/api/src/scripts/seed-feed.ts

This is a binary file and will not be displayed.