useQuery fix
This commit is contained in:
25
server/src/models/appointment.js
Normal file
25
server/src/models/appointment.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import mongoose from 'mongoose';
|
||||
const Schema = mongoose.Schema;
|
||||
const AppointmentSchema = new Schema({
|
||||
title: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
required: false
|
||||
},
|
||||
timeStart: {
|
||||
type: Date,
|
||||
required: true
|
||||
},
|
||||
timeEnd: {
|
||||
type: Date,
|
||||
required: true
|
||||
},
|
||||
deleted: {
|
||||
type: Boolean,
|
||||
required: false
|
||||
}
|
||||
});
|
||||
export default mongoose.model('appointment', AppointmentSchema);
|
||||
Reference in New Issue
Block a user