Initial commit for resumeformatter project
This commit is contained in:
34
backend/app/schemas/person.py
Normal file
34
backend/app/schemas/person.py
Normal 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
|
||||
Reference in New Issue
Block a user