diamond-orm/document.go

16 lines
361 B
Go

package orm
import "time"
// Document - embed this into your structs anonymously to specify
// model parameters like table name via struct tags
type Document struct {
Created time.Time `json:"createdAt" tstype:"Date"`
Modified time.Time `json:"modifiedAt" tstype:"Date"`
}
// SaveOptions - unused (for now)
type SaveOptions struct {
SetTimestamps bool
}