| Quintiq file version 2.0 | 
| #parent: #root | 
| EDIBroker MPSync_ImportPeriodsFromDBBroker | 
| { | 
|   MDSDefinition: MPSync | 
|   EDIModelLink.Destination MPSync_DestinationPeriodsForImport | 
|   { | 
|     EDIMLTable IOPeriodParameter_MP | 
|     { | 
|       PrimaryKeyColumns: ID | 
|       TargetType: IOPeriodParameter_MP | 
|       TypeIndex: IOPeriodParameterTypeIndex | 
|       EDIMLColumn ID { Attribute: ID ValueType: String } | 
|       EDIMLColumn StartOfPlanning { Attribute: StartOfPlanning ValueType: DateTime } | 
|     } | 
|     EDIMLTable IOPeriodSpecification_MP | 
|     { | 
|       PrimaryKeyColumns: ID | 
|       TargetType: IOPeriodSpecification_MP | 
|       TypeIndex: IOPeriodSpecificationTypeIndex | 
|       EDIMLColumn ID { Attribute: ID ValueType: String } | 
|       EDIMLColumn IsUsedForPlanning { Attribute: IsUsedForPlanning ValueType: Boolean } | 
|       EDIMLColumn NrOfFuturePeriod { Attribute: NrOfFuturePeriod ValueType: Number } | 
|       EDIMLColumn NrOfHistoricalPeriod { Attribute: NrOfHistoricalPeriod ValueType: Number } | 
|       EDIMLColumn NrOfTimeUnit { Attribute: NrOfTimeUnit ValueType: Number } | 
|       EDIMLColumn PeriodAlignment { Attribute: PeriodAlignment ValueType: DateTime } | 
|       EDIMLColumn TimeUnit { Attribute: TimeUnit ValueType: String } | 
|     } | 
|   } | 
|   EDIODBCLink.Source MPSync_SourcePeriodsForImport | 
|   { | 
|     DataIntegrityStrategy: 'Disabled' | 
|     SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.syncobject' | 
|     EDIODBCLinkTable PeriodParameters | 
|     { | 
|       OthersMayCreateTable: true | 
|       OthersMayDeleteRow: true | 
|       OthersMayDropTable: true | 
|       OthersMayFlushTable: true | 
|       OthersMayInsertRow: true | 
|       Parameters: '/owner="dbo"' | 
|       PrimaryKeyColumns: ID | 
|       RecordModificationHintStrategy: 'None' | 
|       EDIODBCLinkColumn ID | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: String | 
|       } | 
|       EDIODBCLinkColumn StartOfPlanning | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: DateTime | 
|       } | 
|     } | 
|     EDIODBCLinkTable PeriodSpecifications | 
|     { | 
|       OthersMayCreateTable: true | 
|       OthersMayDeleteRow: true | 
|       OthersMayDropTable: true | 
|       OthersMayFlushTable: true | 
|       OthersMayInsertRow: true | 
|       Parameters: '/owner="dbo"' | 
|       PrimaryKeyColumns: ID | 
|       RecordModificationHintStrategy: 'None' | 
|       EDIODBCLinkColumn ID | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: String | 
|       } | 
|       EDIODBCLinkColumn IsInHour | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: String | 
|       } | 
|       EDIODBCLinkColumn IsUsedForPlanning | 
|       { | 
|         ValueType: Boolean | 
|       } | 
|       EDIODBCLinkColumn NrOfFuturePeriod | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: Number | 
|       } | 
|       EDIODBCLinkColumn NrOfHistoricalPeriod | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: Number | 
|       } | 
|       EDIODBCLinkColumn NrOfTimeUnit | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: Number | 
|       } | 
|       EDIODBCLinkColumn PeriodAlignment | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: DateTime | 
|       } | 
|       EDIODBCLinkColumn TimeUnit | 
|       { | 
|         OthersMayUpdateColumn: true | 
|         ValueType: String | 
|       } | 
|     } | 
|   } | 
|   EDITransformation.Transformation MPSync_TransformPeriodsForImport | 
|   { | 
|     EDITableTransformation | 
|     { | 
|       InputTable: PeriodParameters | 
|       OutputTable: IOPeriodParameter_MP | 
|       EDIColumnMatch { InputColumn: ID OutputColumn: ID } | 
|       EDIColumnMatch { InputColumn: StartOfPlanning OutputColumn: StartOfPlanning } | 
|     } | 
|     EDITableTransformation | 
|     { | 
|       InputTable: PeriodSpecifications | 
|       OutputTable: IOPeriodSpecification_MP | 
|       EDIColumnMatch { InputColumn: ID OutputColumn: ID } | 
|       EDIColumnMatch { InputColumn: IsUsedForPlanning OutputColumn: IsUsedForPlanning } | 
|       EDIColumnMatch { InputColumn: NrOfFuturePeriod OutputColumn: NrOfFuturePeriod } | 
|       EDIColumnMatch { InputColumn: NrOfHistoricalPeriod OutputColumn: NrOfHistoricalPeriod } | 
|       EDIColumnMatch { InputColumn: NrOfTimeUnit OutputColumn: NrOfTimeUnit } | 
|       EDIColumnMatch { InputColumn: PeriodAlignment OutputColumn: PeriodAlignment } | 
|       EDIColumnMatch { InputColumn: TimeUnit OutputColumn: TimeUnit } | 
|     } | 
|   } | 
| } |