Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var productSchema = Schema({
- product_code: String,
- name: {
- type: String,
- required: true
- },
- description: String,
- category:{
- type: String,
- ref: 'Product_Category'
- },
- umo: String,
- threshold: {
- type:Number,
- default: 0
- },
- image: String,
- isactive: {
- type: Boolean,
- default: true
- }
- });
- var product_categorySchema = Schema({
- isactive: {
- type: Boolean,
- default: true
- },
- name: {
- type: String,
- required: true
- },
- description: String
- });
Add Comment
Please, Sign In to add comment