FND_RRA_ODRS_
This table will store order details
Details
-
Schema: REDWOODREFERENTIAL
-
Object owner: FND
-
Object type: TABLE
-
Tablespace: Default
Primary Key
| Name | Columns |
|---|---|
|
FND_RRA_ODRS_PK_ |
LAST_UPDATE_DATE, LAST_UPDATED_BY, ORDER_ID |
Columns
| Name | Datatype | Length | Precision | Not-null | Comments |
|---|---|---|---|---|---|
| ORDER_ID | NUMBER | 18 | Yes | Primary key field for orders | |
| ORDER_NUMBER | VARCHAR2 | 30 | User key field for orders | ||
| ORDER_DATE | DATE | Date the order was placed | |||
| CHANGE_DATE | DATE | Date the order was changed. Same as order date to start with. | |||
| SUBMIT_DATE | DATE | Date the order was submitted for processing | |||
| SHIP_DATE | DATE | Date the order was shipped | |||
| DELIVERY_DATE | DATE | Date the order was delivered | |||
| SHIPPING_METHOD_ID | NUMBER | 18 | Shipping method identifier referenced from FND_RRA_SHIPPING_METHODS | ||
| SHIPPING_COST | NUMBER | 9 | Cost for shipping based on chosen shipping method | ||
| ESTIMATED_DELIVERY_DATE | DATE | Estimated date the order will be delivered | |||
| BASKET_FLAG | VARCHAR2 | 1 | Determines if this is a basket record. There can be only 1 record for a user with value = 'Y'. When a user start adding items to a basket, a record is created in orders table with basket_flag = 'Y' and once user submits the order, the value changes to 'N' and order gets assigned a appropriate status value | ||
| ORDER_STATUS | VARCHAR2 | 30 | Values could be 'DRAFT', 'PROCESSING', 'SHIPPED', 'DELIVERED' | ||
| CUSTOMER_ID | NUMBER | 18 | Reference to the customer creating the order | ||
| CURRENCY_CODE | VARCHAR2 | 15 | Unique identifier for the currency (Can reference FND_CURRENCIES.currency_code) | ||
| TOTAL_AMOUNT | NUMBER | Total amount for the order as the sum of items ordered and shipping cost | |||
| CONVERSION_RATE | NUMBER | Currency conversion rate used to convert from base currency to user preferred currecy | |||
| SHIP_TO_ADDRESS_ID | NUMBER | 18 | Reference to customer addresses for the customer | ||
| BILL_TO_ADDRESS_ID | NUMBER | 18 | Reference to customer addresses for the customer | ||
| COMMENTS | VARCHAR2 | 240 | Descriptive comments for the order | ||
| CREATED_BY | VARCHAR2 | 64 | Who column: indicates the user who created the row. | ||
| CREATION_DATE | TIMESTAMP | Who column: indicates the date and time of the creation of the row. | |||
| LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
| LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
| LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
| OBJECT_VERSION_NUMBER | NUMBER | 9 | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. | ||
| AUDIT_ACTION_TYPE_ | VARCHAR2 | 10 | Action Type - have values like INSERT, UPDATE and DELETE. | ||
| AUDIT_CHANGE_BIT_MAP_ | VARCHAR2 | 1000 | Used to store a bit map of 1s and 0s for each column in the table. | ||
| AUDIT_IMPERSONATOR_ | VARCHAR2 | 64 | Original Impersonator User. |
Indexes
| Index | Uniqueness | Tablespace | Columns |
|---|---|---|---|
| FND_RRA_ODRSN1_ | Non Unique | Default | ORDER_ID |
| FND_RRA_ODRSU1_ | Unique | Default | LAST_UPDATE_DATE, LAST_UPDATED_BY, ORDER_ID |