<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="MEDICAL_SERVICE_PRG_DEVICE_LINK" 
Description="Связка услуги с аппаратом" 
PrimaryKey="MedicalServicePrgDeviceLinkID">
  <Fields>
    <Attribute Name="MedicalServicePrgDeviceLinkID" Type="guid" Description="Идентификатор" />
    <Parent Name="PrgDevice" Type="AKUZ.PRG_DEVICE" Description="Диагностический аппарат" Required="1" />
    <Parent Name="MedicalService" Type="AKUZ.MEDICAL_SERVICE" Description="Медицинские услуги" Required="1" />
    <Parent Name="Resource" Type="AKUZ.RESOURCE" Description="Ресурс" />
    <Child Name="DeviceSchedules" Type="AKUZ.DEVICE_SCHEDULE" Description="Расписание работы аппарата" ChildAttribute="MedicalServicePrgDeviceLink" />
  </Fields>
  <DbMapping>
    <Table name="T_MEDICAL_SERVICE_PRG_DEVICE_LINK">
      <Map Name="MedicalServicePrgDeviceLinkID" Column="MedicalServicePrgDeviceLinkID" />
      <Map Name="PrgDevice" Column="PrgDevice" />
      <Map Name="MedicalService" Column="MedicalService" />
      <Map Name="Resource" Column="Resource" />
    </Table>
  </DbMapping>
</Entity>