remove HandoffToken table..
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-10 15:48:49 +09:00
parent c8391d0722
commit 6305d36b0d
-15
View File
@@ -40,7 +40,6 @@ model User {
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3)
refreshTokens RefreshToken[]
handoffTokens HandoffToken[]
affiliations UserAffiliation[]
userLicenses UserLicense[]
appRoles UserAppRole[]
@@ -160,17 +159,3 @@ model RefreshToken {
@@index([userId])
@@map("refresh_tokens")
}
model HandoffToken {
id String @id @default(uuid()) @db.Uuid
userId String @map("user_id") @db.Uuid
tokenHash String @unique @map("token_hash")
audienceApp String @map("audience_app")
expiresAt DateTime @map("expires_at") @db.Timestamptz(3)
usedAt DateTime? @map("used_at") @db.Timestamptz(3)
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@index([userId])
@@map("handoff_tokens")
}