UNPKG

booking-management

Version:

A lightweight Node.js SDK for handling time-slot bookings.

11 lines (9 loc) 303 B
import mongoose from 'mongoose'; const configSchema = new mongoose.Schema({ availableTime: { start: { type: String, required: true }, end: { type: String, required: true } }, offDays: [{ type: String }] }); export default mongoose.models.Config || mongoose.model('Config', configSchema);