package
Version:
v0.0.0-...-252bcb0
Opens a new window with list of versions in this module.
Published: Dec 21, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Model struct {
ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"-"`
UpdatedAt time.Time `json:"-"`
DeletedAt *time.Time `sql:"index" json:"-"`
}
type Student struct {
Model
StudentId string `gorm:"varchar(16)" json:"student_id"`
Name string `gorm:"varchar(64)" json:"name"`
Grade float64 `gorm:"float" json:"grade"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.