Files
merica/backend/app/schemas/trino.py
T

29 lines
519 B
Python

from pydantic import BaseModel
from typing import List
class CatalogItem(BaseModel):
id: str
name: str
type: str
class CatalogListResponse(BaseModel):
catalogs: List[CatalogItem]
class SchemaItem(BaseModel):
id: str
name: str
layer: str
class SchemaListResponse(BaseModel):
schemas: List[SchemaItem]
class TableItem(BaseModel):
table_name: str
layer: str
format: str
class TableListResponse(BaseModel):
catalog: str
schema_name: str
tables: List[TableItem]