31 lines
658 B
Python
31 lines
658 B
Python
from datetime import datetime
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class SDatingAdd(BaseModel):
|
|
theme_name: str
|
|
sender_name: str
|
|
sender_sex: str
|
|
sender_age: int
|
|
telegram_name: str
|
|
interests_in_school_university: str
|
|
interests_in_sports: str
|
|
interests_in_work: str
|
|
interests_in_your_free_time: str
|
|
pets_plants_fish: str
|
|
relationships_with_relatives_and_friends: str
|
|
past_relationships: str
|
|
life_principles_values: str
|
|
goals_in_life: str
|
|
message_text: str
|
|
|
|
|
|
class SDating(SDatingAdd):
|
|
id: int
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
|
|
class SDatingId(BaseModel):
|
|
id: int
|