Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Changing prisma schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinrouillard committed Oct 28, 2022
1 parent 6b6fc85 commit b2bafb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ model spotify_devices {
}

model spotify_history {
id String @id
id String
type String @default("track")
name String
artists Json[]
Expand All @@ -24,4 +24,6 @@ model spotify_history {
device Int @default(autoincrement())
listened_at DateTime @default(now()) @db.Timestamptz(6)
spotify_devices spotify_devices @relation(fields: [device], references: [id], onDelete: NoAction, onUpdate: NoAction)
@@id([id, listened_at])
}

0 comments on commit b2bafb9

Please sign in to comment.