foreignKey property
The foreign key field(s) on the relation side. For oneToMany: FK is on the target model (e.g., 'author_id' on Post). For manyToOne: FK is on this model (e.g., 'author_id' on Post).
Implementation
final String foreignKey;
The foreign key field(s) on the relation side. For oneToMany: FK is on the target model (e.g., 'author_id' on Post). For manyToOne: FK is on this model (e.g., 'author_id' on Post).
final String foreignKey;