package
Version:
v0.0.0-...-c833263
Opens a new window with list of versions in this module.
Published: Nov 3, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 11
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 uuid.UUID `json:"id";gorm:"primary_key;type:char(36);`
CreatedAt time.Time `json:"created_at";`
UpdatedAt time.Time `json:"updated_at";`
DeletedAt *time.Time `json:"-";`
}
Base contains common columns for all tables.
BeforeCreate will set a UUID rather than numeric ID.
type Chemical struct {
Base
Name string `json:"name"`
DescriptionLink string `json:"description_link"`
Slug string `json:"slug"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.