30 lines
780 B
Go
30 lines
780 B
Go
package models
|
|
|
|
type AuthProviderOption struct {
|
|
Value string `json:"value"`
|
|
Label string `json:"label"`
|
|
Description string `json:"description"`
|
|
Enabled bool `json:"enabled"`
|
|
}
|
|
|
|
type AuthSession struct {
|
|
ID int64 `json:"id"`
|
|
UserID string `json:"userId"`
|
|
Username string `json:"username"`
|
|
Provider string `json:"provider"`
|
|
Token string `json:"token"`
|
|
CreatedAt string `json:"createdAt"`
|
|
ExpiresAt string `json:"expiresAt"`
|
|
Active bool `json:"active"`
|
|
}
|
|
|
|
type AuditLog struct {
|
|
ID int64 `json:"id"`
|
|
Actor string `json:"actor"`
|
|
Action string `json:"action"`
|
|
TargetType string `json:"targetType"`
|
|
TargetID string `json:"targetId"`
|
|
Detail string `json:"detail"`
|
|
CreatedAt string `json:"createdAt"`
|
|
}
|