Check constraints. SQL or python based constraints