UniqueConstraint

pydantic model felis.datamodel.UniqueConstraint

Table unique constraint model.

Parameters:

data (Any)

Fields:
Validators:

field columns: list[str] [Required]

Columns in the unique constraint.

Validated by:
field type: Literal['Unique'] = 'Unique' (alias '@type')

Type of the constraint.

Validated by:
serialize_type(value)

Ensure @type’ is included in serialized output.

Parameters:

value (str) – The value to serialize.

Returns:

The serialized value.

Return type:

str