initial commit

This commit is contained in:
m.zare
2026-04-10 18:25:21 +03:30
commit 77ca6c34a3
263 changed files with 34470 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package cache
import (
"time"
"gorm.io/datatypes"
)
type KVModel struct {
Key string `gorm:"primaryKey"`
Value datatypes.JSON
ExpiresAt *time.Time
CreatedAt time.Time
}
func (KVModel) TableName() string {
return "cache_kv"
}
type HashModel struct {
Key string `gorm:"primaryKey"`
Field string `gorm:"primaryKey"`
Value datatypes.JSON
CreatedAt time.Time
ExpiresAt *time.Time
}
func (HashModel) TableName() string {
return "cache_hash"
}