Discover Packages
github.com/yyle88/gormcngen
internal
examples
example1
package
Version:
v1.0.35
Opens a new window with list of versions in this module.
Published: Dec 11, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Example struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"not null,type:text"`
CreatedAt time .Time `gorm:"autoCreateTime"`
UpdatedAt time .Time `gorm:"autoUpdateTime"`
}
type Person struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"not null,type:text"`
BirthDate string
Gender bool
CreatedAt time .Time `gorm:"autoCreateTime"`
UpdatedAt time .Time `gorm:"autoUpdateTime"`
}
func (*Person ) Columns() *personColumns
Source Files
¶
Click to show internal directories.
Click to hide internal directories.