From 9ee12e4c342c473834cd11fbdcd5b2229cca5bd4 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Thu, 22 Jan 2026 04:03:00 +0500 Subject: [PATCH] new file: main_dc/yalarba/api_es/internal/models/base.go add base model into easysite102.ru --- main_dc/yalarba/api_es/internal/models/base.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 main_dc/yalarba/api_es/internal/models/base.go diff --git a/main_dc/yalarba/api_es/internal/models/base.go b/main_dc/yalarba/api_es/internal/models/base.go new file mode 100644 index 0000000..1d6445e --- /dev/null +++ b/main_dc/yalarba/api_es/internal/models/base.go @@ -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:"-"` \ No newline at end of file