From ea87f024c32043ea5237cd815953846fd26c9369 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Thu, 22 Jan 2026 15:48:34 +0500 Subject: [PATCH] modified: main_dc/yalarba/api_es/internal/models/account.go modified: main_dc/yalarba/api_es/internal/models/base.go prettify it --- .../yalarba/api_es/internal/models/account.go | 18 +++++++++--------- main_dc/yalarba/api_es/internal/models/base.go | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/main_dc/yalarba/api_es/internal/models/account.go b/main_dc/yalarba/api_es/internal/models/account.go index 235bc49..a1e9d65 100644 --- a/main_dc/yalarba/api_es/internal/models/account.go +++ b/main_dc/yalarba/api_es/internal/models/account.go @@ -1,14 +1,14 @@ package models -import ( - "gorm.io/gorm" -) +import () type Account struct { - Base Base `gorm:"embedded"` + /*ID, CreatedAt, UpdatedAt, DeletedAt (Update's history)*/ + Base Base `gorm:"embedded"` + FirstName string - LastName string - Email string - Password string - IsAdmin bool -} \ No newline at end of file + LastName string + Email string + Password string + IsAdmin bool +} diff --git a/main_dc/yalarba/api_es/internal/models/base.go b/main_dc/yalarba/api_es/internal/models/base.go index ec30d15..568017d 100644 --- a/main_dc/yalarba/api_es/internal/models/base.go +++ b/main_dc/yalarba/api_es/internal/models/base.go @@ -10,5 +10,5 @@ type Base struct { CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` - UpdateHistories []UpdateHistory `gorm:"polymorphic:Model" json:"-"` // убран polymorphicValue + UpdateHistories []UpdateHistory `gorm:"polymorphic:Model" json:"-"` }