<?xml version="1.0" encoding="UTF-8"?>

<tableDescriptions type="IN">
  <table name="Filter">
    <column name="filterID" type="TBYTE" default="0" comment="filter ID: g=1, r=2, i=3, z=4, y=5, w=6, ..."></column>
    <column name="filterType" type="TSTRING" default=" " comment="filter name: g,r,i,z,y, etc."></column>
    <column name="filterSpec" type="TSTRING" default=" " comment="No comment"></column>
  </table>
  <table name="FitModel">
    <column name="fitModelID" type="TSHORT" default="0" comment="indentifier of alternate model fit"></column>
    <column name="description" type="TSTRING" default=" " comment="string describing the model"></column>
    <column name="param1" type="TSTRING" default=" " comment="description of model parameter 1"></column>
    <column name="param2" type="TSTRING" default=" " comment="description of model parameter 2"></column>
    <column name="param3" type="TSTRING" default=" " comment="description of model parameter 3"></column>
    <column name="param4" type="TSTRING" default=" " comment="description of model parameter 4"></column>
    <column name="param5" type="TSTRING" default=" " comment="description of model parameter 5"></column>
    <column name="param6" type="TSTRING" default=" " comment="description of model parameter 6"></column>
    <column name="param7" type="TSTRING" default=" " comment="description of model parameter 7"></column>
    <column name="param8" type="TSTRING" default=" " comment="description of model parameter 8"></column>
    <column name="param9" type="TSTRING" default=" " comment="description of model parameter 9"></column>
    <column name="param10" type="TSTRING" default=" " comment="description of model parameter 10"></column>
    <column name="param11" type="TSTRING" default=" " comment="description of model parameter 11"></column>
    <column name="param12" type="TSTRING" default=" " comment="description of model parameter 12"></column>
    <column name="param13" type="TSTRING" default=" " comment="description of model parameter 13"></column>
    <column name="param14" type="TSTRING" default=" " comment="description of model parameter 14"></column>
    <column name="param15" type="TSTRING" default=" " comment="description of model parameter 15"></column>
    <column name="param16" type="TSTRING" default=" " comment="description of model parameter 16"></column>
    <column name="param17" type="TSTRING" default=" " comment="description of model parameter 17"></column>
    <column name="param18" type="TSTRING" default=" " comment="description of model parameter 18"></column>
    <column name="param19" type="TSTRING" default=" " comment="description of model parameter 19"></column>
    <column name="param20" type="TSTRING" default=" " comment="description of model parameter 20"></column>
    <column name="param21" type="TSTRING" default=" " comment="description of model parameter 21"></column>
    <column name="param22" type="TSTRING" default=" " comment="description of model parameter 22"></column>
    <column name="param23" type="TSTRING" default=" " comment="description of model parameter 23"></column>
    <column name="param24" type="TSTRING" default=" " comment="description of model parameter 24"></column>
    <column name="param25" type="TSTRING" default=" " comment="description of model parameter 25"></column>
    <column name="param26" type="TSTRING" default=" " comment="description of model parameter 26"></column>
    <column name="param27" type="TSTRING" default=" " comment="description of model parameter 27"></column>
    <column name="param28" type="TSTRING" default=" " comment="description of model parameter 28"></column>
    <column name="param29" type="TSTRING" default=" " comment="description of model parameter 29"></column>
    <column name="param30" type="TSTRING" default=" " comment="description of model parameter 30"></column>
    <column name="param31" type="TSTRING" default=" " comment="description of model parameter 31"></column>
    <column name="param32" type="TSTRING" default=" " comment="description of model parameter 32"></column>
    <column name="param33" type="TSTRING" default=" " comment="description of model parameter 33"></column>
    <column name="param34" type="TSTRING" default=" " comment="description of model parameter 34"></column>
    <column name="param35" type="TSTRING" default=" " comment="description of model parameter 35"></column>
    <column name="param36" type="TSTRING" default=" " comment="description of model parameter 36"></column>
    <column name="param37" type="TSTRING" default=" " comment="description of model parameter 37"></column>
    <column name="param38" type="TSTRING" default=" " comment="description of model parameter 38"></column>
    <column name="param39" type="TSTRING" default=" " comment="description of model parameter 39"></column>
  </table>
  <table name="PhotozRecipe">
    <column name="recipeID" type="TBYTE" default="0" comment="recipe index"></column>
    <column name="description" type="TSTRING" default=" " comment="string describing the recipe"></column>
  </table>
  <table name="Survey">
    <column name="surveyID" type="TBYTE" default="0" comment="index of survey type"></column>
    <column name="description" type="TSTRING" default=" " comment="survey description"></column>
  </table>
  <table name="CameraConfig">
    <column name="cameraID" type="TSHORT" default="0" comment="camera identification number"></column>
    <column name="cameraConfigID" type="TSHORT" default="0" comment="configuration identification number"></column>
    <column name="startDate" type="TFLOAT" default="0" comment=" starting date of this configuration in MJD (unit = day)"></column>
    <column name="configDetails" type="TSTRING" default=" " comment="text/table giving the details of the camera configuration"></column>
  </table>
  <table name="PhotoCal">
    <column name="photoCalID" type="TLONG" default="0" comment="numerical code for this reduction"></column>
    <column name="filterID" type="TBYTE" default="0" comment="filter id"></column>
    <column name="photoCodeDesc" type="TSTRING" default=" " comment="Photometry reduction code name"></column>
    <column name="AB" type="TFLOAT" default="1.0" comment="AB magnitude"></column>
    <column name="zeropoint" type="TFLOAT" default="-999" comment="photometric zero point (excluding long term variation)"></column>
    <column name="extinction" type="TFLOAT" default="-999" comment="photometric extinction term (excluding long term variation)"></column>
    <column name="colorterm" type="TFLOAT" default="-999" comment="photometric color term (excluding long term variation)"></column>
    <column name="colorExtn" type="TFLOAT" default="-999" comment="photometric color dependent extinction (excluding long term variation)"></column>
    <column name="orphanCalColor" type="TFLOAT" default="-999" comment="color adopted for magnitude calculation"></column>
    <column name="orphanCalColorErr" type="TFLOAT" default="-999" comment="error in calibrating color"></column>
    <column name="startDate" type="TFLOAT" default="0" comment=" starting date of this configuration in MJD (unit = day)"></column>
  </table>
  <table name="SkyCell">
    <column name="skyCellID" type="TLONG" default="0" comment="indentifier of the sky cell"></column>
    <column name="projectionCellID" type="TLONG" default="-999" comment="indentifier of the projection cell"></column>
    <column name="partitionKey" type="TLONGLONG" default="-999" comment="fgetPANobjID(skyCell_center_ra,  skyCell_center_dec, zHeight)"></column>
    <column name="regionID" type="TLONGLONG" default="-999" comment="region identifier in the Region table"></column>
  </table>
  <table name="ProjectionCell">
    <column name="projectionCellID" type="TLONG" default="0" comment="projection cell unique identifier"></column>
    <column name="partitionKey" type="TLONGLONG" default="0" comment="fGetPanObjID(crval1,crval2)"></column>
    <column name="primaryCellRegionID" type="TLONGLONG" default="0" comment="reference to the primary cell region definition in the Region table"></column>
    <column name="projectionCellRegionID" type="TLONGLONG" default="0" comment="reference to the projectio cell region definition in the Region table)"></column>
    <column name="ctype1" type="TSTRING" default=" " comment="name of astrometric projection in RA"></column>
    <column name="ctype2" type="TSTRING" default=" " comment="name of astrometric projection in DEC"></column>
    <column name="crval1" type="TFLOAT" default="0" comment=" RA corresponding to reference pixel (unit = deg)"></column>
    <column name="crval2" type="TFLOAT" default="0" comment=" DEC corresponding to reference pixel (unit = deg)"></column>
    <column name="crpix1" type="TFLOAT" default="0" comment="reference pixel value for RA"></column>
    <column name="crpix2" type="TFLOAT" default="0" comment="reference pixel value for DEC"></column>
    <column name="pc001001" type="TFLOAT" default="0" comment="elements of rotation/Dcale matrix"></column>
    <column name="pc001002" type="TFLOAT" default="0" comment="elements of rotation/Dcale matrix"></column>
    <column name="pc002001" type="TFLOAT" default="0" comment="elements of rotation/Dcale matrix"></column>
    <column name="pc002002" type="TFLOAT" default="0" comment="elements of rotation/Dcale matrix"></column>
  </table>
  <table name="Region">
    <column name="regionID" type="TLONGLONG" default="0" comment="Unique Region identifier"></column>
    <column name="id" type="TLONGLONG" default="0" comment="Custom Identifier"></column>
    <column name="type" type="TSTRING" default=" " comment="Region type"></column>
    <column name="comment" type="TSTRING" default=" " comment="Comment"></column>
    <column name="area" type="TFLOAT" default="0" comment="Area covered by the region"></column>
    <column name="regionBinary" type="TSTRING" default=" " comment="Binary object managed by the spatial library"></column>
  </table>
  <table name="StackType">
    <column name="stackTypeID" type="TBYTE" default="0" comment="stack type identifier"></column>
    <column name="description" type="TSTRING" default=" " comment="survey description"></column>
  </table>
</tableDescriptions>
