<Databases>
  <Database>
    <Tables>
      <Table Name="T_PATIENT" Schema="AKUZ">
        <AddColumns>
          <Column Name="MVDDocumentType" Type="int" IsNullable="1" />
          <Column Name="MVDDocSeries" Type="string" Length="255" IsNullable="1" />
          <Column Name="MVDDocNumber" Type="string" Length="255" IsNullable="1" />
          <Column Name="MVDBeginDate" Type="date" IsNullable="1" />
          <Column Name="MVDEndDate" Type="date" IsNullable="1" />
          <Column Name="MVDPatientRank" Type="guid" IsNullable="1" />
          <Column Name="MVDPatientPost" Type="guid" IsNullable="1" />
          <Column Name="MVDServicePlace" Type="string" Length="255" IsNullable="1" />
        </AddColumns>
        <ForeignKeys>
          <ForeignKey Name="FK_T_PATIENT_RANK_MVD_T_PATIENT_MVDPatientRank" Column="MVDPatientRank" Table="T_PATIENT_RANK_MVD" TableSchema="AKUZ" TableColumn="PatientRankMvdID" CascadeDelete="0" CascadeUpdate="0" />
          <ForeignKey Name="FK_T_PATIENT_POST_MVD_T_PATIENT_MVDPatientPost" Column="MVDPatientPost" Table="T_PATIENT_POST_MVD" TableSchema="AKUZ" TableColumn="PatientPostMvdID" CascadeDelete="0" CascadeUpdate="0" />
        </ForeignKeys>
      </Table>
      <Table Name="T_PATIENT_POST_MVD" Schema="AKUZ">
				<Columns>
					<Column Name="PatientPostMvdID" Type="guid" IsNullable="0" />
					<Column Name="Code" Type="int" IsNullable="0" />
					<Column Name="Name" Type="string" Length="255" IsNullable="1" />
				</Columns>
				<PrimaryKey Name="PK_T_PATIENT_POST_MVD" Clustered="1">
					<Column Name="PatientPostMvdID" />
				</PrimaryKey>
			</Table>
      <Table Name="T_PATIENT_RANK_MVD" Schema="AKUZ">
        <Columns>
          <Column Name="PatientRankMvdID" Type="guid" IsNullable="0" />
          <Column Name="Code" Type="int" IsNullable="0" />
          <Column Name="Name" Type="string" Length="255" IsNullable="1" />
        </Columns>
        <PrimaryKey Name="PK_T_PATIENT_RANK_MVD" Clustered="1">
          <Column Name="PatientRankMvdID" />
        </PrimaryKey>
      </Table>
    </Tables>
  </Database>
</Databases>