Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | INT | 10 | √ | null |
|
|
|||||
| customerId | INT | 10 | null |
|
|
||||||
| customerPartNumber | VARCHAR | 70 | null |
|
|
||||||
| dateCreated | DATETIME | 26 | √ | null |
|
|
|||||
| dateLastModified | DATETIME | 26 | √ | null |
|
|
|||||
| dateLastPurchased | DATETIME | 26 | √ | null |
|
|
|||||
| lastChangedUserId | INT | 10 | null |
|
|
||||||
| lastPrice | DECIMAL | 28,9 | √ | null |
|
|
|||||
| productId | INT | 10 | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| customerPartNumberIdx | Performance | Asc | customerPartNumber |
| FK1ylk5dwij5rmhh4ln7rttllct | Performance | Asc | lastChangedUserId |
| FKmgyc0iu98bxjy52d6t4bxc9ho | Performance | Asc | customerId |
| UKdbo5xbdq0eavnii6e4iprb401 | Must be unique | Asc/Asc | productId + customerId |