| Table a_daily_exchange_rate | 
| 
Description: Ad hoc exchange rates.  | 
| PRIMARY KEY | ||
| 
a_from_currency_code_c
 
varchar (16) NOT NULL  | Defines the currency being exchanged | a_currency | 
| 
a_to_currency_code_c
 
varchar (16) NOT NULL  | Defines which currency is being changed to | a_currency | 
| 
a_date_effective_from_d
 
date default: CURRENT_DATE NOT NULL  | Date the exchange rate becomes effective | |
| 
a_time_effective_from_i
 
integer default: 0 NOT NULL  | The date and time | |
| 
a_rate_of_exchange_n
 
numeric (24, 10) default: 0 NOT NULL  | The rate of exchange | |
| 
s_date_created_d
 
date default: CURRENT_DATE  | The date the record was created. | |
| 
s_created_by_c
 
varchar (20)  | User ID of who created this record. | s_user | 
| 
s_date_modified_d
 
date  | The date the record was modified. | |
| 
s_modified_by_c
 
varchar (20)  | User ID of who last modified this record. | s_user | 
| 
s_modification_id_t
 
timestamp default: CURRENT_TIMESTAMP  | This identifies the current version of the record. | |
FOREIGN KEY a_daily_exchange_rate_fk1: a_from_currency_code_c => a_currency a_daily_exchange_rate_fk2: a_to_currency_code_c => a_currency a_daily_exchange_rate_fkcr: s_created_by_c => s_user a_daily_exchange_rate_fkmd: s_modified_by_c => s_user  | ||