mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
18 lines
318 B
Python
18 lines
318 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class PlatformSchema(BaseModel):
|
|
id: int
|
|
slug: str
|
|
fs_slug: str
|
|
igdb_id: Optional[int] = None
|
|
sgdb_id: Optional[int] = None
|
|
name: Optional[str]
|
|
logo_path: str
|
|
rom_count: int
|
|
|
|
class Config:
|
|
from_attributes = True
|