Project

General

Profile

Specification » History » Version 2

chin-yeh, 10/25/2011 04:35 PM

1 2 chin-yeh
{{toc}}
2
3 1 chin-yeh
h1. Specification
4 2 chin-yeh
5
h2. Table Used
6
7
h3. SP_INTERFACE
8
9
This table keeps those transaction that needed to or going to submit to SP web services.
10
11
<pre>
12
<code class="SQL">
13
create table sp_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
	trx_date varchar(8),
21
	status varchar(15),
22
	last_updated timestamp,
23
	error_code varchar(10),
24
	error_message varchar(255),
25
	primary key (id)
26
);
27
28
create unique index idx_sp_id_type on sp_interface(trx_id,trx_type);
29
create index idx_sp_status on sp_interface(status);
30
create index idx_sp_err_code on sp_interface(error_code);
31
</code>
32
</pre>