package
Version:
v0.0.0-...-7d7365f
Opens a new window with list of versions in this module.
Published: Aug 6, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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 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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.