Skip to content

feat: add v4 foundation with shared models and migrator - #236

Merged
BK1031 merged 1 commit into
v4from
bk1031/v4-foundation
Nov 17, 2026
Merged

BK1031 merged 1 commit into
v4from
bk1031/v4-foundation

Conversation

@BK1031

@BK1031 BK1031 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor
  • Add Go workspace with pkg/ and migrator/ modules
  • Add pkg/id for prefixed GR ULIDs (usr, sa, aev)
  • Add shared models in pkg/model (Entity, User, UserPassword, AuthEvent) with schema-qualified table names
  • Add pkg/dbversion so services can report not-ready until required migrations are applied
  • Add pkg/logger slog setup
  • Add migrator CLI (status, up, up-to, down) on goose with a Postgres advisory lock
  • Add migration 00001 creating the auth schema: entities, users, user_passwords, auth_events
  • Add integration tests: model/schema drift, up/down round trip, constraints, schema version checks
  • Add test that fails if any model serializes a secret-looking field
  • Add docker-compose with localhost-bound Postgres; migrator only runs manually via the tools profile
  • Add CI workflow (gofmt, vet, race tests against Postgres, migrator image build) for v4
  • Add .gitignore

@BK1031
BK1031 merged commit aee45cd into v4 Nov 17, 2026
2 checks passed
@BK1031
BK1031 deleted the bk1031/v4-foundation branch November 17, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant