Add constraints to cache table