Grégoire Delattre 1197e6ce6c Move the tokens into the models
By the way, move he sqly package in the models as well
2020-03-02 13:07:04 +01:00

13 lines
276 B
Go

package models
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"`
}