The framework works by convention (e.g. User → users), works well in english, but in anothers languages can be inelegant...
How to set table name in Lucid Model?
2.3k Views Asked by Marcaum54 At
2
There are 2 best solutions below
0

https://adonisjs.com/docs/4.1/lucid#_table
class User extends Model {
static get table () {
return 'my_users'
}
}
If you're using Adonis.js v5 here's the soultion: