<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE database PUBLIC "-//iptel.org//DTD DBSchema V1.0//EN"
  "http://iptel.org/dbschema/dtd/1.0/dbschema.dtd" [

<!ENTITY % entities SYSTEM "entities.xml">
%entities;

]>

<database xmlns:my="http://iptel.org/dbschema/mysql"
          xmlns:pg="http://iptel.org/dbschema/postgres"
          xmlns:or="http://iptel.org/dbschema/oracle"
          xmlns:dt="http://iptel.org/dbschema/dbtext"
          xmlns:xi="http://www.w3.org/2001/XInclude"
>
    <name>ser</name>

    <xi:include href="version.xml"/>

    <!-- Accounting related tables -->
    <xi:include href="acc.xml"/>
    <xi:include href="missed_calls.xml"/>

    <!-- Table that stores credentials for digest and serweb authentication -->
    <xi:include href="credentials.xml"/>

    <!-- Attribute types -->
    <xi:include href="attr_types.xml"/>

    <!-- Various attribute tables -->
    <xi:include href="global_attrs.xml"/>
    <xi:include href="domain_attrs.xml"/>
    <xi:include href="user_attrs.xml"/>

    <!-- Multi-domain support -->
    <xi:include href="domain.xml"/>

    <!-- User location database -->
    <xi:include href="location.xml"/>

    <!-- Table containing list of trusted peers -->
    <xi:include href="trusted.xml"/>

    <!-- SER monitoring data (used by serweb -->
    <xi:include href="server_monitoring.xml"/>
    <xi:include href="server_monitoring_agg.xml"/>

    <xi:include href="phonebook.xml"/>

    <!-- Least Cost Routing related tables -->
    <xi:include href="gw.xml"/>
    <xi:include href="gw_grp.xml"/>
    <xi:include href="lcr.xml"/>

    <xi:include href="grp.xml"/>

    <!-- Instant Messages Scheduled for later delivery -->
    <xi:include href="silo.xml"/>

    <!-- The table mapping SIP URIs to subscribers -->
    <xi:include href="uri.xml"/>

    <!-- Speeddial module -->
    <xi:include href="speed_dial.xml"/>
    <xi:include href="sd_attrs.xml"/>

    <!-- Presence related tables -->
    <xi:include href="presentity.xml"/>
    <xi:include href="presentity_contact.xml"/>
    <xi:include href="watcherinfo.xml"/>
    
	<!-- Resource-lists related tables -->
    <xi:include href="rls_subscription.xml"/>
    <xi:include href="rls_vs.xml"/>
    <xi:include href="rls_vs_names.xml"/>

    <xi:include href="i18n.xml"/>

    <!-- Include extra definitions if found, it is not
         an error if they are not present, although it
         would produce a warning
      -->
    <xi:include href="extra.xml" xpointer="xpointer(data/table)">
	<xi:fallback/>
    </xi:include>

    <!-- User with read/write access -->
    <user>
	<username>ser</username>
	<password>heslo</password>
	<privileges>ALL</privileges>
    </user>

    <!-- User with read-only access -->
    <user>
	<username>serro</username>
	<password>47serro11</password>
	<privileges>SELECT</privileges>
    </user>
</database>