first round of files

This commit is contained in:
2026-05-06 23:13:06 +02:00
parent a30962474d
commit 2aa5d01307
24 changed files with 991 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package models
import "time"
type FederationActor struct {
ID int64 `xorm:"pk autoincr"`
UserID int64 `xorm:"notnull unique index"`
APID string `xorm:"notnull unique varchar(500)"` // https://instance/users/alice
InboxURL string `xorm:"notnull varchar(500)"`
OutboxURL string `xorm:"notnull varchar(500)"`
PublicKey string `xorm:"text notnull"`
PrivateKey string `xorm:"text notnull"` // AES-GCM encrypted at rest
CreatedAt time.Time `xorm:"created"`
UpdatedAt time.Time `xorm:"updated"`
}