<table><tr><td style="">pablo added a comment.
</td></tr></table><br /><div><div><p><strong>Optional Parent FK's</strong></p>

<p>The tables listed below have NULL'able <em>Foreign Keys</em>.  Is this intended?</p>

<p>Generally I like to make the DBMS enforce as much <em>Referential Integrity</em> as possible.</p>

<p>Sometimes it doesn't make sense to make FK's <strong>NOT NULL</strong> so ... that's why I'm asking.  ;)</p>

<p><em>Note:  recursive relationships must have a NULL'able FK so we're good on that front.</em></p>

<ul class="remarkup-list">
<li class="remarkup-list-item"><strong>[MimeTypeTable]</strong> -> <strong>[PIMItemTable]</strong></li>
<li class="remarkup-list-item"><strong>[CollectionTable]</strong> -> <strong>[PIMItemTable]</strong></li>
<li class="remarkup-list-item"><strong>[RelationTypeTable]</strong> > <strong>[RelationTable]</strong></li>
</ul></div></div><br /><div><strong>TASK DETAIL</strong><div><a href="https://phabricator.kde.org/T7846" rel="noreferrer">https://phabricator.kde.org/T7846</a></div></div><br /><div><strong>To: </strong>pablo<br /><strong>Cc: </strong>knauss, dvratil, kde-pim, pablo<br /></div>