phase 2 initial test
This commit is contained in:
@@ -3,13 +3,13 @@ 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"`
|
||||
ID int64 `xorm:"pk autoincr" json:"id"`
|
||||
UserID int64 `xorm:"notnull unique index" json:"userId"`
|
||||
APID string `xorm:"notnull unique varchar(500)" json:"apId"`
|
||||
InboxURL string `xorm:"notnull varchar(500)" json:"inboxUrl"`
|
||||
OutboxURL string `xorm:"notnull varchar(500)" json:"outboxUrl"`
|
||||
PublicKey string `xorm:"text notnull" json:"publicKey"`
|
||||
PrivateKey string `xorm:"text notnull" json:"-"`
|
||||
CreatedAt time.Time `xorm:"created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user