const mongoose = require("mongoose"); const inspectSchema = new mongoose.Schema({ agent: { type: String, required: false, }, birth_day: { type: String, required: false, }, contractor_code: { type: String, required: false, }, gender: { type: String, required: false, }, herd_code: { type: String, required: false, }, national_id_livestock_code: { type: String, required: false, }, registering_date: { type: String, required: false, }, registering_user: { type: String, required: false, }, type: { type: String, required: false, }, unique_identifier: { type: String, required: false, }, }); const Herd = mongoose.model("Herds", inspectSchema); module.exports = Herd;