Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| accountId | INT | 10 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| accountingHash | VARCHAR | 30 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| accountingId | VARCHAR | 36 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| activeFlag | BIT | 1 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| carrierServiceId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| creditLimit | DECIMAL | 28,9 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| currencyId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| currencyRate | DECIMAL | 28,9 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dateCreated | DATETIME | 26 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dateLastModified | DATETIME | 26 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| defaultCarrierId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| defaultPaymentTermsId | INT | 10 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| defaultPriorityId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| defaultSalesmanId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| defaultShipTermsId | INT | 10 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| jobDepth | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lastChangedUser | VARCHAR | 100 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | VARCHAR | 41 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| note | VARCHAR | 256 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| number | VARCHAR | 30 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| parentId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| qbClassId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| statusId | INT | 10 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sysUserId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| taxExempt | BIT | 1 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| taxExemptNumber | VARCHAR | 30 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| taxRateId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| toBeEmailed | BIT | 1 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| toBePrinted | BIT | 1 | null |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| url | VARCHAR | 256 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| issuableStatusId | INT | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| customFields | JSON | 1073741824 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| customerNameIdx | Performance | Asc | name |
| customerNumberIdx | Performance | Asc | number |
| FK4g00osq6ky1r9nyimx2xsxva9 | Performance | Asc | carrierServiceId |
| FK94bqsq44lb8q1t7yg3p4xbw7r | Performance | Asc | accountId |
| FKcc0seu1jhtpcxl9pjyfyseyh5 | Performance | Asc | statusId |
| FKcustomerDefaultPriority | Performance | Asc | defaultPriorityId |
| FKdjai2kvporlupbtelejvebh21 | Performance | Asc | taxRateId |
| FKh1kfwowfqhqany0pn3jqnhiy6 | Performance | Asc | defaultPaymentTermsId |
| FKieq94r5kgbqax6xo4g45c3txj | Performance | Asc | parentId |
| FKlr7myb3s9g6ab1k3q9jwerfo6 | Performance | Asc | qbClassId |
| FKo7xxd2shpuh9lxg8v4lksy2fm | Performance | Asc | defaultShipTermsId |
| FKs0r6464d8usongpt7d96x6hwj | Performance | Asc | currencyId |
| FKstgsiyl5p2aqlpu6c4dnj9q5w | Performance | Asc | defaultCarrierId |
| issuableStatusKey | Performance | Asc | issuableStatusId |
| UK_6i1jo7brg3kqpdiw58ye3vasv | Must be unique | Asc | number |
| UKce8f1dpemolf390y20ijetd7k | Must be unique | Asc/Asc | name + parentId |