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 |
ORDER_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
ORDER_ID | NUMBER | 18 | Yes | Primary key field for orders | |
ORDER_NUMBER | VARCHAR2 | 30 | Yes | User key field for orders | |
ORDER_DATE | DATE | Yes | Date the order was placed | ||
CHANGE_DATE | DATE | Yes | 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 | Yes | Shipping method identifier referenced from FND_RRA_SHIPPING_METHODS | |
SHIPPING_COST | NUMBER | 9 | Yes | Cost for shipping based on chosen shipping method | |
ESTIMATED_DELIVERY_DATE | DATE | Yes | 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 | Yes | Values could be 'DRAFT', 'PROCESSING', 'SHIPPED', 'DELIVERED' | |
CUSTOMER_ID | NUMBER | 18 | Yes | 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 | Yes | Currency conversion rate used to convert from base currency to user preferred currecy | ||
SHIP_TO_ADDRESS_ID | NUMBER | 18 | Yes | Reference to customer addresses for the customer | |
BILL_TO_ADDRESS_ID | NUMBER | 18 | Yes | Reference to customer addresses for the customer | |
COMMENTS | VARCHAR2 | 240 | Descriptive comments for the order | ||
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
CREATION_DATE | TIMESTAMP | Yes | 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 | Yes | 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. |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
FND_RRA_ODRS_U1 | Unique | Default | ORDER_ID |
FND_RRA_ODRS_U2 | Unique | Default | ORDER_NUMBER |