Create a table without any Foreign keys. Make a not of the absolute timestamp. Add a foreign key constraint with ALTER TABLE cancelled_orders ADD FOREIGN KEY (id) REFERENCES orders (id); List the set ...
The FOREIGN KEY constraint is used to enforce a link between the data in two tables. A foreign key in one table points to a primary key in another table, maintaining referential integrity.