23 lines
844 B
Python
23 lines
844 B
Python
from pydantic import BaseModel, Field
|
|
from typing import Optional
|
|
|
|
|
|
class RequestApplication(BaseModel):
|
|
"""Base model for application data"""
|
|
|
|
name: str = Field(..., description="Application name")
|
|
application_code: str = Field(..., description="Unique application code")
|
|
site_url: str = Field(..., description="Application site URL")
|
|
application_type: str = Field(
|
|
..., description="Application type (info, Dash, Admin)"
|
|
)
|
|
application_for: str = Field(..., description="Application for (EMP, OCC)")
|
|
description: Optional[str] = Field(None, description="Application description")
|
|
|
|
|
|
class AddRemoveService(BaseModel):
|
|
"""Base model for add/remove service data"""
|
|
|
|
application_uu_id: str = Field(..., description="Application UUID")
|
|
service_uu_id: str = Field(..., description="Service UUID")
|