Discover Packages
github.com/go-zepto/zepto
examples
linker
models
package
Version:
v1.0.0-beta.3
Opens a new window with list of versions in this module.
Published: Apr 10, 2021
License: MIT
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
Documentation
¶
type Book struct {
Model
Name string `json:"name"`
AuthorID *uint `json:"author_id"`
Author *Author `json:"author"`
PublishedAt *time .Time `json:"published_at"`
}
type Model struct {
ID uint `gorm:"primaryKey" json:"id"`
CreatedAt *time .Time `json:"created_at"`
UpdatedAt *time .Time `json:"updated_at"`
DeletedAt *time .Time `json:"deleted_at"`
}
gorm.Model base structure
Source Files
¶
Click to show internal directories.
Click to hide internal directories.