Magento Magento-2-Certified-Associate-Developer Question Answer
How do you add a foreign key to an existing table created by another module?
Create etc/db_schema.xml file with the table node and constraint child node
Run the command bin/magento setup:db-schema:upgrade