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