Last active
January 9, 2021 13:24
-
-
Save samilkahraman/eb270cbc5e3f02b43d2486f43c6195b9 to your computer and use it in GitHub Desktop.
Storehouse Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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