SchemaDefinition schema = getSchema(record.getValue(Constraints.TABLE_SCHEMA));
TableDefinition table = getTable(schema, record.getValue(Constraints.TABLE_NAME));
if (table != null) {
relations.addCheckConstraint(table, new DefaultCheckConstraintDefinition(
schema,
table,
record.getValue(Constraints.CONSTRAINT_NAME),
record.getValue(Constraints.CHECK_EXPRESSION)
));