bd

package
v0.0.0-...-8b798cd Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb() *gorm.DB

Types

type PaisEmp

type PaisEmp struct {
	Id         int `gorm:"AUTO_INCREMENT" form:"id" json:"id"`
	NombrePais string
}

type TipoIdentificacion

type TipoIdentificacion struct {
	Id         int `gorm:"AUTO_INCREMENT" form:"id" json:"id"`
	NombreTipo string
}

type Users

type Users struct {
	Id              int    `gorm:"AUTO_INCREMENT" form:"id" json:"id"`
	Nombre          string `gorm:"not null" form:"nombre" json:"nombre"`
	OtrosNombres    string `gorm:"not null" form:"otrosnombres" json:"otrosnombres"`
	PrimerApellido  string `gorm:"not null" form:"primerapellido" json:"primerapellido"`
	SegundoApellido string `gorm:"not null" form:"segundoapellido" json:"segundoapellido"`
	Idpais          int    `gorm:"not null" form:"idpais" json:"idpais"`
	IdTipoIdent     int    `gorm:"not null" form:"idtipoident" json:"idtipoident"`
	Correo          string `gorm:"not null" form:"correo" json:"correo"`
}

func (*Users) CrearCorreo

func (usuario *Users) CrearCorreo()

Jump to

Keyboard shortcuts

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