2021-04-19 18:42:19 +01:00
|
|
|
package gtsmodel
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
// Block refers to the blocking of one account by another.
|
|
|
|
type Block struct {
|
|
|
|
// id of this block in the database
|
2021-06-13 17:42:28 +01:00
|
|
|
ID string `pg:"type:CHAR(26),pk,notnull"`
|
2021-04-19 18:42:19 +01:00
|
|
|
// When was this block created
|
|
|
|
CreatedAt time.Time `pg:"type:timestamp,notnull,default:now()"`
|
|
|
|
// When was this block updated
|
|
|
|
UpdatedAt time.Time `pg:"type:timestamp,notnull,default:now()"`
|
|
|
|
// Who created this block?
|
2021-06-13 17:42:28 +01:00
|
|
|
AccountID string `pg:"type:CHAR(26),notnull"`
|
2021-04-19 18:42:19 +01:00
|
|
|
// Who is targeted by this block?
|
2021-06-13 17:42:28 +01:00
|
|
|
TargetAccountID string `pg:"type:CHAR(26),notnull"`
|
2021-04-19 18:42:19 +01:00
|
|
|
// Activitypub URI for this block
|
|
|
|
URI string
|
|
|
|
}
|