gtsmodel

package
v0.20.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LikeRequestSuffix     = "#LikeRequest"
	ReplyRequestSuffix    = "#ReplyRequest"
	AnnounceRequestSuffix = "#AnnounceRequest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InteractionRequest

type InteractionRequest struct {
	// Used only for migration.
	bun.BaseModel `bun:"table:new_interaction_requests"`

	ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`

	// Renamed from "StatusID" to "TargetStatusID" in new model.
	TargetStatusID string `bun:"type:CHAR(26),nullzero,notnull"`

	TargetAccountID string `bun:"type:CHAR(26),nullzero,notnull"`

	InteractingAccountID string `bun:"type:CHAR(26),nullzero,notnull"`

	// Added in new model.
	InteractionRequestURI string `bun:",nullzero,notnull,unique"`

	InteractionURI string `bun:",nullzero,notnull,unique"`

	// Changed type from int to int16 in new model.
	InteractionType int16 `bun:",notnull"`

	// Added in new model.
	Polite *bool `bun:",nullzero,notnull,default:false"`

	AcceptedAt time.Time `bun:"type:timestamptz,nullzero"`

	RejectedAt time.Time `bun:"type:timestamptz,nullzero"`

	// Renamed from "URI" to "ResponseURI" in new model.
	ResponseURI string `bun:",nullzero,unique"`

	// Added in new model.
	AuthorizationURI string `bun:",nullzero,unique"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL