mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-04 03:29:07 +00:00
26 lines
410 B
Python
26 lines
410 B
Python
from typing import ClassVar, Sequence
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Spell(BaseModel):
|
|
id: str
|
|
name: str
|
|
description: str
|
|
table_name: ClassVar[str] = "spells"
|
|
|
|
|
|
class SpellCreate(BaseModel):
|
|
id: str
|
|
name: str
|
|
description: str
|
|
|
|
|
|
class SpellUpdate(BaseModel):
|
|
id: str
|
|
name: str
|
|
description: str
|
|
|
|
|
|
class SpellSearchResults(BaseModel):
|
|
results: Sequence[Spell]
|