<?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="globalblocklist" xmlns:db="http://docbook.org/ns/docbook">
    <name>globalblocklist</name>
    <version>1</version>
    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
    <description>
		<db:para>This table is used by the userblocklist module for the global
			blocklists. More information is available at:
			<itemizedlist>
			<listitem>
			<ulink url="&KAMAILIO_MOD_DOC;userblocklist.html">&KAMAILIO_MOD_DOC;userblocklist.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="prefix">
        <name>prefix</name>
        <type>string</type>
        <size>&user_len;</size>
        <default/>
        <description>The prefix that is matched for the blocklist.</description>
    </column>

    <column>
        <name>allowlist</name>
        <type>char</type>
        <size>1</size>
        <default>0</default>
        <description>Specify if this is a blocklist (0) or an allowlist (1) entry.</description>
    </column>

     <column>
        <name>description</name>
        <type>string</type>
        <size>&description_len;</size>
        <null/>
        <default><null/></default>
        <description>A comment for the entry.</description>
    </column>

    <index>
        <name>globalblocklist_idx</name>
        <colref linkend="prefix"/>
    </index>
</table>
