I've added the constrain to the sql files