Skip to content

Value objects, enums, and row normalization #30

Closed

Description

@somethingwithproof

Summary

Loose database values are normalized in one place, and domain values are typed.

Requirements

  • REQ-CODE-010 Domain values MUST be readonly classes built by named constructors.
  • REQ-CODE-011 Enumerated states MUST be string-backed enums stored as varchar, never as list positions.
  • REQ-CODE-012 fromRow() MUST be the only place database rows become domain objects.
  • REQ-CODE-013 fromRow() behavior on empty strings, NULL, and malformed values MUST be pinned by tests before logic depends on it.

Acceptance criteria

  • Row normalization tests cover every value object.

References

Dependencies

Activity

  1. somethingwithproof commented on Nov 15, 2026

    @somethingwithproof
    OwnerAuthor

    Done in #81 (merged as b3730b1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions