pstampDataStore METADATA
    ds_id       S64         0       # Primary Key AUTO_INCREMENT
    state       STR         64
    lastFileset STR         64
    outProduct  STR         64
    uri         STR         255
END

pstampProject METADATA
    proj_id     S64         0       # Primary Key AUTO_INCREMENT
    name        STR         64      # UNIQUE
    state       STR         64
    dbname      STR         64
    dvodb       STR         64
    camera      STR         64
    telescope   STR         64
    need_magic  BOOL        f
END

pstampRequest   METADATA
    req_id      S64         0       # Primary Key AUTO_INCREMENT
    ds_id       S64         0
    state       STR         64
    name        STR         64      # UNIQUE
    reqType     STR         16
    outProduct  STR         64
    uri         STR         255
    fault       S32         0
END

pstampJob       METADATA
    job_id      S64         0       # Primary Key AUTO_INCREMENT
    req_id      S64         0       # Primary Key fkey(req_id) ref pstampRequest(req_id)
    rownum      STR         64
    state       STR         64
    jobType     STR         16
    fault       S32         0
    uri         STR         255
    exp_id      S64         0
    outputBase  STR         255
    args        STR         511
END
