<?xml version="1.0" encoding="UTF-8"?>

<!-- <!DOCTYPE sddlschema SYSTEM "sddlschema.xsd">-->

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    request_members.xml -->
<!-- -->
<!--  Purpose:      This SDDL file defines the request_members relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       PR      Who                       Reason-->
<!--  - - - -    - - - -   - -   - - - - - - - - - - - - - - - - - - - - - -->
<!--  -->
<!--  12/10/03   49904     Baum  Original implementation                     -->
<!--  09/14/06   56505     MSwam Rename fields to use prefix                 -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->


    <record name="REQUEST_MEMBERS_TYPE">

        <description>The request_members relation is used to list the 
	dataset names used for any collection ofd dataset identified by an
	OSF data_id and OSF dataset name. For example, for an HST association
	the OSF dataset name would be the association_id and the data-id would
	be the same as the OSF that is archiving the association table.
	</description>


            <field name="rqm_data_id">
                    <type>C3</type>
                    <description> The mission pipeline OSF data_id used to
		    archive datasets. 
                    </description>
            </field>

            <field name="rqm_group_name">
                    <type>C11</type>
                    <description> This is the dataset name of the association
		    table or any other OSF name that involves the archiving of 
		    a collection of datasets. 
		    </description>
            </field>

            <field name="rqm_member_name">
                    <type>C11</type>
                    <description> This is a dataset name of a member of a group.
		    No distinction is made for member type. The member name may
		    match the group_name, There may be no member name that 
		    matches the group name.
		    </description>
            </field>
	    
    </record>


    <relation name="request_members">

        <type>REQUEST_MEMBERS_TYPE</type>

        <description>The request_members relation is used to list the 
	dataset names used for any collection ofd dataset identified by an
	OSF data_id and OSF dataset name. For example, for an HST association
	the OSF dataset name would be the association_id and the data-id would
	be the same as the OSF that is archiving the association table. This
	relation is used for the Ingest pipeline input interface.
	</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="request_members_1">
            <type>unique clustered</type>
            <field name="rqm_data_id"/>
            <field name="rqm_group_name"/>
            <field name="rqm_member_name"/>
        </index>

    </relation>
</sddl>
