Index: trunk/dbconfig/tasks.md
===================================================================
--- trunk/dbconfig/tasks.md	(revision 6666)
+++ trunk/dbconfig/tasks.md	(revision 7051)
@@ -1,3 +1,3 @@
-# $Id: tasks.md,v 1.26 2006-03-22 00:05:13 jhoblitt Exp $
+# $Id: tasks.md,v 1.27 2006-05-03 03:24:46 jhoblitt Exp $
 
 # this table records all exposure ID ever seen from the summit
@@ -8,5 +8,5 @@
     telescope   STR         255
     # time
-    exp_type    STR         255
+    exp_type    STR         64
     uri         STR         255
 END
@@ -52,8 +52,8 @@
 # paired with rawImfile
 rawDetrendExp METADATA
-    exp_id      STR         255     # Primary Key
-    camera      STR         255
-    telescope   STR         255
-    exp_type    STR         255
+    exp_id      STR         64      # Primary Key
+    camera      STR         255
+    telescope   STR         255
+    exp_type    STR         64
 #    class       STR         255
     imfiles     S32         0
@@ -64,8 +64,8 @@
 # paired with rawImfile
 rawScienceExp METADATA
-    exp_id      STR         255     # Primary Key
-    camera      STR         255
-    telescope   STR         255
-    exp_type    STR         255
+    exp_id      STR         64      # Primary Key
+    camera      STR         255
+    telescope   STR         255
+    exp_type    STR         64
 #    class       STR         255
     imfiles     S32         0
@@ -75,5 +75,5 @@
 
 rawImfile METADATA
-    exp_id      STR         255     # Key
+    exp_id      STR         64      # Key
     class_id    STR         255
     uri         STR         255
@@ -82,8 +82,8 @@
 
 p1PendingExp METADATA
-    exp_id      STR         255     # Primary Key
-    camera      STR         255
-    telescope   STR         255
-    exp_type    STR         255
+    exp_id      STR         64     # Primary Key
+    camera      STR         255
+    telescope   STR         255
+    exp_type    STR         64
 #    class       STR         255
     imfiles     S32         0
@@ -98,8 +98,8 @@
 
 p2PendingExp METADATA
-    exp_id      STR         255     # Primary Key
-    camera      STR         255
-    telescope   STR         255
-    exp_type    STR         255
+    exp_id      STR         64      # Primary Key
+    camera      STR         255
+    telescope   STR         255
+    exp_type    STR         64
 #    class       STR         255
     imfiles     S32         0
@@ -114,5 +114,5 @@
 
 p2PendingImfile METADATA
-    exp_id      STR         255     # Key
+    exp_id      STR         64      # Key
     class_id    STR         255
     uri         STR         255
@@ -127,8 +127,8 @@
 
 p2DoneExp METADATA
-    exp_id      STR         255     # Primary Key
-    camera      STR         255
-    telescope   STR         255
-    exp_type    STR         255
+    exp_id      STR         64      # Primary Key
+    camera      STR         255
+    telescope   STR         255
+    exp_type    STR         64
 #    class       STR         255
     imfiles     S32         0
@@ -144,5 +144,5 @@
 
 p2DoneImfile METADATA
-    exp_id      STR         255     # Key
+    exp_id      STR         64      # Key
     class_id    STR         255
     uri         STR         255
@@ -160,7 +160,7 @@
 
 p3PendingExp METADATA
-    exp_id      STR         255     # Primary Key
-    camera      STR         255
-    exp_type    STR         255
+    exp_id      STR         64      # Primary Key
+    camera      STR         255
+    exp_type    STR         64
 #    class       STR         255
     imfiles     S32         0
@@ -172,18 +172,60 @@
 END
 
-masterDetrendFrames METADATA
-    det_id      STR         255     # Primary Key
-    version     STR         64
-    label       STR         255
-    exp_type    STR         255
-    class       STR         255
-    imfiles     S32         0
-    filter      STR         255
-    exptime     S32         0
-END
-
-masterDetrendImfile METADATA
-    det_id      STR         255     # Key
-    class_id    STR         255
-    uri         STR         255
-END
+#
+# Master Detrend creation
+#
+
+detRun METADATA
+    det_id      S32         O      # Primary Key
+END
+
+detInputExp METADATA
+    det_id      S32         0      # Primary Key
+    exp_id      STR         64     # Key
+    camera      STR         255
+    telescope   STR         255
+    exp_type    STR         64
+#    class       STR         255
+    imfiles     S32         0
+    filter      STR         255
+    stats       STR         255
+END
+
+detProcessedImfile METADATA
+    det_id      S32         0      # Primary Key
+    exp_id      STR         64     # Key
+    class_id    STR         255
+    uri         STR         255
+    stats       STR         255
+    recipe      STR         64
+END
+
+detStackedImfile METADATA
+    det_id      S32         0      # Primary Key
+    exp_id      STR         64     # Key
+    class_id    STR         255
+    uri         STR         255
+    stats       STR         255
+    recipe      STR         64
+END
+
+detMasterFrame METADATA
+    det_id      S32         0      # Primary Key
+    exp_id      STR         64     # Key
+    camera      STR         255
+    telescope   STR         255
+    exp_type    STR         64
+#    class       STR         255
+    imfiles     S32         0
+    filter      STR         255
+    stats       STR         255
+END
+
+detMasterImfile METADATA
+    det_id      S32         0      # Primary Key
+    exp_id      STR         64     # Key
+    class_id    STR         255
+    uri         STR         255
+    stats       STR         255
+    recipe      STR         64
+END
