Files
2026-09-08 11:00:05 +05:30

44 lines
828 B
Python

from pydantic import BaseModel, EmailStr
from typing import Optional
from datetime import datetime
class ShareProjectRequest(BaseModel):
project_id: int
user_email: EmailStr
permission: str
class ShareProjectResponse(BaseModel):
id: int
project_id: int
shared_with_user_id: int
shared_with_user_email: EmailStr
shared_with_user_name: str
permission: str
created_at: datetime
class Config:
from_attributes = True
class SharedProjectInfo(BaseModel):
id: int
name: str
status: str
file_type: str
output_format: str
progress: int
current_step: str
session_id: Optional[str]
created_at: datetime
owner_email: EmailStr
owner_name: str
permission: str
shared_at: datetime
class Config:
from_attributes = True