11 lines
240 B
Go
11 lines
240 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Model struct {
|
|
ID uint `json:"id" gorm:"primarykey"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
DeletedAt *time.Time `json:"deletedAt" gorm:"index"`
|
|
}
|