mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
25 lines
443 B
Python
25 lines
443 B
Python
from datetime import datetime
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class CollectionSchema(BaseModel):
|
|
id: int
|
|
name: str
|
|
description: str
|
|
path_cover_l: str | None
|
|
path_cover_s: str | None
|
|
has_cover: bool
|
|
url_cover: str
|
|
roms: set[int]
|
|
rom_count: int
|
|
user_id: int
|
|
user__username: str
|
|
is_public: bool
|
|
|
|
created_at: datetime
|
|
updated_at: datetime
|
|
|
|
class Config:
|
|
from_attributes = True
|