add models generation and josn print

This commit is contained in:
2026-03-26 02:22:14 +01:00
parent 7c5a993623
commit af2b276599
319 changed files with 7394 additions and 27 deletions

View File

@@ -0,0 +1,25 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package prestadb
import (
"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
}