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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    GRAND_MAMA.SDDL-->
<!-- -->
<!--  Purpose:      This SDDL file defines the GRAND_MAMA relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       PR      Who                       Reason-->
<!--  - - - -    - - - -   - -    - - - - - - - - - - - - - - - - - - - - - -->
<!--  03/21/97   30219     Rose   Original implementation-->
<!--  02/02/98   36087	MARose Changed date_added field name to daily_added -->
<!--  02/06/03    47215     LG     Make index unique -->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->


    <record name="GRAND_MAMA">

        <description>This relation is used in OPUS to track when MAMA exposures
		were added to the GRAND_MAMA cumulative history.  The first
		field indicates the name of the exposure.  The second field
		is the date (YYYYMMDD) when the exposure was added to the
		daily history file.  And the third field (YYYYMMDD) is the
		date when the daily history was added to the lifetime history.</description>


            <field name="expname">
                    <type>C9</type>
                    <description>The exposure name (ipppssoot)</description>
            </field>

            <field name="detector">
                    <type>C3</type>
                    <description>The detector: NUV or FUV</description>
            </field>

            <field name="daily_added">
                    <type>C8</type>
                    <description>The date the exposure was added to the history</description>
            </field>

            <field name="lifetime_date">
                    <type>C8</type>
                    <description>The date the history was added to the lifetime</description>
            </field>

    </record>



    <relation name="grand_mama">

            <type>GRAND_MAMA</type>

            <description>Cumulative MAMA counts</description>

            <subsystem_using>OPUS</subsystem_using>

            <index name="grand_mama_1">
                    <type>unique clustered</type>
                    <field name="expname"/>
            </index>

    </relation>



    <instance  name="grand_mama" scope="global" type="GRAND_MAMA" />

</sddl>
