diff --git a/api/models/project.py b/api/models/project.py index 255284f6f..8c7bc0235 100644 --- a/api/models/project.py +++ b/api/models/project.py @@ -12,7 +12,7 @@ class Project(Base): autoincrement=True, nullable=False, ) - activation = Column(Boolean, default=True, nullable=False) + is_active = Column("activation", Boolean, default=True, nullable=False) init = Column(Date, nullable=True) end = Column("_end", Date, nullable=True) invoice = Column(Double, nullable=True) diff --git a/api/schemas/project.py b/api/schemas/project.py index 5289e7980..85881a452 100644 --- a/api/schemas/project.py +++ b/api/schemas/project.py @@ -6,7 +6,7 @@ class Project(BaseModel): id: str - activation: bool + is_active: bool init: Optional[date] end: Optional[date] invoice: Optional[float]