models

package
v0.0.0-...-5646104 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 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 {
	Id        uuid.UUID `gorm:"type:text;not null"`
	CreatedAt time.Time `gorm:"not null;default:current_timestamp"`
	UpdatedAt time.Time `gorm:"not null;default:current_timestamp"`
	Username  string    `gorm:"type:text;not null"`
	Password  string    `gorm:"type:text;not null"`
}

func NewUser

func NewUser(id uuid.UUID, ca time.Time, ua time.Time, uname string, pass string) *User

func (*User) TableName

func (p *User) TableName() string

Jump to

Keyboard shortcuts

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