mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-18 02:31:19 +10:00
feat: allow client-based web tokens
This commit is contained in:
@ -27,6 +27,7 @@ model Invitation {
|
||||
enum APITokenMode {
|
||||
User
|
||||
System
|
||||
Client
|
||||
}
|
||||
|
||||
model APIToken {
|
||||
@ -38,6 +39,9 @@ model APIToken {
|
||||
userId String?
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
|
||||
clientId String?
|
||||
client Client? @relation(fields: [clientId], references: [id], onDelete: Cascade)
|
||||
|
||||
acls String[]
|
||||
|
||||
@@index([token])
|
||||
|
||||
Reference in New Issue
Block a user