[WIP] Link hike to places
This commit is contained in:
@@ -140,6 +140,7 @@ class ApiTags(DocumentedStrEnum):
|
||||
|
||||
HIKES = "Hikes"
|
||||
ROUTES = "Routes"
|
||||
PLACES = "Places"
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from datetime import timedelta
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from sqlmodel import (
|
||||
@@ -14,10 +13,12 @@ from .base import (
|
||||
DocumentedIntFlag,
|
||||
DocumentedStrFlagType,
|
||||
auto_enum,
|
||||
RowId,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .route import Route
|
||||
from .team import Team
|
||||
|
||||
# region # Hike ################################################################
|
||||
|
||||
@@ -63,6 +64,21 @@ class HikeTimeCalculation(DocumentedIntFlag):
|
||||
# ##############################################################################
|
||||
|
||||
|
||||
class HikeVisitLogType(DocumentedStrEnum):
|
||||
FIRST_VISIT = auto_enum()
|
||||
LAST_VISIT = auto_enum()
|
||||
|
||||
LONGEST_VISIT = auto_enum()
|
||||
SHORTEST_VISIT = auto_enum()
|
||||
|
||||
EACH_VISIT = auto_enum()
|
||||
|
||||
DISABLE_VISIT_LOGING = auto_enum()
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
|
||||
|
||||
class HikeBase(
|
||||
mixin.Name,
|
||||
mixin.Contact,
|
||||
@@ -94,6 +110,11 @@ class HikeBase(
|
||||
sa_type=DocumentedStrFlagType(HikeTimeCalculation),
|
||||
)
|
||||
|
||||
visit_log_type: HikeVisitLogType = Field(
|
||||
default=HikeVisitLogType.FIRST_VISIT,
|
||||
nullable=False,
|
||||
)
|
||||
|
||||
min_time_points: int | None = Field(
|
||||
default=0,
|
||||
ge=0,
|
||||
@@ -123,6 +144,7 @@ class HikeUpdate(HikeBase):
|
||||
is_multi_day: bool | None = Field(default=None) # type: ignore
|
||||
team_page: HikeTeamPage | None = Field(default=None) # type: ignore
|
||||
time_calculation: HikeTimeCalculation | None = Field(default=None) # type: ignore
|
||||
visit_log_type: HikeVisitLogType | None = Field(default=None) # type: ignore
|
||||
|
||||
|
||||
class Hike(mixin.RowId, HikeBase, table=True):
|
||||
@@ -132,6 +154,7 @@ class Hike(mixin.RowId, HikeBase, table=True):
|
||||
|
||||
# --- back_populates links -------------------------------------------------
|
||||
routes: list["Route"] = Relationship(back_populates="hike", cascade_delete=True)
|
||||
teams: list["HikeTeamLink"] = Relationship(back_populates="hike", cascade_delete=True)
|
||||
|
||||
# --- CRUD actions ---------------------------------------------------------
|
||||
@classmethod
|
||||
@@ -167,3 +190,87 @@ class HikesPublic(BaseSQLModel):
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region # Hike / Team #########################################################
|
||||
|
||||
class HikeTeamLinkBase(
|
||||
BaseSQLModel,
|
||||
):
|
||||
hike_id: RowId = Field(
|
||||
nullable=False,
|
||||
foreign_key="hike.id",
|
||||
)
|
||||
|
||||
team_id: RowId = Field(
|
||||
nullable=False,
|
||||
foreign_key="team.id",
|
||||
)
|
||||
|
||||
route_id: RowId = Field(
|
||||
nullable=False,
|
||||
foreign_key="route.id",
|
||||
)
|
||||
|
||||
start_place_id: RowId | None = Field(
|
||||
default=None,
|
||||
nullable=True,
|
||||
foreign_key="place.id",
|
||||
)
|
||||
|
||||
|
||||
# Properties to receive via API on creation
|
||||
class HikeTeamLinkCreate(HikeTeamLinkBase):
|
||||
pass
|
||||
|
||||
|
||||
# Properties to receive via API on update, all are optional
|
||||
class HikeTeamLinkUpdate(HikeTeamLinkBase):
|
||||
hike_id: RowId | None = Field(default=None, nullable=True) # type: ignore
|
||||
team_id: RowId | None = Field(default=None, nullable=True) # type: ignore
|
||||
route_id: RowId | None = Field(default=None, nullable=True) # type: ignore
|
||||
|
||||
|
||||
class HikeTeamLink(mixin.RowId, HikeTeamLinkBase, table=True):
|
||||
# --- database only items --------------------------------------------------
|
||||
|
||||
# --- read only items ------------------------------------------------------
|
||||
|
||||
# --- back_populates links -------------------------------------------------
|
||||
team: "Team" = Relationship(back_populates="hike_links")
|
||||
hike: "Hike" = Relationship(back_populates="teams")
|
||||
route: "Route" = Relationship(back_populates="teams")
|
||||
# start_place: "Place" = Relationship(back_populates="teams")
|
||||
|
||||
# --- CRUD actions ---------------------------------------------------------
|
||||
@classmethod
|
||||
def create(cls, *, session: Session, create_obj: HikeTeamLinkCreate) -> "HikeTeamLink":
|
||||
data_obj = create_obj.model_dump(exclude_unset=True)
|
||||
|
||||
db_obj = cls.model_validate(data_obj)
|
||||
session.add(db_obj)
|
||||
session.commit()
|
||||
session.refresh(db_obj)
|
||||
return db_obj
|
||||
|
||||
@classmethod
|
||||
def update(
|
||||
cls, *, session: Session, db_obj: "HikeTeamLink", in_obj: HikeTeamLinkUpdate
|
||||
) -> "HikeTeamLink":
|
||||
data_obj = in_obj.model_dump(exclude_unset=True)
|
||||
db_obj.sqlmodel_update(data_obj)
|
||||
session.add(db_obj)
|
||||
session.commit()
|
||||
session.refresh(db_obj)
|
||||
return db_obj
|
||||
|
||||
|
||||
# Properties to return via API, id is always required
|
||||
class HikeTeamLinkPublic(mixin.RowIdPublic, HikeTeamLinkBase):
|
||||
pass
|
||||
|
||||
|
||||
class HikeTeamLinksPublic(BaseSQLModel):
|
||||
data: list[HikeTeamLinkPublic]
|
||||
count: int
|
||||
|
||||
# endregion
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import uuid
|
||||
from datetime import datetime, date
|
||||
from decimal import Decimal
|
||||
|
||||
from pydantic import BaseModel, EmailStr
|
||||
from sqlmodel import (
|
||||
@@ -14,6 +15,10 @@ class Name(BaseModel):
|
||||
name: str | None = Field(default=None, nullable=False, unique=False, max_length=255)
|
||||
|
||||
|
||||
class NameOveride(BaseModel):
|
||||
name_overide: str | None = Field(default=None, nullable=True, unique=False, max_length=255)
|
||||
|
||||
|
||||
class FullName(BaseModel):
|
||||
full_name: str | None = Field(default=None, nullable=True, max_length=255)
|
||||
|
||||
@@ -31,7 +36,12 @@ class ShortName(BaseModel):
|
||||
|
||||
|
||||
class ShortNameUpdate(ShortName):
|
||||
short_name: str | None = Field(default=None, max_length=8)
|
||||
#TODO: Waarom is deze verplicht ???
|
||||
short_name: str | None = Field(default=None, nullable=True, max_length=8)
|
||||
|
||||
|
||||
class ShortNameOveride(ShortName):
|
||||
short_name_overide: str | None = Field(default=None, nullable=True, max_length=8)
|
||||
|
||||
|
||||
class Contact(BaseModel):
|
||||
@@ -120,3 +130,17 @@ class Birthday(BaseModel):
|
||||
class Created(BaseModel):
|
||||
created_at: datetime | None = Field(nullable=False, default_factory=lambda: datetime.now(settings.tz_info))
|
||||
created_by: RowIdType | None = Field(default=None, nullable=True, foreign_key="user.id", ondelete="SET NULL")
|
||||
|
||||
|
||||
class Location(BaseModel):
|
||||
latitude: Decimal | None = Field(default=None, nullable=True, max_digits=11, decimal_places=8, description="decimal degrees")
|
||||
longitude: Decimal | None = Field(default=None, nullable=True, max_digits=11, decimal_places=8, description="decimal degrees")
|
||||
|
||||
|
||||
class LocationWithRadius(Location):
|
||||
radius: int | None = Field(default=None, nullable=True, description="Radius in meters")
|
||||
|
||||
|
||||
class QuestionInfo:
|
||||
question_file: str | None = Field(default=None, nullable=True, max_length=255)
|
||||
answer_file: str | None = Field(default=None, nullable=True, max_length=255)
|
||||
|
||||
179
backend/app/models/place.py
Normal file
179
backend/app/models/place.py
Normal file
@@ -0,0 +1,179 @@
|
||||
from datetime import timedelta
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from sqlalchemy import Interval
|
||||
from sqlmodel import (
|
||||
Session,
|
||||
Relationship,
|
||||
Field,
|
||||
)
|
||||
|
||||
from . import mixin
|
||||
from .base import (
|
||||
BaseSQLModel,
|
||||
DocumentedStrEnum,
|
||||
auto_enum,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .route import Route, RoutePart
|
||||
|
||||
# region # Place ###############################################################
|
||||
|
||||
|
||||
class PlaceType(DocumentedStrEnum):
|
||||
START = auto_enum() # Only check in (make GPS available) (TODO: determine based on route)
|
||||
PLACE = auto_enum() # Check in / Check out (subtract time between in&out)
|
||||
TAG = auto_enum() # Instant in&out at the same time
|
||||
FINISH = auto_enum() # Only check out (and disable GPS) (TODO: determine based on route)
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
|
||||
|
||||
class VisitedCountType(DocumentedStrEnum):
|
||||
NONE = auto_enum()
|
||||
ONE_VISIT = auto_enum()
|
||||
EACH_VISIT = auto_enum()
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
|
||||
|
||||
class PlaceBase(
|
||||
mixin.Name,
|
||||
mixin.ShortName,
|
||||
mixin.Contact,
|
||||
mixin.Description,
|
||||
mixin.LocationWithRadius,
|
||||
mixin.QuestionInfo,
|
||||
BaseSQLModel,
|
||||
):
|
||||
place_type: PlaceType = Field(
|
||||
default=PlaceType.PLACE,
|
||||
nullable=False,
|
||||
)
|
||||
|
||||
max_points: int | None = Field(
|
||||
default=None,
|
||||
ge=0,
|
||||
description="Max points for this place, None will disable scoring at this place",
|
||||
)
|
||||
|
||||
visited_points: int | None = Field(
|
||||
default=None,
|
||||
ge=0,
|
||||
description="Visited points for this place, None will disable this function",
|
||||
)
|
||||
visited_count_type: VisitedCountType = Field(
|
||||
default=VisitedCountType.NONE,
|
||||
)
|
||||
|
||||
skipped_penalty_points: int | None = Field(
|
||||
default=None,
|
||||
ge=0,
|
||||
description="Skipped penalty for this place, amount will be subtracted, None will disable this function",
|
||||
)
|
||||
|
||||
place_time: timedelta | None = Field(
|
||||
default=None,
|
||||
nullable=True,
|
||||
description="Time for question at this place during testing.",
|
||||
sa_type=Interval,
|
||||
)
|
||||
|
||||
|
||||
|
||||
# Properties to receive via API on creation
|
||||
class PlaceCreate(PlaceBase):
|
||||
pass
|
||||
|
||||
|
||||
# Properties to receive via API on update, all are optional
|
||||
class PlaceUpdate(
|
||||
PlaceBase,
|
||||
mixin.ShortNameUpdate,
|
||||
):
|
||||
place_type: PlaceType | None = Field(default=None) # type: ignore
|
||||
visited_count_type: VisitedCountType | None = Field(default=None) # type: ignore
|
||||
|
||||
|
||||
class Place(mixin.RowId, PlaceBase, table=True):
|
||||
# --- database only items --------------------------------------------------
|
||||
|
||||
# --- read only items ------------------------------------------------------
|
||||
|
||||
# --- back_populates links -------------------------------------------------
|
||||
routes: list["Route"] = Relationship(
|
||||
sa_relationship_kwargs={
|
||||
"primaryjoin": "or_("
|
||||
"Place.id==Route.start_id,"
|
||||
"Place.id==Route.finish_id,"
|
||||
"Place.id==RoutePart.place_id,"
|
||||
"Place.id==RoutePart.to_place_id,"
|
||||
")",
|
||||
"foreign_keys": "["
|
||||
"Route.start_id,"
|
||||
"Route.finish_id,"
|
||||
"RoutePart.place_id,"
|
||||
"RoutePart.to_place_id"
|
||||
"]",
|
||||
"viewonly": True,
|
||||
},
|
||||
)
|
||||
|
||||
next_places: list["Place"] = Relationship(
|
||||
back_populates="previous_place",
|
||||
sa_relationship_kwargs={
|
||||
"secondary": "route_part",
|
||||
"primaryjoin": "Place.id == RoutePart.place_id",
|
||||
"secondaryjoin": "Place.id == RoutePart.to_place_id",
|
||||
"viewonly": True,
|
||||
},
|
||||
)
|
||||
previous_place: list["Place"] = Relationship(
|
||||
back_populates="next_places",
|
||||
sa_relationship_kwargs={
|
||||
"secondary": "route_part",
|
||||
"primaryjoin": "Place.id == RoutePart.to_place_id",
|
||||
"secondaryjoin": "Place.id == RoutePart.place_id",
|
||||
"viewonly": True,
|
||||
},
|
||||
)
|
||||
|
||||
route_parts: list["RoutePart"] = Relationship(back_populates="place", sa_relationship_kwargs={"foreign_keys": "[RoutePart.place_id]"})
|
||||
|
||||
# --- CRUD actions ---------------------------------------------------------
|
||||
@classmethod
|
||||
def create(cls, *, session: Session, create_obj: PlaceCreate) -> "Place":
|
||||
data_obj = create_obj.model_dump(exclude_unset=True)
|
||||
|
||||
db_obj = cls.model_validate(data_obj)
|
||||
session.add(db_obj)
|
||||
session.commit()
|
||||
session.refresh(db_obj)
|
||||
return db_obj
|
||||
|
||||
@classmethod
|
||||
def update(
|
||||
cls, *, session: Session, db_obj: "Place", in_obj: PlaceUpdate
|
||||
) -> "Place":
|
||||
data_obj = in_obj.model_dump(exclude_unset=True)
|
||||
db_obj.sqlmodel_update(data_obj)
|
||||
session.add(db_obj)
|
||||
session.commit()
|
||||
session.refresh(db_obj)
|
||||
return db_obj
|
||||
|
||||
|
||||
# Properties to return via API, id is always required
|
||||
class PlacePublic(mixin.RowIdPublic, PlaceBase):
|
||||
pass
|
||||
|
||||
|
||||
class PlacesPublic(BaseSQLModel):
|
||||
data: list[PlacePublic]
|
||||
count: int
|
||||
|
||||
|
||||
# endregion
|
||||
@@ -1,5 +1,7 @@
|
||||
from datetime import timedelta
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from sqlalchemy import Interval
|
||||
from sqlmodel import (
|
||||
Session,
|
||||
Relationship,
|
||||
@@ -18,8 +20,12 @@ from .base import (
|
||||
from .hike import (
|
||||
Hike,
|
||||
HikeTimeCalculation,
|
||||
HikeTeamLink,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .place import Place
|
||||
|
||||
# region # Route ###############################################################
|
||||
|
||||
|
||||
@@ -49,14 +55,16 @@ class RouteBase(
|
||||
sa_type=DocumentedStrFlagType(HikeTimeCalculation),
|
||||
)
|
||||
|
||||
min_time: Interval | None = Field(
|
||||
min_time: timedelta | None = Field(
|
||||
default=None,
|
||||
description="Min time correction, None = min of all, positive is used as 0:00, negative is subtracted from min of all time",
|
||||
sa_type=Interval,
|
||||
)
|
||||
|
||||
max_time: Interval | None = Field(
|
||||
max_time: timedelta | None = Field(
|
||||
default=None,
|
||||
description="Max time correction, None = max of all, positive is used as max, negative is subtracted from max of all time",
|
||||
sa_type=Interval,
|
||||
)
|
||||
|
||||
hike_id: RowId = Field(
|
||||
@@ -64,6 +72,22 @@ class RouteBase(
|
||||
foreign_key="hike.id",
|
||||
)
|
||||
|
||||
start_id: RowId | None = Field(
|
||||
default=None,
|
||||
nullable=True,
|
||||
foreign_key="place.id",
|
||||
ondelete="SET NULL",
|
||||
description="Start place.id of the route, None for random in CIRCULAR or CIRCULAR_BACK_TO_START",
|
||||
)
|
||||
|
||||
finish_id: RowId | None = Field(
|
||||
default=None,
|
||||
nullable=True,
|
||||
foreign_key="place.id",
|
||||
ondelete="SET NULL",
|
||||
description="Finish place.id of the route, None for random or decremented",
|
||||
)
|
||||
|
||||
|
||||
# Properties to receive via API on creation
|
||||
class RouteCreate(RouteBase):
|
||||
@@ -83,6 +107,30 @@ class Route(mixin.RowId, RouteBase, table=True):
|
||||
|
||||
# --- back_populates links -------------------------------------------------
|
||||
hike: "Hike" = Relationship(back_populates="routes")
|
||||
teams: list["HikeTeamLink"] = Relationship(back_populates="route")
|
||||
|
||||
start: "Place" = Relationship(sa_relationship_kwargs={"foreign_keys": "[Route.start_id]"})
|
||||
finish: "Place" = Relationship(sa_relationship_kwargs={"foreign_keys": "[Route.finish_id]"})
|
||||
|
||||
places: list["Place"] = Relationship(
|
||||
sa_relationship_kwargs={
|
||||
"primaryjoin": "or_("
|
||||
"Place.id==Route.start_id,"
|
||||
"Place.id==Route.finish_id,"
|
||||
"Place.id==RoutePart.place_id,"
|
||||
"Place.id==RoutePart.to_place_id,"
|
||||
")",
|
||||
"foreign_keys": "["
|
||||
"Route.start_id,"
|
||||
"Route.finish_id,"
|
||||
"RoutePart.place_id,"
|
||||
"RoutePart.to_place_id"
|
||||
"]",
|
||||
"viewonly": True,
|
||||
},
|
||||
)
|
||||
|
||||
route_parts: list["RoutePart"] = Relationship(back_populates="route")
|
||||
|
||||
# --- CRUD actions ---------------------------------------------------------
|
||||
@classmethod
|
||||
@@ -118,3 +166,118 @@ class RoutesPublic(BaseSQLModel):
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region # Route / Place link ##################################################
|
||||
|
||||
|
||||
class RoutePartBase(
|
||||
mixin.NameOveride,
|
||||
mixin.ShortNameOveride,
|
||||
BaseSQLModel,
|
||||
):
|
||||
route_id: RowId = Field(
|
||||
nullable=False,
|
||||
foreign_key="route.id",
|
||||
)
|
||||
|
||||
place_id: RowId = Field(
|
||||
nullable=False,
|
||||
foreign_key="place.id",
|
||||
)
|
||||
|
||||
to_place_id: RowId = Field(
|
||||
nullable=False,
|
||||
foreign_key="place.id",
|
||||
)
|
||||
|
||||
travel_time: timedelta | None = Field(
|
||||
default=None,
|
||||
nullable=True,
|
||||
description="Time to travel during test walk, only used for information",
|
||||
sa_type=Interval,
|
||||
)
|
||||
travel_distance: int | None = Field(
|
||||
default=None,
|
||||
nullable=True,
|
||||
ge=0,
|
||||
description="Distance in meters to travel, only used for information",
|
||||
)
|
||||
|
||||
# TODO: Convert to time groups
|
||||
free_walk_time: bool | None = Field(
|
||||
default=False,
|
||||
description="If true, travel time is not add to calculated for travel time",
|
||||
)
|
||||
|
||||
|
||||
# Properties to receive via API on creation
|
||||
class RoutePartBaseCreate(RoutePartBase):
|
||||
pass
|
||||
|
||||
|
||||
# Properties to receive via API on update, all are optional
|
||||
class RoutePartBaseUpdate(RoutePartBase):
|
||||
route_id: RowId | None = Field(default=None) # type: ignore
|
||||
place_id: RowId | None = Field(default=None) # type: ignore
|
||||
to_place_id: RowId | None = Field(default=None) # type: ignore
|
||||
free_walk_time: bool | None = Field(default=None) # type: ignore
|
||||
|
||||
|
||||
class RoutePart(mixin.RowId, RoutePartBase, table=True):
|
||||
# --- database only items --------------------------------------------------
|
||||
|
||||
# --- read only items ------------------------------------------------------
|
||||
|
||||
# --- back_populates links -------------------------------------------------
|
||||
route: "Route" = Relationship(back_populates="route_parts")
|
||||
place: "Place" = Relationship(back_populates="route_parts", sa_relationship_kwargs={"foreign_keys": "[RoutePart.place_id]"})
|
||||
place_to: "Place" = Relationship(sa_relationship_kwargs={"foreign_keys": "[RoutePart.to_place_id]"})
|
||||
|
||||
places: list["Place"] = Relationship(
|
||||
sa_relationship_kwargs={
|
||||
"primaryjoin": "or_("
|
||||
"Place.id==RoutePart.place_id,"
|
||||
"Place.id==RoutePart.to_place_id,"
|
||||
")",
|
||||
"foreign_keys": "["
|
||||
"RoutePart.place_id,"
|
||||
"RoutePart.to_place_id"
|
||||
"]",
|
||||
"viewonly": True,
|
||||
},
|
||||
)
|
||||
|
||||
# --- CRUD actions ---------------------------------------------------------
|
||||
@classmethod
|
||||
def create(cls, *, session: Session, create_obj: RouteCreate) -> "RoutePart":
|
||||
data_obj = create_obj.model_dump(exclude_unset=True)
|
||||
|
||||
db_obj = cls.model_validate(data_obj)
|
||||
session.add(db_obj)
|
||||
session.commit()
|
||||
session.refresh(db_obj)
|
||||
return db_obj
|
||||
|
||||
@classmethod
|
||||
def update(
|
||||
cls, *, session: Session, db_obj: "RoutePart", in_obj: RouteUpdate
|
||||
) -> "RoutePart":
|
||||
data_obj = in_obj.model_dump(exclude_unset=True)
|
||||
db_obj.sqlmodel_update(data_obj)
|
||||
session.add(db_obj)
|
||||
session.commit()
|
||||
session.refresh(db_obj)
|
||||
return db_obj
|
||||
|
||||
|
||||
# Properties to return via API, id is always required
|
||||
class RoutePartPublic(mixin.RowIdPublic, RoutePartBase):
|
||||
pass
|
||||
|
||||
|
||||
class RoutePartsPublic(BaseSQLModel):
|
||||
data: list[RoutePartPublic]
|
||||
count: int
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
@@ -16,6 +16,7 @@ if TYPE_CHECKING:
|
||||
from .event import Event
|
||||
from .division import DivisionTeamLink
|
||||
from .member import MemberTeamLink
|
||||
from .hike import HikeTeamLink
|
||||
|
||||
# region # Team ################################################################
|
||||
|
||||
@@ -51,6 +52,7 @@ class Team(mixin.RowId, TeamBase, table=True):
|
||||
event: "Event" = Relationship(back_populates="teams")
|
||||
division_link: "DivisionTeamLink" = Relationship(back_populates="team", cascade_delete=True)
|
||||
member_links: list["MemberTeamLink"] = Relationship(back_populates="team", cascade_delete=True)
|
||||
hike_links: list["HikeTeamLink"] = Relationship(back_populates="team", cascade_delete=True)
|
||||
|
||||
# --- CRUD actions ---------------------------------------------------------
|
||||
@classmethod
|
||||
|
||||
@@ -34,6 +34,7 @@ class PermissionModule(DocumentedStrEnum):
|
||||
|
||||
HIKE = auto_enum()
|
||||
ROUTE = auto_enum()
|
||||
PLACE = auto_enum()
|
||||
|
||||
|
||||
class PermissionPart(DocumentedStrEnum):
|
||||
|
||||
Reference in New Issue
Block a user