fix products listing
This commit is contained in:
38
app/model/dbmodel/ps_smarty_cache.go
Normal file
38
app/model/dbmodel/ps_smarty_cache.go
Normal file
@@ -0,0 +1,38 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsSmartyCache = "ps_smarty_cache"
|
||||
|
||||
// PsSmartyCache mapped from table <ps_smarty_cache>
|
||||
type PsSmartyCache struct {
|
||||
IDSmartyCache string `gorm:"column:id_smarty_cache;primaryKey" json:"id_smarty_cache"`
|
||||
Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"`
|
||||
CacheID *string `gorm:"column:cache_id;index:cache_id,priority:1" json:"cache_id"`
|
||||
Modified time.Time `gorm:"column:modified;not null;index:modified,priority:1;default:current_timestamp()" json:"modified"`
|
||||
Content string `gorm:"column:content;not null" json:"content"`
|
||||
}
|
||||
|
||||
// TableName PsSmartyCache's table name
|
||||
func (*PsSmartyCache) TableName() string {
|
||||
return TableNamePsSmartyCache
|
||||
}
|
||||
|
||||
var PsSmartyCacheCols = struct {
|
||||
IDSmartyCache gormcol.Field
|
||||
Name gormcol.Field
|
||||
CacheID gormcol.Field
|
||||
Modified gormcol.Field
|
||||
Content gormcol.Field
|
||||
}{
|
||||
IDSmartyCache: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "id_smarty_cache"),
|
||||
Name: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "name"),
|
||||
CacheID: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "cache_id"),
|
||||
Modified: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "modified"),
|
||||
Content: gormcol.Field{}.Set((&PsSmartyCache{}).TableName(), "content"),
|
||||
}
|
||||
Reference in New Issue
Block a user