# $Id: diff.md,v 1.3 2007-06-07 01:10:31 price Exp $

diffRun METADATA
    diff_id     S64         0       # Primary Key AUTO_INCREMENT
    state       STR         64      # Key
    workdir     STR         255
    dvodb       STR         255
    registered  TAI         NULL
    skycell_id  STR         64      # Key
    tess_id     STR         64      # Key
END

#
# Diff Sky Cells Mode
#

# only ever 2 per run
diffInputSkyfile METADATA
    diff_id     S64         0       # Primary Key fkey(diff_id) ref diffRun(diff_id)
    warp_id     S64         0       # Primary Key fkey(warp_id, skycell_id, tess_id) ref warpSkyfile(warp_id, skycell_id, tess_id)
    skycell_id  STR         64      # Primary Key
    tess_id     STR         64      # Primary Key
# either a input or a template
    kind        STR         64      # Key 
    template    BOOL        f
END

diffSkyfile METADATA
    diff_id     S64         0       # Primary Key fkey(diff_id) ref diffRun(diff_id)
    uri         STR         255
    path_base   STR         255
    bg          F64         0.0
    bg_stdev   F64     0.0
END
