json tags
This commit is contained in:
parent
70efb513dd
commit
ce0720d881
@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
// EntityBase contains common columns for all tables.
|
// EntityBase contains common columns for all tables.
|
||||||
type EntityBase struct {
|
type EntityBase struct {
|
||||||
ID uuid.UUID `gorm:"type:uuid;primary_key;"`
|
ID uuid.UUID `gorm:"type:uuid;primary_key;" json:"id"`
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time `json:"created_at"`
|
||||||
UpdatedAt *time.Time
|
UpdatedAt *time.Time `json:"updated_at"`
|
||||||
//DeletedAt *time.Time
|
//DeletedAt *time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user