generated from moevm/nsql-clean-tempate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,9 +66,9 @@ class DataInitializer { | |
const patientIds: Types.ObjectId[] = patientUsers.map(patient => patient._id!) as Types.ObjectId[]; | ||
|
||
const testData: PatientDto[] = [ | ||
{ _id: patientIds[0], name: "Максим", surname: "Тишкин", email: "[email protected]", birthdate: "22.08.2002", contact: "987654321", bloodgroup: "A+", card: "0001" }, | ||
{ _id: patientIds[1], name: "Саша", surname: "Морозов", email: "[email protected]", birthdate: "22.08.2002", contact: "987654321", bloodgroup: "A+", card: "0002" }, | ||
{ _id: patientIds[2], name: "Миша", surname: "Переверза", email: "[email protected]", birthdate: "22.08.2002", contact: "987654321", bloodgroup: "A+", card: "0003" }, | ||
{ _id: patientIds[0], name: "Максим", surname: "Тишкин", email: "[email protected]", birthdate: "22.08.2002", contact: "88005553535", bloodgroup: "A+", card: "0001" }, | ||
{ _id: patientIds[1], name: "Саша", surname: "Морозов", email: "[email protected]", birthdate: "22.08.2002", contact: "88219876532", bloodgroup: "A+", card: "0002" }, | ||
{ _id: patientIds[2], name: "Миша", surname: "Переверза", email: "[email protected]", birthdate: "22.08.2002", contact: "89638527415", bloodgroup: "A+", card: "0003" }, | ||
]; | ||
|
||
await PatientsMongoCollection.insertMany(testData); | ||
|
@@ -85,9 +85,9 @@ class DataInitializer { | |
const doctorId = new Types.ObjectId(String(doctorUser?._id)) | ||
|
||
const testData: AppoitmentDto[] = [ | ||
{ _id: new mongoose.Types.ObjectId(), date: "01/01/2024, 00:00-08:00", procedure_id: procedureId, patient_id: patientIds[0], doctor_id: doctorId }, | ||
{ _id: new mongoose.Types.ObjectId(), date: "02/01/2024, 00:00-08:00", procedure_id: procedureId, patient_id: patientIds[1], doctor_id: doctorId }, | ||
{ _id: new mongoose.Types.ObjectId(), date: "03/01/2024, 00:00-08:00", procedure_id: procedureId, patient_id: patientIds[2], doctor_id: doctorId }, | ||
{ _id: new mongoose.Types.ObjectId(), date: "01.01.2024, 11:00", procedure_id: procedureId, patient_id: patientIds[0], doctor_id: doctorId }, | ||
{ _id: new mongoose.Types.ObjectId(), date: "02.01.2024, 11:00", procedure_id: procedureId, patient_id: patientIds[1], doctor_id: doctorId }, | ||
{ _id: new mongoose.Types.ObjectId(), date: "03.01.2024, 11:00", procedure_id: procedureId, patient_id: patientIds[2], doctor_id: doctorId }, | ||
]; | ||
|
||
await AppoitmentMongoCollection.insertMany(testData); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters