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

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

<sddl>

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


    <record name="ARCHIVE_CLASS_MAP_TYPE">

        <description>The archive_class relation is used to find the archive
	class and association class when the pipeline data_id is known.
	</description>


            <field name="acm_data_id">
                    <type>C3</type>
                    <description> The pipeline OSF data_id used to archive 
		    datasets. Multiple data_id values may have the same
		    archive class. 
                    </description>
            </field>

            <field name="acm_archive_class">
                    <type>C3</type>
                    <description> This is an all uppercase value used to
		    categorize datasets being archived. This value is one 
		    of the items used to construct the unique DADSFile name.
		    </description>
            </field>

            <field name="acm_asn_class">
                    <type>C3</type>

                    <description>When this field is not blank, it indicates the 
		    archive_class used for the association table. A single 
		    archive request for a data_id used for associated datasets
		    may involve two archive classes. This field names the second
		    class that only contains the association table. 
		    </description>
            </field>
	    
    </record>


    <relation name="archive_class_map">

        <type>ARCHIVE_CLASS_MAP_TYPE</type>

        <description>This table specifies the archive class for a OSF data_id.
	</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="archive_class_map_1">
            <type>unique clustered</type>
            <field name="acm_data_id"/>
        </index>

    </relation>
</sddl>
