This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
calendar-demo/server/src/models/appointment.js
Riccardo 9c0e997f10 Progress
2021-01-06 16:00:35 +01:00

29 lines
565 B
JavaScript

import mongoose from 'mongoose';
const Schema = mongoose.Schema;
const AppointmentSchema = new Schema({
title: {
type: String,
required: true
},
description: {
type: String,
required: false
},
type: {
type: String,
required: true
},
start: {
type: Date,
required: true
},
end: {
type: Date,
required: true
},
deleted: {
type: Boolean,
required: false
}
});
export default mongoose.model('appointment', AppointmentSchema);