models

package
v0.0.0-...-993f9dd Latest Latest
Warning

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

Go to latest
Published: Feb 23, 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 Invite

type Invite struct {
	core.BaseModel

	Email     string         `gorm:"column:email;type:text;not null;uniqueIndex:IDX_invite_email,priority:1" json:"email"`
	Accepted  bool           `gorm:"column:accepted;type:boolean;not null" json:"accepted"`
	Token     string         `gorm:"column:token;type:text;not null;index:IDX_invite_token,priority:1" json:"token"`
	ExpiresAt time.Time      `gorm:"column:expires_at;type:timestamp with time zone;not null" json:"expires_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp with time zone;index:IDX_invite_deleted_at,priority:1" json:"deleted_at"`
}

func (*Invite) TableName

func (*Invite) TableName() string

type User

type User struct {
	core.BaseModel

	FirstName string         `gorm:"column:first_name;type:text" json:"first_name"`
	LastName  string         `gorm:"column:last_name;type:text" json:"last_name"`
	Email     string         `gorm:"column:email;type:text;not null;index:IDX_user_email,priority:1" json:"email"`
	AvatarURL string         `gorm:"column:avatar_url;type:text" json:"avatar_url"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp with time zone;index:IDX_user_deleted_at,priority:1" json:"deleted_at"`
}

func (*User) TableName

func (*User) TableName() string

Jump to

Keyboard shortcuts

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