package
Version:
v0.0.0-...-33d6753
Opens a new window with list of versions in this module.
Published: Sep 1, 2022
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
¶
type CreateProductInput struct {
Name string `json:"name"`
Description string `json:"description"`
Quantity int `json:"quantity"`
}
type Product struct {
ID int64 `json:"id" gorm:"primaryKey"`
Name string `json:"name"`
Description string `json:"description"`
Quantity int `json:"quantity"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"deleted_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.