Skip to main content

Order Service Data Model

Auto-generated from TypeORM entity definitions. Last synced: 2026-03-15

Database schema: orders

OrderItem

Table: order_items

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
orderIduuidNo---
productIdvarcharNo---
productSnapshotProductSnapshotNo---
quantityintNo--1
configurationServiceConfigurationNo---
pricingItemPricingNo---
statusvarcharNo--OrderItemStatus.PENDING
provisioningRefProvisioningReferenceNo---
deliveryInfoServiceDeliveryInfoNo---
statusHistoryItemStatusChange[]No---
createdAtDateNo---
updatedAtDateNo---

Relations

PropertyTypeTargetJoin Column
orderManyToOneOrder-

Order

Table: orders

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
orderNumbervarcharNo-Yes-
tenantIduuidNo---
customerIdvarcharNo---
statusvarcharNo--OrderStatus.DRAFT
typevarcharNo--OrderType.NEW_SERVICE
pricingOrderPricingNo---
paymentInfoPaymentInfoNo---
timelineOrderTimelineNo---
metadataRecordstring, unknownNo---
createdAtDateNo---
updatedAtDateNo---

Relations

PropertyTypeTargetJoin Column
itemsOneToManyOrderItem-