feat: add pins

This commit is contained in:
firedotguy
2026-02-07 17:47:09 +03:00
parent 506e6a5d09
commit 8aef43e11d
5 changed files with 63 additions and 7 deletions

View File

@@ -1,6 +1,12 @@
from pydantic import BaseModel
from datetime import datetime
class Pin(BaseModel):
from pydantic import BaseModel, Field
class ShortPin(BaseModel):
slug: str
name: str
description: str
description: str
class Pin(ShortPin):
granted_at: datetime = Field(alias='grantedAt')