models

package
v0.0.0-...-a4ecc4f Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status string
const (
	ActiveStatus  Status = "active"
	DeletedStatus Status = "deleted"
)

type User

type User struct {
	ID        int64  `gorm:"primary_key; auto_increment; not_null"`
	Username  string `gorm:"index:idx_username,unique"`
	Password  string `gorm:"not_null"`
	Status    Status `gorm:"default:active"`
	Currency  string `gorm:"default:usd"`
	Locale    string `gorm:"default:en"`
	CreatedAt int64  `gorm:"auto_create_time"`
	UpdatedAt int64  `gorm:"auto_update_time"`
}

Jump to

Keyboard shortcuts

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