xbackend/schemas/sql.py
2021-07-09 16:55:45 +08:00

14 lines
211 B
Python

from typing import List, Union
from pydantic import BaseModel
from typing import Optional
class Sql(BaseModel):
sql: str
class CkQuery(BaseModel):
eventView: dict
events: Union[List[dict],dict]