16 lines
220 B
Python
16 lines
220 B
Python
from typing import List
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Char(BaseModel):
|
|
name: str
|
|
file_id: str
|
|
time: int
|
|
|
|
|
|
class Player(BaseModel):
|
|
name: str = ""
|
|
time: int = 0
|
|
all_char: List[Char] = []
|