28 lines
672 B
Python
28 lines
672 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from app.domain.entities.universities import UniversityRead
|
|
|
|
|
|
class ApplicantProfileCreate(BaseModel):
|
|
resume_html: Optional[str] = None
|
|
resume_url: Optional[str] = Field(default=None, max_length=500)
|
|
user_id: int
|
|
|
|
|
|
class ApplicantProfileUpdate(BaseModel):
|
|
resume_html: Optional[str] = None
|
|
resume_url: Optional[str] = Field(default=None, max_length=500)
|
|
|
|
|
|
class ApplicantProfileRead(BaseModel):
|
|
id: int
|
|
resume_html: Optional[str]
|
|
resume_url: Optional[str]
|
|
user_id: int
|
|
|
|
university: Optional[UniversityRead] = None
|
|
|
|
class Config:
|
|
from_attributes = True |