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:
@@ -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:"-"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user