Skip to content

feat: add User entity with active / domainManager / name fields #45

@martinydeAI

Description

@martinydeAI

Summary

Add the User Doctrine entity — the application's first persistent
identity — with the minimum set of fields needed by upcoming auth and
authorisation work.

Fields

Field Type Purpose
active bool Whether the user is enabled.
domainManager bool Flag for users with elevated authority within their domain (e.g. a kommune-level admin). Distinct from a global admin role.
name string Display name.

The entity will grow (email, credentials, kommune association, …) as
the related issues land — keep this PR focused on the three fields above.

Scope

  • App\Entity\User under src/Entity/.
  • App\Repository\UserRepository.
  • Doctrine migration for the new table.
  • Smoke tests (once the PHPUnit setup from Add PHPUnit test suite and CI workflow #31 is in place).
  • CHANGELOG.md entry under ## [Unreleased] / Added.

Out of scope

Anything beyond the three fields above and the bare entity scaffolding.

Related issues

Acceptance

  • App\Entity\User exists with active: bool, domainManager: bool,
    name: string and matching getters/setters.
  • App\Repository\UserRepository exists.
  • Doctrine migration generated and committed.
  • CHANGELOG.md updated under ## [Unreleased] / Added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions