2021-04-19 17:42:19 +00: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 16:42:28 +00:00
|
|
|
ID string `pg:"type:CHAR(26),pk,notnull"`
|
2021-04-19 17:42:19 +00: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 16:42:28 +00:00
|
|
|
AccountID string `pg:"type:CHAR(26),notnull"`
|
2021-04-19 17:42:19 +00:00
|
|
|
// Who is targeted by this block?
|
2021-06-13 16:42:28 +00:00
|
|
|
TargetAccountID string `pg:"type:CHAR(26),notnull"`
|
2021-04-19 17:42:19 +00:00
|
|
|
// Activitypub URI for this block
|
|
|
|
URI string
|
|
|
|
}
|