import User from 'App/Models/User' const user = new User() // Assign username and email user.username = 'virk' user.email = 'virk@adonisjs.com' // Insert to the database await user.save() console.log(user.$isPersisted) // true