Remove __pycache__ from repo

This commit is contained in:
d3m0k1d
2025-11-23 15:26:41 +03:00
parent e1b13d6557
commit fa982725e1
11 changed files with 48 additions and 8 deletions

View File

View File

View File

@@ -0,0 +1,30 @@
from pydantic import BaseModel, Field
from typing import Optional
class PostCreate(BaseModel):
title: str = Field(min_length=3, max_length=150)
content: str = Field(min_length=10)
images: Optional[str] = Field()
class Config:
orm_mode = True
class PostRead(BaseModel):
id: int = Field()
title: str = Field(min_length=3, max_length=150)
content: str = Field(min_length=10)
images: str = Field()
class Config:
orm_mode = True
class PostUpdate(BaseModel):
title: str = Field(min_length=3, max_length=150)
content: str = Field(min_length=10)
images: Optional[str] = Field()
class Config:
orm_mode = True