IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14231


Ignore:
Timestamp:
Jul 16, 2007, 12:34:23 PM (19 years ago)
Author:
jhoblitt
Message:

complete foreign key constraints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/det.md

    r14168 r14231  
    3232
    3333detInputExp METADATA
    34     det_id      S64         0       # Primary Key INDEX(det_id, exp_id) fkey (det_id) ref detRun(det_id)
    35     iteration   S32         0       # Primary Key INDEX(det_id, iteration)
    36     exp_id     S64         64       # Primary Key fkey (exp_id) ref rawExp(exp_id)
    37     include     BOOL        f
     34    det_id      S64         0       # Primary Key fkey(det_id) ref detRun(det_id)
     35    iteration   S32         0       # Primary Key fkey(exp_id) ref rawExp(exp_id)
     36    exp_id     S64         64       # Primary Key INDEX(det_id, exp_id)
     37    include     BOOL        f       # INDEX(det_id, iteration)
    3838END
    3939
    4040detProcessedImfile METADATA
    41     det_id      S64         0      # Primary Key fkey (det_id, exp_id) ref detInputExp(det_id, exp_id)
    42     exp_id     S64         64      # Primary Key fkey (exp_id, class_id) ref rawImfile(exp_id, class_id)
    43     class_id    STR         64     # Primary Key INDEX(det_id, class_id)
    44     uri         STR         255
     41    det_id      S64         0       # Primary Key fkey(det_id, exp_id) ref detInputExp(det_id, exp_id)
     42    exp_id     S64         64       # Primary Key fkey(exp_id, class_id) ref rawImfile(exp_id, class_id)
     43    class_id    STR         64      # Primary Key INDEX(det_id, class_id)
     44    uri         STR         255     # INDEX(det_id, exp_id)
    4545    recipe      STR         64
    4646    bg          F64         0.0
     
    6161detProcessedExp METADATA
    6262    det_id      S64         0       # Primary Key fkey(det_id, exp_id) ref detInputExp(det_id, exp_id)
    63     exp_id     S64         64       # Primary Key
    64     recipe      STR         64
    65     bg          F64         0.0
    66     bg_stdev    F64         0.0
    67     bg_mean_stdev   F64     0.0
    68     fringe_0    F64         0.0
    69     fringe_1    F64         0.0
    70     fringe_2    F64         0.0
    71     user_1      F64         0.0
    72     user_2      F64         0.0
    73     user_3      F64         0.0
    74     user_4      F64         0.0
    75     user_5      F64         0.0
    76     path_base   STR         255
    77     fault       S16         0       # Key NOT NULL
    78 END
    79 
     63    exp_id     S64         64       # Primary Key fkey(det_id, exp_id) ref detProcessedImfile(det_id, exp_id)
     64    recipe      STR         64
     65    bg          F64         0.0
     66    bg_stdev    F64         0.0
     67    bg_mean_stdev   F64     0.0
     68    fringe_0    F64         0.0
     69    fringe_1    F64         0.0
     70    fringe_2    F64         0.0
     71    user_1      F64         0.0
     72    user_2      F64         0.0
     73    user_3      F64         0.0
     74    user_4      F64         0.0
     75    user_5      F64         0.0
     76    path_base   STR         255
     77    fault       S16         0       # Key NOT NULL
     78END
     79
     80#
     81# detStackedImfile does not depend on detProcessedExp. detProcesedExp is purely
     82# FYI values and can be calculated in parellel
     83#
    8084detStackedImfile METADATA
    8185    det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detInputExp(det_id, iteration)
    82     iteration   S32         0       # Primary Key fkey(det_id, class_id) ref  detProcessedImfile(det_id, class_id)
     86    iteration   S32         0       # Primary Key fkey(det_id, class_id) ref detProcessedImfile(det_id, class_id)
    8387    class_id    STR         64      # Primary Key
    8488    uri         STR         255
     
    96100
    97101detNormalizedStatImfile METADATA
    98     det_id      S64         0       # Primary Key fkey(det_id, iteration, class_id) ref detStackedImfile(det_id, iteration, class_id)
    99     iteration   S32         0       # Primary Key
     102    det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detInputExp(det_id, iteration)
     103    iteration   S32         0       # Primary Key fkey(det_id, iteration, class_id) ref detStackedImfile(det_id, iteration, class_id)
    100104    class_id    STR         64      # Primary Key
    101105    norm        F32         0.0
     
    103107END
    104108
    105 # we can not setup a fkey against detStackedImfile here as it would preference
    106 # detrend registration nor can we fkey iteration as a registered detrend image
    107 # will not have any entrires in detInputExp
    108 
    109109detNormalizedImfile METADATA
    110     det_id      S64         0       # Primary Key INDEX(det_id, iteration) fkey(det_id) ref detInputExp(det_id)
    111     iteration   S32         0       # Primary Key
    112     class_id    STR         64      # Primary Key
     110    det_id      S64         0       # Primary Key fkey(det_id) ref detInputExp(det_id)
     111    iteration   S32         0       # Primary Key fkey(det_id, iteration, class_id) ref detNormalizedStatImfile(det_id, iteration, class_id)
     112    class_id    STR         64      # Primary Key INDEX(det_id, iteration)
    113113    uri         STR         255
    114114    bg          F64         0.0
     
    125125
    126126detNormalizedExp METADATA
    127     det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detNormalizedImfile(det_id, iteration)
    128     iteration   S32         0       # Primary Key
     127    det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detInputExp(det_id, iteration)
     128    iteration   S32         0       # Primary Key fkey(det_id, iteration) ref detNormalizedImfile(det_id, iteration)
    129129    recipe      STR         64
    130130    bg          F64         0.0
     
    155155
    156156detResidImfile METADATA
    157     det_id      S64         0       # Primary Key
    158     iteration   S32         0       # Primary Key
    159     exp_id     S64         64      # Primary Key
    160     class_id    STR         64      # Primary Key
     157    det_id      S64         0       # Primary Key fkey(det_id, iteration, exp_id) ref detInputExp(det_id, iteration, exp_id)
     158    iteration   S32         0       # Primary Key fkey(det_id, exp_id, class_id) ref detProcessedImfile(det_id, exp_id, class_id)
     159    exp_id     S64         64       # Primary Key fkey(det_id, iteration) ref detNormalizedExp(det_id, iteration)
     160    class_id    STR         64      # Primary Key INDEX(det_id, iteration, exp_id)
    161161    uri         STR         255
    162162    recipe      STR         64
     
    178178
    179179detResidExp METADATA
    180     det_id      S64         0       # Primary Key
    181     iteration   S32         0       # Primary Key
    182     exp_id     S64         64      # Primary Key
     180    det_id      S64         0       # Primary Key fkey(det_id, iteration, exp_id) ref detInputExp(det_id, iteration, exp_id)
     181    iteration   S32         0       # Primary Key fkey(det_id, iteration, exp_id) ref detResidImfile(det_id, iteration, exp_id)
     182    exp_id     S64         64       # Primary Key INDEX(det_id, iteration)
    183183    recipe      STR         64
    184184    bg          F64         0.0
     
    201201detRunSummary METADATA
    202202    det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detInputExp(det_id, iteration)
    203     iteration   S32         0       # Primary Key
     203    iteration   S32         0       # Primary Key fkey(det_id, iteration) ref detResidExp(det_id, iteration)
    204204    bg          F64         0.0
    205205    bg_stdev    F64         0.0
Note: See TracChangeset for help on using the changeset viewer.