new file: main_dc/yalarba/api_es/internal/models/base.go

add base model into easysite102.ru
This commit is contained in:
2026-01-22 04:03:00 +05:00
parent e1d801d96e
commit 9ee12e4c34
@@ -0,0 +1,12 @@
package models
import (
"gorm.io/gorm"
"time"
)
type Base struct {
ID uint `gorm:"primaryKey" json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`