added table constraints