Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
customer_id | int4 | 10 | √ | null |
|
|
Ref: many-to-one to table customer |
|||||||
int4 | 10 | √ | null |
|
|
Primary Key: an identifier for this record |
||||||||
int4 | 10 | √ | null |
|
|
How many shares apply to this dividend |
||||||||
draw_no | int4 | 10 | √ | null |
|
|
Draw number this dividend applies to (see also dim_draw) |
|||||||
dim_lottery_id | int4 | 10 | √ | null |
|
|
Ref: see table dim_lottery |
|||||||
dim_entry_offer_id | int8 | 19 | √ | null |
|
|
Ref: see table dim_entry_offer |
|||||||
numeric | 14,2 | √ | null |
|
|
Value of this dividend |
||||||||
dim_date_id | int4 | 10 | √ | null |
|
|
Used for date indexing, applied to the date this dividend was created |
|||||||
account_transaction_id | int8 | 19 | √ | null |
|
|
Ref: the payout transaction in account_transaction |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
idx_syndicate_dividend_account_transaction_id | Performance | Asc | account_transaction_id |
idx_syndicate_dividend_customer_id | Performance | Asc | customer_id |
idx_syndicate_dividend_dim_date_id | Performance | Asc | dim_date_id |
idx_syndicate_dividend_dim_entry_offer_id | Performance | Asc | dim_entry_offer_id |
idx_syndicate_dividend_dim_lottery_id | Performance | Asc | dim_lottery_id |
idx_syndicate_dividend_draw_no | Performance | Asc | draw_no |