# $Id: magic.md,v 1.5 2007-08-29 00:52:28 jhoblitt Exp $

magicRun METADATA
    magic_id    S64         0       # Primary Key AUTO_INCREMENT
    state       STR         64      # Key
    workdir     STR         255
    workdir_state STR       255     # Key
    label       STR         64      # key
    dvodb       STR         255
    registered  TAI         NULL
END

magicInputSkyfile METADATA
    magic_id    S64         0       # Primary Key fkey(magic_id) ref magicRun(magic_id)
    diff_id     S64         0       # Key fkey(diff_id) ref diffRun(diff_id)
    node        STR         64      # INDEX(magic_id, node)
END

magicTree METADATA
    magic_id    S64         0       # Primary Key fkey(magic_id) ref magicRun(magic_id)
    node        STR         64      # Primary Key fkey(magic_id, node) ref magicInputSkyfile(magic_id, node)
    dep         STR         64      # fkey(magic_id, dep) ref magicInputSkyfile(magic_id, node)

END

magicNodeResult METADATA
    magic_id    S64         0       # Primary Key fkey(magic_id) ref magicRun(magic_id)
    node        STR         64      # Primary Key fkey(magic_id, node) ref magicInputSkyfile(magic_id, node)
    uri         STR         255
END

magicMask METADATA
    magic_id    S64         0       # Primary Key fkey(magic_id) ref magicRun(magic_id)
    uri         STR         255
END
