Skip to content

Change Schema Name #21

@khattakdev

Description

@khattakdev

The user creates a schema that has this schema object named userSchema.
image

This name should depend on the schema name that the user enters.
For example

$ msc
? Please input Schema name auth
...

This should generate a schema which has this schema object named authSchema

const authSchema = new Schema({
  
  timestamps: { createdAt: "created_at", updatedAt: "updated_at" } 
});
module.exports = authSchema;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions