Skip to content

Commit

Permalink
Rename activation for is_active
Browse files Browse the repository at this point in the history
It's a better naming pattern and more intuitive
  • Loading branch information
anarute committed Sep 15, 2023
1 parent 1cf87fa commit 4c57a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion api/schemas/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Project(BaseModel):
id: str
activation: bool
is_active: bool
init: Optional[date]
end: Optional[date]
invoice: Optional[float]
Expand Down

0 comments on commit 4c57a11

Please sign in to comment.