Project

General

Profile

Specification » History » Version 4

chin-yeh, 08/19/2011 03:10 PM

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