CheckConstraint

pydantic model felis.datamodel.CheckConstraint

Table check constraint model.

Parameters:

data (Any)

Fields:
Validators:

field expression: str [Required]

Expression for the check constraint.

Validated by:
field type: Literal['Check'] = 'Check' (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