loan

551 rows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
loan_number varchar 15 ''::character varying
date_start date 13 null
date_end date 13 √ null
type int2 5 √ null
list_loan_type.id loan_ibfk_1 R
project varchar 150 √ NULL::character varying
borrower_id int8 19 √ null
agent.id loan_ibfk_4 R
borrower_institution_id int8 19 √ null
agent.id loan_ibfk_6 R
loaner_id int8 19 √ null
agent.id loan_ibfk_3 R
date_signed date 13 √ null
delivery_method int8 19 √ null
deliverer_id int8 19 √ null
agent.id loan_ibfk_2 R
delivery_remarks varchar 255 √ NULL::character varying
returned bool 1 false
date_returned date 13 √ null
special varchar 255 √ NULL::character varying
remarks text 2147483647 √ null
database_id int2 5 '1'::smallint
database.id loan_ibfk_5 R
user_added varchar 50 √ NULL::character varying
date_added timestamptz 35,6 √ null
user_changed varchar 50 √ NULL::character varying
date_changed timestamptz 35,6 √ null
loan_id bigserial 19 √ nextval('loan_loan_id_seq'::regclass)
attachment_link.loan_id attachment_link_loan_id_106be298_fk_loan_loan_id R
loan_sample.loan_id loan_sample_ibfk_3 R
loan_specimen.loan_id loan_specimen_ibfk_1 R
timestamp timestamptz 35,6 √ null

Indexes

Constraint Name Type Sort Column(s)
idx_750060_primary Primary key Asc loan_id
idx_750060_borrower_id Performance Asc borrower_id
idx_750060_borrower_institution_id Performance Asc borrower_institution_id
idx_750060_database_id Performance Asc database_id
idx_750060_date_returned Performance Asc date_returned
idx_750060_delivery_method Performance Asc/Asc delivery_method + deliverer_id
idx_750060_fk_loan_4 Performance Asc deliverer_id
idx_750060_loan_number Must be unique Asc loan_number
idx_750060_loaner_id Performance Asc loaner_id
idx_750060_type Performance Asc type

Relationships