require('../src/services/user/model');

module.exports = {
	up: async function up() {
		// Make changes to the database here.
		// Hint: Access models via this('modelName'), not the imported model to have
		// access to the correct database connection. Otherwise Mongoose calls never return.
		await this('user').findOneAndUpdate({
			firstName: 'Marla',
			lastName: 'Mathe',
		}, {
			firstName: 'Max',
		}).lean().exec();
	},

	down: async function down() {
		// Implement the necessary steps to roll back the migration here.
		await this('user').findOneAndUpdate({
			firstName: 'Max',
			lastName: 'Mathe',
		}, {
			firstName: 'Marla',
		}).lean().exec();
	},
};

@@ -1,40 +1,205 @@
-require('../src/services/user/model'
+const mongoose = require('mongoose');%0A%0Amongoose.model('user', new mongoose.Schema(%7B%0A%09firstName: %7B type: String, required: true %7D,%0A%09lastName: %7B type: String, required: true %7D,%0A%7D, %7B%0A%09timestamps: true,%0A%7D)
 );%0A%0A
@@ -336,19 +336,18 @@
 '), not 
-the
+an
  importe

Use inline schema in template