Skip to content

src/dazzle_back/specs/entity.py

Generated: 2026-03-30T04:38:48.766148+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Entity specification types for BackendSpec.

Defines entities, fields, relationships, validators, and access rules.

Key Exports

  • ScalarType
  • FileFieldConfig
  • RichTextConfig
  • FieldType
  • ValidatorKind
  • ValidatorSpec
  • FieldSpec
  • RelationKind
  • OnDeleteAction
  • RelationSpec
  • TimeUnit
  • TransitionTrigger
  • TransitionGuardSpec
  • AutoTransitionSpec
  • StateTransitionSpec
  • StateMachineSpec
  • AggregateFunctionKind
  • ArithmeticOperatorKind
  • ComputedExprSpec
  • ComputedFieldSpec

Dependencies

Imports

  • __future__.annotations
  • enum.StrEnum
  • typing.Any
  • typing.Literal
  • pydantic.BaseModel
  • pydantic.ConfigDict
  • pydantic.Field
  • pydantic.field_validator
  • auth.EntityAccessSpec

Event Interactions

None detected.

Invariants and Assumptions

  • Validates: Enum value
  • Validates: Field name
  • Validates: Entity name

Tests

  • tests/unit/test_entity_list_projections.py
  • tests/unit/test_entity_resolution.py
  • tests/unit/test_entity_completeness.py
  • tests/unit/test_entity_event_triggering.py
  • tests/unit/test_system_entity_store.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.