Skip to content
Snippets Groups Projects
Commit 7f0c9770 authored by Markus Grigull's avatar Markus Grigull
Browse files

Replace widget properties

parent 394af567
Branches
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
module.exports = {
databaseName: 'VILLAS',
databaseURL: 'mongodb://localhost:27017/',
databaseURL: 'mongodb://mongo:27017/',
port: 3000,
secret: 'longsecretislong',
admin: {
......
......@@ -15,11 +15,9 @@ var Schema = mongoose.Schema;
// widget model
var widgetSchema = new Schema({
name: { type: String, required: true },
signal: { type: String, required: true },
simulator: { type: Number, required: true },
widgetData: { type: Schema.Types.Mixed, default: {} },
width: { type: Number, required: true },
height: { type: Number, required: true },
title: { type: String },
type: { type: String, required: true },
x: { type: Number, default: 0 },
y: { type: Number, default: 0 },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment