I have created tables in MySQL Workbench as shown below :
ORDRE table:
CREATE TABLE Ordre (
OrdreID INT NOT NULL,
OrdreDato DA
ill squeeze this in here: my case was trying to create a like for a post which dint exist; while committing to database the error was raised. solution was to first create the post then like it. from my understanding if the post_id was to be saved in the likes table it had to first check with posts table to ascertain existence. i found it better to have it this way since its more logical to me that way..