model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: AGPL-3.0 Imports: 4 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,alias:u"`

	ID        int64           `bun:",pk,autoincrement"`
	Email     string          `bun:",notnull,unique"`
	Username  string          `bun:",notnull,unique"`
	Password  string          `bun:",notnull"`
	Meta      json.RawMessage `bun:",type:jsonb"`
	CreatedAt time.Time       `bun:",nullzero,notnull,default:current_timestamp"`
	DeletedAt time.Time       `bun:",soft_delete,nullzero"`
}

Jump to

Keyboard shortcuts

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