Table stoq_schema.public.invoice 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
id uuid 2147483647 uuid_generate_v1()
loan.invoice_id loan_invoice_id_fkey R
returned_sale.invoice_id returned_sale_invoice_id_fkey R
sale.invoice_id sale_invoice_id_fkey R
stock_decrease.invoice_id stock_decrease_invoice_id_fkey R
transfer_order.invoice_id transfer_order_invoice_id_fkey R
te_id int8 19  √  new_te()
transaction_entry.id invoice_te_id_fkey R
invoice_number int4 10  √  null
operation_nature text 2147483647  √  null
invoice_type invoice_type 2147483647
key text 2147483647  √  null
cnf text 2147483647  √  null
branch_id uuid 2147483647  √  null
branch.id invoice_branch_id_fkey R

Analyzed at Fri Jun 10 16:06 BRT 2016

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc invoice_pkey  
branch_id + invoice_number Must be unique Asc/Asc invoice_branch_id_invoice_number_key These unique columns are also nullable
te_id Must be unique Asc invoice_te_id_key This unique column is also nullable

Close relationships  within of separation: