2024-01-29 09:01:52 +00:00
|
|
|
package models
|
|
|
|
|
2024-01-30 07:57:49 +00:00
|
|
|
import "gorm.io/datatypes"
|
|
|
|
|
|
|
|
type ThirdClient struct {
|
|
|
|
BaseModel
|
|
|
|
|
2024-02-06 04:28:12 +00:00
|
|
|
Alias string `json:"alias" gorm:"uniqueIndex"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Secret string `json:"secret"`
|
|
|
|
Urls datatypes.JSONSlice[string] `json:"urls"`
|
|
|
|
Callbacks datatypes.JSONSlice[string] `json:"callbacks"`
|
2024-04-20 11:04:33 +00:00
|
|
|
Sessions []AuthTicket `json:"sessions" gorm:"foreignKey:ClientID"`
|
2024-02-06 04:28:12 +00:00
|
|
|
Notifications []Notification `json:"notifications" gorm:"foreignKey:SenderID"`
|
|
|
|
IsDraft bool `json:"is_draft"`
|
|
|
|
AccountID *uint `json:"account_id"`
|
2024-01-29 09:01:52 +00:00
|
|
|
}
|