Table george.public.payment Generated by
SchemaSpy
Related columns Constraint names Comments Legend
Legend: SourceForge.net
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
Dashed lines show
implied relationships
< n > number of related tables
Please support this project 
Column Type Size Nulls Auto Default Children Parents Comments
id bigserial 19  √  nextval('payment_id_seq'::regclass)
check_data.payment_id check_data_payment_id_fkey
commission.payment_id commission_payment_id_fkey
credit_card_data.payment_id credit_card_data_payment_id_fkey
payment_adapt_to_in_payment.original_id payment_adapt_to_in_payment_original_id_fkey
payment_adapt_to_out_payment.original_id payment_adapt_to_out_payment_original_id_fkey
payment_change_history.payment_id payment_change_history_payment_id_fkey
te_created_id int8 19  √  null
transaction_entry.id payment_te_created_id_fkey
te_modified_id int8 19  √  null
transaction_entry.id payment_te_modified_id_fkey
status int4 10  √  null
open_date timestamp 29,6  √  null
due_date timestamp 29,6  √  null
paid_date timestamp 29,6  √  null
cancel_date timestamp 29,6  √  null
paid_value numeric 10,2  √  null
base_value numeric 10,2  √  null
value numeric 10,2  √  null
interest numeric 10,2  √  null
discount numeric 10,2  √  null
description text 2147483647  √  null
payment_number text 2147483647  √  null
method_id int8 19  √  null
payment_method.id payment_method_id_fkey
group_id int8 19  √  null
payment_group.id payment_group_id_fkey
till_id int8 19  √  null
till.id payment_till_id_fkey
destination_id int8 19  √  null
payment_destination.id payment_destination_id_fkey
category_id int8 19  √  null
payment_category.id payment_category_id_fkey
penalty numeric 10,2  √  null

Table contained 4 rows at Tue Jul 14 15:21 GMT-03:00 2009

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc payment_pkey  
te_created_id Must be unique Asc payment_te_created_id_key This unique column is also nullable
te_modified_id Must be unique Asc payment_te_modified_id_key This unique column is also nullable

Close relationships  within one two degrees of separation :