model

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	bun.BaseModel `bun:"table:users"`

	ID            uint         `bun:"id,pk,autoincrement"`
	CreatedAt     time.Time    `bun:"created_at,nullzero,notnull,default:current_timestamp"`
	UpdatedAt     time.Time    `bun:"updated_at,nullzero,notnull,default:current_timestamp"`
	DeletedAt     bun.NullTime `bun:"deleted_at"`
	Name          string       `bun:"name,type:varchar(32),notnull,unique"`
	Password      string       `bun:"password,type:varchar(64),notnull"`
	AddedByUserID *uint        `bun:"added_by_user_id"`
	Initialized   bool         `bun:"initialized,notnull"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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