userdm

package
v0.0.0-...-e8a9512 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 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 Student

type Student struct {
	StudentID   uint64 `gorm:"primaryKey;autoIncrement" json:"StudentID"`
	StudentCode string `gorm:"type:varchar(64);not null;unique" json:"StudentCode"`
	UserID      uint64 `gorm:"type:bigint;not null" json:"UserID"`
}

type User

type User struct {
	UserID       uint64 `gorm:"primaryKey;autoIncrement" json:"UserID"`
	UserEmail    string `gorm:"type:varchar(64);not null;unique" json:"UserEmail"`
	FirstName    string `gorm:"type:varchar(64)" json:"FirstName"`
	LastName     string `gorm:"type:varchar(64)" json:"LastName"`
	Sex          string `gorm:"type:varchar(64)" json:"Sex"`
	PhoneNumber  string `gorm:"type:varchar(64);not null;unique" json:"PhoneNumber"`
	Password     string `gorm:"varchar(100);not null" json:"Password"`
	ActiveStatus bool   `gorm:"type:bool;default:true" json:"ActiveStatus"`
	LoginType    string `gorm:"varchar(64);not null" json:"LoginType"`
	Role         string `gorm:"varchar(64);not null" json:"Role"`
	CreatedBy    string `gorm:"type:varchar(64)" json:"CreatedBy"`
	UpdatedBy    string `gorm:"type:varchar(64)" json:"UpdatedBy"`
	CreatedAt    time.Time
	UpdatedAt    time.Time
	DeletedAt    gorm.DeletedAt `gorm:"index"`
}

func (User) TableName

func (u User) TableName() string

Jump to

Keyboard shortcuts

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