From 6e05e8d3c07e5aa2539b2f189480b0e1d9fac11e Mon Sep 17 00:00:00 2001 From: Ana Rute Mendes Date: Wed, 13 Sep 2023 19:03:02 +0200 Subject: [PATCH] Rename activation for is_active It's a better naming pattern and more intuitive --- api/models/project.py | 2 +- api/schemas/project.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]