<?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="address" xmlns:db="http://docbook.org/ns/docbook">
    <name>address</name>
    <version>6</version>
    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
    <description>
        <db:para>This table is used by the permissions module. More information is available at: &KAMAILIO_MOD_DOC;permissions.html
        </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>
        <name>grp</name>
        <type>unsigned int</type>
        <size>11</size>
        <default>1</default>
        <description>Group</description>
        <natural/>
    </column>

    <column>
        <name>ip_addr</name>
        <type>string</type>
        <size>&ip_add_len;</size>
        <description>IP address</description>
    </column>

    <column>
        <name>mask</name>
        <type>int</type>
        <default>32</default>
		<description>Network mask - integer equal or less than 128</description>
    </column>

    <column>
        <name>port</name>
        <type>unsigned short</type>
        <size>5</size>
        <default>0</default>
        <description>Port</description>
    </column>

	<column>
        <name>tag</name>
        <type>string</type>
        <size>64</size>
        <null/>
		<description>Tag - string value returned in config variable
		upon address matching</description>
    </column>

</table>
