Skip to content

Commit

Permalink
update inv type schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tdkent committed Nov 16, 2023
1 parent 772c720 commit 7542d5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models/bmdashboard/buildingInventoryType.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ const mongoose = require('mongoose');
const { Schema } = mongoose;

const buildingInventoryType = new Schema({
category: String, // Consumable, Material, Tool, Equipment
name: String,
description: String,
unit: String, // unit of measurement
category: { type: String, enum: ['Consumable', 'Material', 'Tool', 'Equipment'], required: true },
name: { type: String, required: true },
description: { type: String, required: true },
unit: { type: String, required: true }, // unit of measurement
imageUrl: String,
});

Expand Down

0 comments on commit 7542d5c

Please sign in to comment.