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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    valid_extensions.xml -->
<!-- -->
<!--  Purpose:      This SDDL file defines the valid extensions 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="VALID_EXTENSIONS_TYPE">

        <description>The valid_extensions relation is used to find the
	file extensions allowed to be archived for data identified by
	the data_id of the mission pipeline. 
	</description>


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

            <field name="vae_extension">
                    <type>C3</type>
                    <description> This is the file extension name that is
		    either required, allowed, or forbidden to be archived.
		    A wildcard character, the asterisk, may be used with the
		    valid_type field set to R, to indicate all extensions are
		    accepted.
		    </description>
            </field>

            <field name="vae_valid_type">
                    <type>C1</type>
                    <description> The value R indicates a required extension,
		    a value O indicates an optional extension, and a value F
		    indicates a forbidden extension.
		    </description>
            </field>
	    
    </record>


    <relation name="valid_extensions">

        <type>VALID_EXTENSIONS_TYPE</type>

        <description>This table specifies the valid extensions for an OSF 
	data_id.
	</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="valid_extensions_1">
            <type>unique clustered</type>
            <field name="vae_data_id"/>
            <field name="vae_extension"/>
            <field name="vae_valid_type"/>
        </index>

    </relation>
</sddl>
