I succeed to generate all my models from my database. Then, I run the api by executing, 'node .' I'm able to see all my web services but when I try to try out a service, there is an 500 error saying to me that There is no ACL table. So, I open model-config.json and I saw that there were 4 models I didn't created before (User, AccessToken, ACL, RoleMapping and Role). I would like to know if all these models has to exist in my database. And Do you know which properties I have to put in each table? Thanks you in advance.
Error:
{
"error": {
"name": "Error",
"status": 500,
"message": "ER_NO_SUCH_TABLE: Table 'sed.ACL' doesn't exist",
"code": "ER_NO_SUCH_TABLE",
"errno": 1146,
"sqlState": "42S02",
"index": 0,
"stack": "Error: ER_NO_SUCH_TABLE: Table 'sed.ACL' doesn't exist\n [...]"
}
}
You will need to automigrate these tables yourself. See:
https://groups.google.com/forum/#!searchin/loopbackjs/automigrate$20default$20tables/loopbackjs/IiapgVVf-NQ/32yeCnNxBmIJ
https://github.com/strongloop/loopback/issues/591.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With