mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
Added files
This commit is contained in:
12
models/currentdata.js
Normal file
12
models/currentdata.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var mongoose = require('mongoose');
|
||||
|
||||
var currentdataSchema = new mongoose.Schema({
|
||||
number: String,
|
||||
date: Date,
|
||||
time: String,
|
||||
message: String,
|
||||
updated: {type: Date, default: Date.now}
|
||||
});
|
||||
|
||||
|
||||
mongoose.model('currentdata', currentdataSchema);
|
||||
12
models/olddata.js
Normal file
12
models/olddata.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var mongoose = require('mongoose');
|
||||
|
||||
var olddataSchema = new mongoose.Schema({
|
||||
number: String,
|
||||
date: Date,
|
||||
time: String,
|
||||
message: String,
|
||||
updated: {type: Date, default: Date.now}
|
||||
});
|
||||
|
||||
|
||||
mongoose.model('olddata', olddataSchema);
|
||||
Reference in New Issue
Block a user