added application page
This commit is contained in:
1
ApiServices/ManagementService/Validations/__init__.py
Normal file
1
ApiServices/ManagementService/Validations/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user