Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | CHAR | 36 | null |
|
|
|||||||||||||||||||||||||||||||
| name | VARCHAR | 255 | √ | null |
|
|
||||||||||||||||||||||||||||||
| date_entered | DATETIME | 26 | √ | null |
|
|
||||||||||||||||||||||||||||||
| date_modified | DATETIME | 26 | √ | null |
|
|
||||||||||||||||||||||||||||||
| modified_user_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| created_by | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| description | TEXT | 65535 | √ | null |
|
|
||||||||||||||||||||||||||||||
| deleted | BIT | 1 | √ | 0 |
|
|
||||||||||||||||||||||||||||||
| start_date | DATE | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||
| end_date | DATE | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||
| service | BIT | 1 | √ | 0 |
|
|
||||||||||||||||||||||||||||||
| total_revenue | DECIMAL | 26,6 | √ | null |
|
|
||||||||||||||||||||||||||||||
| total_quantity | DECIMAL | 18,2 | √ | null |
|
|
||||||||||||||||||||||||||||||
| pli_count | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||
| renewable | BIT | 1 | √ | 0 |
|
|
||||||||||||||||||||||||||||||
| product_template_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| account_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| type_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| category_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| sync_key | VARCHAR | 100 | √ | null |
|
|
||||||||||||||||||||||||||||||
| assigned_user_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| team_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| team_set_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| acl_team_set_id | CHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||
| currency_id | CHAR | 36 | √ | -99 |
|
|
||||||||||||||||||||||||||||||
| base_rate | DECIMAL | 26,6 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_purch_del_accountid | Performance | Asc/Asc | deleted + account_id |
| idx_purchases_acl_tmst_id | Performance | Asc/Asc | acl_team_set_id + deleted |
| idx_purchases_assigned_del | Performance | Asc/Asc | assigned_user_id + deleted |
| idx_purchases_del_d_e | Performance | Asc/Asc/Asc | deleted + date_entered + id |
| idx_purchases_del_d_m | Performance | Asc/Asc/Asc | deleted + date_modified + id |
| idx_purchases_id_del | Performance | Asc/Asc | id + deleted |
| idx_purchases_name_del | Performance | Asc/Asc | name + deleted |
| idx_purchases_skey | Must be unique | Asc | sync_key |
| idx_purchases_tmst_id | Performance | Asc/Asc | team_set_id + deleted |

