To add foreign keys, you should proceed to Step #2.
Click on the settings icon located under the page where you want to implement a forign key field
- Click the "Add New Field" button.
- Choose the "int" field type.
- Write the table name followed by "_id". For example: emp_information_id, countries_id, cities_id.
- Important: Do not attempt to modify the field size when adding a foreign key field.
- Choose whether the field should accept null values or not.
- Specify the sort order for the field.
By following these steps, you can add a new foreign key field to your system.
- After configuring the foreign key field, click "Save."
- Then, under the field you've added, choose the specific field from which you want to retrieve data. This selection will determine the data fetched from the related table.