From 11211717297cc165521fcf3cbba439298a09d63f Mon Sep 17 00:00:00 2001 From: Marty Pitt Date: Tue, 14 Jan 2025 08:24:58 +0000 Subject: [PATCH] updated large file feed --- large-file-feed/src/warehouse-report.mongo.taxi | 15 ++++++++++++++- large-file-feed/src/warehouse-report.s3.taxi | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/large-file-feed/src/warehouse-report.mongo.taxi b/large-file-feed/src/warehouse-report.mongo.taxi index 459d3b0..c7db2b4 100644 --- a/large-file-feed/src/warehouse-report.mongo.taxi +++ b/large-file-feed/src/warehouse-report.mongo.taxi @@ -14,7 +14,6 @@ import com.warehouse.VirtualWarehouseId @Collection(connection = "warehouseMongo", collection = "inventoryReports") closed parameter model WarehouseInventoryDocument { - entryId : EntryId inherits String timestamp : RecordTimeStamp virtualId: VirtualWarehouseId physicalId: PhysicalWarehouseId @@ -31,6 +30,20 @@ closed parameter model WarehouseInventoryDocument { updatedAt: UpdateAt inherits Instant = now() } + +model WarehouseEnrichedRow { + timestamp : RecordTimeStamp + virtualId: VirtualWarehouseId + physicalId: PhysicalWarehouseId + digitalId: DigitalWarehouseId + + sku: Sku + brandName: BrandName + unitCost: UnitCost + available: AvailableQuantity + stockValue: StockValue = UnitCost * AvailableQuantity +} + @MongoService(connection = "warehouseMongo") service MongoWarehouseService { table warehouseInventory : WarehouseInventoryDocument[] diff --git a/large-file-feed/src/warehouse-report.s3.taxi b/large-file-feed/src/warehouse-report.s3.taxi index 1067aa8..073b94b 100644 --- a/large-file-feed/src/warehouse-report.s3.taxi +++ b/large-file-feed/src/warehouse-report.s3.taxi @@ -40,5 +40,6 @@ closed model WarehouseInventoryRecord { @S3Service(connectionName = "my-aws-account" ) service S3WarehouseService { @S3Operation(bucket = "warehouse-reports") + @com.orbitalhq.caching.Cache(mode = 'Disabled') operation getReports(filename:FilenamePattern = "*.csv"):WarehouseInventoryRecord[] }