I have been having this problem for a couple of hours now. In SQL Server, I ran this query :
SQL Server
INSERT INTO USERS_AVATAR(userId, avatId) VALUES (\'
Before inserting userIds 1 and 2 into USERS_AVATAR, you must first insert them into table USERS. That is what the FOREIGN KEY constraint is requiring.
1
2
USERS_AVATAR
USERS