I have two tables like below
| Table_ID | Course_Category_ID | Course_Category_NAme |
| 1 | 1 | Basic Sciences |
and The Course Main Table in which this category ID would be a foreign key
| Table_ID | Course_Category_ID(F) | Course_ID | Course_Name |
| 1 | 1 | 1 | Math |
| 2 | 1 | 2 | Physics |
how to write a model class where course category_ID is foreign key

Ravishankar NRank #241 · 10.2K reputationPosted Nov 21, 2019, 5:22 PM EST
Mark TaborRank #914 · 2.3K reputationPosted Nov 21, 2019, 5:29 PM EST
Mark TaborRank #914 · 2.3K reputationPosted Nov 21, 2019, 5:33 PM EST