first commit

This commit is contained in:
2026-07-16 20:48:43 -03:00
commit 5696cee264
1111 changed files with 322270 additions and 0 deletions
@@ -0,0 +1,26 @@
import { Document, Model, Schema, model } from "mongoose";
export interface IAppointment {
companyId: string;
start: Date;
notificated?: boolean;
notificationIntents?: number;
}
export interface IAppointmentDocument extends Omit<IAppointment, "id">, Document {}
export class Appointments {
schema: Schema;
appointmentsList: Model<IAppointmentDocument>;
constructor() {
this.schema = new Schema({
companyId: { type: Schema.Types.ObjectId, required: true, ref: "Companie" },
start: { type: Date, required: true },
notificated: { type: Boolean, required: false },
notificationIntents: { type: Number, required: false },
});
this.appointmentsList = model<IAppointmentDocument>("Appointment", this.schema);
}
}