core, lib, modules: restructured source code tree
[sip-router] / src / lib / srdb1 / schema / pr_presentity.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN" 
3   "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
4
5 <!ENTITY % entities SYSTEM "entities.xml">
6 %entities;
7
8 ]>
9
10 <table id="presentity" xmlns:db="http://docbook.org/ns/docbook">
11     <name>presentity</name>
12     <version>4</version>
13     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
14     <description>
15         <db:para>Table for the presence module. More information can be found at: &KAMAILIO_MOD_DOC;presence.html
16         </db:para>
17     </description>
18
19     <column id="id">
20         <name>id</name>
21         <type>unsigned int</type>
22         <size>&table_id_len;</size>
23         <autoincrement/>
24         <primary/>
25         <type db="dbtext">int,auto</type>
26         <description>Unique ID</description>
27     </column>
28
29     <column id="username">
30         <name>username</name>
31         <type>string</type>
32         <size>&user_len;</size>
33         <description>User name</description>
34         <natural/>
35     </column>
36
37     <column id="domain">
38         <name>domain</name>
39         <type>string</type>
40         <size>&domain_len;</size>
41         <description>Domain</description>
42         <natural/>
43     </column>
44
45     <column id="event">
46         <name>event</name>
47         <type>string</type>
48         <size>&user_len;</size>
49         <description>Event</description>
50         <natural/>
51     </column>
52
53     <column id="etag">
54         <name>etag</name>
55         <type>string</type>
56         <size>&user_len;</size>
57         <description>User name</description>
58     </column>
59
60     <column id="expires">
61         <name>expires</name>
62         <type>int</type>
63         <size>&expires_len;</size>
64         <description>Expires</description>
65         <index/>
66     </column>
67
68     <column>
69         <name>received_time</name>
70         <type>int</type>
71         <size>&expires_len;</size>
72         <description>Reveived time</description>
73     </column>
74
75     <column>
76         <name>body</name>
77         <type>binary</type>
78     </column>
79
80     <column id="sender">
81         <name>sender</name>
82         <type>string</type>
83         <size>&uri_len;</size>
84         <description>Sender contact</description>
85     </column>
86
87     <column>
88         <name>priority</name>
89         <type>int</type>
90         <size>11</size>
91                 <default>0</default>
92         <description>Priority of the record</description>
93         </column>
94
95     <index>
96         <name>presentity_idx</name>
97         <colref linkend="username"/>
98         <colref linkend="domain"/>
99         <colref linkend="event"/>
100         <colref linkend="etag"/>
101         <unique/>
102     </index>
103
104     <index>
105         <name>presentity_expires</name>
106         <colref linkend="expires"/>
107     </index>
108
109     <index>
110         <name>account_idx</name>
111         <colref linkend="username"/>
112         <colref linkend="domain"/>
113         <colref linkend="event"/>
114     </index>
115
116 </table>