Skip to content

Commit

Permalink
fixing merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshyajit165 committed May 20, 2020
2 parents b199dc1 + 65a3ee5 commit 20d6d2d
Show file tree
Hide file tree
Showing 8 changed files with 595 additions and 20 deletions.
26 changes: 20 additions & 6 deletions api/models/Reading.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,38 @@

const mongoose = require("mongoose");

const pointSchema = new mongoose.Schema({
type: {
type: String,
enum: ['Point'],
required: true
},
coordinates: {
type: [Number],
required: true
}
});


const readingSchema = new mongoose.Schema({
value: {
required: true,
type: String
},
tankId: {
required: true,
type: mongoose.Types.ObjectId
type: mongoose.Types.ObjectId,
auto:true
},
tankCapacity: {
capacity: {
required: true,
type: Number
},
tankLocation: {
required: true,
type: String
location: {
type: pointSchema,
required: true
},
tankName: {
name: {
required: true,
type: String
}
Expand Down
Loading

0 comments on commit 20d6d2d

Please sign in to comment.