Skip to content
3 changes: 3 additions & 0 deletions capy_discord/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ class Settings(EnvConfig):
# Event System Configuration
announcement_channel_name: str = "test-announcements"

# Testing
test_user_id: int | None = None


settings = Settings()
Empty file.
18 changes: 18 additions & 0 deletions capy_discord/exts/event_feedback/_schemas.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from pydantic import BaseModel, Field


class EventFeedbackSchema(BaseModel):
"""Pydantic model defining the Event Feedback schema and validation rules."""

rating: int = Field(title="Rating", description="Event rating from 1 to 10", ge=1, le=10)
improvement_suggestion: str | None = Field(
title="Improvement Suggestion",
description="What could the club do to make the event better?",
max_length=1000,
default=None,
)
anonymous: bool = Field(
title="Anonymous",
description="Whether this feedback should be shown anonymously in admin views.",
default=False,
)
Loading