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,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
LastName string
Email string
Password string
IsAdmin bool
}
@@ -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:"-"`
}