<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [

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

]>

<table id="domain" xmlns:db="http://docbook.org/ns/docbook">
    <name>domain_attrs</name>
    <version>1</version>
    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
    <description>
		<db:para>
			This table contains attributes of domain ids. More information
			about the domain module can be found at:
			<itemizedlist>
			<listitem>
			<ulink url="&KAMAILIO_MOD_DOC;domain.html">&KAMAILIO_MOD_DOC;domain.html</ulink>.
			</listitem>
			</itemizedlist>
        </db:para>
    </description>

    <column id="id">
        <name>id</name>
        <type>unsigned int</type>
        <size>&table_id_len;</size>
        <autoincrement/>
        <primary/>
        <type db="dbtext">int,auto</type>
        <description>unique ID</description>
    </column>

    <column id="did">
        <name>did</name>
        <type>string</type>
        <size>&domain_len;</size>
        <description>Domain id</description>
    </column>

    <column id="name">
        <name>name</name>
        <type>string</type>
        <size>32</size>
        <description>Name of attribute</description>
    </column>

    <column id="type">
        <name>type</name>
        <type>unsigned int</type>
        <description>Type of attribute (0=integer, 2=string)</description>
    </column>

    <column id="value">
        <name>value</name>
        <type>string</type>
        <size>255</size>
        <description>Value of attribute</description>
    </column>

    <column>
        <name>last_modified</name>
        <type>datetime</type>
        <default>&DEFAULT_DATETIME;</default>
        <default db="oracle">to_date('&DEFAULT_DATETIME;','yyyy-mm-dd hh24:mi:ss')</default>
        <description>Date and time when this record was last modified.</description>
    </column>

    <index>
        <name>domain_attrs_idx</name>
        <colref linkend="did"/>
        <colref linkend="name"/>
    </index>
</table>
