Skip to content

Instantly share code, notes, and snippets.

@samilkahraman
Last active January 9, 2021 13:24
Show Gist options
  • Save samilkahraman/eb270cbc5e3f02b43d2486f43c6195b9 to your computer and use it in GitHub Desktop.
Save samilkahraman/eb270cbc5e3f02b43d2486f43c6195b9 to your computer and use it in GitHub Desktop.
Storehouse Model
const StorehouseSchema = new Schema(
{
id: {
type: Number,
unique: true,
},
parentID: {
type: String,
required: false,
},
name: { type: String, required: false },
dimensions: {
type: Dimensions,
required: false,
},
manager: { type: String, required: true },
description: { type: String, required: false },
recordedBy: { type: String, required: true },
},
{ timestamps: true }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment