Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
artefact_stack_id | INT UNSIGNED | 10 | √ | null |
|
|
||||
artefact_A_id | INT UNSIGNED | 10 | null |
|
|
The first artefact in the stack. |
||||
artefact_B_id | INT UNSIGNED | 10 | null |
|
|
The second artefact in the stack. |
||||
artefact_B_offset | GEOMETRY | 0 | st_geometryfromtext('POINT(0 0)') |
|
|
Gives the offset by which the artefact B must be moved to match the artefact A. The offset is a POINT geometry. |
||||
layer_A | TINYINT UNSIGNED | 3 | 1 |
|
|
Gives the number of the layer in the stack to which artefact A belongs. In the case of a recto/verso match, this would be 0. In the case of a wad, a higher number should indicate a layer that is closer to the outside of the scroll, or the front of the codex. |
||||
layer_B | TINYINT UNSIGNED | 3 | 1 |
|
|
Gives the number of the layer in the stack to which artefact B belongs. In the case of a recto/verso match, this would be 0. In the case of a wad, a higher number should indicate a layer that is closer to the outside of the scroll, or the front of the codex. |
||||
A_is_verso | TINYINT UNSIGNED | 3 | 0 |
|
|
Boolean whether srtefact A is recto=0 or verso=1. |
||||
B_is_verso | TINYINT UNSIGNED | 3 | 1 |
|
|
Boolean whether srtefact B is recto=0 or verso=1. |
||||
reason | enum('RECTO_VERSO', 'FOUND_IN_A_STACK', 'PART_OF_A_WAD', 'RECONSTRUCTED_STACK') | 19 | 'RECTO_VERSO' |
|
|
|||||
TINYINT UNSIGNED | 3 | 0 |
|
|
True if the given region of artefact_B represents a region which appears on the surface of artefact_A (bleeding through, ink glued to the next layer). |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | artefact_stack_id |
fk_af_stack_A_to_artefact_idx | Performance | Asc | artefact_A_id |
fk_af_stack_B_to_artefact_idx | Performance | Asc | artefact_B_id |
unique_artefact_stack | Must be unique | Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc | A_is_verso + artefact_A_id + artefact_B_id + artefact_B_offset + B_is_verso + layer_A + layer_B + reason + shared |