models

package
v0.0.0-...-c0edeec Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: AGPL-3.0 Imports: 3 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 {
	BaseModel

	Name         string            `json:"name" gorm:"uniqueIndex"`
	Nick         string            `json:"nick"`
	Description  string            `json:"description"`
	Avatar       string            `json:"avatar"`
	Banner       string            `json:"banner"`
	EmailAddress string            `json:"email"`
	ConfirmedAt  *time.Time        `json:"confirmed_at"`
	SuspendedAt  *time.Time        `json:"suspended_at"`
	PermNodes    datatypes.JSONMap `json:"perm_nodes"`
}

type BaseModel

type BaseModel struct {
	ID        uint           `json:"id" gorm:"primaryKey"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"`
}

type JSONMap

type JSONMap = datatypes.JSONType[map[string]any]

Jump to

Keyboard shortcuts

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