We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946e730 commit 31aa47aCopy full SHA for 31aa47a
instructions.ts
@@ -398,7 +398,7 @@ export default async function instructions(
398
const modelName = await getModelName(sink)
399
state.modelName = modelName.replace(/(\.ts|\.js)$/, '')
400
state.usersTableName = string.pluralize(string.snakeCase(state.modelName))
401
- state.modelReference = string.camelCase(state.modelName)
+ state.modelReference = string.pascalCase(string.singularize(state.modelName))
402
state.modelNamespace = `${app.namespacesMap.get('models') || 'App/Models'}/${state.modelName}`
403
} else {
404
state.usersTableName = await getTableName(sink)
0 commit comments