database-guide.html 18.8 KB
Newer Older
Matt Tucker's avatar
Matt Tucker committed
1 2 3 4 5 6 7 8 9 10 11 12
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Jive Messenger Database Schema Guide</title>
  <link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<a name="top"></a>
<h1>Jive Messenger Database Schema Guide</h1>
<h2>Introduction</h2>
<p>
This document outlines the data type conventions and tables in the Jive
Matt Tucker's avatar
Matt Tucker committed
13 14
Messenger 2.1 database schema. Some information, like column indexes and foreign keys, is
omitted. For this, please read the individual schema of the database you're interested in.
Gaston Dombiak's avatar
Gaston Dombiak committed
15
<br>
Matt Tucker's avatar
Matt Tucker committed
16 17 18 19
</p>
<h2>Data Type Conventions</h2>
<p>
Date column type support varies widely across databases. Therefore,
Matt Tucker's avatar
Matt Tucker committed
20 21 22
Jive Messenger specially encodes dates as VARCHAR values. Each date is a Java long
value which is 0-padded to 15 characters. The long value is the internal
representation of Java Date objects, which can be obtained with code such as the
Matt Tucker's avatar
Matt Tucker committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
following:
</p>
<pre>long currentDate = new Date().getTime();</pre>
<p>
Boolean values are always represented a numeric values: 0 for false and
1 for
true.
</p>
<h2>Database Tables</h2>
<p>
Below is a description of each of the tables in the Jive Messenger
database schema.
A <span class="primary-key">yellow row</span> denotes a primary key.
</p>
<ul>
  <li><a href="#jiveGroup">jiveGroup</a> </li>
  <li><a href="#jiveGroupProp">jiveGroupProp</a> </li>
  <li><a href="#jiveGroupUser">jiveGroupUser</a> </li>
  <li><a href="#jiveID">jiveID</a></li>
  <li><a href="#jiveOffline">jiveOffline</a><br>
  </li>
  <li><a href="#jivePrivate">jivePrivate</a> </li>
Gaston Dombiak's avatar
Gaston Dombiak committed
45
  <li><a href="#jiveUser">jiveUser</a><br>
Matt Tucker's avatar
Matt Tucker committed
46 47 48 49 50
  </li>
  <li><a href="#jiveUserProp">jiveUserProp</a> </li>
  <li><a href="#jiveRoster">jiveRoster</a> </li>
  <li><a href="#jiveRosterGroups">jiveRosterGroups</a> </li>
  <li><a href="#jiveVCard">jiveVCard</a> </li>
Gaston Dombiak's avatar
Gaston Dombiak committed
51 52 53 54 55 56
  <li><a href="#jiveProperty">jiveProperty</a><br>
  </li>
  <li><a href="#mucRoom">mucRoom</a> </li>
  <li><a href="#mucAffiliation">mucAffiliation</a> </li>
  <li><a href="#mucMember">mucMember</a> </li>
  <li><a href="#mucConversationLog">mucConversationLog</a> </li>
Matt Tucker's avatar
Matt Tucker committed
57 58
</ul>
<br>
Gaston Dombiak's avatar
Gaston Dombiak committed
59

Matt Tucker's avatar
Matt Tucker committed
60 61 62 63 64 65 66 67 68 69 70 71 72
<a name="jiveGroup"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveGroup (user Group data)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
73
      <td>groupName</td>
Matt Tucker's avatar
Matt Tucker committed
74
      <td>VARCHAR</td>
Gaston Dombiak's avatar
Gaston Dombiak committed
75 76
      <td>50</td>
      <td>Group Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
77 78 79 80
    </tr>
    <tr>
      <td>description</td>
      <td>VARCHAR</td>
Gaston Dombiak's avatar
Gaston Dombiak committed
81
      <td>255</td>
Matt Tucker's avatar
Matt Tucker committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
      <td>Group Description</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jiveGroupProp"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveGroupProp (name-value associations for a
Group)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
104 105 106 107
      <td>groupName</td>
      <td>VARCHAR</td>
      <td>50</td>
      <td>Group Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
108 109 110 111 112
    </tr>
    <tr class="primary-key">
      <td>name</td>
      <td>VARCHAR</td>
      <td>100</td>
Gaston Dombiak's avatar
Gaston Dombiak committed
113
      <td>Group Property Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
    </tr>
    <tr>
      <td>propValue</td>
      <td>VARCHAR</td>
      <td>4000</td>
      <td>Group Property Value</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jiveGroupUser"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveGroupUser (associates Users with Groups)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
140 141 142 143
      <td>groupName</td>
      <td>VARCHAR</td>
      <td>50</td>
      <td>Group Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
144 145
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
146 147 148 149
      <td>username</td>
      <td>VARCHAR</td>
      <td>32</td>
      <td>User Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
    </tr>
    <tr class="primary-key">
      <td>administrator</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Adminstrator (Boolean) (Primary Key)</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jiveID"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveID (used for unique ID sequence generation)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
      <td>idType</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>ID type (e.g., Group, User, Roster) (Primary Key)</td>
    </tr>
    <tr>
      <td>id</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Next available block of ID&#8217;s (Used for Database-Independent
ID Sequence Generator)</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jiveOffline"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveOffline (offline message storage)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Change</th>
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
207 208 209 210
      <td>username</td>
      <td>VARCHAR</td>
      <td>32</td>
      <td>User Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
    </tr>
    <tr class="primary-key">
      <td style="vertical-align: top;">messageID<br>
      </td>
      <td style="vertical-align: top;">NUMBER<br>
      </td>
      <td style="vertical-align: top;">n/a<br>
      </td>
      <td style="vertical-align: top;">ID of stored message (Primary
Key)<br>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">creationDate<br>
      </td>
      <td style="vertical-align: top;">VARCHAR<br>
      </td>
      <td style="vertical-align: top;">15<br>
      </td>
      <td style="vertical-align: top;">Date message stored<br>
      </td>
    </tr>
    <tr>
Gaston Dombiak's avatar
Gaston Dombiak committed
234
      <td style="vertical-align: top;">messageSize<br>
Matt Tucker's avatar
Matt Tucker committed
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
      </td>
      <td style="vertical-align: top;">NUMBER<br>
      </td>
      <td style="vertical-align: top;">n/a<br>
      </td>
      <td style="vertical-align: top;">Size of message in bytes<br>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">message<br>
      </td>
      <td style="vertical-align: top;">TEXT<br>
      </td>
      <td style="vertical-align: top;">n/a<br>
      </td>
      <td style="vertical-align: top;">The message text<br>
      </td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jivePrivate"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jivePrivate (Private data storage)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
272 273 274 275
      <td>username</td>
      <td>VARCHAR</td>
      <td>32</td>
      <td>User Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
    </tr>
    <tr class="primary-key">
      <td>name</td>
      <td>VARCHAR</td>
      <td>100</td>
      <td>Name of the private entry (Primary Key)</td>
    </tr>
    <tr class="primary-key">
      <td>namespace</td>
      <td>VARCHAR</td>
      <td>200</td>
      <td>Namespace of the private entry (Primary Key)</td>
    </tr>
    <tr>
      <td>value</td>
      <td>TEXT</td>
      <td>n/a</td>
      <td>Value of the private data</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<br>
<a name="jiveUser"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveUser (User data)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
315 316 317 318
      <td>username</td>
      <td>VARCHAR</td>
      <td>32</td>
      <td>User Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368
    </tr>
    <tr>
      <td>password</td>
      <td>VARCHAR</td>
      <td>32</td>
      <td>Password Data (plain-text or MD5 hash depending on settings)</td>
    </tr>
    <tr>
      <td>name</td>
      <td>VARCHAR</td>
      <td>100</td>
      <td>Name</td>
    </tr>
    <tr>
      <td>email</td>
      <td>VARCHAR</td>
      <td>100</td>
      <td>Email Address</td>
    </tr>
    <tr>
      <td>creationDate</td>
      <td>VARCHAR</td>
      <td>15</td>
      <td>Creation Date</td>
    </tr>
    <tr>
      <td>modificationDate</td>
      <td>VARCHAR</td>
      <td>15</td>
      <td>Last Modified Date</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jiveUserProp"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveUserProp (name-value associations for a User)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
369 370 371 372
      <td>username</td>
      <td>VARCHAR</td>
      <td>32</td>
      <td>User Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
373 374 375 376 377
    </tr>
    <tr class="primary-key">
      <td>name</td>
      <td>VARCHAR</td>
      <td>100</td>
Gaston Dombiak's avatar
Gaston Dombiak committed
378
      <td>User Property Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
379 380 381
    </tr>
    <tr>
      <td>propValue</td>
Gaston Dombiak's avatar
Gaston Dombiak committed
382
      <td>VARCHAR</td>
Matt Tucker's avatar
Matt Tucker committed
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
      <td>4000</td>
      <td>User Property Value</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jiveRoster"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveRoster (buddy rosters or lists)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
      <td>rosterID</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>ID of roster (Primary Key)</td>
    </tr>
    <tr>
Gaston Dombiak's avatar
Gaston Dombiak committed
411 412 413 414
      <td>username</td>
      <td>VARCHAR</td>
      <td>32</td>
      <td>User Name</td>
Matt Tucker's avatar
Matt Tucker committed
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524
    </tr>
    <tr>
      <td style="vertical-align: top;">jid<br>
      </td>
      <td style="vertical-align: top;">TEXT<br>
      </td>
      <td style="vertical-align: top;">n/a<br>
      </td>
      <td style="vertical-align: top;">The address of the roster entry<br>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">sub<br>
      </td>
      <td style="vertical-align: top;">NUMBER<br>
      </td>
      <td style="vertical-align: top;">n/a<br>
      </td>
      <td style="vertical-align: top;">The subscription status of the
entry<br>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">ask<br>
      </td>
      <td style="vertical-align: top;">NUMBER<br>
      </td>
      <td style="vertical-align: top;">n/a<br>
      </td>
      <td style="vertical-align: top;">The ask status of the entry<br>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">recv<br>
      </td>
      <td style="vertical-align: top;">NUMBER<br>
      </td>
      <td style="vertical-align: top;">n/a<br>
      </td>
      <td style="vertical-align: top;">Flag indicating the entry is a
roster request that was received<br>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">nick<br>
      </td>
      <td style="vertical-align: top;">VARCHAR<br>
      </td>
      <td style="vertical-align: top;">255<br>
      </td>
      <td style="vertical-align: top;">The nickname assigned to this
roster entry<br>
      </td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jiveRosterGroups"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveRosterGroups (Groups of buddy entries in a
roster)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
      <td>rosterID</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Roster ID (Primary Key)</td>
    </tr>
    <tr class="primary-key">
      <td>rank</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Position of the entry (Primary Key)</td>
    </tr>
    <tr>
      <td>groupName</td>
      <td>VARCHAR</td>
      <td>255</td>
      <td>The user defined name for this roster group</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="jiveVCard"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveVCard (vCard contact information)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
Gaston Dombiak's avatar
Gaston Dombiak committed
525 526 527 528
      <td>username</td>
      <td>VARCHAR</td>
      <td>32</td>
      <td>User Name (Primary Key)</td>
Matt Tucker's avatar
Matt Tucker committed
529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
    </tr>
    <tr class="primary-key">
      <td>name</td>
      <td>VARCHAR</td>
      <td>100</td>
      <td>Name of the vCard entry (Primary Key)</td>
    </tr>
    <tr>
      <td>propValue</td>
      <td>TEXT</td>
      <td>n/a</td>
      <td>Value of the vCard entry</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
Gaston Dombiak's avatar
Gaston Dombiak committed
545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826
<br>
<br>
<br>
<a name="jiveProperty"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">jiveProperty (server properties)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
      <td>name</td>
      <td>VARCHAR</td>
      <td>100</td>
      <td>Property Name (Primary Key)</td>
    </tr>
    <tr>
      <td>propValue</td>
      <td>TEXT</td>
      <td>n/a</td>
      <td>Value of the vCard entry</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="mucRoom"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">mucRoom (Groupchat room data)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
      <td>roomID</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>ID of room (Primary Key)</td>
    </tr>
    <tr>
      <td>creationDate</td>
      <td>VARCHAR</td>
      <td>15</td>
      <td>Creation Date</td>
    </tr>
    <tr>
      <td>modificationDate</td>
      <td>VARCHAR</td>
      <td>15</td>
      <td>Last Modified Date</td>
    </tr>
    <tr>
      <td>name</td>
      <td>VARCHAR</td>
      <td>50</td>
      <td>Name of the room used as the public ID</td>
    </tr>
    <tr>
      <td>naturalName</td>
      <td>VARCHAR</td>
      <td>255</td>
      <td>Natural name of the room</td>
    </tr>
    <tr>
      <td>description</td>
      <td>VARCHAR</td>
      <td>255</td>
      <td>Room Description</td>
    </tr>
    <tr>
      <td>canChangeSubject</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Flag indicating whether participants can change the subject</td>
    </tr>
    <tr>
      <td>maxUsers</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Max number of room occupants</td>
    </tr>
    <tr>
      <td>canChangeSubject</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Flag indicating whether participants can change the subject or not</td>
    </tr>
    <tr>
      <td>publicRoom</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Flag indicating whether the room will be listed in the directory or not</td>
    </tr>
    <tr>
      <td>moderated</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Flag indicating whether the room is moderated or not</td>
    </tr>
    <tr>
      <td>invitationRequired</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Flag indicating whether the room is members-only or not</td>
    </tr>
    <tr>
      <td>canInvite</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Flag indicating whether occupants can invite other users</td>
    </tr>
    <tr>
      <td>password</td>
      <td>VARCHAR</td>
      <td>50</td>
      <td>Password Data for joining the room</td>
    </tr>
    <tr>
      <td>canDiscoverJID</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Flag indicating whether real JID of occupants is public or not</td>
    </tr>
    <tr>
      <td>logEnabled</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Flag indicating whether room conversations are logged or not</td>
    </tr>
    <tr>
      <td>subject</td>
      <td>VARCHAR</td>
      <td>100</td>
      <td>Last known subject of the room</td>
    </tr>
    <tr>
      <td>rolesToBroadcast</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Binary representation of the roles to broadcast</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="mucAffiliation"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">mucAffiliation (affiliation of room users)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
      <td>roomID</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>ID of room (Primary Key)</td>
    </tr>
    <tr class="primary-key">
      <td>jid</td>
      <td>TEXT</td>
      <td>n/a</td>
      <td>User JID (Primary Key)</td>
    </tr>
    <tr>
      <td>affiliation</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>Number representing the affiliation level</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="mucMember"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">mucMember (rooms members information)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr class="primary-key">
      <td>roomID</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>ID of room (Primary Key)</td>
    </tr>
    <tr class="primary-key">
      <td>jid</td>
      <td>TEXT</td>
      <td>n/a</td>
      <td>User JID (Primary Key)</td>
    </tr>
    <tr>
      <td>nickname</td>
      <td>VARCHAR</td>
      <td>255</td>
      <td>Reserved nickname of the member</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
<br>
<br>
<br>
<a name="mucConversationLog"></a>
<table class="dbtable">
  <tbody>
    <tr>
      <th colspan="4">mucConversationLog (rooms conversations log)</th>
    </tr>
    <tr>
      <th>Column Name</th>
      <th>Type</th>
      <th>Length</th>
      <th>Description</th>
    </tr>
    <tr>
      <td>roomID</td>
      <td>NUMBER</td>
      <td>n/a</td>
      <td>ID of room</td>
    </tr>
    <tr>
      <td>sender</td>
      <td>TEXT</td>
      <td>n/a</td>
      <td>JID of the user that sent the message to the room</td>
    </tr>
    <tr>
      <td>nickname</td>
      <td>VARCHAR</td>
      <td>255</td>
      <td>Nickname used by the user when sending the message</td>
    </tr>
    <tr>
      <td>time</td>
      <td>VARCHAR</td>
      <td>15</td>
      <td>Date when the message was sent to the room</td>
    </tr>
    <tr>
      <td>subject</td>
      <td>VARCHAR</td>
      <td>50</td>
      <td>New subject changed with the message</td>
    </tr>
    <tr>
      <td>body</td>
      <td>TEXT</td>
      <td>n/a</td>
      <td>Body of the message</td>
    </tr>
  </tbody>
</table>
&nbsp;<a href="#top" class="top">top of page</a>
Matt Tucker's avatar
Matt Tucker committed
827 828 829

</body>
</html>