gtsmodel

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	bun.BaseModel           `bun:"table:new_accounts"`
	ID                      string           `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
	CreatedAt               time.Time        `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
	UpdatedAt               time.Time        `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
	FetchedAt               time.Time        `bun:"type:timestamptz,nullzero"`
	Username                string           `bun:",nullzero,notnull,unique:accounts_username_domain_uniq"`
	Domain                  string           `bun:",nullzero,unique:accounts_username_domain_uniq"`
	AvatarMediaAttachmentID string           `bun:"type:CHAR(26),nullzero"`
	AvatarRemoteURL         string           `bun:",nullzero"`
	HeaderMediaAttachmentID string           `bun:"type:CHAR(26),nullzero"`
	HeaderRemoteURL         string           `bun:",nullzero"`
	DisplayName             string           `bun:",nullzero"`
	EmojiIDs                []string         `bun:"emojis,array"`
	Fields                  []*common.Field  `bun:",nullzero"`
	FieldsRaw               []*common.Field  `bun:",nullzero"`
	Note                    string           `bun:",nullzero"`
	NoteRaw                 string           `bun:",nullzero"`
	MemorializedAt          time.Time        `bun:"type:timestamptz,nullzero"`
	AlsoKnownAsURIs         []string         `bun:"also_known_as_uris,array"`
	MovedToURI              string           `bun:",nullzero"`
	MoveID                  string           `bun:"type:CHAR(26),nullzero"`
	Locked                  *bool            `bun:",nullzero,notnull,default:true"`
	Discoverable            *bool            `bun:",nullzero,notnull,default:false"`
	URI                     string           `bun:",nullzero,notnull,unique"`
	URL                     string           `bun:",nullzero"`
	InboxURI                string           `bun:",nullzero"`
	SharedInboxURI          *string          `bun:""`
	OutboxURI               string           `bun:",nullzero"`
	FollowingURI            string           `bun:",nullzero"`
	FollowersURI            string           `bun:",nullzero"`
	FeaturedCollectionURI   string           `bun:",nullzero"`
	ActorType               AccountActorType `bun:",nullzero,notnull"`
	PrivateKey              *rsa.PrivateKey  `bun:""`
	PublicKey               *rsa.PublicKey   `bun:",notnull"`
	PublicKeyURI            string           `bun:",nullzero,notnull,unique"`
	PublicKeyExpiresAt      time.Time        `bun:"type:timestamptz,nullzero"`
	SensitizedAt            time.Time        `bun:"type:timestamptz,nullzero"`
	SilencedAt              time.Time        `bun:"type:timestamptz,nullzero"`
	SuspendedAt             time.Time        `bun:"type:timestamptz,nullzero"`
	SuspensionOrigin        string           `bun:"type:CHAR(26),nullzero"`
}

Jump to

Keyboard shortcuts

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