CHECK ((user_id IS NULL AND article_id IS NOT NULL) OR (user_id IS NOT NULL AND article_id IS NULL)) );</pre>Each user or article may have many pictures, but they must have 1 or more featured pictures ...