ifixkart-admin/Backend/app/schemas/RoleNotificationSettingSchema.py
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

20 lines
576 B
Python

from pydantic import BaseModel, ConfigDict
from typing import Optional
class RoleNotificationSettingBase(BaseModel):
role_name: str
event_type: str
channel_email: bool = False
channel_whatsapp: bool = False
class RoleNotificationSettingCreate(RoleNotificationSettingBase):
pass
class RoleNotificationSettingUpdate(BaseModel):
channel_email: Optional[bool] = None
channel_whatsapp: Optional[bool] = None
class RoleNotificationSettingResponse(RoleNotificationSettingBase):
setting_id: str
model_config = ConfigDict(from_attributes=True)