mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Merge migrations, pull schedules daily
This commit is contained in:
parent
ac24688a73
commit
8fea65e4ad
23 changed files with 337 additions and 566 deletions
|
|
@ -10,4 +10,5 @@ class TaskType(enum.IntEnum):
|
|||
"""Enum for the different types of tasks"""
|
||||
|
||||
BIRTHDAYS = enum.auto()
|
||||
SCHEDULES = enum.auto()
|
||||
UFORA_ANNOUNCEMENTS = enum.auto()
|
||||
|
|
|
|||
|
|
@ -197,6 +197,8 @@ class UforaCourse(Base):
|
|||
name: str = Column(Text, nullable=False, unique=True)
|
||||
code: str = Column(Text, nullable=False, unique=True)
|
||||
year: int = Column(Integer, nullable=False)
|
||||
compulsory: bool = Column(Boolean, server_default="1", nullable=False)
|
||||
role_id: Optional[int] = Column(Integer, nullable=True, unique=False)
|
||||
log_announcements: bool = Column(Boolean, server_default="0", nullable=False)
|
||||
|
||||
announcements: list[UforaAnnouncement] = relationship(
|
||||
|
|
|
|||
0
database/scripts/__init__.py
Normal file
0
database/scripts/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue