Guest User

Untitled

a guest
Dec 9th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import mongoose from 'mongoose'
  2. const Schema = mongoose.Schema
  3.  
  4. let csvuaSchema = new Schema({
  5. codigo: { type: 'String' },
  6. georeferencia: { type: 'String'},
  7. tipo: { type: 'String' }
  8. })
  9.  
  10. let csvua = mongoose.model('csvua', csvuaSchema)
  11.  
  12. export default csvua
  13.  
  14. import mongoose from 'mongoose'
  15. const Schema = mongoose.Schema
  16.  
  17. let csvlecSchema = new Schema({
  18. codigo: { type: 'String', ref: 'csvuas'},
  19. fecha_lectura: { type: 'Date' },
  20. lectura: { type: 'Number' }
  21. })
  22.  
  23. let csvlec = mongoose.model('csvlec', csvlecSchema)
  24.  
  25. export default csvlec
Add Comment
Please, Sign In to add comment