- build: somewhat polished dockerization setup - build: io/fs migrations with `golang-migrate` - feat: automatic init. admin account creation (.env creds) - feat(routers): combined user & token routers into single auth router - feat(routers): improved route layouts (`Routes`) - feat(middlewares): removed redundant `userCtx` middleware - fix(schema): note <-> note_versions relation (versioning) - feat(queries): removed redundant rollback functionality - feat(queries): combined duplicate version check & insertion/creation - tests: decreased redundancy by removing 'unnecessary' unit tests - refactor: hid internal packages behind `server/internal` - docs: notes & auth handler comments
25 lines
578 B
YAML
25 lines
578 B
YAML
version: "2"
|
|
|
|
sql:
|
|
- engine: "postgresql"
|
|
queries: "./queries/"
|
|
schema: "./migrations/"
|
|
gen:
|
|
go:
|
|
package: "data"
|
|
out: "../internal/data"
|
|
sql_package: "pgx/v5"
|
|
emit_json_tags: true
|
|
overrides:
|
|
- db_type: "timestamptz"
|
|
go_type:
|
|
type: "time.Time"
|
|
- db_type: "timestamptz"
|
|
nullable: true
|
|
go_type:
|
|
type: "*time.Time"
|
|
- db_type: "uuid"
|
|
go_type:
|
|
import: "github.com/google/uuid"
|
|
type: "UUID"
|