diff --git a/src/model/CargoBike.ts b/src/model/CargoBike.ts index 67a3661..7518945 100644 --- a/src/model/CargoBike.ts +++ b/src/model/CargoBike.ts @@ -197,6 +197,7 @@ export class CargoBike implements Lockable { @ManyToOne(type => Provider, provider => provider.cargoBikeIds, { nullable: true }) + @JoinColumn({ name: 'providerId' }) providerId: number; @OneToMany(type => BikeEvent, bikeEvent => bikeEvent.cargoBikeId, { diff --git a/src/schema/type-defs.ts b/src/schema/type-defs.ts index 99027da..c6fc11a 100644 --- a/src/schema/type-defs.ts +++ b/src/schema/type-defs.ts @@ -117,13 +117,13 @@ input CargoBikeUpdateInput { dimensionsAndLoad: DimensionsAndLoadUpdateInput """ Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 - If set, ols realtions will be over written. Set [] to delete all + If set, ols relations will be over written. Set [] to delete all """ equipmentTypeIds: [ID] "Sticker State" stickerBikeNameState: StickerBikeNameState note: String - provider: String + providerId: ID insuranceData: InsuranceDataUpdateInput taxes: TaxesUpdateInput "will keep Bike locked if set to true, default = false"