Aller au contenu

Models

Status: Placeholder — to be developed. Last reviewed:

Scope

Conventions for Django models: which abstract base to inherit from, field naming, choices vs. enums, __str__ style, Meta ordering, soft-delete handling, when a manager is justified.

Sources to mine when writing this

  • apps/core/models.pyTimeStampedModel, AuditModel, SoftDeleteModel definitions and intended usage.
  • Models in well-curated apps (e.g. apps/entities/, apps/dentists/) as reference implementations.
  • docs/entity-model.md — domain model spec, contains conventions for entity/ownership modelling.