Project

General

Profile

Specification » History » Version 3

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

1 1 chin-yeh
{{toc}}
2
3
h1. Specification
4
5
h2. Table Schema
6
7
h3. VP_INTERFACE
8
9 2 chin-yeh
This table stores those events which are needed to submit to VP 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 vp_interface (
14
	id int not null generated always as identity,
15
	process_code varchar(30),
16
	trx_id varchar(30) not null,
17
	trx_type varchar(15),
18
	country_code varchar(10),
19
	member_id varchar(20),
20
	member_name varchar(100),
21 3 chin-yeh
	trx_date varchar(8),
22 1 chin-yeh
	reg_date varchar(8),
23
	expiry_date varchar(8),
24
	vp_amount decimal(10,2),
25
	invoice_amount decimal(10,2),
26
	status varchar(15),
27
	last_updated timestamp,
28
	error_code varchar(10),
29
	error_message varchar(255),
30
	primary key (id)
31
);
32
33
create unique index idx_vp_id_type on vp_interface(trx_id,trx_type);
34
create index idx_vp_status on vp_interface(status);
35
create index idx_vp_err_code on vp_interface(error_code);
36
</code>
37
</pre>