Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('acq.fund_id_seq'::regclass) |
|
|
||||||||||||||||||||||||||||||||
| org | int4 | 10 | null |
|
|
|||||||||||||||||||||||||||||||||
| name | text | 2147483647 | null |
|
|
|||||||||||||||||||||||||||||||||
| year | int4 | 10 | EXTRACT(year FROM now()) |
|
|
|||||||||||||||||||||||||||||||||
| currency_type | text | 2147483647 | null |
|
|
|||||||||||||||||||||||||||||||||
| code | text | 2147483647 | null |
|
|
|||||||||||||||||||||||||||||||||
| rollover | bool | 1 | false |
|
|
|||||||||||||||||||||||||||||||||
| propagate | bool | 1 | true |
|
|
|||||||||||||||||||||||||||||||||
| active | bool | 1 | true |
|
|
|||||||||||||||||||||||||||||||||
| balance_warning_percent | int4 | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||
| balance_stop_percent | int4 | 10 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| fund_pkey | Primary key | Asc | id |
| code_once_per_org_year | Must be unique | Asc/Asc/Asc | org + code + year |
| name_once_per_org_year | Must be unique | Asc/Asc/Asc | org + name + year |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| acq_fund_rollover_implies_propagate | ((propagate OR (NOT rollover))) |
