Skip to content

Commit

Permalink
updated large file feed
Browse files Browse the repository at this point in the history
  • Loading branch information
martypitt committed Jan 14, 2025
1 parent 5d6184e commit 1121171
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion large-file-feed/src/warehouse-report.mongo.taxi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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[]
Expand Down
1 change: 1 addition & 0 deletions large-file-feed/src/warehouse-report.s3.taxi
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
}

0 comments on commit 1121171

Please sign in to comment.