users api done

This commit is contained in:
andrei-mihnea-cerbu
2024-01-09 03:06:03 +02:00
parent 6ece0f37b1
commit f80b8c38db
35 changed files with 221 additions and 11 deletions
+3
View File
@@ -1,6 +1,9 @@
from pydantic import BaseModel
from datetime import datetime
class Message(BaseModel):
text: str
sender_id: int
receiver_id: int
timestamp: datetime
+3
View File
@@ -1,5 +1,8 @@
from pydantic import BaseModel
class User(BaseModel):
id: int
username: str
password: str
email: str