Index: trunk/dbconfig/tasks.md
===================================================================
--- trunk/dbconfig/tasks.md	(revision 16543)
+++ trunk/dbconfig/tasks.md	(revision 16588)
@@ -1,3 +1,3 @@
-# $Id: tasks.md,v 1.147 2008-02-15 19:54:44 eugene Exp $
+# $Id: tasks.md,v 1.148 2008-02-22 04:09:46 jhoblitt Exp $
 
 # this table records all exposure ID ever seen from the summit
@@ -43,5 +43,5 @@
 # list of source images -- updated as exposures/filesets are queried
 summitImfile METADATA
-    exp_name    STR         64      # Primary Key
+    exp_name    STR         64      # Primary Key fkey(exp_name, camera, telescope) ref summitExp(exp_name, camera, telescope)
     camera      STR         64      # Primary Key
     telescope   STR         64      # Primary Key
@@ -56,28 +56,14 @@
 # list of exposures that have had their imfiles/files registered (but not
 # downloaded) 
-pzPendingExp METADATA
-    exp_name    STR         64      # Primary Key
-    camera      STR         64      # Primary Key
-    telescope   STR         64      # Primary Key
-END
-
-pzPendingImfile METADATA
-    exp_name    STR         64      # Primary Key
-    camera      STR         64      # Primary Key
-    telescope   STR         64      # Primary Key
-    class       STR         64      # Primary Key
-    class_id    STR         64      # Primary Key
-END
-
-# list of exposures that have had all of their imfiles downloaded
-pzDoneExp METADATA
-    exp_name    STR         64      # Primary Key
-    camera      STR         64      # Primary Key
-    telescope   STR         64      # Primary Key
-END
-
-pzDoneImfile METADATA
-    exp_name    STR         64      # Primary Key
-    camera      STR         64      # Primary Key
+pzDownloadExp METADATA
+    exp_name    STR         64      # Primary Key fkey(exp_name, camera, telescope) ref summitExp(exp_name, camera, telescope)
+    camera      STR         64      # Primary Key
+    telescope   STR         64      # Primary Key
+    state       STR         64      # Key 
+END
+
+pzDownloadImfile METADATA
+    exp_name    STR         64      # Primary Key fkey(exp_name, camera, telescope) ref pzDownloadExp(exp_name, camera, telescope)
+    camera      STR         64      # Primary Key fkey(exp_name, camera, telescope, class, class_id) ref summitImfile(exp_name, camera, telescope, class, class_id)
     telescope   STR         64      # Primary Key
     class       STR         64      # Primary Key
