-2
Hello.
I do not understand why this error. The code is apparently correct.
Follows print of error:
https://uploaddeimagens.com.br/imagens/print_erro_firefox-jpg
The user table fields are:
table users id, name, email, password. In the expense table you have the primary key of the fk_id_user References users (id). I don’t understand this one’s errors guy!
If you want you can supplement the question with the Users table create
– Otto