Specification » History » Version 2
chin-yeh, 08/08/2011 11:47 AM
1 | 1 | chin-yeh | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h2. Table(s) Used |
||
6 | |||
7 | h3. DP_INTERFACE |
||
8 | |||
9 | <pre> |
||
10 | <code class="SQL"> |
||
11 | create table dp_interface ( |
||
12 | id int not null generated always as identity, |
||
13 | 2 | chin-yeh | process_code varchar(30), |
14 | 1 | chin-yeh | trx_id varchar(30) not null, |
15 | trx_type varchar(15), |
||
16 | 2 | chin-yeh | country_code varchar(10), |
17 | member_id varchar(20), |
||
18 | trx_date varchar(8), |
||
19 | dp_amount decimal(10,2), |
||
20 | invoice_amount decimal(10,2), |
||
21 | 1 | chin-yeh | status varchar(15), |
22 | last_updated timestamp, |
||
23 | error_code varchar(10), |
||
24 | error_message varchar(255), |
||
25 | primary key (id) |
||
26 | ); |
||
27 | |||
28 | 2 | chin-yeh | create unique index idx_dp_id_type on dp_interface(trx_id,trx_type); |
29 | 1 | chin-yeh | create index idx_dp_status on dp_interface(status); |
30 | create index idx_dp_err_code on dp_interface(error_code); |
||
31 | </code> |
||
32 | </pre> |