class StockLevel extends VendureEntity implements HasCustomFields { constructor(input: DeepPartial<StockLevel>) @Index() @ManyToOne(type => ProductVariant, productVariant => productVariant.stockLevels, { onDelete: 'CASCADE' }) productVariant: ProductVariant; @EntityId() productVariantId: ID; @Index() @ManyToOne(type => StockLocation, { onDelete: 'CASCADE' }) stockLocation: StockLocation; @EntityId() stockLocationId: ID; @Column() stockOnHand: number; @Column() stockAllocated: number; @Column(type => CustomStockLevelFields) customFields: CustomStockLevelFields;}