- store: SQLite (WAL, foreign keys ON, CGO-free driver) + the embedded migration runner; each module's migrations are name-prefixed (D-012) - audit: the append-only audit log; the actor threads via context (R-1) - users: the user_id/GUID/email anchors (D-013) - config: the YAML settings file (D-035) + validation - httpx: cookies · loopback detection · trusted-proxy XFF · CSRF · security headers · redaction - middleware: correlation id · audit · rate limiting - mail: the invite/recovery mailer seam - server: the core DOOR — the resolution switch, the dispatch registry (RegisterModule), the role gates, /setup · enroll/login · recovery flows, the reserved `static` workflow, and the loopback-only bootstrap (D-025)
9 lines
225 B
Go
9 lines
225 B
Go
package store
|
|
|
|
import "embed"
|
|
|
|
// coreMigrations holds MyDay's core schema, embedded into the binary so a
|
|
// single-file deploy needs no external SQL (D-003, D-028).
|
|
//
|
|
//go:embed migrations/*.sql
|
|
var coreMigrations embed.FS
|