models

package
v0.0.0-...-3444f4f Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 3 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 {
	IdUser      int    `gorm:"primary_key;auto_increment;Column:iduser" json:"idUser" form:"idUser"`
	CPF         string `gorm:"size:11;not null;unique;Column:cpf" json:"CPF" form:"CPF"`
	Gender      string `gorm:"size:15;not null;Column:gender" json:"gender" form:"gender"`
	DateOfBirth string `gorm:"not null;Column:dateofbirth" json:"dateOfBirth" form:"dateOfBirth"`
	Email       string `gorm:"size:150;not null;unique;Column:email" json:"email" form:"email"`
	FullName    string `gorm:"size:150;not null;Column:fullname" json:"fullName" form:"fullName"`
	Password    string `gorm:"size:255;not null;Column:password" json:"password" form:"password"`
}

func (*User) CreateUser

func (user *User) CreateUser() (*User, error)

func (*User) FindUser

func (user *User) FindUser() (*User, error)

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