Constraint: add sql() and index(table_name)