mysql创建外键错误

SQLSTATE[HY000]: General error: 3780 Referencing column 'product_id' and referenced column 'id' in foreign key constraint 'crowdfund ing_products_product_id_foreign' are incompatible.

原因: 创建外键的时候, 外键的 数据类型必须一致

tags: Mysql