Initial commit for resumeformatter project

This commit is contained in:
Laxmi Khilnani
2025-10-14 19:51:35 +05:30
commit ee030b70bc
43 changed files with 1668 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
from pydantic import BaseModel, Field, HttpUrl
class PersonBase(BaseModel):
"""
Base schema for a person
"""
firstName: str
lastName: str
linkedinUrl: str
class PersonCreate(PersonBase):
"""
Schema for creating a new person
"""
pass
class PersonInDBBase(PersonBase):
"""
Base schema for a person in the database
"""
id: str
class Config:
from_attributes = True
class Person(PersonInDBBase):
"""
Schema for returning a person
"""
pass