File size: 423 Bytes
8450c71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from typing import List, Optional
from pydantic import EmailStr, BaseModel
from datetime import date, datetime, time, timedelta


class createComment(BaseModel):
    userId: int
    content: str
    postId:int


class editComment(BaseModel):
    id:int
    userId: int
    content: str
    postId:int

class deleteComment(BaseModel):
    id:int
    userId: int
    postId:int

class allComments(BaseModel):
    userId: int