title: How to configure foreign keys in Nette?
body: <p>I've been reading for a while Nette tutorial for database selects etc, but I still do not understand, how does Nette know, what is foreign key and what is not. Do I need to define it? If so, how? There nothing about it in documentation.</p>
  
  <p>According to this <a href="https://doc.nette.org/cs/2.4/database-table" rel="nofollow noreferrer">documentation</a>, I do not have to define foreign keys. As I'm used to Java JPA, it sounds a bit strange for me.</p>
  
  <p>Does Nette even generates database? (So far I do not think so).</p>