Setting constraint logic after a table is initialised