because I got bored of customising my CV for every job
at main 25 lines 624 B view raw
1model RefreshToken { 2 id String @id @default(cuid()) 3 token String @unique 4 encryptedToken String 5 userId String 6 userAgent String? 7 ipAddress String? 8 deviceName String? 9 deviceType String? 10 country String? 11 city String? 12 usedAt DateTime? 13 expiresAt DateTime 14 createdAt DateTime @default(now()) 15 updatedAt DateTime @updatedAt 16 17 // Relation to User 18 user User @relation(fields: [userId], references: [id], onDelete: Cascade) 19 20 @@index([token]) 21 @@index([userId]) 22 @@index([expiresAt]) 23 @@map("refresh_tokens") 24} 25