renamed: main_dc/yalarba/api_es/internal/models/account.go -> main_dc/yalarba/api_es/internal/models/new/account.go
renamed: main_dc/yalarba/api_es/internal/models/base.go -> main_dc/yalarba/api_es/internal/models/new/base.go renamed: main_dc/yalarba/api_es/internal/models/update_history.go -> main_dc/yalarba/api_es/internal/models/new/update_history.go rename
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Base struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
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:"-"`
|
||||
}
|
||||
Reference in New Issue
Block a user