SDK v3 #8
@ -4,7 +4,7 @@ package models
|
||||
type Source struct {
|
||||
BaseModel[SourceID]
|
||||
DisplayName string `json:"display_name" `
|
||||
Domain string `json:"domain" gorm:"not null;unique"`
|
||||
Domain SourceDomain `json:"domain" gorm:"not null;unique"`
|
||||
Icon string `json:"icon" gorm:"not null"`
|
||||
UserSources []UserSource `json:"-" gorm:"foreignKey:SourceID"`
|
||||
References []PostReference `json:"references" gorm:"foreignKey:SourceID"`
|
||||
|
Loading…
Reference in New Issue
Block a user