13 lines
274 B
Go
13 lines
274 B
Go
package sqly
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// BaseModel have to be embeded in all your struct which reflect a table
|
|
type BaseModel struct {
|
|
ID string `json:"id"`
|
|
Updated time.Time `db:"updated_at" json:"updated_at"`
|
|
Created time.Time `db:"created_at" json:"created_at"`
|
|
}
|