eg
This commit is contained in:
14
model/base.go
Normal file
14
model/base.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type CrudBase struct {
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type IDBase struct {
|
||||
ID int `gorm:"primary_key"`
|
||||
}
|
||||
Reference in New Issue
Block a user