19 lines
345 B
JavaScript
19 lines
345 B
JavaScript
'use strict';
|
|
|
|
const mongoose = require('mongoose');
|
|
|
|
const schema = {
|
|
latitude: Number,
|
|
longitude: Number,
|
|
title: String,
|
|
description: String,
|
|
images: [],
|
|
tags: []
|
|
};
|
|
|
|
const GeoletSchema = new mongoose.Schema(schema);
|
|
|
|
GeoletSchema.plugin(require('mongopot/plugins/base'));
|
|
|
|
module.exports = mongoose.model('Geolet', GeoletSchema);
|