1"""What roles and classes the guild is recruiting for, as set by officers."""
2
3from advanced_alchemy.base import UUIDAuditBase
4from advanced_alchemy.types import JsonB
5from sqlalchemy import BigInteger
6from sqlalchemy.orm import Mapped, mapped_column
7
8
[docs]
9class RecruitingNeeds(UUIDAuditBase):
10 """One row per guild: the roles and classes officers have marked as wanted right now."""
11
12 __tablename__ = "recruiting_needs"
13 __table_args__ = {"comment": "What roles and classes the guild is recruiting for, set by officers."}
14
15 guild_id: Mapped[int] = mapped_column(BigInteger, unique=True, index=True)
16
17 roles: Mapped[list[dict]] = mapped_column(JsonB, default=list)
18 classes: Mapped[list[dict]] = mapped_column(JsonB, default=list)