Table openpetra_trunk.public.a_gift_batch
Information describing groups (batches) of gifts.

Generated by
SchemaSpy
Legend: SourceForge.net
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents Comments
a_ledger_number_i int4 10 0
a_gift.a_ledger_number_i a_gift_fk1 R
a_processed_fee.a_ledger_number_i a_processed_fee_fk4 R
a_cost_centre.a_ledger_number_i a_gift_batch_fk3 R
a_ledger.a_ledger_number_i a_gift_batch_fk1 R
a_account.a_ledger_number_i a_gift_batch_fk2 R
ledger number
a_batch_number_i int4 10 0
a_gift.a_batch_number_i a_gift_fk1 R
a_processed_fee.a_batch_number_i a_processed_fee_fk4 R
Gift batch number
a_batch_description_c varchar 80  √  null gift batch description
s_modification_date_d date 13  √  ('now'::text)::date date of user entry or last modification.
a_hash_total_n numeric 24,10  √  0 hash total for the gift batch
a_batch_total_n numeric 24,10  √  0 total for the gift batch
a_bank_account_code_c varchar 16
a_account.a_account_code_c a_gift_batch_fk2 R
bank account code which this batch is for
a_last_gift_number_i int4 10  √  0 last gift number of the batch
a_batch_status_c varchar 16  √  'Unposted'::character varying Status of a gift batch: unposted, posted, cancelled.
a_batch_period_i int4 10 0 The accounting period that the batch belongs to. Must be less than or equal to 20.
a_batch_year_i int4 10 The financial year that the batch belongs to.
a_gl_effective_date_d date 13 ('now'::text)::date Effective date when posted to the general ledger.
a_currency_code_c varchar 16
a_currency.a_currency_code_c a_gift_batch_fk4 R
This defines which currency is being used
a_exchange_rate_to_base_n numeric 24,10 0 The rate of exchange
a_bank_cost_centre_c varchar 24
a_cost_centre.a_cost_centre_code_c a_gift_batch_fk3 R
This identifies which cost centre is applied to the bank
a_gift_type_c varchar 16 'Gift'::character varying What type of gift is this? a gift or a gift in kind generally
a_method_of_payment_code_c varchar 16  √  null This is how the partner paid. EgCash, Cheque etc
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c a_gift_batch_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_gift_batch_fkmd R
s_modification_id_c varchar 150  √  null

Table contained 22.724 rows at Do Nov 10 18:00 MEZ 2011

Indexes:
Column(s) Type Sort Constraint Name
a_ledger_number_i + a_batch_number_i Primary key Asc/Asc a_gift_batch_pk
a_ledger_number_i + a_batch_status_c + a_gl_effective_date_d Performance Asc/Asc/Asc date_effective0
a_ledger_number_i Performance Asc inx_a_gift_batch_fk1_key2
a_ledger_number_i + a_bank_account_code_c Performance Asc/Asc inx_a_gift_batch_fk2_key3
a_ledger_number_i + a_bank_cost_centre_c Performance Asc/Asc inx_a_gift_batch_fk3_key4
a_currency_code_c Performance Asc inx_a_gift_batch_fk4_key5
s_created_by_c Performance Asc inx_a_gift_batch_fkcr_key6
s_modified_by_c Performance Asc inx_a_gift_batch_fkmd_key7
a_ledger_number_i + a_batch_number_i Must be unique Asc/Asc inx_a_gift_batch_pk1
a_ledger_number_i + a_batch_number_i Performance Asc/Asc inx_a_processed_fee_fk4_ref0
a_ledger_number_i + a_batch_status_c + a_batch_year_i + a_batch_period_i Performance Asc/Asc/Asc/Asc period_effective1

Close relationships  within of separation: