Connor McCutcheon
/ Skykit
model.go
go
package skykit
import "time"
type Model struct {
	DB        *Database
	ID        string
	CreatedAt time.Time
	UpdatedAt time.Time
}
func (m *Model) GetModel() *Model  { return m }
func (m *Model) SetDB(d *Database) { m.DB = d }
type Entity interface {
	GetModel() *Model
}
No comments yet.