Guest User

Untitled

a guest
Sep 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var productSchema = Schema({
  2. product_code: String,
  3. name: {
  4. type: String,
  5. required: true
  6. },
  7. description: String,
  8. category:{
  9. type: String,
  10. ref: 'Product_Category'
  11. },
  12. umo: String,
  13. threshold: {
  14. type:Number,
  15. default: 0
  16. },
  17. image: String,
  18. isactive: {
  19. type: Boolean,
  20. default: true
  21. }
  22. });
  23.  
  24. var product_categorySchema = Schema({
  25. isactive: {
  26. type: Boolean,
  27. default: true
  28. },
  29. name: {
  30. type: String,
  31. required: true
  32. },
  33. description: String
  34. });
Add Comment
Please, Sign In to add comment