🏷️ Added id to Friend model & changed the id of Pin to optional str

master
Alix JEUDI--LEMOINE 5 months ago
parent e432fc984c
commit 39278fe4b3

@ -1,7 +1,9 @@
from pydantic import BaseModel
from typing import Optional
from pydantic import BaseModel, Field
class Friend(BaseModel):
id: Optional[str]
user_id: str
friend_user_id: str
status: str

@ -1,5 +1,7 @@
from typing import Optional
from pydantic import BaseModel
class Pin(BaseModel):
id: Optional[str]
title: str
description: str
Loading…
Cancel
Save