Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mongoose from 'mongoose'
- const Schema = mongoose.Schema
- let csvuaSchema = new Schema({
- codigo: { type: 'String' },
- georeferencia: { type: 'String'},
- tipo: { type: 'String' }
- })
- let csvua = mongoose.model('csvua', csvuaSchema)
- export default csvua
- import mongoose from 'mongoose'
- const Schema = mongoose.Schema
- let csvlecSchema = new Schema({
- codigo: { type: 'String', ref: 'csvuas'},
- fecha_lectura: { type: 'Date' },
- lectura: { type: 'Number' }
- })
- let csvlec = mongoose.model('csvlec', csvlecSchema)
- export default csvlec
Add Comment
Please, Sign In to add comment