mirror of
https://github.com/hanzoai/service-template.git
synced 2026-10-30 18:22:53 +00:00
github.com/hanzoai/template existed only as loose files: no .git, no history, no remote. Sweeps that look for a .git directory could not see it, and an rm -rf would have destroyed it with nothing to recover from. Committed as-is; no source modified. NOTE: no remote. This is still one copy in one place.
16 lines
590 B
Go
16 lines
590 B
Go
// Package models holds the service's domain types. Each type embeds
|
|
// orm.Model and uses `orm.Typed[T]` for queries — that is the ONE way to
|
|
// read/write per-(org,user) SQLite data.
|
|
//
|
|
// The skeleton ships one Example type so the layout is visible. Replace
|
|
// with your domain.
|
|
package models
|
|
|
|
// Example is the skeleton's placeholder domain type. Swap the body out
|
|
// for your real fields; keep the embedding pattern intact.
|
|
type Example struct {
|
|
ID string `db:"id" json:"id"`
|
|
Name string `db:"name" json:"name"`
|
|
CreatedAt int64 `db:"created_at" json:"created_at"`
|
|
}
|