package models

import "time"

type FederationActor struct {
	ID         int64     `xorm:"'id' pk autoincr"                     json:"id"`
	UserID     int64     `xorm:"'user_id' notnull unique index"       json:"userId"`
	APID       string    `xorm:"'ap_id' notnull unique varchar(500)"  json:"apId"`
	InboxURL   string    `xorm:"'inbox_url' notnull varchar(500)"     json:"inboxUrl"`
	OutboxURL  string    `xorm:"'outbox_url' notnull varchar(500)"    json:"outboxUrl"`
	PublicKey  string    `xorm:"'public_key' text notnull"            json:"publicKey"`
	PrivateKey string    `xorm:"'private_key' text notnull"           json:"-"`
	CreatedAt  time.Time `xorm:"'created_at' created"                 json:"createdAt"`
	UpdatedAt  time.Time `xorm:"'updated_at' updated"                 json:"updatedAt"`
}
