modified: main_dc/yalarba/api_es/internal/models/account.go

modified:   main_dc/yalarba/api_es/internal/models/base.go
prettify it
This commit is contained in:
2026-01-22 15:48:34 +05:00
parent 4c5a7af5f5
commit ea87f024c3
2 changed files with 10 additions and 10 deletions
@@ -1,11 +1,11 @@
package models package models
import ( import ()
"gorm.io/gorm"
)
type Account struct { type Account struct {
/*ID, CreatedAt, UpdatedAt, DeletedAt (Update's history)*/
Base Base `gorm:"embedded"` Base Base `gorm:"embedded"`
FirstName string FirstName string
LastName string LastName string
Email string Email string
@@ -10,5 +10,5 @@ type Base struct {
CreatedAt time.Time `json:"created_at,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
UpdateHistories []UpdateHistory `gorm:"polymorphic:Model" json:"-"` // убран polymorphicValue UpdateHistories []UpdateHistory `gorm:"polymorphic:Model" json:"-"`
} }