···11import albumTracks from "./album-tracks";
22import albums from "./albums";
33import apiKeys from "./api-keys";
44+import artistAlbums from "./artist-albums";
55+import artistTracks from "./artist-tracks";
46import artists from "./artists";
57import lovedTracks from "./loved-tracks";
68import playlistTracks from "./playlist-tracks";
···4244 lovedTracks,
4345 spotifyAccounts,
4446 spotifyTokens,
4747+ artistTracks,
4848+ artistAlbums,
4549};
+3-1
rockskyapi/rocksky-auth/src/schema/scrobbles.ts
···11-import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
11+import { integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
2233import { InferInsertModel, InferSelectModel } from "drizzle-orm";
44import albums from "./albums";
···1414 artistId: text("artist_id").references(() => artists.id),
1515 uri: text("uri").unique(),
1616 createdAt: timestamp("xata_createdat").defaultNow().notNull(),
1717+ updatedAt: timestamp("xata_updatedat").defaultNow().notNull(),
1818+ xataVersion: integer("xata_version"),
1719 timestamp: timestamp("timestamp").defaultNow().notNull(),
1820});
1921