This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
otter-space-sdk/pkg/models/source.go
soxx 5aac1f2916
Some checks failed
Gitea Build Check / Build (push) Failing after 5m46s
feat(postgres): start implementing new generic orm model
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-25 09:09:18 +02:00

16 lines
376 B
Go

package models
// Source model
type Source struct {
BaseModel[AnthroveSourceID]
DisplayName string
Domain string `gorm:"not null;unique"`
Icon string `gorm:"not null"`
UserSources []UserSource `gorm:"foreignKey:SourceID"`
References []PostReference `gorm:"foreignKey:SourceID"`
}
func (Source) TableName() string {
return "Source"
}