added test for federated user

This commit is contained in:
Michael Jerger 2024-02-07 16:12:23 +01:00
parent 67f3f66be4
commit a702da69cc
5 changed files with 34 additions and 3 deletions

View file

@ -15,8 +15,7 @@ import (
// FederationHost data type
// swagger:model
type FederationHost struct {
ID int64 `xorm:"pk autoincr"`
// TODO: implement a toLower here & add a toLowerValidation
ID int64 `xorm:"pk autoincr"`
HostFqdn string `xorm:"host_fqdn UNIQUE INDEX VARCHAR(255) NOT NULL"`
NodeInfo NodeInfo `xorm:"extends NOT NULL"`
LatestActivity time.Time `xorm:"NOT NULL"`