# The TableConstraint object

A table constraint, as defined by *one* of the following fields being set:
 __primary_key_constraint__, __foreign_key_constraint__, __named_table_constraint__.

## Attributes

- `primary_key_constraint` (object)
  - `name` (string)
    The name of the constraint.
  - `child_columns` (array of string)
    Column names for this constraint.
  - `timeseries_columns` (array of string)
    Column names that represent a timeseries.
  - `rely` (boolean)
    True if the constraint is RELY, false or unset if NORELY.
- `foreign_key_constraint` (object)
  - `name` (string)
    The name of the constraint.
  - `child_columns` (array of string)
    Column names for this constraint.
  - `parent_table` (string)
    The full name of the parent constraint.
  - `parent_columns` (array of string)
    Column names for this constraint.
  - `rely` (boolean)
    True if the constraint is RELY, false or unset if NORELY.
- `named_table_constraint` (object)
  - `name` (string)
    The name of the constraint.

## Example

```json
{
  "primary_key_constraint": {
    "name": "string",
    "child_columns": [
      "string"
    ],
    "timeseries_columns": [
      "string"
    ],
    "rely": true
  },
  "foreign_key_constraint": {
    "name": "string",
    "child_columns": [
      "string"
    ],
    "parent_table": "string",
    "parent_columns": [
      "string"
    ],
    "rely": true
  },
  "named_table_constraint": {
    "name": "string"
  }
}
```


