Posts by tanno.dev • 36 points
3 posts
- 
		1 votes2 answers331 viewsA: Adonis make:model generating model with different nameOne can circumvent this naming convention used by Adonis by informing in the Model the name of the table to be used in Migration. class User extends Model { static get table () { return 'my_users' }… 
- 
		0 votes2 answers264 viewsA: Adonis (nodejs) Migration mysql error: 1045Taking into account the information you posted and considering that Mysql is installed on the same server that is running your application, I would consider some tests related to the database:… 
- 
		1 votes1 answer1043 viewsA: How can I create a Many to Many relationship in Adonisjs?I had a similar problem recently solved using fetch instead of load, follows suggestion. //Seu código await user.load('questions') //Sugestão de alteração user.questionData = await…