package
Version:
v0.0.0-...-deb07d5
Opens a new window with list of versions in this module.
Published: Jul 14, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Base struct {
ID string `json:"id" gorm:"type:uuid;primary_key"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt time.Time `json:"deleted_at" sql:"index"`
}
type User struct {
Base
Name string `json:"name" gorm:"type:varchar(255)"`
Email string `json:"email" gorm:"type:varchar(255);unique_index"`
Password string `json:"-" gorm:"type:varchar(255)"`
Token string `json:"token" gorm:"type:varchar(255);unique_index"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.