Table stoq_schema.public.payment Generated by
SchemaSpy
Legend: SourceForge.net
Primary key columns
Columns with indexes
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents
id uuid 2147483647 uuid_generate_v1()
account_transaction
check_data
commission
cost_center_entry
credit_card_data
payment_change_history
payment_comment
till_entry
te_id int8 19  √  new_te()
transaction_entry
identifier serial 10  √  nextval('payment_identifier_seq'::regclass)
payment_type payment_type 2147483647
status payment_status 2147483647
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 20,2  √  null
base_value numeric 20,2  √  null
value numeric 20,2  √  null
interest numeric 20,2  √  null
discount numeric 20,2  √  null
description text 2147483647  √  null
payment_number text 2147483647  √  null
penalty numeric 20,2  √  null
bill_received bool 1  √  false
attachment_id uuid 2147483647  √  null
attachment
method_id uuid 2147483647  √  null
payment_method
group_id uuid 2147483647  √  null
payment_group
branch_id uuid 2147483647
branch
category_id uuid 2147483647  √  null
payment_category

Analyzed at Mon Nov 09 14:32 BRST 2015

Indexes:
Column(s) Type Sort Anomalies
id Primary key Asc  
attachment_id Must be unique Asc This unique column is also nullable
identifier + branch_id Must be unique Asc/Asc  
te_id Must be unique Asc This unique column is also nullable

Close relationships  within of separation: