diff --git a/models/cats.model.ts b/models/cats.model.ts index debff43..7f10e85 100644 --- a/models/cats.model.ts +++ b/models/cats.model.ts @@ -3,11 +3,11 @@ import mongoose from "mongoose"; const catSchema = new mongoose.Schema( { sno: { - type: String, + type: Number, required: true, }, catid: { - type: String, + type: Number, required: true, }, url: {