models

package
v0.0.0-...-7d7365f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 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 BasicModel

type BasicModel struct {
	ID        string         `gorm:"primarykey" json:"id"`
	CreatedAt time.Time      `gorm:"index" json:"created_at"`
	UpdatedAt time.Time      `gorm:"index" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}

type User

type User struct {
	BasicModel
	Account  string         `gorm:"type:varchar(300);uniqueIndex" json:"account"`
	Name     string         `gorm:"type:varchar(300)" json:"name"`
	Password string         `gorm:"type:varchar(600)" json:"password"`
	Role     generated.Role `gorm:"type:varchar(60);index" json:"role"`
}

Jump to

Keyboard shortcuts

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