<?xml version="1.0" encoding="UTF-8" ?>
<database>
    <name>*dbname*</name>
    <create>true</create>
    <overwrite>false</overwrite>
    <charset>utf8</charset>
    <table>
        <name>*dbprefix*dashboard_history</name>
        <declaration>
            <field>
                <name>id</name>
                <type>integer</type>
                <default>0</default>
                <notnull>true</notnull>
                <autoincrement>1</autoincrement>
            </field>
            <field>
                <name>date</name>
                <type>timestamp</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>default_quota</name>
                <type>bigint</type>
                <notnull>true</notnull>
                <unsigned>true</unsigned>
            </field>
            <field>
                <name>total_used_space</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>nb_users</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>nb_folders</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>nb_files</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>nb_shares</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>size_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>files_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>folders_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>shares_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>size_per_folder</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>files_per_folder</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>size_per_file</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>stdv_files_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>stdv_folders_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>stdv_shares_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
        </declaration>
    </table>
    <table>
        <name>*dbprefix*dashboard_history_by_group</name>
        <declaration>
            <field>
                <name>id</name>
                <type>bigint</type>
                <default>0</default>
                <notnull>true</notnull>
                <autoincrement>1</autoincrement>
            </field>
            <field>
                <name>gid</name>
                <type>text</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>date</name>
                <type>timestamp</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>total_used_space</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>nb_users</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>nb_folders</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>nb_files</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>nb_shares</name>
                <type>bigint</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>size_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>files_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>folders_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>shares_per_user</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>size_per_folder</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>files_per_folder</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>
            <field>
                <name>size_per_file</name>
                <type>float</type>
                <notnull>true</notnull>
            </field>

            <index>
                <name>gid_index</name>
                <field>
                    <name>gid</name>
                </field>
            </index>
        </declaration>
    </table>
</database>
