first commit
This commit is contained in:
48
models/herd.js
Normal file
48
models/herd.js
Normal file
@@ -0,0 +1,48 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user