IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14168


Ignore:
Timestamp:
Jul 12, 2007, 12:27:25 PM (19 years ago)
Author:
jhoblitt
Message:

first pass fkeys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/det.md

    r14023 r14168  
    3232
    3333detInputExp METADATA
    34     det_id      S64         0       # Primary Key
    35     iteration   S32         0       # Primary Key
    36     exp_id     S64         64      # Primary Key
     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)
    3737    include     BOOL        f
    3838END
    3939
    4040detProcessedImfile METADATA
    41     det_id      S64         0      # Primary Key
    42     exp_id     S64         64     # Primary Key
    43     class_id    STR         64     # Primary Key
     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)
    4444    uri         STR         255
    4545    recipe      STR         64
     
    6060
    6161detProcessedExp METADATA
    62     det_id      S64         0      # Primary Key
    63     exp_id     S64         64     # Primary Key
     62    det_id      S64         0       # Primary Key fkey(det_id, exp_id) ref detInputExp(det_id, exp_id)
     63    exp_id     S64         64       # Primary Key
    6464    recipe      STR         64
    6565    bg          F64         0.0
     
    7979
    8080detStackedImfile METADATA
    81     det_id      S64         0       # Primary Key
    82     iteration   S32         0       # Primary Key
     81    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)
    8383    class_id    STR         64      # Primary Key
    8484    uri         STR         255
     
    9696
    9797detNormalizedStatImfile METADATA
    98     det_id      S64         0       # Primary Key
     98    det_id      S64         0       # Primary Key fkey(det_id, iteration, class_id) ref detStackedImfile(det_id, iteration, class_id)
    9999    iteration   S32         0       # Primary Key
    100100    class_id    STR         64      # Primary Key
     
    103103END
    104104
     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
    105109detNormalizedImfile METADATA
    106     det_id      S64         0       # Primary Key
    107     iteration   S32         0       # Primary Key
     110    det_id      S64         0       # Primary Key INDEX(det_id, iteration) fkey(det_id) ref detInputExp(det_id)
     111    iteration   S32         0       # Primary Key 
    108112    class_id    STR         64      # Primary Key
    109113    uri         STR         255
     
    121125
    122126detNormalizedExp METADATA
    123     det_id      S64         0       # Primary Key
     127    det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detNormalizedImfile(det_id, iteration)
    124128    iteration   S32         0       # Primary Key
    125129    recipe      STR         64
     
    196200
    197201detRunSummary METADATA
    198     det_id      S64         0       # Primary Key
     202    det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detInputExp(det_id, iteration)
    199203    iteration   S32         0       # Primary Key
    200204    bg          F64         0.0
Note: See TracChangeset for help on using the changeset viewer.