Skip to content

Change Schema Name #21

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions