package
Version:
v0.0.0-...-8e2a637
Opens a new window with list of versions in this module.
Published: Jul 9, 2020
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DB returns the database instance
type DBInstance struct {
Initializer func() *gorm.DB
}
DBInstance is a singleton DB instance
Instance gets the singleton instance
type User struct {
ID uint `gorm:"primary_key" json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"-"`
CreatedAt time.Time `json:"-"`
UpdatedAt time.Time `json:"-"`
}
User the user model
Source Files
¶
Click to show internal directories.
Click to hide internal directories.