Specification » History » Version 5
chin-yeh, 08/26/2011 05:20 PM
1 | 1 | chin-yeh | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | 5 | chin-yeh | h2. Activity Diagram |
6 | |||
7 | * [[Activity Diagram - Sales]] |
||
8 | * [[Activity Diagram - Return/Exchange]] |
||
9 | * [[Activity Diagram - VIP Upgrade]] |
||
10 | |||
11 | 3 | chin-yeh | h2. Table Schema |
12 | 1 | chin-yeh | |
13 | h3. DP_INTERFACE |
||
14 | 3 | chin-yeh | |
15 | This table stores those events which are needed to submit to DP services. It can also be used to track the status of the submitted events. |
||
16 | 1 | chin-yeh | |
17 | <pre> |
||
18 | <code class="SQL"> |
||
19 | create table dp_interface ( |
||
20 | id int not null generated always as identity, |
||
21 | 2 | chin-yeh | process_code varchar(30), |
22 | 1 | chin-yeh | trx_id varchar(30) not null, |
23 | trx_type varchar(15), |
||
24 | 2 | chin-yeh | country_code varchar(10), |
25 | 4 | chin-yeh | member_name varchar(100), |
26 | 2 | chin-yeh | member_id varchar(20), |
27 | 4 | chin-yeh | new_member_id varchar(20), |
28 | 2 | chin-yeh | trx_date varchar(8), |
29 | dp_amount decimal(10,2), |
||
30 | invoice_amount decimal(10,2), |
||
31 | 1 | chin-yeh | status varchar(15), |
32 | last_updated timestamp, |
||
33 | error_code varchar(10), |
||
34 | error_message varchar(255), |
||
35 | primary key (id) |
||
36 | ); |
||
37 | |||
38 | 2 | chin-yeh | create unique index idx_dp_id_type on dp_interface(trx_id,trx_type); |
39 | 1 | chin-yeh | create index idx_dp_status on dp_interface(status); |
40 | create index idx_dp_err_code on dp_interface(error_code); |
||
41 | </code> |
||
42 | </pre> |