some changes

This commit is contained in:
2021-01-26 18:52:25 +01:00
parent 4535ce2dda
commit d5684d922f
3 changed files with 17 additions and 3 deletions

13
models/reports.js Normal file
View File

@@ -0,0 +1,13 @@
const mongoose = require("mongoose");
const reportSchema = mongoose.Schema({
_id: mongoose.Types.ObjectId,
date: Date,
users: Number,
restaurants: Number,
subscriptionsActive: Number,
subscriptionsCancelled: Number,
invoicesSent: Number
});
module.exorts = mongoose.model("Report", reportSchema);

View File

@@ -64,6 +64,7 @@ const restaurantSchema = mongoose.Schema({
subscriptionActive: Boolean,
subscriptionStarted: Date,
subscriptionDue: Date,
indexed: Date,
categories: [String],
lunchHours: String,
lunchMenu: [

View File

@@ -13,18 +13,18 @@ const userSchema = mongoose.Schema({
firstname: {
type: String,
required: true,
maxlength: 64,
maxlength: 24,
},
lastname: {
type: String,
required: true,
maxlength: 64,
maxlength: 24,
},
billing: {
NIP: {
type: String,
required: true,
maxlength: 64,
maxlength: 20,
},
adress: {
type: String,