- 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
35 lines
759 B
Python
35 lines
759 B
Python
from pydantic import BaseModel
|
|
from typing import List, Optional
|
|
from datetime import datetime
|
|
|
|
class PermissionResponse(BaseModel):
|
|
permission_id: str
|
|
permission_code: str
|
|
module: str
|
|
resource: str
|
|
action: str
|
|
description: Optional[str] = None
|
|
is_active: bool
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
class RoleResponse(BaseModel):
|
|
role_id: str
|
|
role_name: str
|
|
role_prefix: str
|
|
description: Optional[str] = None
|
|
is_system: bool
|
|
is_active: bool
|
|
created_at: datetime
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
class RoleCreate(BaseModel):
|
|
role_name: str
|
|
role_prefix: str
|
|
description: Optional[str] = None
|
|
|
|
class RolePermissionUpdate(BaseModel):
|
|
permission_ids: List[str]
|