import PropTypes from "prop-types";
import {PatientPropType} from "./patientPropType.js";
import {UserPropType} from "./userPropType.js";
import {AppointmentTypePropType} from "./appointmentTypePropType.js";

export const ScheduledAppointmentPropType = PropTypes.shape({
    id: PropTypes.number,
    scheduled_datetime: PropTypes.string.isRequired,
    patient_id: PropTypes.number.isRequired,
    doctor_id: PropTypes.number.isRequired,
    type_id: PropTypes.number.isRequired,
    patient: PatientPropType,
    doctor: UserPropType,
    type: AppointmentTypePropType,
})