gtsmodel

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InteractionLike     int = 0
	InteractionReply    int = 1
	InteractionAnnounce int = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InteractionRequest

type InteractionRequest struct {
	ID                   string    `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
	CreatedAt            time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
	StatusID             string    `bun:"type:CHAR(26),nullzero,notnull"`
	TargetAccountID      string    `bun:"type:CHAR(26),nullzero,notnull"`
	InteractingAccountID string    `bun:"type:CHAR(26),nullzero,notnull"`
	InteractionURI       string    `bun:",nullzero,notnull,unique"`
	InteractionType      int       `bun:",notnull"`
	AcceptedAt           time.Time `bun:"type:timestamptz,nullzero"`
	RejectedAt           time.Time `bun:"type:timestamptz,nullzero"`
	URI                  string    `bun:",nullzero,unique"`
}

Jump to

Keyboard shortcuts

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