| | 82 | |
| | 83 | When queuing, the sky is split into equally sized boxes, the size of which is determined in the config in use. The {{{box}}} tables lists the RA/Dec centers of each box, as well as the box size, for each config that currently has items queued. |
| | 84 | |
| | 85 | |
| | 86 | {{{ |
| | 87 | +---------------------+-------+--------+-----------+------------+----------+ |
| | 88 | | timestamp | id | config | ra_center | dec_center | box_side | |
| | 89 | +---------------------+-------+--------+-----------+------------+----------+ |
| | 90 | | 2012-04-03 16:47:35 | 41879 | new3pi | 2 | -28 | 4 | |
| | 91 | | 2012-04-03 16:47:35 | 41880 | new3pi | 2 | -24 | 4 | |
| | 92 | | 2012-04-03 16:47:35 | 41881 | new3pi | 2 | -20 | 4 | |
| | 93 | | 2012-04-03 16:47:35 | 41882 | new3pi | 2 | -16 | 4 | |
| | 94 | | 2012-04-03 16:47:35 | 41883 | new3pi | 2 | -12 | 4 | |
| | 95 | | 2012-04-03 16:47:35 | 41884 | new3pi | 2 | -8 | 4 | |
| | 96 | | 2012-04-03 16:47:35 | 41885 | new3pi | 2 | -4 | 4 | |
| | 97 | | 2012-04-03 16:47:35 | 41886 | new3pi | 2 | 0 | 4 | |
| | 98 | | 2012-04-03 16:47:35 | 41887 | new3pi | 2 | 4 | 4 | |
| | 99 | | 2012-04-03 16:47:35 | 41888 | new3pi | 2 | 8 | 4 | |
| | 100 | | 2012-04-03 16:47:35 | 41889 | new3pi | 2 | 12 | 4 | |
| | 101 | etc |
| | 102 | }}} |
| | 103 | |
| | 104 | The {{{config}}} column has a foreign key constraint with {{{name}}} from the {{{config}}} table. This means if a particular config is deleted from the {{{config}}} table then all related entries here in the {{{box}}} table will also be removed automatically. |
| | 105 | |
| | 106 | The {{{id}}} column is unique and is acts as a foreign key for the {{{pending}}} table, i.e. removal of a box here will remove all related entries in the pending table. |