The database of the Order Service.
Type: PostgreSQL
Stores saved addresses of customers.
Column | Type | Nullable? | Default Value | Description |
---|---|---|---|---|
|
uuid |
false |
The unique ID of this address. |
|
|
uuid |
false |
The unique ID of the customer this address belongs to. |
|
|
text |
true |
The name of the customer used for this address. |
|
|
text |
true |
The name of the street incl. house numbers and other additions. |
|
|
text |
true |
The name of the city. |
|
|
text |
true |
The ZIP code. |
|
|
character (2) |
true |
A ISO 3166-2 country code. |
Central table of this service. Stores all orders and their state.
Column | Type | Nullable? | Default Value | Description |
---|---|---|---|---|
|
uuid |
false |
The unique ID of this address. |
|
|
uuid |
false |
The unique ID of the customer from the central customer management service. |
|
|
timestamp with time zone |
false |
The exact point in time when this order was submitted by the customer. |
|
|
timestamp with time zone |
true |
The exact point in time when this order was dispatched to the customer. |
|
|
uuid |
false |
ID of the address used for billing. Foreign key from 'addresses' table. |
|
|
uuid |
false |
ID of the address used for shipping. Foreign key from 'addresses' table. |
|
|
text |
false |
'OPEN'::text |
The status of the order. Can be 'OPEN', 'PROCESSING', 'DISPATCHED', 'DELIVERED', 'CANCELED' or 'FAILED' |