Source code for lalandre_core.models.act_subjects

"""Pydantic model for the act-to-subject association table."""

from pydantic import BaseModel, ConfigDict, Field


[docs] class ActSubjects(BaseModel): """Represent one link between an act and a subject matter.""" model_config = ConfigDict(from_attributes=True) act_id: int = Field(..., description="Foreign key to acts") subject_id: int = Field(..., description="Foreign key to subject_matters")