There are plenty of questions regarding this error but I can\'t seem to find any similar scenario to what I have.
My 1st table (users):
My 2nd table
PRIMARY KEY).ENGINE=InnoDB.Even after that, error 150 can still occur. 3 ways around it:
CREATE TABLEs without FKs, then ALTER ... ADD ... FKsCREATEs in just the right order.A side note: In INT(2), the (2) is irrelevant. All INTs are 4 bytes.