from typing import Dict, List, Optional
from nisystemlink.clients.core._uplink._json_model import JsonModel
from ._column import Column
[docs]class CreateTableRequest(JsonModel):
"""Contains information needed to create a table, including its properties and column definitions."""
columns: List[Column]
"""The list of columns in the table. Exactly one column must have a :class:`.ColumnType` of INDEX."""
name: Optional[str] = None
"""The name to associate with the table. When not specified, a name will be
assigned from the table's ID."""
properties: Optional[Dict[str, str]] = None
"""User-defined properties to associate with the table."""
workspace: Optional[str] = None
"""The workspace to create the table in. Uses the default workspace when not specified."""