�����JFIF��XX����������    $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222�����"����4���������������������������� ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������,�PG"Z_�4�˷����kjز�Z�,F+��_z�,�© �����zh6�٨�ic�fu������������������������������������#ډb���_�N��?�����������wQ���5-�~�I���8���������������������������������TK<5o�Iv-������������������k�_U_������������������������������~b�M��d��������Ӝ�U�Hh��?]��E�w��Q���k�{��_}qFW7HTՑ��Y��F�����?_�'ϔ��_�Ջt������������������������=||I �����6�έ"�����D���/[�k�9����Y�8������ds|\���Ҿp6�Ҵ���]��.����6���z<�v��@]�i%������������������������$j��~����g��J>��no����pM[me�i$[�����������s�o�ᘨ�˸ nɜG-�ĨU�ycP���3.DB�li�;���������������������hj���x����7Z^�N�h��������N3u{�:j�����x�힞��#M��&��jL P@��_���� P�������������������&��o8��������9������@Sz���6�t7#O�ߋ �����s}Yf�T������lmr����Z)'N��k�۞p�����w\�T���������������ȯ?�8`���O��i{wﭹW�[�r�� ��Q4F�׊������3m&L�=��h3�������z~��#����\�l :�F,j@�� ʱ�wQT����8�"kJO����6�֚l������������������}����R�>ډK���]��y����&����p�}b������;N�1�m�r$����|��7�>e�@���B�TM*-i�H��g�D�)� E�m�|�ؘbҗ�a���Ҿ����������������t4�����o���G��*oCN�rP���Q��@z,|?W[0���������:�n,j���WiE��W������$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S���������������VN;���}�s?.����� w��9��˟<���Mq4�Wv'������{)0�1mB����V����W[��������8�/<� �%���wT^�5���b��)iM� p�g�N�&ݝ������������VO~��q���u���9��� ����!��J27�����$����O-���! �:���%H��� ـ�������y�ΠM=t{!S�� �oK8�������t<����è��������:a��������[������ա�H���~��w��Qz`�p����o�^ ������Q��n����� �,uu�C��$ ^���,�������8�#��:�6��e�|~�����������!�3��3.�\0�����q��o�4`.|� ����y�Q�`~;�d�ׯ,��O�Zw�������`73�v�܋�<�����Ȏ�� ـ4k��5�K�a�u�=9Yd��$>x�A�&�� j0� ���vF��� Y���|�y��� ~�6�@c��1vOp��������Ig�����4��l�OD�����L����� R���c���j�_�uX�6��3?nk��Wy�f;^*B� ��@���~a�`��Eu�������+�����6�L��.ü>��}y���}_�O�6�͐�:�Yr���G�X��kG������l^w����������~㒶sy���Iu�!���� W ��X��N�7BV��O��!X�2����wvG�R�f�T#�����t�/?���%8�^�W�aT����G�cL�M���I��(J����1~�8�?aT ���]����AS�E��(��*E}� 2������#I/�׍qz��^t�̔���������b�Yz4x����t�){ OH�����+(E��A&�N�������XT��o��"�XC����'���)}�J�z�p� ����~5�}�^����+�6����w��c��Q�|�Lp�d�H��}�(�.|����k��c4^�����"�����Z?ȕ ��a<�������L�!0�39C� �Eu�����C�F�Ew�ç ;�n?�*o���B�8�bʝ���'#Rqf����M}7����]�������s2tcS{�\icTx;�\��7K���P������ʇ Z O-��~�������c>"��?��������P�����E��O�8��@�8��G��Q�g�a�Վ���󁶠��䧘��_%#r�>�����1�z�a���eb��qcP��ѵ��n���#L��� =��׀t� L�7�`�����V����A{�C:�g���e@�����w1 Xp�3�c3�ġ�������p��M"'-�@n4���fG���B3�DJ�8[Jo�ߐ���gK)ƛ��$���� �������8�3�����+���� �����6�ʻ���� ���S�kI�*KZlT _`�������?��K�����QK�d���������B`�s}�>���`������*�>��,*@J�d�oF*�����弝��O}�k��s��]��y�ߘ�������c1G�V���<=�7��7����6��q�PT��tXԀ�!9*4�4Tހ���3XΛex�46�������Y��D ����� ����BdemDa����\�_l,����G�/���֌7���Y�](�xTt^%�GE�����4�}bT����ڹ�����;��Y)���B�Q��u��>J/J ���⮶.�XԄ��j�ݳ������+E��d ���r�5�_D�����1 ���o�� �B�x�΢�#����<��W�����8���R6�@���g�M�.��� dr�D��>(otU��@�x=��~v���2� ӣ�d�oBd�����3�eO�6�㣷����������ݜ�6��6Y��Qz`����S��{���\P��~z m5{J/L��1������<�e�ͅPu���b�]�ϔ��������'�������f�b� Zpw��c`"��i���BD@:)ִ�:�]��h���v�E��w���T�l�������P����"Ju�}��وV ��J��G6��. J/�Qgl߭�e�����@�z�Zev2u����)]կ���������7x�������s�M�-<ɯ�c��r��v�����@��$�ޮ}lk���a����'����>x��O\�Z������Fu>������ck#��&:��`�$��ai�>2Δ����l���oF[h�������lE�ܺ�Π���k:)���`������� $[6�����9�����kOw�\|�����8}������ބ:��񶐕��������I�A1/���=�2[�,�!��.}gN#�u����b���� ~���������݊��}34q�����d�E��L��������c��$���"�[q�U�硬g^��%B ��z���r�p�������J�ru%v\h�����1Y�ne`������ǥ:g����pQM~�^��Xi� ��`S�:V2������9.�P���V������?B�k�� ��������AEvw%�_�9C�Q����wKekP�ؠ�\������;Io d�{ ߞo�c1eP�����\� `����E=���@K<�Y��������eڼ�J����w����{av�F�'�M�@��������������/J��+9p����|]���������Iw &`���8���&�M�hg���[�{�������Xj���%��Ӓ�������������������$��(�����ʹN�������<>�I���RY�����K2�NPlL�ɀ�)��&e��������B+ь����(������������������� � �JTx����_?EZ� }@���� 6�U���뙢ط�z��dWI��n` D����噥�[��uV��"�G&�����Ú����2�g�}&m���������������������?ċ���"����Om#�������������������������� ��{���������������������ON��"S�X���Ne��ysQ���@�������������Fn��Vg�����dX�~nj����������������������]J�<�K]:����FW���b�������62����������=��5f����JKw����bf�X������������������������55��~J �%^�������:�-�QIE��P��v�nZum� z � ~ə ���� ���ة����;�f��\v�������g�8�1��f2�������������������������4;�V���ǔ�)�������������������9���1\������������������������������c��v�/'Ƞ�w������������������$�4�R-��t����������������������������������� e�6�/�ġ �̕Ecy�J���u�B���<�W�ַ~�w[B1L۲�-JS΂�{���΃�������������������������������������������A��20�c#���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������@���� 0!1@AP"#2Q`$3V�%45a6�FRUq����� ������^7ׅ,$n��������+��F�`��2X'��0vM��p�L=�������5��8������u�p~���.�`r�����\����O��,ư�0oS ��_�M�����l���4�kv\JSd���x���SW�<��Ae�IX����������$I���w�:S���y���›R��9�Q[���,�5�;�@]�%���u�@ *ro�lbI �� ��+���%m:�͇ZV�����u�̉����θau<�fc�.����{�4Ա� �Q����*�Sm��8\ujqs]{kN���)qO�y�_*dJ�b�7���yQqI&9�ԌK!�M}�R�;�������S�T���1���i[U�ɵz�]��U)V�S6���3$K{��ߊ<�(� E]Զ[ǼENg�����'�\?#)Dkf��J���o��v���'�%ƞ�&K�u��!��b�35LX�Ϸ��63$K�a�;�9>,R��W��3�3� d�JeTYE.Mϧ��-�o�j3+y��y^�c�������VO�9NV\nd�1 ��!͕_)a�v;����թ�M�lWR1��)El��P;��yوÏ�u 3�k�5Pr6<�⒲l�!˞*��u־�n�!�l:����UNW ��%��Chx8vL'��X�@��*��)���̮��ˍ��� ����D-M�+J�U�kvK����+�x8��cY������?�Ԡ��~3mo��|�u@[XeY�C�\Kp�x8�oC�C�&����N�~3-H���� ��MX�s�u<`���~"WL��$8ξ��3���a�)|:@�m�\���^�`�@ҷ)�5p+��6���p�%i)P M���ngc�����#0Aruz���RL+xSS?���ʮ}()#�t��mˇ!��0}}y����<�e� �-ή�Ԩ��X������ MF���ԙ~l L.3���}�V뽺�v������멬��Nl�)�2����^�Iq��a��M��qG��T�����c3#������3U�Ǎ���}��לS�|qa��ڃ�+���-��2�f����/��bz��ڐ�� �ݼ[2�ç����k�X�2�* �Z�d���J�G����M*9W���s{��w���T��x��y,�in�O�v��]���n����P�$��JB@=4�OTI�n��e�22a\����q�d���%�$��(���:���: /*�K[PR�fr\nڙdN���F�n�$�4��[�� U�zƶ����� �mʋ���,�ao�u 3�z� �x��Kn����\[��VFmbE;�_U��&V�Gg�]L�۪&#n%�$ɯ��dG���D�TI=�%+AB�Ru#��b4�1�»x�cs�YzڙJG��f��Il���d�eF'T� iA��T���uC�$����Y��H?����[!G`}���ͪ� �纤Hv\������j�Ex�K���!���OiƸ�Yj�+u-<���'q����uN�*�r\��+�]���<�wOZ.fp�ێ��,-*)V?j-kÊ#�`�r��dV����(�ݽBk�����G�ƛk�QmUڗe��Z���f}|����8�8��a���i��3'J�����~G_�^���d�8w������ R�`(�~�.��u���l�s+g�bv���W���lGc}��u���afE~1�Ue������Z�0�8�=e�� f@/�jqEKQQ�J���oN��J���W5~M>$6�Lt�;$ʳ{���^��6�{����v6���ķܰg�V�cnn �~z�x�«�,2�u�?cE+Ș�H؎�%�Za�)���X>uW�Tz�Nyo����s���FQƤ��$��*�&�LLXL)�1�" L��eO��ɟ�9=���:t��Z���c��Ž���Y?�ӭV�wv�~,Y��r�ۗ�|�y��GaF�����C�����.�+� ���v1���fήJ�����]�S��T��B��n5sW}y�$��~z�'�c ��8 ��� ,! �p��VN�S��N�N�q��y8z˱�A��4��*��'������2n<�s���^ǧ˭P�Jޮɏ�U�G�L�J�*#��<�V��t7�8����TĜ>��i}K%,���)[��z�21z ?�N�i�n1?T�I�R#��m-�����������������1����lA�`��fT5+��ܐ�c�q՝��ʐ��,���3�f2U�եmab��#ŠdQ�y>\��)�SLY����w#��.���ʑ�f��� ,"+�w�~�N�'�c�O�3F�������N<���)j��&��,-� �љ���֊�_�zS���TǦ����w�>��?�������n��U仆�V���e�����0���$�C�d���rP �m�׈e�Xm�Vu� �L��.�bֹ��� �[Դaզ���*��\y�8�Է:�Ez\�0�Kq�C b��̘��cө���Q��=0Y��s�N��S.����3.���O�o:���#���v7�[#߫ ��5�܎�L���Er4���9n��COWlG�^��0k�%<���ZB���aB_���������'=��{i�v�l�$�uC���mƎҝ{�c㱼�y]���W�i ��ߧc��m�H� m�"�"�����;Y�ߝ�Z�Ǔ�����:S#��|}�y�,/k�Ld� TA�(�AI$+I3��;Y*���Z��}|��ӧO��d�v��..#:n��f>�>���ȶI�TX��� 8��y����"d�R�|�)0���=���n4��6ⲑ�+��r<�O�܂~zh�z����7ܓ�HH�Ga롏���nCo�>������a ���~]���R���̲c?�6(�q�;5%� |�uj�~z8R�=X��I�V=�|{v�Gj\gc��q����z�؋%M�ߍ����1y��#��@f^���^�>N������#x#۹��6�Y~�?�dfPO��{��P�4��V��u1E1J �*|���%����JN��`eWu�zk M6���q t[�� ��g�G���v��WIG��u_ft����5�j�"�Y�:T��ɐ���*�;� e5���4����q$C��2d�}���� _S�L#m�Yp��O�.�C�;��c����Hi#֩%+) �Ӎ��ƲV���SYź��g |���tj��3�8���r|���V��1#;.SQ�A[���S������#���`n�+���$��$�I �P\[�@�s��(�ED�z���P��])8�G#��0B��[ى��X�II�q<��9�~[Z멜�Z�⊔IWU&A>�P~�#��dp<�?����7���c��'~���5 ��+$���lx@�M�dm��n<=e�dyX��?{�|Aef ,|n3�<~z�ƃ�uۧ�����P��Y,�ӥQ�*g�#먙R�\���;T��i,��[9Qi歉����c>]9�� ��"�c��P�� �Md?٥��If�ت�u��k��/����F��9�c*9��Ǎ:�ØF���z�n*�@|I�ށ9����N3{'��[�'ͬ�Ҳ4��#}��!�V� Fu��,�,mTIk���v C�7v���B�6k�T9��1�*l� '~��ƞF��lU��'�M ����][ΩũJ_�{�i�I�n��$����L�� j��O�dx�����kza۪��#�E��Cl����x˘�o�����V���ɞ�ljr��)�/,�߬h�L��#��^��L�ф�,íMƁe�̩�NB�L�����iL����q�}��(��q��6IçJ$�W�E$��:������=#����(�K�B����zђ <��K(�N�۫K�w��^O{!����)��H���>x�������lx�?>Պ�+�>�W���,Ly!_�D���Ō�l���Q�!�[ �S����J��1��Ɛ�Y}��b,+�Lo�x�ɓ)����=�y�oh�@�꥟/��I��ѭ=��P�y9��� �ۍYӘ�e+�p�Jnϱ?V\SO%�(�t� ���=?MR�[Ș�����d�/ ��n�l��B�7j� ��!�;ӥ�/�[-���A�>��dN�sLj ��,ɪv��=1c�.SQ�O3�U���ƀ�ܽ�E����������̻��9G�ϷD�7(�}��Ävӌ\��y�_0[w ���<΍>����a_��[0+�L��F.�޺��f�>oN�T����q;���y\��bՃ��y�jH�<|q-eɏ�_?_9+P���Hp$�����[ux�K w�Mw��N�ی'$Y2�=��q���KB��P��~�������Yul:�[<����F1�2�O���5=d����]Y�sw:���Ϯ���E��j,_Q��X��z`H1,#II ��d�wr��P˂@�ZJV����y$�\y�{}��^~���[:N����ߌ�U�������O��d�����ؾe��${p>G��3c���Ė�lʌ�� ת��[��`ϱ�-W����dg�I��ig2��� ��}s ��ؤ(%#sS@���~���3�X�nRG�~\jc3�v��ӍL��M[JB�T��s3}��j�Nʖ��W����;7���ç?=X�F=-�=����q�ߚ���#���='�c��7���ڑW�I(O+=:uxq�������������e2�zi+�kuG�R��������0�&e�n���iT^J����~\jy���p'dtG��s����O��3����9* �b#Ɋ�� p������[Bws�T�>d4�ۧs���nv�n���U���_�~,�v����ƜJ1��s�� �QIz���)�(lv8M���U=�;����56��G���s#�K���MP�=��LvyGd��}�VwWBF�'�à �?MH�U�g2�� ����!�p�7Q��j��ڴ����=��j�u��� Jn�A s���uM������e��Ɔ�Ҕ�!)�'��8Ϣ�ٔ���ޝ(��Vp���צ֖d=�IC�J�Ǡ{q������kԭ�߸���i��@K����u�|�p=..�*+����x�����z[Aqġ#s2a�Ɗ���RR�)*HRsi�~�a &f��M��P����-K�L@��Z��Xy�'x�{}��Zm+���:�)�) IJ�-i�u���� ���ܒH��'��L(7�y�GӜq���� j��� 6ߌg1�g�o���,kر���tY�?W,���p���e���f�OQS��!K�۟cҒA�|ս�j�>��=⬒��˧L[�� �߿2JaB~R��u�:��Q�] �0H~���]�7��Ƽ�I���(�}��cq '�ήET���q�?f�ab���ӥvr� �)o��-Q��_'����ᴎo��K������;��V���o��%���~OK ����*��b�f:���-ťIR��`B�5!RB@���ï�� �u �̯e\�_U�_������� g�ES��3��������QT��a�����x����U<~�c?�*�#]�MW,[8O�a�x��]�1bC|踤�P��lw5V%�)�{t�<��d��5���0i�XSU��m:��Z�┵�i�"��1�^B�-��P�hJ��&)O��*�D��c�W��vM��)����}���P��ܗ-q����\mmζZ-l@�}��a��E�6��F�@��&Sg@���ݚ�M����� ȹ 4����#p�\H����dYDo�H���"��\��..R�B�H�z_�/5˘����6��KhJR��P�mƶi�m���3��,#c�co��q�a)*P�t����R�m�k�7x�D�E�\Y�閣_X�<���~�)���c[[�BP����6�Yq���S��0����%_����;��Àv�~�| VS؇ ��'O0��F0��\���U�-�d@�����7�SJ*z��3n��y��P����O����������m�~�P�3|Y��ʉr#�C�<�G~�.,! ���bqx���h~0=��!ǫ�jy����l��O,�[B��~��|9��ٱ����Xly�#�i�B��g%�S��������tˋ���e���ې��\[d�t)��.+u�|1 ������#�~Oj����hS�%��i.�~X���I�H�m��0n���c�1uE�q��cF�RF�o���7� �O�ꮧ� ���ۛ{��ʛi5�rw?׌#Qn�TW��~?y$��m\�\o����%W� ?=>S�N@�� �Ʈ���R����N�)�r"C�:��:����� �����#��qb��Y�. �6[��2K����2u�Ǧ�HYR��Q�MV��� �G�$��Q+.>�����nNH��q�^��� ����q��mM��V��D�+�-�#*�U�̒ ���p욳��u:�������IB���m����PV@O���r[b= �� ��1U�E��_Nm�yKbN�O���U�}�the�`�|6֮P>�\2�P�V���I�D�i�P�O;�9�r�mAHG�W�S]��J*�_�G��+kP�2����Ka�Z���H�'K�x�W�MZ%�O�YD�Rc+o��?�q��Ghm��d�S�oh�\�D�|:W������UA�Qc yT�q��������~^�H��/��#p�CZ���T�I�1�ӏT����4��"�ČZ�����}��`w�#�*,ʹ�� ��0�i��課�Om�*�da��^gJ݅{���l�e9uF#T�ֲ��̲�ٞC"�q���ߍ ոޑ�o#�XZTp����@ o�8��(jd��xw�]�,f���`~��|,s��^����f�1���t��|��m�򸄭/ctr��5s��7�9Q�4�H1꠲BB@�l9@���C�����+�wp�xu�£Yc�9��?`@#�o�mH�s2��)�=��2�.�l����jg�9$�Y�S�%*L������R�Y������7Z���,*=�䷘$�������arm�o�ϰ���UW.|�r�uf����IGw�t����Zwo��~5 ��YյhO+=8fF�)�W�7�L9lM�̘·Y���֘YLf�큹�pRF���99.A �"wz��=E\Z���'a� 2��Ǚ�#;�'}�G���*��l��^"q��+2FQ� hj��kŦ��${���ޮ-�T�٭cf�|�3#~�RJ����t��$b�(R��(����r���dx� >U b�&9,>���%E\� Ά�e�$��'�q't��*�א���ެ�b��-|d���SB�O�O��$�R+�H�)�܎�K��1m`;�J�2�Y~9��O�g8=vqD`K[�F)k�[���1m޼c��n���]s�k�z$@��)!I �x՝"v��9=�ZA=`Ɠi �:�E��)`�7��vI��}d�YI�_ �o�:ob���o ���3Q��&D&�2=�� �Ά��;>�h����y.*ⅥS������Ӭ�+q&����j|UƧ�����}���J0��WW< ۋS�)jQR�j���Ư��rN)�Gű�4Ѷ(�S)Ǣ�8��i��W52���No˓� ۍ%�5brOn�L�;�n��\G����=�^U�dI���8$�&���h��'���+�(������cȁ߫k�l��S^���cƗjԌE�ꭔ��gF���Ȓ��@���}O���*;e�v�WV���YJ\�]X'5��ղ�k�F��b 6R�o՜m��i N�i�����>J����?��lPm�U��}>_Z&�KK��q�r��I�D�Չ~�q�3fL�:S�e>���E���-G���{L�6p�e,8��������QI��h��a�Xa��U�A'���ʂ���s�+טIjP�-��y�8ۈZ?J$��W�P� ��R�s�]��|�l(�ԓ��sƊi��o(��S0���Y� 8�T97.�����WiL��c�~�dxc�E|�2!�X�K�Ƙਫ਼�$((�6�~|d9u+�qd�^3�89��Y�6L�.I�����?���iI�q���9�)O/뚅����O���X��X�V��ZF[�یgQ�L��K1���RҖr@v�#��X�l��F���Нy�S�8�7�kF!A��sM���^rkp�jP�DyS$N���q���nxҍ!U�f�!eh�i�2�m����`�Y�I�9r�6� �TF���C}/�y�^���Η���5d�'��9A-��J��>{�_l+�`��A���[�'��յ�ϛ#w:݅�%��X�}�&�PSt�Q�"�-��\縵�/����$Ɨh�Xb�*�y��BS����;W�ջ_mc�����vt?2}1�;qS�d�d~u:2k5�2�R�~�z+|HE!)�Ǟl��7`��0�<�,�2*���Hl-��x�^����'_TV�gZA�'j� ^�2Ϊ��N7t�����?w�� �x1��f��Iz�C-Ȗ��K�^q�;���-W�DvT�7��8�Z�������� hK�(P:��Q- �8�n�Z���܃e貾�<�1�YT<�,�����"�6{�/ �?�͟��|1�:�#g��W�>$����d��J��d�B���=��jf[��%rE^��il:��B���x���Sּ�1հ��,�=��*�7 fcG��#q� �eh?��2�7�����,�!7x��6�n�LC�4x��},Geǝ�tC.��vS �F�43��zz\��;QYC,6����~;RYS/6���|2���5���v��T��i����������mlv��������&� �nRh^ejR�LG�f���? �ۉҬܦƩ��|��Ȱ����>3����!v��i�ʯ�>�v��オ�X3e���_1z�Kȗ\<������!�8���V��]��?b�k41�Re��T�q��mz��TiOʦ�Z��Xq���L������q"+���2ۨ��8}�&N7XU7Ap�d�X��~�׿��&4e�o�F��� �H�����O���č�c�� 懴�6���͉��+)��v;j��ݷ�� �UV�� i��� j���Y9GdÒJ1��詞�����V?h��l�����l�cGs�ځ�������y�Ac������\V3�? �� ܙg�>qH�S,�E�W�[�㺨�uch�⍸�O�}���a��>�q�6�n6�����N6�q��������N� ���! 1AQaq�0@����"2BRb�#Pr���3C`��Scst���$4D���%Td���� ?�����N����a��3��m���C���w��������xA�m�q�m����m������$����4n淿t'��C"w��zU=D�\R+w�p+Y�T�&�պ@��ƃ��3ޯ?�Aﶂ��aŘ���@-�����Q�=���9D��ռ�ѻ@��M�V��P��܅�G5�f�Y<�u=,EC)�<�Fy'�"�&�չ�X~f��l�KԆV��?�� �W�N����=(� �;���{�r����ٌ�Y���h{�١������jW����P���Tc�����X�K�r��}���w�R��%��?���E��m�� �Y�q|����\lEE4����r���}�lsI�Y������f�$�=�d�yO����p�����yBj8jU�o�/�S��?�U��*������ˍ�0�������u�q�m [�?f����a�� )Q�>����6#������� ?����0UQ����,IX���(6ڵ[�DI�MNލ�c&���υ�j\��X�R|,4��� j������T�hA�e��^���d���b<����n�� �즇�=!���3�^�`j�h�ȓr��jẕ�c�,ٞX����-����a�ﶔ���#�$��]w�O��Ӫ�1y%��L�Y<�wg#�ǝ�̗`�x�xa�t�w��»1���o7o5��>�m뭛C���Uƃߜ}�C���y1Xνm�F8�jI���]����H���ۺиE@I�i;r�8ӭ�����V�F�Շ| ��&?�3|x�B�MuS�Ge�=Ӕ�#BE5G������Y!z��_e��q�р/W>|-�Ci߇�t�1ޯќd�R3�u��g�=0 5��[?�#͏��q�cf���H��{ ?u�=?�?ǯ���}Z��z���hmΔ�BFTW�����<�q��(v� ��!��z���iW]*�J�V�z��gX֧A�q�&��/w���u�gYӘa���; �i=����g:��?2�dž6�ى�k�4�>�Pxs����}������G�9���3 ���)gG�R<>r h�$��'nc�h�P��Bj��J�ҧH� -��N1���N��?��~��}-q!=��_2hc�M��l�vY%UE�@|�v����M2�.Y[|y�"Eï��K�ZF,�ɯ?,q�?v�M 80jx�"�;�9vk�����+ ֧�� �ȺU��?�%�vcV��mA�6��Qg^M�����A}�3�nl� QRN�l8�kkn�'�����(��M�7m9و�q���%ޟ���*h$Zk"��$�9��: �?U8�Sl��,,|ɒ��xH(ѷ����Gn�/Q�4�P��G�%��Ա8�N��!� �&�7�;���eKM7�4��9R/%����l�c>�x;������>��C�:�����t��h?aKX�bhe�ᜋ^�$�Iհ �hr7%F$�E��Fd���t��5���+�(M6�t����Ü�UU|zW�=a�Ts�Tg������dqP�Q����b'�m���1{|Y����X�N��b �P~��F^F:����k6�"�j!�� �I�r�`��1&�-$�Bevk:y���#y�w��I0��x��=D�4��tU���P�ZH��ڠ底taP��6����b>�xa�����Q�#� WeF��ŮNj�p�J* mQ�N�����*I�-*�ȩ�F�g�3 �5��V�ʊ�ɮ�a��5F���O@{���NX��?����H�]3��1�Ri_u��������ѕ�� ����0��� F��~��:60�p�͈�S��qX#a�5>���`�o&+�<2�D����: �������ڝ�$�nP���*)�N�|y�Ej�F�5ټ�e���ihy�Z �>���k�bH�a�v��h�-#���!�Po=@k̆IEN��@��}Ll?j�O������߭�ʞ���Q|A07x���wt!xf���I2?Z��<ץ�T���cU�j��]���陎Ltl �}5�ϓ��$�,��O�mˊ�;�@O��jE��j(�ا,��LX���LO���Ц�90�O �.����a��nA���7������j4 ��W��_ٓ���zW�jcB������y՗+EM�)d���N�g6�y1_x��p�$Lv�:��9�"z��p���ʙ$��^��JԼ*�ϭ����o���=x�Lj�6�J��u82�A�H�3$�ٕ@�=Vv�]�'�qEz�;I˼��)��=��ɯ���x �/�W(V���p�����$ �m�������u�����񶤑Oqˎ�T����r��㠚x�sr�GC��byp�G��1ߠ�w e�8�$⿄����/�M{*}��W�]˷.�CK\�ުx���/$�WP�w���r� |i���&�}�{�X� �>��$-��l���?-z���g����lΆ���(F���h�vS*���b���߲ڡn,|)mrH[���a�3�ר�[1��3o_�U�3�TC�$��(�=�)0�kgP���� ��u�^=��4 �WYCҸ:��vQ�ר�X�à��tk�m,�t*��^�,�}D*�� �"(�I��9R����>`�`��[~Q]�#af��i6l��8���6�:,s�s�N6�j"�A4���IuQ��6E,�GnH��zS�HO�uk�5$�I�4��ؤ�Q9�@��C����wp��BGv[]�u�Ov����0I4���\��y�����Q�Ѹ��~>Z��8�T��a��q�ޣ;z��a���/��S��I:�ܫ_�|������>=Z����8:�S��U�I�J��"IY���8%b8���H��:�QO�6�;7�I�S��J��ҌAά3��>c���E+&jf$eC+�z�;��V����� �r���ʺ������my�e���aQ�f&��6�ND���.:��NT�vm�<- u���ǝ\MvZY�N�NT��-A�>jr!S��n�O 1�3�Ns�%�3D@���`������ܟ 1�^c<���� �a�ɽ�̲�Xë#�w�|y�cW�=�9I*H8�p�^(4���՗�k��arOcW�tO�\�ƍR��8����'�K���I�Q�����?5�>[�}��yU�ײ -h��=��% q�ThG�2�)���"ו3]�!kB��*p�FDl�A���,�eEi�H�f�Ps�����5�H:�Փ~�H�0Dت�D�I����h�F3�������c��2���E��9�H��5�zԑ�ʚ�i�X�=:m�xg�hd(�v����׊�9iS��O��d@0ڽ���:�p�5�h-��t�&���X�q�ӕ,��ie�|���7A�2���O%P��E��htj��Y1��w�Ѓ!����  ���� ࢽ��My�7�\�a�@�ţ�J ��4�Ȼ�F�@o�̒?4�wx��)��]�P��~�����u�����5�����7X ��9��^ܩ�U;Iꭆ 5 �������eK2�7(�{|��Y׎ �V��\"���Z�1� Z�����}��(�Ǝ"�1S���_�vE30>���p;� ΝD��%x�W�?W?v����o�^V�i�d��r[��/&>�~`�9Wh��y�;���R���� ;;ɮT��?����r$�g1�K����A��C��c��K��l:�'��3 c�ﳯ*"t8�~l��)���m��+U,z��`(��>yJ�?����h>��]��v��ЍG*�{`��;y]��I�T� ;c��NU�fo¾h���/$���|NS���1�S�"�H��V���T���4��uhǜ�]�v;���5�͠x��'C\�SBpl���h}�N����� A�Bx���%��ޭ�l��/����T��w�ʽ]D�=����K���ž�r㻠l4�S�O?=�k �M:� ��c�C�a�#ha���)�ѐxc�s���gP�iG���{+���x���Q���I= �� z��ԫ+ �8"�k�ñ�j=|����c ��y��CF��/���*9ж�h{ �?4�o� ��k�m�Q�N�x��;�Y��4膚�a�w?�6�>�e]�����Q�r�:����g�,i"�����ԩA��*M�<�G��b�if��l^M��5�� �Ҩ�{����6J��ZJ�����P�*�����Y���ݛu�_4�9�I8�7���������,^ToR���m4�H��?�N�S�ѕw��/S��甍�@�9H�S�T��t�ƻ���ʒU��*{Xs�@����f������֒Li�K{H�w^���������Ϥm�tq���s� ���ք��f:��o~s��g�r��ט� �S�ѱC�e]�x���a��) ���(b-$(�j>�7q�B?ӕ�F��hV25r[7 Y� }L�R��}����*sg+��x�r�2�U=�*'WS��ZDW]�WǞ�<��叓���{�$�9Ou4��y�90-�1�'*D`�c�^o?(�9��u���ݐ��'PI&� f�Jݮ�������:wS����jfP1F:X �H�9dԯ����˝[�_54 �}*;@�ܨ�� ð�yn�T���?�ןd�#���4rG�ͨ��H�1�|-#���Mr�S3��G�3�����)�.᧏3v�z֑��r����$G"�`j �1t��x0<Ɔ�Wh6�y�6��,œ�Ga��gA����y��b��)���h�D��ß�_�m��ü �gG;��e�v��ݝ�nQ� ��C����-�*��o���y�a��M��I�>�<���]obD��"�:���G�A��-\%LT�8���c�)��+y76���o�Q�#*{�(F�⽕�y����=���rW�\p���۩�c���A���^e6��K������ʐ�cVf5$�'->���ՉN"���F�"�UQ@�f��Gb~��#�&�M=��8�ט�JNu9��D��[̤�s�o�~������� G��9T�tW^g5y$b��Y'��س�Ǵ�=��U-2 #�MC�t(�i� �lj�@Q 5�̣i�*�O����s�x�K�f��}\��M{E�V�{�υ��Ƈ�����);�H����I��fe�Lȣr�2��>��W��I�Ȃ6������i��k�� �5�YOxȺ����>��Y�f5'��|��H+��98pj�n�.O�y�������jY��~��i�w'������l�;�s�2��Y��:'lg�ꥴ)o#'Sa�a�K��Z� �m��}�`169�n���"���x��I ��*+� }F<��cГ���F�P�������ֹ*�PqX�x۩��,� ��N�� �4<-����%����:��7����W���u�`����� $�?�I��&����o��o��`v�>��P��"��l���4��5'�Z�gE���8���?��[�X�7(��.Q�-��*���ތL@̲����v��.5���[��=�t\+�CNܛ��,g�SQnH����}*F�G16���&:�t��4ُ"A��̣��$�b �|����#rs��a�����T�� ]�<�j��B�S�('$�ɻ� �wP;�/�n��?�ݜ��x�F��yUn�~mL*-�������Xf�wd^�a�}��f�,=t�׵i�.2/wpN�Ep8�OР���•��R�FJ� 55TZ��T �ɭ�<��]��/�0�r�@�f��V��V����Nz�G��^���7hZi����k��3�,kN�e|�vg�1{9]_i��X5y7� 8e]�U����'�-2,���e"����]ot�I��Y_��n�(JҼ��1�O ]bXc���Nu�No��pS���Q_���_�?i�~�x h5d'�(qw52] ��'ޤ�q��o1�R!���`ywy�A4u���h<קy���\[~�4�\ X�Wt/� 6�����n�F�a8��f���z �3$�t(���q��q�x��^�XWeN'p<-v�!�{�(>ӽDP7��ո0�y)�e$ٕv�Ih'Q�EA�m*�H��RI��=:��� ���4牢) �%_iN�ݧ�l]� �Nt���G��H�L��� ɱ�g<���1V�,�J~�ٹ�"K��Q�� 9�HS�9�?@��k����r�;we݁�]I�!{ �@�G�[�"��`���J:�n]�{�cA�E����V��ʆ���#��U9�6����j�#Y�m\��q�e4h�B�7��C�������d<�?J����1g:ٳ���=Y���D�p�ц� ׈ǔ��1�]26؜oS�'��9�V�FVu�P�h�9�xc�oq�X��p�o�5��Ա5$�9W�V(�[Ak�aY錎qf;�'�[�|���b�6�Ck��)��#a#a˙��8���=äh�4��2��C��4tm^ �n'c����]GQ$[Wҿ��i���vN�{Fu ��1�gx��1┷���N�m��{j-,��x�� Ūm�ЧS�[�s���Gna���䑴�� x�p 8<������97�Q���ϴ�v�aϚG��Rt�Һ׈�f^\r��WH�JU�7Z���y)�vg=����n��4�_)y��D'y�6�]�c�5̪��\� �PF�k����&�c;��cq�$~T�7j ���nç]�<�g ":�to�t}�159�<�/�8������m�b�K#g'I'.W������6��I/��>v��\�MN��g���m�A�yQL�4u�Lj�j9��#44�t��l^�}L����n��R��!��t��±]��r��h6ٍ>�yҏ�N��fU�� ���� Fm@�8}�/u��jb9������he:A�y�ծw��GpΧh�5����l}�3p468��)U��d��c����;Us/�֔�YX�1�O2��uq�s��`hwg�r~�{ R��mhN��؎*q 42�*th��>�#���E����#��Hv�O����q�}������6�e��\�,Wk�#���X��b>��p}�դ��3���T5��†��6��[��@��P�y*n��|'f�֧>�lư΂�̺����SU�'*�q�p�_S�����M�� '��c�6������m�� ySʨ;M��r���Ƌ�m�Kxo,���Gm�P��A�G�:��i��w�9�}M(�^�V��$ǒ�ѽ�9���|���� �a����J�SQ�a���r�B;����}���ٻ֢�2�%U���c�#�g���N�a�ݕ�'�v�[�OY'��3L�3�;,p�]@�S��{ls��X�'���c�jw��k'a�.��}�}&�� �dP�*�bK=ɍ!����;3n�gΊU�ߴmt�'*{,=SzfD� A��ko~�G�aoq�_mi}#�m�������P�Xhύ�����mxǍ�΂���巿zf��Q���c���|kc�����?���W��Y�$���_Lv����l߶��c���`?����l�j�ݲˏ!V��6����U�Ђ(A���4y)H���p�Z_�x��>���e���R��$�/�`^'3qˏ�-&Q�=?��CFVR �D�fV�9��{�8g�������n�h�(P"��6�[�D���< E�����~0<@�`�G�6����Hг�cc�� �c�K.5��D��d�B���`?�XQ��2��ٿyqo&+�1^� DW�0�ꊩ���G�#��Q�nL3��c���������/��x ��1�1�[y�x�პCW��C�c�UĨ80�m�e�4.{�m��u���I=��f�����0QRls9���f���������9���~f�����Ǩ��a�"@�8���ȁ�Q����#c�ic������G��$���G���r/$W�(��W���V�"��m�7�[m�A�m����bo��D� j����۳� l���^�k�h׽����� ��#� iXn�v��eT�k�a�^Y�4�BN���ĕ���0������� !01@Q"2AaPq3BR�������?�����@4�Q�����T3,���㺠�W�[=JK�Ϟ���2�r^7��vc�:�9 �E�ߴ�w�S#d���Ix��u��:��Hp��9E!�� V 2;73|F��9Y���*ʬ�F��D����u&���y؟��^EA��A��(ɩ���^��GV:ݜDy�`��Jr29ܾ�㝉��[���E;Fzx��YG��U�e�Y�C���� ����v-tx����I�sם�Ę�q��Eb�+P\ :>�i�C'�;�����k|z�رn�y]�#ǿb��Q��������w�����(�r|ӹs��[�D��2v-%��@;�8<a���[\o[ϧw��I!��*0�krs)�[�J9^��ʜ��p1)� "��/_>��o��<1����A�E�y^�C��`�x1'ܣn�p��s`l���fQ��):�l����b>�Me�jH^?�kl3(�z:���1ŠK&?Q�~�{�ٺ�h�y���/�[��V�|6��}�KbX����mn[-��7�5q�94�������dm���c^���h� X��5��<�eޘ>G���-�}�دB�ޟ� ��|�rt�M��V+�]�c?�-#ڛ��^ǂ}���Lkr���O��u�>�-D�ry� D?:ޞ�U��ǜ�7�V��?瓮�"�#���r��չģVR;�n���/_� ؉v�ݶe5d�b9��/O��009�G���5n�W����JpA�*�r9�>�1��.[t���s�F���nQ� V 77R�]�ɫ8����_0<՜�IF�u(v��4��F�k�3��E)��N:��yڮe��P�`�1}�$WS��J�SQ�N�j��ٺ��޵�#l���ј(�5=��5�lǏmoW�v-�1����v,W�mn��߀$x�<����v�j(����c]��@#��1������Ǔ���o'��u+����;G�#�޸��v-lη��/(`i⣍Pm^����ԯ̾9Z��F��������n��1��� ��]�[��)�'�������:�֪�W��FC����� �B9،!?���]��V��A�Վ�M��b�w��G F>_DȬ0¤�#�QR�[V��kz���m�w�"��9ZG�7'[��=�Q����j8R?�zf�\a�=��O�U����*oB�A�|G���2�54 �p��.w7� �� ���&������ξxGHp� B%��$g�����t�Џ򤵍z���HN�u�Я�-�'4��0���;_���3������� !01"@AQa2Pq#3BR�������?����ʩca��en��^��8���<�u#��m*08r��y�N"�<�Ѳ0��@\�p��� �����Kv�D��J8�Fҽ� �f�Y��-m�ybX�NP����}�!*8t(�OqѢ��Q�wW�K��ZD��Δ^e��!� ��B�K��p~�����e*l}z#9ң�k���q#�Ft�o��S�R����-�w�!�S���Ӥß|M�l޶V��!eˈ�8Y���c�ЮM2��tk���� ������J�fS����Ö*i/2�����n]�k�\���|4yX�8��U�P.���Ы[���l��@"�t�<������5�lF���vU�����W��W��;�b�cД^6[#7@vU�xgZv��F�6��Q,K�v��� �+Ъ��n��Ǣ��Ft���8��0��c�@�!�Zq s�v�t�;#](B��-�nῃ~���3g������5�J�%���O������n�kB�ĺ�.r��+���#�N$?�q�/�s�6��p��a����a��J/��M�8��6�ܰ"�*������ɗud"\w���aT(����[��F��U՛����RT�b���n�*��6���O��SJ�.�ij<�v�MT��R\c��5l�sZB>F��<7�;EA��{��E���Ö��1U/�#��d1�a�n.1ě����0�ʾR�h��|�R��Ao�3�m3 ��%�� ���28Q�� ��y��φ���H�To�7�lW>����#i`�q���c����a��� �m,B�-j����݋�'mR1Ήt�>��V��p���s�0IbI�C.���1R�ea�����]H�6�����������4B>��o��](��$B���m�����a�!=���?�B� K�Ǿ+�Ծ"�n���K��*��+��[T#�{�E�J�S����Q�����s�5�:�U�\wĐ�f�3����܆&�)�����I���Ԇw��E T�lrTf6Q|R�h:��[K�� �z��c֧�G�C��%\��_�a��84��HcO�bi��ؖV��7H �)*ģK~Xhչ0��4?�0��� �E<���}3���#���u�?�� ��|g�S�6ꊤ�|�I#Hڛ� �ա��w�X��9��7���Ŀ%�SL��y6č��|�F�a 8���b���$�sק�h���b9RAu7�˨p�Č�_\*w��묦��F ����4D~�f����|(�"m���NK��i�S�>�$d7SlA��/�²����SL��|6N�}���S�˯���g��]6��; �#�.��<���q'Q�1|KQ$�����񛩶"�$r�b:���N8�w@��8$�� �AjfG|~�9F ���Y��ʺ��Bwؒ������M:I岎�G��`s�YV5����6��A �b:�W���G�q%l�����F��H���7�������Fsv7���k�� 403WebShell
403Webshell
Server IP : 103.30.72.248  /  Your IP : 216.73.216.144
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-CARKG80MF9A 10.0 build 17763 (Windows Server 2019) AMD64
User : IUSR ( 0)
PHP Version : 8.2.7
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files (x86)/ManageEngine/UEMS_Agent/data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files (x86)/ManageEngine/UEMS_Agent/data/data-dictionary-framework.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE data-dictionary SYSTEM "data-dictionary.dtd">
<!--?xml-stylesheet type="text/xsl" href="http://nms5-server/dd_styles/data-dictionary-transform.xsl"?-->
<!--
Repository Version Details:

$Id: data-dictionary.xml,v 1.91.6.28.8.7.14.31.4.8.8.1 2014/08/20 14:02:39 narunkumar Exp $

-->

<data-dictionary name="DeviceManagementFramework">

	<description>
		<![CDATA[
		<b>A Short Note On DesktopCentral:</b> </br>
	DesktopCentral is an Administration tool which helps to reduce the TCO (total cost ownership) by offering the Administrators to centrally manage the day to day configurations for the client machines connected in the network, through an interactive web console.
	</br> </br>
	We have taken most important/common desktop configurations of Windows OS for the initial stage, and later it will be extended to other OS and wide range of configurations. Some of the configurations which have been taken are MS Office Configuration, Internet Explorer Configuration, Outlook Configuration, Printer Configuration, etc.
	</br> </br>
		In general, the above configurations can be broadly classified into Registry based configurations and Non Registry based configurations. In case of Registry based configurations, all the configuration data are stored in a common data structure (Windows Registry) format. In case of Non Registry based configurations, all the configuration data are stored in different configuration files located in different places.
	</br> </br>
	So the observation here is, if we model the Registry properly, we can use the same data model for all the Registry based configurations, no need to define separate tables for each configuration unnecessarily. And for Non Registry based configurations, need to model the tables separately based in the data structure involved in each of the configuration. This is the approach we have followed in the overall data model.
	</br> </br>
		Other necessary details have been provided along with the tables itself.
		]]>
	</description>


	<!-- Tables for Factory Settings - Starts Here -->
	<table name="Configuration">
		<description>
		<![CDATA[
			The DesktopCentral tool supports for number of configurations to centrally manage the computers. This table captures the list of configurations which are supported by the DesktopCentral tool. Examples would be like "Display Configurations", "Desktop Configurations", etc. A unique Id will be associated for each configuration and this Id is not generated automatically(as the count will be very minimal, we can assign very specific values for each configuration), will be taken from the configuration file while populating the data from XML.
		]]>
		</description>
		<columns>
			<column name="CONFIG_ID">
				<description>A unique id for each configuration. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONFIG_NAME">
				<description>Name of the configuration. Eg: "Display Configuration" </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="CONFIG_TYPE">
				<description>Type of the configuration, whether applicable to user or computer. </description>
				<data-type>CHAR</data-type>
				<max-size>20</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DESCRIPTION">
				<description>A short description about the configuration. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_REPWINDOW_APPLICABLE">
				<description>Whether replication window is applicable for this configuration. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="Configuration_PK">
			<primary-key-column>CONFIG_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="ConfigStatusDefn">
		<description>
		<![CDATA[
		This table captures the various configuration status which are used by the system.
		]]>
		</description>
		<columns>
			<column name="STATUS_ID">
				<description>Unique id for each status defn. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STATUS_NAME">
				<description>Name of the status.  </description>
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LABEL">
				<description>The display label for the status. </description>
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IMAGE_NAME">
				<description>The image to be used to represent the status. </description>
				<data-type>CHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ConfigStatusDefn_PK">
			<primary-key-column>STATUS_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="ConfigurationParams">
		<description>
		<![CDATA[
		This table will hold the necessary parameters for each configuration for client application.
		]]>
		</description>
		<columns>
			<column name="CONFIG_ID">
				<description>Unique id of the configuration. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LABEL">
				<description>The display label for the configuration. </description>
				<data-type>NCHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DESCRIPTION">
				<description>The quick note content to be shown. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IMAGE_NAME">
				<description>The image to be used to represent the configuration on the client. </description>
				<data-type>CHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SMALL_IMAGE_NAME">
				<description>Another image (probably same image with small size) to be used to represent the configuration on the client at diff. places. </description>
				<data-type>CHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="APPLY_ALWAYS">
				<description>Whether 'apply always' option is needed for this configuration. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DEFAULT_RETRY_ENABLE">
				<description>Whether 'retry' option should be enabled for this configuration. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DEFAULT_RETRY_COUNT">
				<description>Default Retry count for this configuration.</description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ENABLE_REFRESH_MIN_RETRY">
				<description>Whether 'minimum refresh retry' option should be enabled for this configuration. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="REFRESH_MIN_RETRY_CNT">
				<description>Default minimum refresh retry count for this configuration.</description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ENABLE_LOGON_STARTUP_MIN_RETRY">
				<description>Whether 'minimum logon or startup retry' option should be enabled for this configuration. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGON_STARTUP_MIN_RETRY_CNT">
				<description>Default minimum logon or startup retry count for this configuration.</description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ConfigurationParams_PK">
			<primary-key-column>CONFIG_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ConfigurationParams_FK" reference-table-name="Configuration" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONFIG_ID</fk-local-column>
						<fk-reference-column>CONFIG_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
		<indexes>
        	<index name="ConfigurationParams_IDX1">
            	<index-column>LABEL</index-column>
        	</index>
 		</indexes>
	</table>
	<table name="ReportCategory">
		<description>
		<![CDATA[
		Details regarding the categories of the AD reports.
		]]>
		</description>
		<columns>
			<column name="CATEGORY_ID">
				<description>Unique Id for each category. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CATEGORY_NAME">
				<description>Display name to be shown in the UI for this category. </description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IMAGE_NAME">
				<description>The image to be used for the category. </description>
				<data-type>NCHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
                <primary-key name="ReportCategory_PK">
			<primary-key-column>CATEGORY_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="ReportSubCategory">
		<description>
		<![CDATA[
		Details regarding the sub categories of the AD reports.
		]]>
		</description>
		<columns>
			<column name="SUB_CATEGORY_ID">
				<description>Unique Id for each sub category. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CATEGORY_ID">
				<description>Id of the category (as exists in Category table) .</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SUB_CATEGORY_NAME">
				<description>Display name to be shown in the UI for this sub category. </description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IMAGE_NAME">
				<description>The image to be used for the sub category. </description>
				<data-type>NCHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ORDER_OF_DISPLAY">
				<description>Order at which this report category to be displayed in the ui. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ReportSubCategory_PK">
			<primary-key-column>SUB_CATEGORY_ID</primary-key-column>
		</primary-key>

		<foreign-keys>
			<foreign-key name="ReportSubCategory_FK" reference-table-name="ReportCategory" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CATEGORY_ID</fk-local-column>
						<fk-reference-column>CATEGORY_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ViewParams">
		<description>
		<![CDATA[
		This table will hold the necessary parameters for each view in reports section etc.
		]]>
		</description>
		<columns>
			<column name="VIEW_ID">
				<description>Unique id for each view. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="VIEW_NAME">
				<description>name of the view. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="TITLE">
				<description>title of the view. </description>
				<data-type>NCHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DESCRIPTION">
				<description>description for the view. </description>
				<data-type>CHAR</data-type>
				<max-size>2000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ACTION_URL">
				<description>The url for the view. </description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ORDER_OF_DISPLAY">
				<description>Order at which this report name to be displayed in the ui. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IMAGE_NAME">
				<description>The image to be used for the view. </description>
				<data-type>CHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SUB_CATEGORY_ID">
				<description>The report classification integer value. For eg. user list , computer list etc. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>

		<primary-key name="ViewParams_PK">
			<primary-key-column>VIEW_ID</primary-key-column>
		</primary-key>

		<foreign-keys>
			<foreign-key name="ViewParams_FK" reference-table-name="ReportSubCategory" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>SUB_CATEGORY_ID</fk-local-column>
						<fk-reference-column>SUB_CATEGORY_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>

	</table>
	<table name="ResourceType">
		<description>
		<![CDATA[
		This table contains the Active Directory resources types like Domain, Organizational Unit (OUs), Group, User, Computer, etc.
		]]>
		</description>
		<columns>
			<column name="RESOURCE_TYPE_ID">
				<description>Holds unique id for each resource type present in Active Directory. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DISPLAY_LABEL">
				<description>Display label for the resource type. </description>
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ResourceType_PK">
			<primary-key-column>RESOURCE_TYPE_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="ResourcePersonality">
		<description>
		<![CDATA[
		This table contains the mapping of resource types like Domain, Organizational Unit (OUs), Group, User, Computer, etc. and personality name defnined in personality-configuration.xml.
		]]>
		</description>
		<columns>
			<column name="RESOURCE_TYPE">
				<description>Holds resource type. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="OPERATION_TYPE">
				<description>Holds operation type. Allowed values are 2 for WRITE, 4 for READ</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PERSONALITY_NAME">
				<description>personality name for the resource type with operation type combo. </description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ResourcePersonality_PK">
			<primary-key-column>RESOURCE_TYPE</primary-key-column>
			<primary-key-column>OPERATION_TYPE</primary-key-column>
		</primary-key>
	</table>
	<table name="CustomerInfo">
        <description>
        <![CDATA[ Table for retaining Customer Details Info.
        ]]>
        </description>
        <columns>
            <column name="CUSTOMER_ID">
                <description>A unique id for each CUSTOMER. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                   <generator-name>CustomerInfo.CUSTOMER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CUSTOMER_NAME">
                <description>Name of the CUSTOMER </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_EMAIL">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <unique>false</unique>
            </column>
            <column name="TIMEZONE">
                <description>Identifier of Timezone to which the customer belongs to</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
            </column>
            <column name="IS_CUSTOM_LOGO_ENABLE">
                <description>Exports contains customer logo if its true.</description>
                <data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
            </column>
			<column name="ADDED_TIME">
                <description>Time at which the customer has been added in the DB. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UPDATED_TIME">
                <description>Time at which the customer has been updated last in the DB. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CustomerInfo_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <indexes>
            <index name="CustomerInfo_IDX1">
            <index-column>CUSTOMER_NAME</index-column>
            </index>
         </indexes>
	 </table>

        <table name="CustomerAddress">
            <description>
		 <![CDATA[ Table for retaining Customer Address.
		 ]]>
            </description>
            <columns>
                <column name="CUSTOMER_ID">
                    <description>A unique id for each CUSTOMER.</description>
                    <data-type>BIGINT</data-type>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="COMPANY_NAME">
                    <description>Name of the CUSTOMER Company </description>
                    <data-type>NCHAR</data-type>
                    <max-size>250</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                </column>
                <column name="DESCRIPTION">
                    <description>Description of Company </description>
                    <data-type>NCHAR</data-type>
                    <max-size>250</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="DOOR_NO">
                    <description>Door number of address</description>
                    <data-type>CHAR</data-type>
                    <max-size>50</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="STREET">
                    <description>Name of street</description>
                    <data-type>CHAR</data-type>
                    <max-size>50</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="LANDMARK">
                    <description>Landmark nearby</description>
                    <data-type>CHAR</data-type>
                    <max-size>50</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="CITY">
                    <description>Name of city</description>
                    <data-type>CHAR</data-type>
                    <max-size>50</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="POSTALCODE">
                    <description>Postal code / PIN code</description>
                    <data-type>CHAR</data-type>
                    <max-size>20</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="STATE">
                    <description>Name of the state</description>
                    <data-type>CHAR</data-type>
                    <max-size>50</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="COUNTRY">
                    <description>Name of the country</description>
                    <data-type>CHAR</data-type>
                    <max-size>50</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="LANDLINE">
                    <description>Landline phone number</description>
                    <data-type>CHAR</data-type>
                    <max-size>30</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="FAX">
                    <description>Fax number</description>
                    <data-type>CHAR</data-type>
                    <max-size>30</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="WEB_URL">
                    <description>Web URL</description>
                    <data-type>CHAR</data-type>
                    <max-size>100</max-size>
                    <default-value>--</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
            </columns>
            <primary-key name="CustomerAddress_PK">
                <primary-key-column>CUSTOMER_ID</primary-key-column>
            </primary-key>
            <foreign-keys>
                <foreign-key name="CustomerAddress_FK" reference-table-name="CustomerInfo" isbidirectional="false">
                    <fk-columns>
                        <fk-column>
                            <fk-local-column>CUSTOMER_ID</fk-local-column>
                            <fk-reference-column>CUSTOMER_ID</fk-reference-column>
                        </fk-column>
                    </fk-columns>
                    <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                </foreign-key>
            </foreign-keys>
        </table>

	 <table name="LoginUserCustomerMapping">
		<description><![CDATA[Table contains customer and login user id relation]]> </description>
		<columns>
			<column name="CUSTOMER_ID">
				<description>A unique id for each CUSTOMER.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="DC_USER_ID">
				<description>Unique identifier for login user</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
		</columns>
		<primary-key name="LoginUserCustomerMapping_PK">
			<primary-key-column>CUSTOMER_ID</primary-key-column>
			<primary-key-column>DC_USER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="LoginUserCustomerMapping_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
						<fk-reference-column>CUSTOMER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="LoginUserCustomerMapping_FK1" reference-table-name="AaaUser" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>DC_USER_ID</fk-local-column>
						<fk-reference-column>USER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="Resource">
		<description>
		<![CDATA[
		This table contains the basic details of resources like Domain, Organizational Unit (OUs), Group, User, Computer, etc.
		]]>
		</description>
		<columns>
			<column name="RESOURCE_ID">
				<description>Holds unique Id generated for each resource. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>Resource.RESOURCE_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="NAME">
				<description>Name of the resource. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DOMAIN_NETBIOS_NAME">
				<description>Domain netBIOS name where the resource participates. </description>
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RESOURCE_TYPE">
				<description>Type of the resource. The value will represent the Workgroup, Domain, OU, User, Computer, etc. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_INACTIVE">
				<description>Whether the resource is active ? Can be used in status calculation. </description>
                <data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
           		<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DB_ADDED_TIME">
				<description>Time at which the resource has been added in the DB. </description>
               	<data-type>BIGINT</data-type>
				<default-value>0</default-value>
               	<nullable>false</nullable>
               	<unique>false</unique>
	   		</column>
			<column name="DB_UPDATED_TIME">
				<description>Time at which the resource has been updated last in the DB. </description>
               	<data-type>BIGINT</data-type>
				<default-value>0</default-value>
               	<nullable>false</nullable>
               	<unique>false</unique>
			</column>
			<column name="CUSTOMER_ID">
				<description>Customer ID for which the resource is generated</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="Resource_PK">
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="Resource_FK" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
						<fk-reference-column>CUSTOMER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
		<indexes>
        	<index name="Resource_IDX1">
            	<index-column>NAME</index-column>
            	<index-column>DOMAIN_NETBIOS_NAME</index-column>
            	<index-column>RESOURCE_TYPE</index-column>
        	</index>
 		</indexes>
	</table>
	<table name="Collection">
		<description>
		<![CDATA[
		A Collection is nothing but a collection of configurations which are to be applied collectively on the client machines based on certain condition. There won't be conditons specified for each individual configuration instead there will be a single condition which will be evaluated for applying all the configurations which are belong to the Collection. This feature would be very useful when the admin user wants to group the related configuration and want to follow-up the set of configurations. This table captures the basic attributes of Collection configuration.
		]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique Id for each Collection. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>COLLECTION.COLLECTION_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="COLLECTION_NAME">
				<description>Name of the Collection. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DESCRIPTION">
				<description>A short description about the Collection. </description>
				<data-type>NCHAR</data-type>
				<max-size>2000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREATION_TIME">
				<description>Time at which this collection is created. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MODIFIED_TIME">
				<description>Time at which this collection is last modified. </description>
				<data-type>BIGINT</data-type>
                                <default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_SINGLE_CONFIG">
				<description>Whether this collection is defined for single configuration for internal use? </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COLLECTION_TYPE">
				<description>Whether the collection defined for configurations or tools. Allowed values can be 1 - for Computer ,2 - for User ,3 - for MDM </description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="APPLY_TYPE">
				<description>To configure whether the collection should be executed only once or at every login, etc. The possible values are 1 (APPLY_ONCE), 2 (APPLY_ALWAYS)  </description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_CONFIG_COLLECTION">
				<description>Whether the collection defined for configurations or for any other purpose like tools.</description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="PLATFORM_ID">
				<description>Whether the collection defined is for Windows or Mac</description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_DELETED">
				<description>The collection is Marked for delete</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COLLECTION_STATE">
				<description>This stands on the states of collection.0->Active, 3->Trash, 2->Deleted (state 2 will be cleaned on different therad.)</description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
            <column name="SHOW_IN_VIEW">
                <description>Whether or not to show this configuration in UI. Used to hide child collections from view</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
		</columns>
		<primary-key name="Collection_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
		</primary-key>
		<indexes>
        	<index name="Collection_IDX1">
            	<index-column>MODIFIED_TIME</index-column>
        	</index>
        	<index name="Collection_IDX2">
            	<index-column>COLLECTION_NAME</index-column>
        	</index>
 		</indexes>
	</table>
    <table name="CollectionApplyType">
        <description>
            <![CDATA[
			This table will hold  details of the Collections.
			]]>
        </description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Unique Id for each Collection.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="apply_at_refresh">
                <description>To apply a collection at every refresh</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="apply_at_startup_logon">
                <description>To apply a collection at every startup.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollectionApplyType_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollectionApplyType_FK" reference-table-name="Collection" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COLLECTION_ID</fk-local-column>
                        <fk-reference-column>COLLECTION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>


	<table name="CollectionStatus">
		<description>
			<![CDATA[
			This table will hold the status details for the Collections.
		]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique Id for each Collection. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STATUS">
				<description>Holds the current state of the Collection. The value would be one from "SAVED", "DEPLOYED", "IN PROGRESS", "IN PROGRESS WITH FAILURES", "EXECUTED SUCCESSFULLY", "EXECUTED WITH FAILURES", "SUSPENDED", etc. Once the user is comfortable to apply the collection of configurations on the user machines, he can deploy the changes done. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_STATUS_COMPUTABLE">
				<description>Whether the collection status is computable or not. Certain cases like workgroup users, we cannot compute the status</description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PROFILE_COLLECTION_STATUS">
				<description>Holds the current state of the Collection Profile. The value would be one from "DRAFT", "SUSPENDED", "PUBLISHED" etc. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CollectionStatus_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollectionStatus_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
		<indexes>
        	<index name="CollectionStatus_IDX1">
            <index-column>STATUS</index-column>
        	</index>
 		</indexes>
	</table>

	<table name="CollectionStatusSummary">
		<description>
			<![CDATA[
			This table will hold the collection status summary details based on the applicable targets.
			]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique Id for each Collection. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="TOTAL_TARGET_COUNT">
				<description>Total target count for which the collection is going to apply. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="YET_TO_APPLY_COUNT">
				<description>Target count for which the collection is yet to apply. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SUCCESS_COUNT">
				<description>Target count for which the collection is applied successfully. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="FAILED_COUNT">
				<description>Target count for which the collection is failed to apply. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="INPROGRESS_COUNT">
				<description>Target count for which the collection is in progress execution. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="INPROGRESS_FAILED_COUNT">
				<description>Target count for which the collection is still in progress and also with few failures. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RETRY_INPROGRESS_COUNT">
				<description>Target count for which the collection is failed but retry in progress. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="NOT_APPLICABLE_COUNT">
				<description>Target count for which the collection is not applicable. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STATUS_COUNT_DESC">
				<description>Count desc to capture the individual resource count for each status.</description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CollectionStatusSummary_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollectionStatusSummary_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>


	<table name="CollectionVersion">
		<description>
			<![CDATA[
			This table will hold the version details of the Collections.
			]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique Id for each Collection. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="VERSION">
				<description>
					Holds the version data correspoding to each collection filled from the web-client.
				</description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="TARGET_VERSION">
				<description>
					version updated on change in targets selected.
				</description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="RESET_VERSION">
                            <description>
				version updated on downloading  failed patches.
                            </description>
                            <data-type>INTEGER</data-type>
                            <default-value>1</default-value>
                            <nullable>false</nullable>
                            <unique>false</unique>
                        </column>
		</columns>
		<primary-key name="CollectionVersion_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollectionVersion_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
    <table name="CollectionRetry">
        <description>
            <![CDATA[
			This table will hold the version details of the Collections.
			]]>
        </description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Unique Id for each Collection.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_RETRY">
                <description>Whether to enable retry during failure</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <!--Think about this. If not needed, remove this line-->
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NO_OF_RETRIES">
                <description>Holds the no. of retries during failure to each collection filled from the web-client.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REFRESH_MIN_RETRY">
                <description>Holds the minimum no. of retries during refresh.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_STARTUP_MIN_RETRY">
                <description>Holds the minimum no. of retries during logon or startup.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollectionRetry_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollectionRetry_FK" reference-table-name="Collection" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COLLECTION_ID</fk-local-column>
                        <fk-reference-column>COLLECTION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

   	<table name="CollSchExecution">
			<description>
		<![CDATA[
			table captures the scheduler and excution option of configuration
                        This table will be deprecated after some time. Use CollnActivePeriod instead of this.
                        Current EXECUTION_OPTION only used for mac agent.
		]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
                                <description>Unique Id for each Collection.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SCHEDULE_ENABLE">
				<description></description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SCHEDULE_TIME">
				<description>Time only after which the uninstall should take place on the client machines. </description>
				<data-type>BIGINT</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EXECUTION_OPTION">
				<description>To capture whether install or uninstall should take place on the client machines during startup or only after startup. Allowed values are 1 (DURING_STARTUP), 2 (AFTER_STARTUP), 3 (BOTH)</description>
				<data-type>INTEGER</data-type>
				<default-value>3</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CollSchExecution_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollSchExecution_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
    <table name="CollnActivePeriod">
		<description>
		<![CDATA[
			table captures the start time & endtime of collection
		]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique Id for each Collection. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="START_TIME">
				<description>Time only after which the un/install should take place on the client machines.  </description>
				<data-type>BIGINT</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="END_TIME">
				<description>After the specified time, agent should not process the collection</description>
				<data-type>BIGINT</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CollnActivePeriod_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollnActivePeriod_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="CollectionMetaData">
		<description>
			<![CDATA[
			This table will hold the version details of the Collections.
			]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique Id for each Collection. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COLLECTION_FILE_PATH">
				<description>Path of the XML file to download via HTTP from agent.</description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DOMAIN_NETBIOS_NAME">
				<description>Namespace name.</description>
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CollectionMetaData_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
			<primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollectionMetaData_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

	<table name="SuspendedColln">
		<description>
		<![CDATA[
		This table will hold the details of suspended collections. The details stored in this table will be used to retain the old status once the suspended collection is resumed.
		]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique Id of each configuration record. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MODIFIED_TIME">
				<description>Time at which this collection is last modified before suspended. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="OLD_STATUS">
				<description>Holds the old state of the collection. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="SuspendedColln_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
		</primary-key>

		<foreign-keys>
			<foreign-key name="SuspendedColln_CfgId_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="SuspendedColln_StatId_FK" reference-table-name="ConfigStatusDefn" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>OLD_STATUS</fk-local-column>
						<fk-reference-column>STATUS_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="CollnToCustomerRel">
		<description><![CDATA[Contains collection and customer relation]]> </description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique identifier for collection</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="CUSTOMER_ID">
				<description>Customer ID for which the collection is generated</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CollnToCustomerRel_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
			<primary-key-column>CUSTOMER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollnToCustomerRel_FK1" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="CollnToCustomerRel_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
						<fk-reference-column>CUSTOMER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ConfigData">
		<description>
		<![CDATA[
		Admin users will input the configurations which are need to be applied on the client machines. These data may belong to either 'Registry based configurations' or 'Non Registry based configurations'. This is the base table for both the configurations. For each configuration defined by user, this table will have a corresponding record in it. This table captures the basic attributes which are common to all the configurations.
		]]>
		</description>
		<columns>
			<column name="CONFIG_DATA_ID">
				<description>Unique Id for each configuration record. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>ConfigData.CONFIG_DATA_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="CONFIG_ID">
				<description>Id of the configuration (as exists in Configuration table) for which this instance of Config Data is created. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONFIG_TYPE">
				<description>This will capture the type of the configuration. Configurations can be applied at the Computer level as well as User level. In case of Computer level, those configurations are common to all the users. The value would be either 1 (for computer), 2 (for user) or 3 (for Device). </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
                <allowed-values>
			        <value>1</value>
					<value>2</value>
					<value>3</value>
                                <value>4</value>
                                <value>5</value>
                </allowed-values>
			</column>
			<column name="LABEL">
				<description>Display name to be shown in the UI for this configuration instance. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREATION_TIME">
				<description>Time at which this configuration is created. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MODIFIED_TIME">
				<description>Time at which this configuration is last modified. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="APPLY_TYPE">
				<description>To configure whether the configuration should be executed only once or at every login, etc. The possible values are 1 (APPLY_ONCE), 2 (APPLY_ALWAYS)  </description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RETRIES_ON_FAILURE">
				<description>Number of times to retry in case of failure.</description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DESCRIPTION">
				<description>A short description about this configuration. </description>
				<data-type>NCHAR</data-type>
				<max-size>2000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ConfigData_PK">
			<primary-key-column>CONFIG_DATA_ID</primary-key-column>
		</primary-key>

		<foreign-keys>
			<foreign-key name="ConfigData_ConfigId_FK" reference-table-name="Configuration" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONFIG_ID</fk-local-column>
						<fk-reference-column>CONFIG_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
			</foreign-key>
		</foreign-keys>
		<indexes>
        	<index name="ConfigData_IDX1">
            	<index-column>CONFIG_TYPE</index-column>
        	</index>
 		</indexes>
	</table>
	<table name="ConfigDataStatus">
		<description>
		<![CDATA[
		This table will hold the overall status (like whether the configuration is applied on all the target systems, etc) of each configuration defined.
		]]>
		</description>
		<columns>
			<column name="CONFIG_DATA_ID">
				<description>Unique Id of each configuration record. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONFIG_STATUS">
				<description>Holds the current state of the configuration. The value would be one from "YET_TO_DEPLOY", "DEPLOYED", "IN_PROGRESS", "COMPLETED", "SUSPENDED". By default, the value would be "YET_TO_DEPLOY". Once the user is comfortable to apply this configuration on the user machines, the state can be changed to "DEPLOYED". </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ConfigDataStatus_PK">
			<primary-key-column>CONFIG_DATA_ID</primary-key-column>
		</primary-key>

		<foreign-keys>
			<foreign-key name="CfgDataStatus_CfgId_FK" reference-table-name="ConfigData" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONFIG_DATA_ID</fk-local-column>
						<fk-reference-column>CONFIG_DATA_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="CfgDataStatus_StatId_FK" reference-table-name="ConfigStatusDefn" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONFIG_STATUS</fk-local-column>
						<fk-reference-column>STATUS_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ConfigDataItem">
		<description>
		<![CDATA[
		This table will will have the entries for the configurations wherever Add More supported ie. provision to have multiple entires in the same configurations.
		]]>
		</description>
		<columns>
			<column name="CONFIG_DATA_ITEM_ID">
				<description>Unique Id for the sub config data. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>ConfigDataItem.CONFIG_DATA_ITEM_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="CFG_DATA_ITEM_DISP_NAME">
				<description>Display name of the config data item </description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONFIG_DATA_ID">
				<description>Unique Id of its parent configuration record. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EXECUTION_ORDER">
				<description>Order in the configuration to be executed on the agent when multiple items present. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_HIDDEN">
				<description>Whether this config item is to be shown in the UI or not. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ConfigDataItem_PK">
			<primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
		</primary-key>

		<foreign-keys>
			<foreign-key name="ConfigDataItem_FK" reference-table-name="ConfigData" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONFIG_DATA_ID</fk-local-column>
						<fk-reference-column>CONFIG_DATA_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="CfgDataToCollection">
		<description>
		<![CDATA[
		This table captures the relation between the Collection and the Configuration Data. At any given time an instance of CONFIG_DATA_ID can belong to only one Collection. This is a kind of parent child relationship. The attribute ORDER_OF_EXECUTION will come into picture only when a relation exists between a Collection and a Configuration, so this field is included in this relationship table itself.
		]]>
		</description>
		<columns>
			<column name="CONFIG_DATA_ID">
				<description>Unique Id of the configuration data instance. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COLLECTION_ID">
				<description>Collection Id for which the configuration data is defined. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ORDER_OF_EXECUTION">
				<description>Order at which this configuration to be executed at client machines. These configurations will be executed in ascending order by default. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CfgDataToCollection_PK">
			<primary-key-column>CONFIG_DATA_ID</primary-key-column>
		</primary-key>

		<foreign-keys>
			<foreign-key name="CfgDataToCollection_CId_FK" reference-table-name="ConfigData" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONFIG_DATA_ID</fk-local-column>
						<fk-reference-column>CONFIG_DATA_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="CfgDataToCollection_PId_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
		<indexes>
        	<index name="CfgDataToCollection_IDX2">
            	<index-column>CONFIG_DATA_ID</index-column>
            	<index-column>COLLECTION_ID</index-column>
        	</index>
        	<index name="CfgDataToCollection_IDX3">
            	<index-column>ORDER_OF_EXECUTION</index-column>
        	</index>
        	<index name="CfgDataToCollection_IDX4">
            	<index-column>COLLECTION_ID</index-column>
        	</index>
 		</indexes>
	</table>
	<table name="CollnToResources">
		<description>
		<![CDATA[
		This table will hold the mapping between the collection and the target resources (users/computers) for the collection.
		]]>
		</description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Id of the collection which is applied for the user/computer. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RESOURCE_ID">
				<description>Holds unique Id of the user/computer. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STATUS">
				<description>Applied Status of the collection for the resource. The default status is yet to apply (12). </description>
               <data-type>INTEGER</data-type>
				<default-value>12</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="APPLIED_TIME">
				<description>Time at which the collection is applied on the resource. </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="AGENT_APPLIED_TIME">
				<description>Agent Time at which the collection is applied on the resource. </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="REMARKS">
				<description>Any specific remarks from the resource while applying the collection. </description>
				<data-type>NCHAR</data-type>
				<max-size>2000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="REMARKS_EN">
				<description>Any specific remarks from the resource while applying the collection. </description>
				<data-type>NCHAR</data-type>
				<max-size>2000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="REMARKS_ARGS">
				<description>Holds Arguments for Remarks. Format like Arg1 Separator Arg2...</description>
				<data-type>NCHAR</data-type>
				<max-size>500</max-size>
				<nullable>true</nullable>
			</column>
		</columns>
		<primary-key name="CollnToResources_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollnToResources_CID_FK" reference-table-name="Collection" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLLECTION_ID</fk-local-column>
						<fk-reference-column>COLLECTION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="CollnToResources_UID_FK" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="CollnToResources_StId_FK" reference-table-name="ConfigStatusDefn" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>STATUS</fk-local-column>
						<fk-reference-column>STATUS_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
			</foreign-key>
		</foreign-keys>
		<indexes>
        	<index name="CollnToResources_IDX1">
            	<index-column>COLLECTION_ID</index-column>
        	</index>
        	<index name="CollnToResources_IDX2">
            	<index-column>RESOURCE_ID</index-column>
        	</index>
 		</indexes>
	</table>
	<table name="SystemParams">
		<description>
		<![CDATA[
		This table will contain the system parameters. As the values would be in Key-Value format, this table structure captures the same. Based on the visibility we can revisit this table later.
		]]>
		</description>
		<columns>
			<column name="SYSTEM_PARAM_ID">
				<description>Unique id generated for each parameter. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
                  <generator-name>SystemParams.SYSTEM_PARAM_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="PARAM_NAME">
				<description> Key name of the parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAM_VALUE">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="SystemParams_PK">
			<primary-key-column>SYSTEM_PARAM_ID</primary-key-column>
		</primary-key>
		<indexes>
        	<index name="SystemParams_IDX1">
            <index-column>PARAM_NAME</index-column>
        	</index>
 		</indexes>
	</table>
	<table name="RebrandCommDetails">
		<description>
			<![CDATA[ Table for storing Managed Service Provider's(MSP) Communication details.
		 ]]>
		</description>
		<columns>
			<column name="REBRAND_COMM_ID">
				<description>Unique id generated as Primary key</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>RebrandCommDetails.REBRAND_COMM_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="DOOR_NO">
				<description>Door number of address</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STREET">
				<description>Name of street</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LANDMARK">
				<description>Landmark nearby</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CITY">
				<description>Name of city</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="POSTALCODE">
				<description>Postal code / PIN code</description>
				<data-type>CHAR</data-type>
				<max-size>20</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STATE">
				<description>Name of the state</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COUNTRY">
				<description>Name of the country</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LANDLINE">
				<description>Landline phone number</description>
				<data-type>CHAR</data-type>
				<max-size>30</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="FAX">
				<description>Fax number</description>
				<data-type>CHAR</data-type>
				<max-size>30</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EMAIL">
				<description>Email of the owner</description>
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="RebrandCommDetails_PK">
			<primary-key-column>REBRAND_COMM_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="UpdateParams">
		<description>
			<![CDATA[
		This table will contain the Update parameters. As the values would be in Key-Value format, this table structure captures the same.
		]]>
		</description>
		<columns>
			<column name="UPDATE_PARAM_ID">
				<description>Unique id generated for each parameter. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>UpdateParams.UPDATE_PARAM_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="PARAM_NAME">
				<description> Key name of the parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAM_VALUE">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="UpdateParams_PK">
			<primary-key-column>UPDATE_PARAM_ID</primary-key-column>
		</primary-key>
		<indexes>
			<index name="UpdateParams_IDX1">
				<index-column>PARAM_NAME</index-column>
			</index>
		</indexes>
	</table>
	<table name="SoMParams">
		<description>
		<![CDATA[
		This table will contain the som parameters. As the values would be in Key-Value format, this table structure captures the same. Based on the visibility we can revisit this table later.
		]]>
		</description>
		<columns>
			<column name="SOM_PARAM_ID">
				<description>Unique id generated for each parameter. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
                  <generator-name>SoMParams.SOM_PARAM_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="PARAM_NAME">
				<description> Key name of the parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAM_VALUE">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="SoMParams_PK">
			<primary-key-column>SOM_PARAM_ID</primary-key-column>
		</primary-key>
		<indexes>
        	<index name="SoMParams_IDX1">
            <index-column>PARAM_NAME</index-column>
        	</index>
 		</indexes>
	</table>
	<table name="ServerParams">
		<description>
			<![CDATA[
		This table will contain the server parameters. As the values would be in Key-Value format, this table structure captures the same. Based on the visibility we can revisit this table later.
		]]>
		</description>
		<columns>
			<column name="SERVER_PARAM_ID">
				<description>Unique id generated for each parameter. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>ServerParams.SERVER_PARAM_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="PARAM_NAME">
				<description> Key name of the parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAM_VALUE">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ServerParams_PK">
			<primary-key-column>SERVER_PARAM_ID</primary-key-column>
		</primary-key>
		<indexes>
			<index name="ServerParams_IDX1">
				<index-column>PARAM_NAME</index-column>
			</index>
		</indexes>
	</table>
	<table name="LatestUpdateTime">
		<description>
		<![CDATA[
		This table will contain the last updated time for various tasks like periodic status updates, AD content updates etc.
		]]>
		</description>
		<columns>
			<column name="TASK_ID">
				<description>Holds a unique id for the each task. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
                  <generator-name>LatestUpdateTime.TASK_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="TASK_NAME">
				<description>Name of the task for which the latest update time to be stored. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LAST_UPDATED_TIME">
				<description>This column will have have the last updated time for the given task. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="LatestUpdateTime_PK">
			<primary-key-column>TASK_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="ErrorCode">
		<description>
		<![CDATA[
		This table will hold the error code and the description for WDP (Windows Desktop Provisioning).
                NOTE : KB_URL has been deprecated  Column
		]]>
		</description>
		<columns>
			<column name="ERROR_CODE">
				<description>Unique id for each error. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MODULE">
				<description>The module name for which the error code defined. Eg: SERVER, GPO, etc. </description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SEVERITY">
				<description>The severity level of the error code. Critical-1, Warning-2, Info-3. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SHORT_DESC">
				<description>A short description about the error code. </description>
				<data-type>NCHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DETAILED_DESC">
				<description>A detailed description of the error and how to rectify it. </description>
				<data-type>NCHAR</data-type>
				<max-size>1000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="KB_URL">
				<description>KB URL for the error code.</description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ErrorCode_PK">
			<primary-key-column>ERROR_CODE</primary-key-column>
		</primary-key>
	</table>
	<table name="ErrorCause">
		<description>
		<![CDATA[
		This table will hold the possible cause for each error code whichever exposed to outside world.
		]]>
		</description>
		<columns>
			<column name="ERROR_CAUSE_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>ErrorCause.ERROR_CAUSE_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="ERROR_CODE">
				<description>error code for which this cause is defined. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ERROR_CAUSE">
				<description>Possible cause for the error occurrence. </description>
				<data-type>NCHAR</data-type>
				<max-size>1000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ErrorCause_PK">
			<primary-key-column>ERROR_CAUSE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ErrorCause_FK" reference-table-name="ErrorCode" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>ERROR_CODE</fk-local-column>
						<fk-reference-column>ERROR_CODE</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ErrorSolution">
		<description>
		<![CDATA[
		This table will hold the possible solution for each error code whichever exposed to outside world.
		]]>
		</description>
		<columns>
			<column name="ERROR_SOLN_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>ErrorSolution.ERROR_SOLN_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="ERROR_CODE">
				<description>error code for which this solution is defined. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ERROR_SOLUTION">
				<description>Possible solution for the error occurrence. </description>
				<data-type>NCHAR</data-type>
				<max-size>1000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ErrorSolution_PK">
			<primary-key-column>ERROR_SOLN_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ErrorSolution_FK" reference-table-name="ErrorCode" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>ERROR_CODE</fk-local-column>
						<fk-reference-column>ERROR_CODE</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ErrorReference">
		<description>
		<![CDATA[
		This table will hold the reference urls for error codes whichever exposed to outside world.
		]]>
		</description>
		<columns>
			<column name="ERROR_REF_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>ErrorReference.ERROR_REF_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="ERROR_CODE">
				<description>error code for which this reference is added. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="REF_URL">
				<description>Reference url for the error code. </description>
				<data-type>CHAR</data-type>
				<max-size>1000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="URL_TEXT">
				<description>Display text to be shown for the url. </description>
				<data-type>NCHAR</data-type>
				<max-size>1000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ErrorReference_PK">
			<primary-key-column>ERROR_REF_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ErrorReference_FK" reference-table-name="ErrorCode" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>ERROR_CODE</fk-local-column>
						<fk-reference-column>ERROR_CODE</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ErrorCodeToKBUrl">
		<description>
		<![CDATA[
		This table will hold the KB URL for each error code
		]]>
		</description>
		<columns>
			<column name="ERROR_CODE">
				<description>error code for which this solution is defined. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
			</column>
                        <column name="KB_URL">
				<description>KB URL for the error code.</description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
			</column>
		</columns>
		<primary-key name="ErrorCodeToKBUrl_PK">
			<primary-key-column>ERROR_CODE</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ErrorCodeToKBUrl_FK" reference-table-name="ErrorCode" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>ERROR_CODE</fk-local-column>
						<fk-reference-column>ERROR_CODE</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ManagedDomain">
		<description>
		<![CDATA[
		This table will contain the details of all managed domains.
		]]>
		</description>
		<columns>
			<column name="RESOURCE_ID">
				<description>Holds unique Id of the managed domain. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="AD_DOMAIN_NAME">
				<description>AD domain controller name for the domain. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DC_NAME">
				<description>Given domain controller name for the domain. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="USER_NAME">
				<description>Given user name credential for the domain. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PASSWORD">
				<description>Given password for the domain. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_AD_DOMAIN">
				<description>Whether the domain is Active Dir Domain or just a workgroup. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="GUID">
				<description>GUID generated for the resource in Active Dir. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="HAS_MANAGED_COMPUTERS">
				<description>Whether the domain has any managed computers. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DNS_SUFFIX">
				<description>DNS Suffix for the domain. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COMPUTER_RESOLVED_BY">
				<description>Integer that stores whether the computer is resolved by FQDN(2) or name(1) or not resolved(-1)</description>
				<data-type>INTEGER</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREDENTIAL_STATUS">
				<description>Verification status of the given credential for the domain. Possible values are 1 for SUCCESS and 2 for FAILURE and 3 for NOT_VERIFIED </description>
               <data-type>INTEGER</data-type>
				<default-value>3</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREDENTIAL_VERIFIED_TIME">
				<description>Time at which the crdential is verified. </description>
				<data-type>BIGINT</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="HAS_CREDENTIALS">
				<description>Whether the domain has user name and password. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ManagedDomain_PK">
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ManagedDomain_FK" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ManagedDomainConfig">
		<description>
			<![CDATA[This table will contain the details of LDAP SSL configured domains]]>
		</description>
		<columns>
			<column name="RESOURCE_ID">
				<description> Holds the unique domain Id from the managed domain table
				</description>
				<data-type>BIGINT</data-type>
			</column>
			<column name="USE_SSL">
				<description> whether the AD uses the SSL connection or not
				</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PORT_NO">
				<description>Defines Server Port for LDAP over SSL
				</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
			</column>
		</columns>
		<primary-key name="ManagedDomainConfig_PK">
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ManagedDomainConfig_FK" reference-table-name ="ManagedDomain" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="DomainCredentialStatus">
		<description>
			<![CDATA[
			This table will contain the details of all managed AD domains and their validation status.
			]]>
		</description>
		<columns>
			<column name="RESOURCE_ID">
				<description>Holds unique Id of the managed domain. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="VALIDATION_STATUS">
				<description>Will contain the validation status.</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LAST_VALIDATED_TIME">
				<description>This column will have have the last validated time for the domain. </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DomainCredentialStatus_PK">
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="DomainCredentialStatus_FK" reference-table-name="ManagedDomain" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="AgentContact">
		<description>
		<![CDATA[
		This table will contain the details of agents contacted the server.
		]]>
		</description>
		<columns>
			<column name="RESOURCE_ID">
				<description>Holds unique Id of the computer. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LAST_CONTACT_TIME">
				<description>Time at which the computer is contacted the server. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="LAST_DS_CONTACT_TIME">
                                <description>Agent last contacted time with DS</description>
                                <data-type>BIGINT</data-type>
                                <default-value>-1</default-value>
                                <nullable>false</nullable>
                        </column>
			<column name="CONTACT_TYPE">
				<description>Contact type like startup, logon, refresh, etc. </description>
				<data-type>CHAR</data-type>
				<max-size>25</max-size>
				<default-value>Unknown</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGGED_ON_USERS">
				<description>Users who have been logged on to this computer</description>
				<data-type>NCHAR</data-type>
				<max-size>5000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LAST_BOOTUP_TIME">
				<description>Time at which the computer last booted. </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ACTIVE_LOGGED_ON_USERS">
				<description>Actively Users who have been logged on to this computer</description>
				<data-type>NCHAR</data-type>
				<max-size>5000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="AgentContact_PK">
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="AgentContact_FK" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
  	<table name="UserSettings">
        <description>This table contains personal settings for each user. </description>
        <columns>
			<column name="USER_ACCOUNT_ID">
				<description>UserID of AAAUser table </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SESSION_EXPIRY_TIME">
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="REFRESH_TIME">
				<description>@deprecated. Not used</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SHOW_HELP_CARD">
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SHOW_HELP_CARD_GLOBAL">
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SAVE_VIEW_SETTINGS">
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="APD_VIEW">
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>myview</default-value>
				<unique>false</unique>
			</column>
			<column name="CONFIGURATION_VIEW">
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>myview</default-value>
				<unique>false</unique>
			</column>
			<column name="THEME">
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>blue</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DATEFORMAT">
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<default-value>MMM d, yyyy</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="TIMEFORMAT">
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<default-value>MMM d, yyyy hh:mm a</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
        <primary-key name="UserSettings_PK">
            <primary-key-column>USER_ACCOUNT_ID</primary-key-column>
        </primary-key>
		<foreign-keys>
			<foreign-key name="UserSettings_FK" reference-table-name="AaaUser" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_ACCOUNT_ID</fk-local-column>
						<fk-reference-column>USER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
    </table>
	<table name="ViewSummary">
		<description>
		<![CDATA[
		This table will hold the necessary parameters for each view in reports section etc.
		]]>
		</description>
		<columns>
			<column name="VIEW_ID">
				<description>Unique id for each view. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RECORD_COUNT">
				<description>Default record count for this view. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ViewSummary_PK">
			<primary-key-column>VIEW_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ViewSummary_FK" reference-table-name="ViewParams" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>VIEW_ID</fk-local-column>
						<fk-reference-column>VIEW_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

  	<table name="UserParams">
        <description>This table contains user level parameters. </description>
        <columns>
			<column name="USER_ACCOUNT_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAM_NAME">
				<description> Key name of the parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAM_VALUE">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
	</columns>
        <primary-key name="UserParams_PK">
            <primary-key-column>USER_ACCOUNT_ID</primary-key-column>
            <primary-key-column>PARAM_NAME</primary-key-column>
        </primary-key>
		<foreign-keys>
			<foreign-key name="UserParams_FK" reference-table-name="AaaUser" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_ACCOUNT_ID</fk-local-column>
						<fk-reference-column>USER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
    </table>

	<table name="DCServerInfo">
		<description>This table contains server config details. </description>
		<columns>
			<column name="SERVER_ID">
				<description>Unique ID</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>DCServerInfo.SERVER_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="SERVER_MAC_NAME">
				<description>This will store the name of the machine where the product is installed</description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="SERVER_MAC_IPADDR">
				<description>This will store the ipaddress of the machine where the product is installed</description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SERVER_FQDN">
				<description>This will store the fully qualified domain name of the machine where the product is installed</description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SERVER_PORT">
				<description>This will store the port number at which the http port is opened for communication. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="AGENT_VERSION">
				<description>Agent version. </description>
				<data-type>CHAR</data-type>
				<max-size>25</max-size>
				<default-value>Unknown</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MAC_AGENT_VERSION">
				<description>Mac Agent version. </description>
				<data-type>CHAR</data-type>
				<max-size>25</max-size>
				<default-value>Unknown</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LINUX_AGENT_VERSION">
				<description>Linux Agent version. </description>
				<data-type>CHAR</data-type>
				<max-size>25</max-size>
				<default-value>Unknown</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SERVER_SEC_IPADDR">
				<description>public ip address of server.</description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="HTTPS_PORT">
				<description>This will store the port number at which the https port is opened for communication. </description>
				<data-type>INTEGER</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SERVER_INSTANCE_ID">
				<description>This will store a unique id in long for server.</description>
				<data-type>BIGINT</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SERVER_HASH_ID">
				<!--This should not be reset in any case, will be populated on start up-->
				<description>This will store unique hash id between agent and server.</description>
				<data-type>BIGINT</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
            <column name="OS_NAME">
				<description>The OS name </description>
				<data-type>NCHAR</data-type>
                                <max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCServerInfo_PK">
			<primary-key-column>SERVER_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="EventCode">
		<description>This table contains event code and detailed description of the particular code.</description>
		<columns>
			<column name="EVENT_ID">
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="EVENT_TYPE">
				<description>The event type would be error or information. Error - 1 , Information - 2, Warning - 3</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_MODULE">
				<description>This will store the event module at which it is occured.i.e PATCH_DOWNLOAD, DB_UPDATE, etc.</description>
				<data-type>NCHAR</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_MODULE_LABEL">
				<description>This will store the I18N value of the module</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONTAIN_SUB_MODULE">
				<description>if EVENT_MODULE have sub-module this column will be TRUE otherwise FALSE</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SUB_MODULE">
				<description>This will contain the Sub-Module name..</description>
				<data-type>NCHAR</data-type>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SUB_MODULE_LABEL">
				<description>This will contain the Sub-Module i18n key name..</description>
				<data-type>NCHAR</data-type>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_DESCRIPTION">
				<description>This will store the detailed description of the event</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="EventCode_PK">
			<primary-key-column>EVENT_ID</primary-key-column>
		</primary-key>
	</table>

	<table name="EventLog">
		<description>This table contains logging details of all the actions which are performed on the server. </description>
		<columns>
			<column name="EVENT_LOG_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>true</unique>
				<uniquevalue-generation>
					<generator-name>EventLog.EVENT_LOG_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="EVENT_ID">
				<description>This column will be referred from EventCode table</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGON_USER_NAME">
				<description>Name of the resource. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<default-value>NA</default-value>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_TIMESTAMP">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_REMARKS">
				<description>This will store the runtime detailed description of the event if any.</description>
				<data-type>NCHAR</data-type>
				<max-size>2000</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
            		<column name="EVENT_REMARKS_ARGS">
				<description>This will store the arguments for the runtime detailed description of the event if any. Introduced for I18N</description>
				<data-type>NCHAR</data-type>
				<max-size>2000</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
                          </columns>
  	                 <primary-key name="EventLog_PK">
  	                         <primary-key-column>EVENT_LOG_ID</primary-key-column>
  	                 </primary-key>
  	                 <foreign-keys>
  	                         <foreign-key name="EventViewer_EventCode_FK" reference-table-name="EventCode" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>EVENT_ID</fk-local-column>
  	                                                 <fk-reference-column>EVENT_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                         </foreign-key>
  	                 </foreign-keys>
  	         </table>

                <table name="CustomerEventLog">
                    <description>This table holds the information of customer and eventlog mapping</description>
                    <columns>
                        <column name="EVENT_LOG_ID">
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                        </column>
			<column name="CUSTOMER_ID">
				<description>Customer ID for which the event is generated.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
                    <primary-key name="CustomerEventLog_PK">
			<primary-key-column>EVENT_LOG_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
                       <foreign-key name="CustomerEventLog_FK1" reference-table-name="EventLog" isbidirectional="false">
				<fk-columns>
					<fk-column>
                                <fk-local-column>EVENT_LOG_ID</fk-local-column>
                                <fk-reference-column>EVENT_LOG_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
                       <foreign-key name="CustomerEventLog_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
						<fk-reference-column>CUSTOMER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

	<table name="EventTimeDuration">
		<description>This table holds the information of all the actions which are performed on the server related to the resources with an relation table. </description>
		<columns>
			<column name="EVENT_LOG_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_START_TIME">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_END_TIME">
				<data-type>BIGINT</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_TIME_DURATION">
				<description>This will have the diff of starttime and endtime.(-1) for not applicable cases</description>
				<data-type>INTEGER</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
            <column name="VIEWER_IP">
				<description>IpAddress of the Viewer. </description>
				<data-type>CHAR</data-type>
				<max-size>25</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="EventTimeDuration_PK">
			<primary-key-column>EVENT_LOG_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="EventTimeDuration_FK3" reference-table-name="EventLog" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>EVENT_LOG_ID</fk-local-column>
						<fk-reference-column>EVENT_LOG_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>


	<table name="ResourceEventLogRel">
		<description>This table holds the information of all the actions which are performed on the server related to the resources with an relation table. </description>
		<columns>
			<column name="RESOURCE_ID">
				<description>Id of the container which delegates. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RESOURCE_NAME">
				<description>Name of the resource. </description>
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<default-value>NA</default-value>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="DOMAIN_NETBIOS_NAME">
				<description>Domain netBIOS name where the resource participates. </description>
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<default-value>NA</default-value>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="EVENT_LOG_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ResourceEventLogRel_PK">
			<primary-key-column>EVENT_LOG_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ResourceEventLogRel_FK3" reference-table-name="EventLog" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>EVENT_LOG_ID</fk-local-column>
						<fk-reference-column>EVENT_LOG_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="EMailAddr">
		<description>
		<![CDATA[
		This table will hold the EMail addresses using which alerts / info w.r.t each module are sent.
		]]>
		</description>
		<columns>
			<column name="EMAIL_ADDR_ID">
				<description>Unique id for each WMI Classes. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>EMailAddr.EMAIL_ADDR_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="EMAIL_ADDR">
				<description>E-Mail Address. </description>
				<data-type>NCHAR</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MODULE">
				<description>The module to which the E-Mail ID belongs. </description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SEND_MAIL">
				<description>Whether mail has to be sent to this ID or not. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="EMailAddr_PK">
			<primary-key-column>EMAIL_ADDR_ID</primary-key-column>
		</primary-key>
	</table>
                 <table name="EMailAddrToCustTechRel">
                     <description><![CDATA[mapping  between Customer, Technician and mapped email address ]]> </description>
                     <columns>
                         <column name="EMAIL_ADDR_ID">
                             <description>Unique id for each WMI Classes</description>
                             <data-type>BIGINT</data-type>
                             <nullable>false</nullable>
                         </column>
                         <column name="CUSTOMER_ID">
                             <description>Unique identifier of DC User</description>
                             <data-type>BIGINT</data-type>
                             <nullable>false</nullable>
                         </column>
                         <column name="LOGIN_ID">
                             <description>Unique identifier of DC technician</description>
                             <data-type>BIGINT</data-type>
                             <nullable>false</nullable>
                         </column>
                     </columns>
                     <primary-key name="EMailAddrToCustTechRel_PK">
                         <primary-key-column>EMAIL_ADDR_ID</primary-key-column>
                         <primary-key-column>CUSTOMER_ID</primary-key-column>
                         <primary-key-column>LOGIN_ID</primary-key-column>
                     </primary-key>
                     <foreign-keys>
                         <foreign-key name="EMailAddrToCustTechRel_FK1" reference-table-name="EMailAddr" isbidirectional="false">
                             <fk-columns>
                                 <fk-column>
                                     <fk-local-column>EMAIL_ADDR_ID</fk-local-column>
                                     <fk-reference-column>EMAIL_ADDR_ID</fk-reference-column>
                                 </fk-column>
                             </fk-columns>
                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                         </foreign-key>
                         <foreign-key name="EMailAddrToCustTechRel_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
                             <fk-columns>
                                 <fk-column>
                                     <fk-local-column>CUSTOMER_ID</fk-local-column>
                                     <fk-reference-column>CUSTOMER_ID</fk-reference-column>
                                 </fk-column>
                             </fk-columns>
                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                         </foreign-key>
                         <foreign-key name="EMailAddrToCustTechRel_FK3" reference-table-name="AaaLogin" isbidirectional="false">
                             <fk-columns>
                                 <fk-column>
                                     <fk-local-column>LOGIN_ID</fk-local-column>
                                     <fk-reference-column>LOGIN_ID</fk-reference-column>
                                 </fk-column>
                             </fk-columns>
                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                         </foreign-key>
                     </foreign-keys>
                 </table>
	<table name="TaskDetails">
		<description>This table stores the task details</description>
		<columns>
			<column name="TASK_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>TaskDetails.TASK_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="TYPE">
				<data-type>INTEGER</data-type>
				<max-size>11</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="TASKNAME">
				<data-type>NCHAR</data-type>
				<max-size>100</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="DESCRIPTION">
				<data-type>CHAR</data-type>
				<max-size>300</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="OWNER">
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<default-value>admin</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREATIONTIME">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STARTTIME">
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="COMPLETIONTIME">
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="STARTDATE">
                <description>Start date of Scheduler in Millis</description>
                <data-type>BIGINT</data-type>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
			<column name="STATUS">
				<data-type>CHAR</data-type>
				<max-size>10</max-size>
				<default-value>SCHEDULED</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
				<allowed-values>
					<value>SCHEDULED</value>
					<value>RUNNING</value>
					<value>COMPLETED</value>
					<value>FAILED</value>
					<value>SUSPENDED</value>
				</allowed-values>
			</column>
			<column name="REMARKS">
				<data-type>NCHAR</data-type>
				<max-size>1000</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="EMAIL">
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="COUNTER">
				<data-type>INTEGER</data-type>
				<max-size>11</max-size>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MODIFIEDTIME">
				<description>Time at which the particular task has been modified.</description>
                                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                                <nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="TaskDetails_PK">
			<primary-key-column>TASK_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="TaskToCustomerRel">
		<description><![CDATA[Contains task and customer relation]]> </description>
		<columns>
			<column name="TASK_ID">
				<description>Unique id for the task</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="CUSTOMER_ID">
				<description>Customer ID for which the task is generated</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="TaskToCustomerRel_PK">
			<primary-key-column>TASK_ID</primary-key-column>
			<primary-key-column>CUSTOMER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="TaskToCustomerRel_FK1" reference-table-name="TaskDetails" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>TASK_ID</fk-local-column>
						<fk-reference-column>TASK_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="TaskToCustomerRel_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
						<fk-reference-column>CUSTOMER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
         <table name="TaskToUserRel">
        <description><![CDATA[Contains task and customer relation]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Unique id for the task</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="USER_ID">
                <description>User ID for which the task is generated</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_MODIFIED_BY">
                <description>User ID for which the task is modified</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="TaskToUserRel_PK">
            <primary-key-column>TASK_ID</primary-key-column>
            <primary-key-column>USER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="TaskToUserRel_FK1" reference-table-name="TaskDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TASK_ID</fk-local-column>
                        <fk-reference-column>TASK_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="TaskToUserRel_FK2" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_ID</fk-local-column>
                        <fk-reference-column>USER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="TaskToUserRel_FK3" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LAST_MODIFIED_BY</fk-local-column>
                        <fk-reference-column>USER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
	<table name="CustomGroup">
		<description>
		<![CDATA[
		This table contains details of User Defined Groups.
		]]>
		</description>
		<columns>
			<column name="RESOURCE_ID">
				<description>Holds unique Id generated for each user defined group. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="GROUP_CATEGORY">
				<description>Whether Static Custom Group or Dynamic Custom Group. 1 for Static and 2 for Dynamic group </description>
				<data-type>INTEGER</data-type>
                                <default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="GROUP_TYPE">
				<description>Whether User Custom Group or Computer Custom Group. 1 for computer and 2 for user group </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DESCRIPTION">
		   		<description>Desc of the group. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
		        	<nullable>false</nullable>
             			<unique>false</unique>
			</column>
			<column name="IS_EDITABLE">
				<description>Inactive groups are noneditable.</description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CustomGroup_PK">
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CustomGroup_FK" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
        <table name="CustomGroupExtn">
            <description><![CDATA[Contains custom group and customer relation]]> </description>
            <columns>
                    <column name="RESOURCE_ID">
                            <description>Custom Group Id</description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                    </column>
				<column name="GROUP_DESCRIPTION">
					<description>Description of custom group</description>
					<data-type>NCHAR</data-type>
					<max-size>250</max-size>
					<nullable>true</nullable>
				</column>
			<column name="CREATED_BY">
                    		<description>User ID of Custom Group Created user.</description>
                    		<data-type>BIGINT</data-type>
                    		<nullable>false</nullable>
                    		<unique>false</unique>
			</column>
			<column name="LAST_MODIFIED_BY">
                    		<description>User ID of Custom Group Last modified user.</description>
                    		<data-type>BIGINT</data-type>
                    		<nullable>false</nullable>
                    		<unique>false</unique>
                	</column>
		</columns>
            <primary-key name="CustomGroupExtn_PK">
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
                <foreign-key name="CustomGroupExtn_FK1" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
                                        <fk-local-column>RESOURCE_ID</fk-local-column>
                                        <fk-reference-column>RESOURCE_ID</fk-reference-column>
                                </fk-column>
                        </fk-columns>
                        <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                </foreign-key>
                <foreign-key name="CustomGroupExtn_FK2" reference-table-name="AaaUser" isbidirectional="false">
                        <fk-columns>
                                <fk-column>
                                        <fk-local-column>CREATED_BY</fk-local-column>
                                        <fk-reference-column>USER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
                <foreign-key name="CustomGroupExtn_FK3" reference-table-name="AaaUser" isbidirectional="false">
                        <fk-columns>
                                <fk-column>
                                        <fk-local-column>LAST_MODIFIED_BY</fk-local-column>
                                        <fk-reference-column>USER_ID</fk-reference-column>
                                </fk-column>
                        </fk-columns>
                        <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                </foreign-key>
		</foreign-keys>
	</table>

	<table name="CustomGroupMemberRel">
		<description>
		<![CDATA[
		This table contains the user defined/custom group member relationship.
		]]>
		</description>
		<columns>
			<column name="MEMBER_RESOURCE_ID">
				<description>Member resource id. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="GROUP_RESOURCE_ID">
				<description>Group id. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CustomGroupMemberRel_PK">
			<primary-key-column>MEMBER_RESOURCE_ID</primary-key-column>
			<primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CustomGroupMemberRel_MID_FK" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MEMBER_RESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="CustomGroupMemberRel_GID_FK" reference-table-name="CustomGroup" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>GROUP_RESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
        <table name="DCNativeSQLString">
		<description>
			<![CDATA[
			This table contains the native SQL queries used by Desktop Central.
			]]>
		</description>
		<columns>
			<column name="DCNATIVESQLSTRING_ID">
				<description>Unique ID for each row</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>DCNativeSQLString.DCNATIVESQLSTRING_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="SQL_ID">
				<description>Id associated for each sql. This is unique with the combination of DB_ID </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="SQL_COMMAND">
				<description>SQL Command to be executed. </description>
				<data-type>CHAR</data-type>
				<max-size>6500</max-size>
				<unique>false</unique>
			</column>
			<column name="VARIABLE_HANDLER">
				<description>Class which handles the dynamic variables in the query </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="SQL_REMARKS">
				<description>SQL REMARKS to be Audit purpose or Explain the query </description>
				<data-type>CHAR</data-type>
				<max-size>300</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCNativeSQLString_PK">
			<primary-key-column>DCNATIVESQLSTRING_ID</primary-key-column>
		</primary-key>
	</table>
   	<table name="MCColumnTrimValues">
		<description>
		<![CDATA[
			This table stores the trim length for each column in mickey client views.  This value is stored to retrive the default trim length for columns.
		]]>
		</description>
		<columns>
			<column name="COLUMN_ID">
				<description>Unique ID for each column</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    	<uniquevalue-generation>
                  			<generator-name>MCColumnTrimValues.COLUMN_ID</generator-name>
            		    	</uniquevalue-generation>
		    	</column>
			<column name="CONFIG_ID">
				<description>ID for the column configuration list</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COLUMN_NAME">
				<description>Column Display Name</description>
				<data-type>NCHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="TRIM_LENGTH">
				<description>If the actual value is too long to be shown in the client, then the number of characters to be shown in the client can be specified using this attribute.</description>
				<data-type>INTEGER</data-type>
				<nullable>true</nullable>
			</column>
		</columns>
		<primary-key name="MCColumnTrimValues_PK">
			<primary-key-column>COLUMN_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MCColumnTrimValues_FK" reference-table-name="ACColumnConfigurationList" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONFIG_ID</fk-local-column>
						<fk-reference-column>NAME_NO</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
    <table name="MCViewColumnTrimStatus">
		<description>
		<![CDATA[
			This stores the column trim status for each mickey client views.
		]]>
		</description>
		<columns>
			<column name="VIEW_ID">
				<description>Unique ID for mickey client view</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
		    </column>
			<column name="IS_COLUMNS_TRIMMED">
				<description>Stores whether the columns in the view is trimmed or not</description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
               	<nullable>false</nullable>
			</column>
		</columns>
		<primary-key name="MCViewColumnTrimStatus_PK">
			<primary-key-column>VIEW_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MCViewColumnTrimStatus_FK" reference-table-name="ViewConfiguration" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>VIEW_ID</fk-local-column>
						<fk-reference-column>VIEWNAME_NO</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ViewGlobalSettings">
		<description>
		<![CDATA[
			This table stores the trim status of the Report View.
		]]>
		</description>
		<columns>
			<column name="SETTINGS_ID">
				<description>Unique ID for SETTINGS</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			    	<uniquevalue-generation>
                  			<generator-name>ViewGlobalSettings.SETTINGS_ID</generator-name>
            		    	</uniquevalue-generation>
		    	</column>
				<column name="IS_COLUMNS_TRIMMED">
				<description>Stores whether the columns in the view is trimmed or not</description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
               			<nullable>false</nullable>
			</column>
		</columns>
		<primary-key name="ViewGlobalSettings_PK">
			<primary-key-column>SETTINGS_ID</primary-key-column>
		</primary-key>

	</table>
	<table name="CRModule">
        	<description>This table describes the various modules in the report</description>
        <columns>
            <column name="MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
		<unique>false</unique>
		<uniquevalue-generation>
				<generator-name>CRModule.MODULE_ID</generator-name>
		</uniquevalue-generation>
            </column>
            <column name="MODULE_NAME">
                <description>This column refers to the module name in the report</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
        </columns>
        <primary-key name="CRModule_PK">
            <primary-key-column>MODULE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="CRSubModule">
        <description>This table describes the sub modules in the particular Modules</description>
        <columns>
            <column name="SUB_MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
		<unique>false</unique>
		<uniquevalue-generation>
			<generator-name>CRSubModule.SUB_MODULE_ID</generator-name>
		</uniquevalue-generation>
            </column>
            <column name="SUB_MODULE_NAME">
                <description>This column refers to the module name in the report</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BASE_TABLE_ALIAS">
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
            </column>
        </columns>
        <primary-key name="CRSubModule_PK">
            <primary-key-column>SUB_MODULE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CRSubModule_FK1" reference-table-name="CRModule">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>MODULE_ID</fk-local-column>
                        <fk-reference-column>MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CRColumns">
        <description>This table represents CustomField Column Name and desc</description>
        <columns>
            <column name="COLUMN_ID">
                <description>Column ID</description>
                <data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<uniquevalue-generation>
			<generator-name>CRColumns.COLUMN_ID</generator-name>
		</uniquevalue-generation>
	</column>

            <column name="SUB_MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="COLUMN_NAME">
                <description>ITs name of the column</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
	   </column>

	    <column name="COLUMN_CATEGORY">
                <description> Name of the column category</description>
                <data-type>NCHAR</data-type>
		<max-size>200</max-size>
		<default-value>--</default-value>
                <nullable>false</nullable>
	    </column>

	     <column name="CATEGORY_ORDER">
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="COLUMN_NAME_ALIAS">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="TABLE_NAME">
                <description>ITs name of the column</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="TABLE_NAME_ALIAS">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="DISPLAY_NAME">
                <description>ITs name of the column</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
            </column>
            <column name="DISPLAY_STATUS">
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DATA_TYPE">
                <description>ITs name of the column</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="DISPLAY_ORDER">
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SEARCH_ENABLED">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
        </columns>

        <primary-key name="CRColumns_PK">
            <primary-key-column>COLUMN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CRColumns_FK1" reference-table-name="CRSubModule">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUB_MODULE_ID</fk-local-column>
                        <fk-reference-column>SUB_MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CRJoinRelation">
        <description>This table represents CustomField Column Name and desc</description>
        <columns>
            <column name="RELATION_ID">
                <data-type>BIGINT</data-type>
		<nullable>false</nullable>
    		<uniquevalue-generation>
			<generator-name>CRJoinRelation.RELATION_ID</generator-name>
		</uniquevalue-generation>
            </column>
            <column name="SUB_MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHILD_TABLE_NAME">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="CHILD_TABLE_ALIAS">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="PARENT_TABLE_NAME">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="PARENT_TABLE_ALIAS">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="JOIN_TYPE">
                <description>ITs name of the column</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
        </columns>

        <primary-key name="CRJoinRelation_PK">
            <primary-key-column>RELATION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CRJoinRelation_FK1" reference-table-name="CRSubModule" >
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUB_MODULE_ID</fk-local-column>
                        <fk-reference-column>SUB_MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CRJoinColumns">
        <description>This table represents CustomField Column Name and desc</description>
        <columns>
            <column name="JOIN_COLUMN_ID">
                <data-type>BIGINT</data-type>
		<nullable>false</nullable>
      		<uniquevalue-generation>
			<generator-name>CRJoinColumns.JOIN_COLUMN_ID</generator-name>
		</uniquevalue-generation>
            </column>
            <column name="RELATION_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CHILD_COLUMN_ALIAS">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="PARENT_COLUMN_ALIAS">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="IS_PARENT_STATIC_VALUE">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            <column name="JOIN_OPERATOR">
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
            </column>
            <column name="COMPISITE_OPERATOR">
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
            </column>
            <column name="JOIN_ORDER">
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
        </columns>

        <primary-key name="CRJoinColumns_PK">
            <primary-key-column>JOIN_COLUMN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CRJoinColumns_FK1" reference-table-name="CRJoinRelation">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RELATION_ID</fk-local-column>
                        <fk-reference-column>RELATION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
</table>
<table name="CRColumnInputCustomizer">
    <columns>
        <column name="COLUMN_ID">
            <data-type>BIGINT</data-type>
	    <nullable>false</nullable>
        </column>
        <column name="CLASS_NAME">
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>true</nullable>
        </column>
    </columns>

    <primary-key name="CRColumnInputCustomizer_PK">
        <primary-key-column>COLUMN_ID</primary-key-column>
    </primary-key>
    <foreign-keys>

        <foreign-key name="CRColumnInputCustomizer_FK1"
            reference-table-name="CRColumns" isbidirectional="false">

            <fk-columns>
                <fk-column>
                    <fk-local-column>COLUMN_ID</fk-local-column>
                    <fk-reference-column>COLUMN_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>

</table>



<table name="CRColumnTransformer">
    		<columns>
        		<column name="COLUMN_ID">
			<data-type>BIGINT</data-type>
			<nullable>false</nullable>
			<uniquevalue-generation>
				<generator-name>CRColumnTransformer.COLUMN_ID</generator-name>
			</uniquevalue-generation>
        	</column>
       		 <column name="CLASS_NAME">
                	<data-type>CHAR</data-type>
                	<max-size>100</max-size>
                	<nullable>true</nullable>
        	</column>
    		</columns>

    <primary-key name="CRColumnTransformer_PK">
        <primary-key-column>COLUMN_ID</primary-key-column>
    </primary-key>
    <foreign-keys>

        <foreign-key name="CRColumnTransformer_FK1"
            reference-table-name="CRColumns" isbidirectional="false">

            <fk-columns>
                <fk-column>
                    <fk-local-column>COLUMN_ID</fk-local-column>
                    <fk-reference-column>COLUMN_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>
    </table>
    <table name="CRSaveViewDetails">
	<columns>

	    <column name="CRSAVEVIEW_ID">
                <data-type>BIGINT</data-type>
		<nullable>false</nullable>
    		<uniquevalue-generation>
			<generator-name>CRViewDetails.CRSAVEVIEWDETAILS_ID</generator-name>
		</uniquevalue-generation>
            </column>

            <column name="QUERYID">
                <data-type>BIGINT</data-type>
             	<nullable>true</nullable>
            </column>

            <column name="VIEWID">
                <data-type>BIGINT</data-type>
              <nullable>true</nullable>
	    </column>

	    <column name="CRVIEWNAME">
                <data-type>NCHAR</data-type>
		<max-size>220</max-size>
                <nullable>false</nullable>
	    </column>

	    <column name="DISPLAY_CRVIEWNAME">
                <data-type>NCHAR</data-type>
		<max-size>200</max-size>
                <nullable>false</nullable>
	    </column>

	     <column name="SUB_MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
	     </column>

	     <column name="CRVIEW_DESCRIPTION">

		<description>description </description>
		<data-type>NCHAR</data-type>
		<max-size>300</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	     </column>

	      <column name="LAST_MODIFIED_TIME">
		     <description>The time at which the report is created/modified. </description>
		     <data-type>BIGINT</data-type>
		     <default-value>0</default-value>
		     <nullable>false</nullable>
		     <unique>false</unique>
	     </column>

	      <column name="QR_QUERY">
			<description>To store query for Query Report </description>
			<data-type>NCHAR</data-type>
			<max-size>6000</max-size>
			<nullable>true</nullable>
	      </column>
	      <column name="NUM_OF_RECORDS">
		<description>Number of records per page in Query Report. </description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	     </column>
		 <column name="DB_TYPE">
		<description>Data Base Type.1-mysql and 2-mssql </description>
		<data-type>INTEGER</data-type>
		<default-value>1</default-value>
		<nullable>false</nullable>
	     </column>


	     <column name="USER_ID">
                <description>User ID of the user who is created report</description>
                <data-type>BIGINT</data-type>
		<nullable>true</nullable>
             </column>



	</columns>

        <primary-key name="CRSaveViewDetails_PK">
            <primary-key-column>CRSAVEVIEW_ID</primary-key-column>
        </primary-key>
	<foreign-keys>
		<foreign-key name="CRSaveViewDetails_FK1" reference-table-name="CRSubModule" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUB_MODULE_ID</fk-local-column>
                        <fk-reference-column>SUB_MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>


            <foreign-key name="CRSaveViewDetails_FK2" reference-table-name="SelectQuery" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>QUERYID</fk-local-column>
                        <fk-reference-column>QUERYID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CRSaveViewDetails_FK3" reference-table-name="ViewConfiguration" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>VIEWID</fk-local-column>
                        <fk-reference-column>VIEWNAME_NO</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>

	    <foreign-key name="CRSaveViewDetails_FK4" reference-table-name="AaaUser" isbidirectional="false">

        	<fk-columns>
                    <fk-column>
                        <fk-local-column>USER_ID</fk-local-column>
                        <fk-reference-column>USER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>


        </foreign-keys>
</table>




 <table name="CRToCustomerRel">
		<description><![CDATA[mapping  between Customer and CustomReport ]]> </description>
		<columns>
			<column name="CR_VIEW_ID">
				<description>Custom Report ID</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="CUSTOMER_ID">
				<description>Unique identifier of customer</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
		</columns>
		<primary-key name="CRToCustomerRel_PK1">
			<primary-key-column>CR_VIEW_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CRToCustomerRel_FK1" reference-table-name="CRSaveViewDetails" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CR_VIEW_ID</fk-local-column>
						<fk-reference-column>CRSAVEVIEW_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="CRToCustomerRel_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
						<fk-reference-column>CUSTOMER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
</table>


	<table name="CRViewParams">
		<description>
		<![CDATA[
		This table will hold the necessary parameters for each customReport view in reports section etc.
		]]>
		</description>
		<columns>
			<column name="CRSAVEVIEW_ID">
				<description>Unique id for each view. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>


			<column name="ACTION_URL">
				<description>The url for the view. </description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>

		</columns>

		<primary-key name="CRViewParams_PK">
			<primary-key-column>CRSAVEVIEW_ID</primary-key-column>
		</primary-key>

		<foreign-keys>
			<foreign-key name="CRViewParams_FK" reference-table-name="CRSaveViewDetails" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CRSAVEVIEW_ID</fk-local-column>
						<fk-reference-column>CRSAVEVIEW_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>

	</table>
<table name="ViewCriteriaInfo">
    <description>
		<![CDATA[
		This table contains the list of reports to which criteria can be added
		]]>
    </description>
    <columns>
        <column name="VIEW_ID">
            <description>View id of the report. It refers to VIEW_ID in ViewParams </description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
            <unique>true</unique>
        </column>
        <column name="QUERY_TYPE">
            <description>Describes the type of query used in constructing the CustomView. If 1, the query type is SelectQuery. If 2, the query type is ACSQLString</description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
		<column name="NATIVE_QUERY_ID">
            <description>Reference to the SQL Native Query in DCNativeSQLString table. The Queries that do not fit into ACSqlString table due to restriction in query length are stored in DCNativeSQLString table.</description>
            <data-type>INTEGER</data-type>
			<default-value>0</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
    </columns>
    <primary-key name="ViewCriteriaInfo_PK">
        <primary-key-column>VIEW_ID</primary-key-column>
    </primary-key>
    <foreign-keys>
        <foreign-key name="ViewCriteriaInfo_FK1" reference-table-name="ViewParams" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>VIEW_ID</fk-local-column>
                    <fk-reference-column>VIEW_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>
</table>

<table name="ViewToCRColumnsRel">
    <description>
		<![CDATA[
		This table contains the list of reports to while criteria can be added while generating schedule reports
		]]>
    </description>
    <columns>
        <column name="VIEW_ID">
            <description>View id of the report. It refers to VIEW_ID in ViewParams </description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="COLUMN_ID">
            <description>Column referred to in CRColumns</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="COLUMN_TYPE">
            <description>COLUMN_TYPE contains value where to set the criteria i.e 1 for main query(end of the query) ,2 for Place Holder,3 for both</description>
            <data-type>INTEGER</data-type>
            <default-value>1</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
    </columns>
    <primary-key name="ViewToCRColumnsRel_PK">
        <primary-key-column>VIEW_ID</primary-key-column>
        <primary-key-column>COLUMN_ID</primary-key-column>
    </primary-key>
    <foreign-keys>
        <foreign-key name="ViewToCRColumnsRel_FK1" reference-table-name="ViewParams" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>VIEW_ID</fk-local-column>
                    <fk-reference-column>VIEW_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
        <foreign-key name="ViewToCRColumnsRel_FK2" reference-table-name="CRColumns" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>COLUMN_ID</fk-local-column>
                    <fk-reference-column>COLUMN_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>
</table>

<table name="BrowseValueFetchQuery">
    <description>
		<![CDATA[
		This table contains the mapping for columns listed in CRColumns to query in SelectQuery table which fetches the browse values
		]]>
    </description>
    <columns>
        <column name="VIEW_ID">
            <description>View id of the report. It refers to VIEW_ID in ViewParams </description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="COLUMN_ID">
            <description>Column referred to in CRColumns</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="QUERYID">
				<data-type>BIGINT</data-type>
			</column>
    </columns>
    <primary-key name="BrowseValueFetchQuery_PK">
        <primary-key-column>VIEW_ID</primary-key-column>
        <primary-key-column>COLUMN_ID</primary-key-column>
        <primary-key-column>QUERYID</primary-key-column>
    </primary-key>
    <foreign-keys>
        <foreign-key name="BrowseValueFetchQuery_FK1" reference-table-name="ViewParams" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>VIEW_ID</fk-local-column>
                    <fk-reference-column>VIEW_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
        <foreign-key name="BrowseValueFetchQuery_FK2" reference-table-name="CRColumns" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>COLUMN_ID</fk-local-column>
                    <fk-reference-column>COLUMN_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
		<foreign-key name="BrowseValueFetchQuery_FK3" reference-table-name="SelectQuery" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>QUERYID</fk-local-column>
						<fk-reference-column>QUERYID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
    </foreign-keys>
</table>

<table name="PlaceHolderToCRColumnRel">
    <description>
		<![CDATA[
		This table contains the mapping for columns listed in CRColumns to Place Holders available in the View
		]]>
    </description>
    <columns>
        <column name="VIEW_ID">
            <description>View id of the report. It refers to VIEW_ID in ViewParams </description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="PLACE_HOLDER">
            <description>Name of the place holder </description>
            <data-type>CHAR</data-type>
            <max-size>255</max-size>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="COLUMN_ID">
            <description>Column referred to in CRColumns</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="COLUMN_ALIAS">
                <description>alias name of the column to be used while setting criteria </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
		<column name="PLACEHOLDER_FOR">
			<description>Type of the placeholder</description>
			<data-type>INTEGER</data-type>
			<default-value>-1</default-value>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
    </columns>
    <primary-key name="PlaceHolderToCRColumnRel_PK">
        <primary-key-column>VIEW_ID</primary-key-column>
        <primary-key-column>PLACE_HOLDER</primary-key-column>
        <primary-key-column>COLUMN_ID</primary-key-column>
    </primary-key>
    <foreign-keys>
        <foreign-key name="PlaceHolderToCRColumnRel_FK1" reference-table-name="ViewParams" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>VIEW_ID</fk-local-column>
                    <fk-reference-column>VIEW_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
        <foreign-key name="PlaceHolderToCRColumnRel_FK2" reference-table-name="CRColumns" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>COLUMN_ID</fk-local-column>
                    <fk-reference-column>COLUMN_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>
</table>
	<!-- Tables for criteria based reports ends-->

	<!-- Table started for Status Update Queue info -->
	<table name="DCQueueMetaData">
		<description>
			<![CDATA[
			This table holds the information about the queues which are to be created & used.
			]]>
		</description>
		<columns>
			<column name="Q_METADATA_ID">
				<description>Unique Id for each queue data. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>DCQueueMetaData.Q_METADATA_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="QUEUE_NAME">
				<description>Name of the queue. </description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="QUEUE_TABLE_NAME">
				<description>Table to be used to store the queue state related details. </description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DATA_PROCESSOR_CLASS">
				<description>Name of the queue data processor class. </description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGGER_NAME">
				<description>Logger to be used for this queue. </description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MAX_SIZE">
				<description>Maximum number of data can be maintained in the queue. </description>
				<data-type>INTEGER</data-type>
				<default-value>100</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MIN_SIZE">
				<description>Minimum number of data in the queue, when reached this level, it will start filling the queue. </description>
				<data-type>INTEGER</data-type>
				<default-value>25</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="NUM_OF_THREADS">
				<description>Number of threads to be used to process the queue data. </description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MAX_NUM_OF_THREADS">
				<description>Maximum number of threads to be used to process the queue data. </description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="KEEP_ALIVE_TIMEOUT">
				<description> The time limit for which processing threads may remain idle before being terminated. Value in no. of Seconds. </description>
				<data-type>BIGINT</data-type>
				<default-value>60</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="TIMEOUT_ALL_THREADS">
				<description>Whether all the threads to be terminated after the keep alive timeout or maintain the min number (NUM_OF_THREADS) of threads even if no task to execute. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SLEEP_BETWEEN_PROCESS">
				<description>Number of milliseconds to be in sleep between processing each data. </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="QUEUE_SIZE_CHECK_TIMER">
				<description>Number of milliseconds to be in sleep between checking the queue size to refill the queue data. </description>
				<data-type>BIGINT</data-type>
				<default-value>30000</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="Q_AUTO_START">
				<description>Whether the queue to be started automatically after the creation of it during server startup ?. </description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="QUEUE_CLASS_NAME">
				<description>Name of the queue class which is going to handle the queue activities completely.</description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="QUEUE_EXTN_TABLE_NAME">
				<description>Table to be used to store the queue mapping data. </description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="RETAIN_QDATA_IN_MEMORY">
				<description>Enable/disable writing of queue data in memory for huge data</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PRIORITY_Q_REF_TABLE_NAME">
				<description>Table to be used to store the priority queue reference data. </description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCQueueMetaData_PK">
			<primary-key-column>Q_METADATA_ID</primary-key-column>
		</primary-key>
	</table>

    <table name="QueueHelperMetaData">
        <description>
            <![CDATA[
		This table will contain Queue class to helper class mapping.
		]]>
        </description>
        <columns>
            <column name="QUEUE_CLASS">
                <description> Name of queue Class. </description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="QUEUE_HELPER">
                <description> Name of queue helper. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="QueueHelperMetaData_PK">
            <primary-key-column>QUEUE_CLASS</primary-key-column>
        </primary-key>
    </table>

    <table name="DCModule">
		<description>
		<![CDATA[
            This table holds different modules in DC
		]]>
		</description>
		<columns>
			<column name="MODULE_ID">
				<description>Unique ID for each Module</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
            <column name="MODULE_NAME">
				<description>The Module Name</description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
        </columns>
		<primary-key name="DCModule_PK">
			<primary-key-column>MODULE_ID</primary-key-column>
		</primary-key>
    </table>
    <table name="DCAlertType">
		<description>
		<![CDATA[
            This table holds different alert types in DC
		]]>
		</description>
		<columns>
			<column name="ALERT_TYPE_ID">
				<description>Unique ID for each alert type</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="ALERT_TYPE">
				<description>The alert type</description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="ALERT_LEVEL">
				<description>Alert Level - INFO, WARNING, or CRITICAL</description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<default-value>INFORMATION</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="EMAIL_ALERT">
				<description>Enable/disable email alert for this alert type</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
                                <nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="MODULE_ID">
				<description>The module to which this alert type falls</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="SHOW_ALERT">
                              <description>True if the alert needs to be shown in alerts page in addition to mail</description>
                              <data-type>BOOLEAN</data-type>
                              <default-value>false</default-value>
                              <nullable>false</nullable>
                              <unique>false</unique>
                        </column>
        </columns>
		<primary-key name="DCAlertType_PK">
			<primary-key-column>ALERT_TYPE_ID</primary-key-column>
		</primary-key>
        <foreign-keys>
			<foreign-key name="DCAlertType_FK" reference-table-name="DCModule" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MODULE_ID</fk-local-column>
						<fk-reference-column>MODULE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
    </table>
    <table name="DCAlert">
		<description>
		<![CDATA[
            This table holds different alert types in DC
		]]>
		</description>
		<columns>
			<column name="ALERT_ID">
				<description>Unique ID for each alert</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
                <uniquevalue-generation>
					<generator-name>DCAlert.ALERT_ID</generator-name>
				</uniquevalue-generation>
			</column>
            <column name="ALERT_TYPE_ID">
				<description>maps to alert type</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
            <column name="ALERT_TIMESTAMP">
				<description>The time at which the alert has been generated. </description>
				<data-type>BIGINT</data-type>
				<default-value>-1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
            <column name="ALERT_REMARKS">
				<description>Comments about the given software. </description>
				<data-type>NCHAR</data-type>
				<max-size>2000</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
            		<column name="ALERT_REMARKS_ARGS">
				<description>Arguments for I18N key for alerts. </description>
				<data-type>NCHAR</data-type>
				<max-size>2000</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
        </columns>
		<primary-key name="DCAlert_PK">
			<primary-key-column>ALERT_ID</primary-key-column>
		</primary-key>
        <foreign-keys>
			<foreign-key name="DCAlert_FK" reference-table-name="DCAlertType" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>ALERT_TYPE_ID</fk-local-column>
						<fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
    </table>
    <table name="DCUserModule">
        <description>
			<![CDATA[
			This table will be have details about the dc module .
		]]>
        </description>
        <columns>
            <column name="MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCUserModule.MODULE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="MODULE_NAME">
                <description>Name of DC Module</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
        </columns>
        <primary-key name="DCUserModule_PK">
            <primary-key-column>MODULE_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="DCUserModuleExtn">
        <description>
			<![CDATA[
			This EXTN table will comtain only modules that are enables for the application
		]]>
        </description>
        <columns>
            <column name="MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCUserModuleExtn_PK">
            <primary-key-column>MODULE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
        	<foreign-key name="DCUserModuleExtn_FK" reference-table-name="DCUserModule" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>MODULE_ID</fk-local-column>
                        <fk-reference-column>MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="UMModule">
        <description>This table describes the various modules in the DC</description>
        <columns>
            <column name="UM_MODULE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>UMModule.UM_MODULE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DC_MODULE_ID">
                <description>Its taken from DCUserModule</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ROLE_ID">
                <description>Its taken from AAARole</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LICENSE_TYPE">
                <description>Its use to identify which type of License</description>
                <data-type>CHAR</data-type>
                <max-size>2</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
	    </column>
            <column name="PRECEDENCE_LEVEL">
                <description>Role with write option has higher priority over read. 0 for read and 1 for write </description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="UMModule_PK">
            <primary-key-column>UM_MODULE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UMModule_FK1" reference-table-name="AaaRole" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ROLE_ID</fk-local-column>
                        <fk-reference-column>ROLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="UMModule_FK2" reference-table-name="DCUserModule" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DC_MODULE_ID</fk-local-column>
                        <fk-reference-column>MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>


    <table name="UMRole">
        <description><![CDATA[
			Contains User create  Role Details
        ]]>
        </description>
        <columns>
            <column name="UM_ROLE_ID">
                <description>A Unique Description for Each Role</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>UMRole.UM_ROLE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="UM_ROLE_NAME">
                <description>Name for Role</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="ADMIN_NAME">
                <description>Creator Name</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UM_ROLE_DESCRIPTION">
                <description>Description for Role</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
            </column>
            <column name="IS_EDITABLE">
                <description>Boolean value true for the role editable allowed to users or Not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>Status 0-> hide  1-> visibile</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_TIME">
                <description>Time at which this template is created. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME">
                <description>Time at which this template is last modified. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UMRole_PK">
            <primary-key-column>UM_ROLE_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="UMRoleModuleRelation">
        <description>This table describes Relation between the Role and Module  </description>
        <columns>
            <column name="UM_MODULE_ID">
                <description>Taken from UMModule</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UM_ROLE_ID">
                <description>Taken from UMRole</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UMRoleModuleRelation_PK">
            <primary-key-column>UM_MODULE_ID</primary-key-column>
            <primary-key-column>UM_ROLE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="UMModule" name="UMRoleModuleRelation_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>UM_MODULE_ID</fk-local-column>
                        <fk-reference-column>UM_MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>

            <foreign-key reference-table-name="UMRole" name="UMRoleModuleRelation_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>UM_ROLE_ID</fk-local-column>
                        <fk-reference-column>UM_ROLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="UsersRoleMapping">
        <description><![CDATA[This table shows user&role relationship ]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>its refer from AaaLogin table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="UM_ROLE_ID">
                <description> its refer from UMRole</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="UsersRoleMapping_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="UsersRoleMapping_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOGIN_ID</fk-local-column>
                        <fk-reference-column>LOGIN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key reference-table-name="UMRole" name="UsersRoleMapping_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>UM_ROLE_ID</fk-local-column>
                        <fk-reference-column>UM_ROLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="ReportModuleRelation">
        <description>This table describes Relation between the Role and Module  </description>
        <columns>
            <column name="CATEGORY_ID">
                <description>Taken from ReportCategory</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODULE_ID">
                <description>Taken from DCUserModule</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ReportModuleRelation_PK">
            <primary-key-column>CATEGORY_ID</primary-key-column>
            <primary-key-column>MODULE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="ReportCategory" name="ReportModuleRelation_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CATEGORY_ID</fk-local-column>
                        <fk-reference-column>CATEGORY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>

            <foreign-key  reference-table-name="DCUserModule" name="ReportModuleRelation_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>MODULE_ID</fk-local-column>
                        <fk-reference-column>MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

<!-- Tables for Summary or Home page and module Home page usage -->
    <table name="HomeTabModuleOrder">
        <description>This table describes Home tab Module order  </description>
        <columns>
            <column name="MODULE_ID">
                <description>Taken from DCUserModule</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_ORDER">
                <description>Order of Modules</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="HomeTabModuleOrder_PK">
            <primary-key-column>MODULE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key  reference-table-name="DCUserModule" name="HomeTabModuleOrder_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>MODULE_ID</fk-local-column>
                        <fk-reference-column>MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="HomePageSummary">
        <description><![CDATA[
			Its Contains  over all summary details in dc modules
        ]]>
        </description>
        <columns>
            <column name="SUMMARY_ID">
                <description>A Unique Description for Each Summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>SummaryDetails.SUMMARY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SUMMARY_NAME">
                <description>Name of the Summary </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUMMARY_TYPE">
                <description>TYPE of the Summary </description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VIEW_NAME">
                <description>Name of the View </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_ORDER">
                <description>Order of Display</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODULE_ID">
                <description>Taken from DCUserModule</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_KEY">
                <description>I18N key that is used to display summary title</description>
                <data-type>CHAR</data-type>
                <max-size>200</max-size>
                <default-value>Summary</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="HomePageSummary_PK">
            <primary-key-column>SUMMARY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key  reference-table-name="HomeTabModuleOrder" name="HomePageSummary_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>MODULE_ID</fk-local-column>
                        <fk-reference-column>MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="Summary">
        <description>This table describes Summary Details  </description>
        <columns>
            <column name="SUMMARY_ID">
                <description>Auto populated</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>Summary.SUMMARY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SUMMARY_CREATE_BY">
                <description>Create by</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="Summary_PK">
            <primary-key-column>SUMMARY_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="SummaryGroup">
        <description>This table describes Summary Grouping Details  </description>
        <columns>
            <column name="SUMMARYGROUP_ID">
                <description>Taken from Summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUMMARY_ID">
                <description>Taken from HomePageSummary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SummaryGroup_PK">
            <primary-key-column>SUMMARYGROUP_ID</primary-key-column>
            <primary-key-column>SUMMARY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="Summary" name="SummaryGroup_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUMMARYGROUP_ID</fk-local-column>
                        <fk-reference-column>SUMMARY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key reference-table-name="HomePageSummary" name="SummaryGroup_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUMMARY_ID</fk-local-column>
                        <fk-reference-column>SUMMARY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>



    <table name="RoleSummaryGroupMapping">
        <description>This table describes Relation between the Role and Summary  </description>
        <columns>
            <column name="UM_ROLE_ID">
                <description>Taken from UMRole</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUMMARYGROUP_ID">
                <description>Taken from SummaryGroup</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RoleSummaryGroupMapping_PK">
            <primary-key-column>UM_ROLE_ID</primary-key-column>
            <primary-key-column>SUMMARYGROUP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="UMRole" name="RoleSummaryGroupMapping_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>UM_ROLE_ID</fk-local-column>
                        <fk-reference-column>UM_ROLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <!--foreign-key reference-table-name="SummaryGroup" name="RoleSummaryGroupMapping_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUMMARYGROUP_ID</fk-local-column>
                        <fk-reference-column>SUMMARYGROUP_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key-->
            <foreign-key reference-table-name="Summary" name="RoleSummaryGroupMapping_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUMMARYGROUP_ID</fk-local-column>
                        <fk-reference-column>SUMMARY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="UserSummaryMapping">
        <description><![CDATA[This table shows user&summary relationship ]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>its refer from AaaLogin table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUMMARYGROUP_ID">
                <description> its refer from SummaryGroup</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserSummaryMapping_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
            <primary-key-column>SUMMARYGROUP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="UserSummaryMapping_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOGIN_ID</fk-local-column>
                        <fk-reference-column>LOGIN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <!--foreign-key reference-table-name="SummaryGroup" name="UserSummaryMapping_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUMMARYGROUP_ID</fk-local-column>
                        <fk-reference-column>SUMMARYGROUP_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key-->
            <foreign-key reference-table-name="Summary" name="UserSummaryMapping_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUMMARYGROUP_ID</fk-local-column>
                        <fk-reference-column>SUMMARY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DCUIPage">
        <description>
		<![CDATA[
			The table will contain id and name of Quick Link Pages.
		]]>
        </description>
        <columns>
            <column name="PAGE_ID">
                <description>Unique id generated for each page view</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODULE_NAME">
                <description>Name of DC Module</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PAGE_NAME">
                <description>Name of the page</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="PAGE_DESC">
                <description>description of the page</description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
            </column>
		</columns>
		<primary-key name="DCUIPage_PK">
			<primary-key-column>PAGE_ID</primary-key-column>
		</primary-key>
	</table>
    <table name="DCQuickLinkDisplayStatus">
        <description>
		<![CDATA[
			The table will contain id and name of Quick Link Pages.
		]]>
        </description>
        <columns>
            <column name="PAGE_ID">
                <description>Unique id generated for each page view</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_ID">
                <description>User id for visual status for each user</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VISUAL_STATE">
                <description>The quick link  is  visual to specific pages. Allowed values are 0-hide , 1-show  </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQuickLinkDisplayStatus_PK">
            <primary-key-column>PAGE_ID</primary-key-column>
            <primary-key-column>USER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key  name="DCQuickLinkDisplayStatus_FK1" reference-table-name="DCUIPage"  isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PAGE_ID</fk-local-column>
                        <fk-reference-column>PAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key reference-table-name="AaaUser" name="DCQuickLinkDisplayStatus_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_ID</fk-local-column>
                        <fk-reference-column>USER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="DCQuickLink">
        <description><![CDATA[
			Its Contains  over all summary details in dc modules
        ]]>
        </description>
        <columns>
            <column name="ARTICLE_ID">
                <description>A Unique Description for Each Summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>DCQuickLink.ARTICLE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PAGE_ID">
                <description>Unique id generated for each page view</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ARTICLE_NAME">
                <description>Description of the Article </description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ARTICLE_TYPE">
				<description>Which type of Article</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_NAME">
                <description>Name of the View </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ARTICLE_URL">
                <description>Order of Display</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_ORDER">
                <description>Display order</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			 <column name="ACTION_NAME">
                <description>Name of the Action </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
				<default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			 <column name="DISPLAY_SCOPE">
                <description>Display Scope. 0 - Global , 1 - user and 2 - customer </description>
                <data-type>INTEGER</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQuickLink_PK">
            <primary-key-column>ARTICLE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key  name="DCQuickLink_FK1" reference-table-name="DCUIPage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PAGE_ID</fk-local-column>
                        <fk-reference-column>PAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
	
	<table name="ArticleToRoleMapping">
        <description><![CDATA[
			Its Contains  over all summary details in dc modules
        ]]>
        </description>
        <columns>
            <column name="ARTICLE_ID">
                <description>A Unique Description for Each Summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ROLE_ID">
				<description>relation to the role</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
        </columns>
        <primary-key name="ArticleToRoleMapping_PK">
            <primary-key-column>ARTICLE_ID</primary-key-column>
			<primary-key-column>ROLE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key  name="ArticleToRoleMapping_FK1" reference-table-name="DCQuickLink" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ARTICLE_ID</fk-local-column>
                        <fk-reference-column>ARTICLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
			
			<foreign-key name="ArticleToRoleMapping_FK2" reference-table-name="AaaRole" isbidirectional="false">
                		<fk-columns>
                    			<fk-column>
                        			<fk-local-column>ROLE_ID</fk-local-column>
                        			<fk-reference-column>ROLE_ID</fk-reference-column>
                    			</fk-column>
                		</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
				
        </foreign-keys>
    </table>
	
	<table name="QuickLinkGlobalStatus">
		<description>
			<![CDATA[
				maintains whether the msg is closed or open
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="ARTICLE_ID">
                <description>A Unique Description for Each Summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
		</columns>
	    	<primary-key name="QuickLinkGlobalStatus_PK">
			<primary-key-column>ARTICLE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			 <foreign-key  name="QuickLinkGlobalStatus_FK1" reference-table-name="DCQuickLink" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ARTICLE_ID</fk-local-column>
                        <fk-reference-column>ARTICLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
	    	</foreign-keys>
	</table>
	
	<table name="QuickLinkUserStatus">
		<description>
			<![CDATA[
				maintains whether the msg is closed or open
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="ARTICLE_ID">
                <description>A Unique Description for Each Summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
			<column name="USER_ID">
				<description>relation to the user</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
				
		</columns>
	    	<primary-key name="QuickLinkUserStatus_PK">
			<primary-key-column>ARTICLE_ID</primary-key-column>
			<primary-key-column>USER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			 <foreign-key  name="QuickLinkUserStatus_FK1" reference-table-name="DCQuickLink" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ARTICLE_ID</fk-local-column>
                        <fk-reference-column>ARTICLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
			<foreign-key name="QuickLinkUserStatus_FK2" reference-table-name="AaaUser" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_ID</fk-local-column>
					    	<fk-reference-column>USER_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
				
	    	</foreign-keys>
	</table>
	
	<table name="QuickLinkCustomerStatus">
		<description>
			<![CDATA[
				maintains whether the msg is closed or open
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="ARTICLE_ID">
                <description>A Unique Description for Each Summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
			<column name="CUSTOMER_ID">
				<description>content relation</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
				
		</columns>
	    	<primary-key name="QuickLinkCustomerStatus_PK">
			<primary-key-column>ARTICLE_ID</primary-key-column>
			<primary-key-column>CUSTOMER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			 <foreign-key  name="QuickLinkCustomerStatus_FK1" reference-table-name="DCQuickLink" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ARTICLE_ID</fk-local-column>
                        <fk-reference-column>ARTICLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
			<foreign-key name="QuickLinkCustomerStatus_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
					    	<fk-reference-column>CUSTOMER_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
				
	    	</foreign-keys>
	</table>
	
	
	
	
<!--Quick Link End tables-->


	    	<!--tables related to msg view-->

	<!--Message section-->
	<table name="MsgGroup">
		<description>
			<![CDATA[
		   		table grouping the similar types of msgs
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="MSG_GROUP_ID">
				<description>Message group id</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
                                <uniquevalue-generation>
                                    <generator-name>MsgGroup.MSG_GROUP_ID</generator-name>
                                </uniquevalue-generation>
		    	</column>
		    	<column name="MSG_GROUP_NAME">
			    	<description>name of the message group</description>
			    	<data-type>CHAR</data-type>
			    	<max-size>100</max-size>
			    	<default-value>--</default-value>
			    	<nullable>false</nullable>
			    	<unique>false</unique>
		    	</column>
		</columns>
	    	<primary-key name="MsgGroup_PK">
			<primary-key-column>MSG_GROUP_ID</primary-key-column>
		</primary-key>
	</table>


	<table name="MsgContent">
		<description>
			<![CDATA[
		   		table in which message related details are defined
		    	]]>
	    	</description>
		<columns>
			<column name="MSG_CONTENT_ID">
				<description>Unique id for content</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
                                <uniquevalue-generation>
                                    <generator-name>MsgContent.MSG_CONTENT_ID</generator-name>
                                </uniquevalue-generation>
		    	</column>
		    	<column name="MSG_GROUP_ID">
				<description>Message group id</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
			    	<unique>false</unique>
		    	</column>
		    	<column name="MSG_NAME">
			    	<description>Msg name to refer the MSg</description>
			    	<data-type>NCHAR</data-type>
			    	<max-size>150</max-size>
			    	<nullable>true</nullable>
			    	<unique>true</unique>
			</column>
		    	<column name="MSG_TITLE">
			    	<description>Msg title</description>
			    	<data-type>NCHAR</data-type>
			    	<max-size>1000</max-size>
			    	<nullable>true</nullable>
			    	<unique>false</unique>
			</column>
			<column name="MSG_CONTENT">
			    	<description>Msg content</description>
			    	<data-type>NCHAR</data-type>
			    	<max-size>2000</max-size>
			    	<nullable>true</nullable>
			    	<unique>false</unique>
			</column>
			<column name="MSG_HANDLER_CLASS">
			    	<description>Msg content</description>
			    	<data-type>CHAR</data-type>
			    	<max-size>250</max-size>
			    	<nullable>true</nullable>
			    	<unique>false</unique>
			</column>
            		<column name="MSG_ORDER">
                		<description>order in which a message should come within a group.Msgs will be shown in decending order</description>
                		<data-type>INTEGER</data-type>
                		<default-value>0</default-value>
                		<nullable>false</nullable>
                		<unique>false</unique>
			</column>
			<column name="MSG_SCOPE">
                		<description>0 for global messages, 1 for customer specific msg</description>
                		<data-type>INTEGER</data-type>
                		<default-value>0</default-value>
                		<nullable>false</nullable>
                		<unique>false</unique>
			</column>
			<column name="MSG_TYPE">
				<description>1 for alert, 2 for info, 3 for in progress</description>
				<data-type>INTEGER</data-type>
				<default-value>2</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PRODUCT_SELECT">
				<description></description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ENABLE_USER_CLOSE">
              			<description>true to close</description>
              			<data-type>BOOLEAN</data-type>
              			<default-value>true</default-value>
              			<nullable>false</nullable>
              			<unique>false</unique>
			</column>
		</columns>
	    	<primary-key name="MsgContent_PK">
			<primary-key-column>MSG_CONTENT_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgContent_FK" reference-table-name="MsgGroup" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_GROUP_ID</fk-local-column>
					    	<fk-reference-column>MSG_GROUP_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>

	<table name="MsgContentUrl">
		<description>
			<![CDATA[
		   		table in which message related url links details are defined
		    	]]>
	    	</description>
		<columns>
			<column name="MSG_URL_ID">
				<description>Unique id for url</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
                                <uniquevalue-generation>
                                    <generator-name>MsgContentUrl.MSG_URL_ID</generator-name>
                                </uniquevalue-generation>
		    	</column>
			<column name="MSG_CONTENT_ID">
				<description>Id for content</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
				<unique>false</unique>
		    	</column>
		    	<column name="MSG_KEY">
			    	<description>Msg key to refer the MSG I18N key</description>
			    	<data-type>NCHAR</data-type>
			    	<max-size>250</max-size>
			    	<nullable>false</nullable>
			    	<unique>false</unique>
			</column>
		    	<column name="MSG_URL">
			    	<description>Msg title</description>
			    	<data-type>NCHAR</data-type>
			    	<max-size>1500</max-size>
			    	<nullable>true</nullable>
			    	<unique>false</unique>
			</column>
		    	<column name="URL_TARGET">
				<description>Target attribute of a href tag
				       Possible values :
				       _blank - for new window
				       _self - for same page and javascript methods</description>
			    	<data-type>NCHAR</data-type>
			    	<max-size>100</max-size>
			    	<nullable>true</nullable>
			    	<unique>false</unique>
			</column>
		    	<column name="TRACE_TYPE">
				<description>Whether the url should be appended with Tracking code or not
					Possible values :
					local - Tracking code not needed
					site - Append tracking code.
				</description>
			    	<data-type>NCHAR</data-type>
			    	<max-size>50</max-size>
			    	<nullable>true</nullable>
			    	<unique>false</unique>
			</column>

            		<column name="URL_ORDER">
                		<description>URLS will be replace in asc order</description>
                		<data-type>INTEGER</data-type>
                		<nullable>false</nullable>
                		<unique>false</unique>
			</column>

                </columns>
	    	<primary-key name="MsgContentUrl_PK">
			<primary-key-column>MSG_URL_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgContentUrl_FK" reference-table-name="MsgContent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_CONTENT_ID</fk-local-column>
					    	<fk-reference-column>MSG_CONTENT_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>

	<table name="MsgToGlobalStatus">
		<description>
			<![CDATA[
				maintains whether the msg is closed or open
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="MSG_CONTENT_ID">
				<description>Message group id</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="MSG_STATUS">
              			<description>true if open</description>
              			<data-type>BOOLEAN</data-type>
              			<default-value>true</default-value>
              			<nullable>false</nullable>
              			<unique>false</unique>
			</column>
		</columns>
	    	<primary-key name="MsgToGlobalStatus_PK">
			<primary-key-column>MSG_CONTENT_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgToGlobalStatus_FK" reference-table-name="MsgContent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_CONTENT_ID</fk-local-column>
					    	<fk-reference-column>MSG_CONTENT_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>

	<table name="MsgToCustomerStatus">
		<description>
			<![CDATA[
				maintains open or close status depending on customer
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="MSG_CONTENT_ID">
				<description>relation to content</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
			</column>
		    	<column name="CUSTOMER_ID">
				<description>content relation</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="MSG_STATUS">
              			<description>true if open</description>
              			<data-type>BOOLEAN</data-type>
              			<default-value>true</default-value>
              			<nullable>false</nullable>
              			<unique>false</unique>
			</column>
		</columns>
	    	<primary-key name="MsgToCustomerStatus_PK">
			<primary-key-column>MSG_CONTENT_ID</primary-key-column>
			<primary-key-column>CUSTOMER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgToCustomerStatus_FK1" reference-table-name="MsgContent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_CONTENT_ID</fk-local-column>
					    	<fk-reference-column>MSG_CONTENT_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
			<foreign-key name="MsgToCustomerStatus_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
					    	<fk-reference-column>CUSTOMER_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>


	<table name="MsgGroupToAction">
		<description>
			<![CDATA[
				Mapping to the action which will close/open the specified msg groups
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="MSG_GROUP_ID">
				<description>Message group id</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="ACTION_NAME">
			    	<description>action which will close or open the msg</description>
			    	<data-type>CHAR</data-type>
			    	<max-size>100</max-size>
			    	<default-value>--</default-value>
			    	<nullable>false</nullable>
			    	<unique>false</unique>
			</column>
		</columns>
	    	<primary-key name="MsgGroupToAction_PK">
			<primary-key-column>MSG_GROUP_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgGroupToAction_FK" reference-table-name="MsgGroup" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_GROUP_ID</fk-local-column>
					    	<fk-reference-column>MSG_GROUP_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>

	<table name="MsgGroupForAllRoles">
		<description>
			<![CDATA[
				Message to Group relation for all Roles
		    	]]>
		</description>
		<columns>
			<column name="MSG_GROUP_FOR_ALL_ROLES_ID">
				<description>Message Group for All Roles ID</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>MsgGroupForAllRoles.MSG_GROUP_FOR_ALL_ROLES_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="MSG_GROUP_ID">
				<description>Message group id</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="MsgGroupForAllRoles_PK">
			<primary-key-column>MSG_GROUP_FOR_ALL_ROLES_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgGroupForAllRoles_FK" reference-table-name="MsgGroup" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_GROUP_ID</fk-local-column>
						<fk-reference-column>MSG_GROUP_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>


	<!--view section-->

	<table name="MsgPage">
		<description>
			<![CDATA[
				Message to page relation
		    	]]>
	    	</description>
		<columns>
			<column name="MSG_PAGE_ID">
				<description>Message page id</description>
			    	<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
                  			<generator-name>MsgPage.MSG_PAGE_ID</generator-name>
            		    	</uniquevalue-generation>
			</column>
			<column name="MSG_PAGE_NAME">
				<description>Message page name</description>
			    	<data-type>CHAR</data-type>
			    	<max-size>100</max-size>
			    	<nullable>false</nullable>
			    	<unique>true</unique>
		    	</column>
		    	<column name="PAGE_ID">
				<description>Message group id</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
			<column name="DISPLAY_TYPE">
				<description>whether the no of msgs should depend on msg count or all should be displayed</description>
              			<data-type>BOOLEAN</data-type>
              			<default-value>true</default-value>
              			<nullable>false</nullable>
              			<unique>false</unique>
			</column>
			<column name="MSG_COUNT">
				<description>no of message groups to be displayed if DISPLAY_TYPE is true</description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
	    	<primary-key name="MsgPage_PK">
			<primary-key-column>MSG_PAGE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgPage_FK" reference-table-name="DCUIPage" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>PAGE_ID</fk-local-column>
					    	<fk-reference-column>PAGE_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>

	<table name="MsgGroupToPage">
		<description>
			<![CDATA[
				Message group to page relation
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="MSG_GROUP_ID">
				<description>Message group id</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="MSG_PAGE_ID">
				<description>Message group id</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
			<column name="ORDER_OF_DISPLAY">
				<description>order in which the messages must be displayed</description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
				<column name="ROLE_ID">
				<description>relation to the role</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		</columns>
		<primary-key name="MsgGroupToPage_PK">
			<primary-key-column>MSG_GROUP_ID</primary-key-column>
			<primary-key-column>MSG_PAGE_ID</primary-key-column>
			<primary-key-column>ROLE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgGroupToPage_FK1" reference-table-name="MsgGroup" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_GROUP_ID</fk-local-column>
					    	<fk-reference-column>MSG_GROUP_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
			<foreign-key name="MsgGroupToPage_FK2" reference-table-name="MsgPage" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_PAGE_ID</fk-local-column>
					    	<fk-reference-column>MSG_PAGE_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
            		<foreign-key name="MsgGroupToPage_FK3" reference-table-name="AaaRole" isbidirectional="false">
                		<fk-columns>
                    			<fk-column>
                        			<fk-local-column>ROLE_ID</fk-local-column>
                        			<fk-reference-column>ROLE_ID</fk-reference-column>
                    			</fk-column>
                		</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>


	<table name="MsgContentUserStatus">
		<description>
			<![CDATA[
				To store the status of closed messages
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="MSG_CONTENT_ID">
				<description>relation to the content</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="USER_ID">
				<description>relation to the user</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="MSG_PAGE_ID">
				<description>page for which msg is closed</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="MSG_STATUS">
              			<description>true if open</description>
              			<data-type>BOOLEAN</data-type>
              			<default-value>true</default-value>
              			<nullable>false</nullable>
              			<unique>false</unique>
			</column>
			<column name="MSG_DISPLAY_COUNT">
              			<description>to track the display count of info message</description>
              			<data-type>BIGINT</data-type>
              			<default-value>0</default-value>
              			<nullable>false</nullable>
              			<unique>false</unique>
			</column>
		</columns>
		<primary-key name="MsgContentUserStatus_PK">
			<primary-key-column>MSG_CONTENT_ID</primary-key-column>
			<primary-key-column>USER_ID</primary-key-column>
			<primary-key-column>MSG_PAGE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgContentUserStatus_FK1" reference-table-name="MsgContent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_CONTENT_ID</fk-local-column>
					    	<fk-reference-column>MSG_CONTENT_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
			<foreign-key name="MsgContentUserStatus_FK2" reference-table-name="AaaUser" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_ID</fk-local-column>
					    	<fk-reference-column>USER_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
            		<foreign-key name="MsgContentUserStatus_FK3" reference-table-name="MsgPage" isbidirectional="false">
                		<fk-columns>
                    			<fk-column>
                        			<fk-local-column>MSG_PAGE_ID</fk-local-column>
                        			<fk-reference-column>MSG_PAGE_ID</fk-reference-column>
                    			</fk-column>
                		</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>
	<table name="MsgContentCustomerUserStatus">
		<description>
			<![CDATA[
				To store the status of closed messages which are customer specific
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="MSG_CONTENT_ID">
				<description>relation to the content</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="USER_ID">
				<description>relation to the user</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
				<column name="CUSTOMER_ID">
				<description>relation to the customer</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="MSG_PAGE_ID">
				<description>page for which msg is closed</description>
			    	<data-type>BIGINT</data-type>
			    	<nullable>false</nullable>
		    	</column>
		    	<column name="MSG_STATUS">
              			<description>true if open</description>
              			<data-type>BOOLEAN</data-type>
              			<default-value>true</default-value>
              			<nullable>false</nullable>
              			<unique>false</unique>
			</column>
		</columns>
		<primary-key name="MsgContentCustomerUserStatus_PK">
			<primary-key-column>MSG_CONTENT_ID</primary-key-column>
			<primary-key-column>USER_ID</primary-key-column>
			<primary-key-column>CUSTOMER_ID</primary-key-column>
			<primary-key-column>MSG_PAGE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="MsgContentCustomerUserStatus_FK1" reference-table-name="MsgContent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MSG_CONTENT_ID</fk-local-column>
					    	<fk-reference-column>MSG_CONTENT_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
			<foreign-key name="MsgContentCustomerUserStatus_FK2" reference-table-name="AaaUser" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_ID</fk-local-column>
					    	<fk-reference-column>USER_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
				<foreign-key name="MsgContentCustomerUserStatus_FK3" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
					    	<fk-reference-column>CUSTOMER_ID</fk-reference-column>
				    	</fk-column>
			    	</fk-columns>
			    	<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
            		<foreign-key name="MsgContentCustomerUserStatus_FK4" reference-table-name="MsgPage" isbidirectional="false">
                		<fk-columns>
                    			<fk-column>
                        			<fk-local-column>MSG_PAGE_ID</fk-local-column>
                        			<fk-reference-column>MSG_PAGE_ID</fk-reference-column>
                    			</fk-column>
                		</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		    	</foreign-key>
	    	</foreign-keys>
	</table>

            <table name="ScheduleRepTask">
        <description>
            <![CDATA[
            This table contains the relation between taskdetails and Schedule Report.
            ]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Task id for Schedule Report Task</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

             <column name="REPORT_FORMAT">
                                <description>specify the report format. pdf-1,xls-2 ,csv-3 and html-4</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                        </column>
                         <column name="DESCRIPTION">
                                <description>specify the description about the reports</description>
                                <data-type>NCHAR</data-type>
                                <max-size>250</max-size>
                                <nullable>true</nullable>
                        </column>
                        <column name="DELIVERY_FORMAT">
                                <description>specify the report to be send whether the url or attach,attachment report-1,zip-2and url-3</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                        </column>
                        <column name="ATTACHMENT_LIMIT">
                                <description>specify the attachment limit of reports </description>
                                <data-type>INTEGER</data-type>
                                <default-value>0</default-value>
                                <nullable>false</nullable>
                        </column>
                        <column name="DELIVERY_FLAG">
                                <description>specify this flag for enable to check the size of report</description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                        </column>
                        <column name="EMAIL_ADDRESS">
                                <description>spcify to whom should sent the report </description>
                                <data-type>NCHAR</data-type>
                                <max-size>250</max-size>
                                <nullable>true</nullable>
                        </column>
                        <column name="SUBJECT">
                                <description>which is specify by ther user </description>
                                <data-type>NCHAR</data-type>
                                <max-size>250</max-size>
                                <nullable>true</nullable>
                        </column>
                        <column name="CONTENT">
                                <description>which is specify by the user </description>
                                <data-type>NCHAR</data-type>
                                <max-size>4000</max-size>
                                <nullable>true</nullable>
                        </column>
                        <column name="CUSTOMER_ID">
                            <description>Customer ID for which the resource is generated</description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                        </column>
                        <column name="REDACT_TYPE">
                            <description>Report </description>
                            <data-type>INTEGER</data-type>
                            <!--default mask type NONE -->
                            <default-value>3</default-value>
                            <nullable>false</nullable>
                            <unique>false</unique>
                        </column>
						<column name="USE_NAT_LINK">
							<description>Report attachement sent as link uses NAT link or not </description>
							<data-type>BOOLEAN</data-type>
							<default-value>false</default-value>
							<nullable>false</nullable>
						</column>
                </columns>

        <primary-key name="ScheduleRepTaskDetails_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ScheduleRepTaskDetails_FK1" reference-table-name="TaskDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TASK_ID</fk-local-column>
                        <fk-reference-column>TASK_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>

          <foreign-key name="ScheduleRepTaskDetails_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CUSTOMER_ID</fk-local-column>
                        <fk-reference-column>CUSTOMER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>


    <table name="ScheduleRepToReportRel">
        <description>
            <![CDATA[
            This table contains the relation between ScheduleReport and View Details.
            ]]>
        </description>
        <columns>
                        <column name="SCHEDULE_REP_ID">
                <description>Holds unique Id generated for each resource. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ScheduleRepToReportRel.SCHEDULE_REP_ID</generator-name>
                            </uniquevalue-generation>
            </column>
            <column name="TASK_ID">
                <description>Task id for Schedule Report Task</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REPORT_ID">
                <description>to store ViewID,CustomReportID and QueryReportID to generate CSV for the same. This report_id is referred from ViewParams table and CRSaveViewDetails Tables</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REPORT_TYPE">
                <description>column to store to check whether given report   Predefined Report - 1  ,CustomReport - 2 and Query Report - 3 </description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ScheduleRepToReportRel_PK">
            <primary-key-column>SCHEDULE_REP_ID</primary-key-column>

        </primary-key>
        <foreign-keys>

            <foreign-key name="ScheduleRepToReportRel_FK1" reference-table-name="TaskDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TASK_ID</fk-local-column>
                        <fk-reference-column>TASK_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
<table name="ExcludeScheduleReports">
		<description>
			<![CDATA[
			Excluded reports for Schedule report
		    	]]>
	    	</description>
	    	<columns>
		    	<column name="VIEW_ID">
				<description>reprort view id</description>
			    	<data-type>INTEGER</data-type>
			    	<nullable>false</nullable>
		    	</column>

		</columns>
		<primary-key name="ExcludeScheduleReports_PK">
            <primary-key-column>VIEW_ID</primary-key-column>

        </primary-key>
</table>
	<table name="ScheduleBackupDetails">
		<description>
			<![CDATA[
		Details about scheduled report files
		    	]]>
		</description>
		<columns>
			<column name="SCHEDULE_BACKUP_ID">
				<description>Holds unique Id generated for each backup. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>ScheduleBackupDetails.SCHEDULE_BACKUP_ID</generator-name>
				</uniquevalue-generation>
			</column>

			<column name="GENRATED_TIME">
				<description>Last modified file</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>


			<column name="FILE_NAME">
				<description>location and name of backupfile </description>
				<data-type>NCHAR</data-type>
				<max-size>1000</max-size>
				<nullable>true</nullable>
			</column>
		</columns>
		<primary-key name="ScheduleBackupDetails_PK">
			<primary-key-column>SCHEDULE_BACKUP_ID</primary-key-column>

		</primary-key>
	</table>
	<table name="ScheduleBackupStatus">
		<description>
			<![CDATA[
		Details about scheduled report files
		    	]]>
		</description>
		<columns>
			<column name="SCHEDULE_BACKUP_STATUS_ID">
				<description>Holds unique Id generated for each backup status. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>ScheduleBackupStatus.SCHEDULE_BACKUP_STATUS_ID</generator-name>
				</uniquevalue-generation>
			</column>

			<column name="ENABLE_SCHEDULE_REPORT">
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
			</column>


			<column name="HISTORY_PERIOD">
				<description>No of days to maintain backup </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
			</column>
			<column name="TASK_ID">
				<description>Report Task id </description>
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
			</column>
			<column name="USER_ID">
				<description>User id for the respective retention period. </description>
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="CUSTOMER_ID">
				<description>Customer id for the respective retention period. </description>
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ScheduleBackupStatus_PK">
			<primary-key-column>SCHEDULE_BACKUP_STATUS_ID</primary-key-column>

		</primary-key>
	</table>
    <table name="EmailDCAlertTask">
  	                 <description>
  	                     <![CDATA[
  	                 This table holds the default information about the suject and the description of the tickets to be sent.
  	                     ]]>
  	                 </description>
  	                 <columns>
  	                     <column name="EMAIL_DC_ALERT_TASK_ID">
  	                         <description>Unique Email Alert Task format Id.</description>
  	                         <data-type>BIGINT</data-type>
  	                         <nullable>false</nullable>
  	                         <uniquevalue-generation>
  	                     <generator-name>EmailDCAlertTask.EMAIL_DC_ALERT_TASK_ID</generator-name>
  	                         </uniquevalue-generation>
  	                     </column>
  	                     <column name="ALERT_TYPE_ID">
  	                         <description>Reference Alert Type Id from DCAlertType.</description>
  	                         <data-type>BIGINT</data-type>
  	                         <nullable>false</nullable>
  	                         <unique>true</unique>
  	                     </column>
  	                     <column name="SUBJECT">
  	                         <description>Default subject content for the alerts to be sent.</description>
  	                         <data-type>NCHAR</data-type>
  	                         <max-size>250</max-size>
  	                         <nullable>true</nullable>
  	                         <unique>false</unique>
  	                     </column>
                             <column name="SUBJECT_VARIABLES">
  	                         <description>Default subject varibales to be add in the alerts to be sent.[If more than one variable associated use comma separator]</description>
  	                         <data-type>NCHAR</data-type>
  	                         <max-size>250</max-size>
  	                         <nullable>true</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                     <column name="DESCRIPTION">
  	                         <description>Default description content for the alerts to be sent.</description>
  	                         <data-type>NCHAR</data-type>
  	                         <max-size>6000</max-size>
  	                         <nullable>true</nullable>
  	                         <unique>false</unique>
  	                     </column>
                             <column name="DESCRIPTION_VARIABLES">
  	                         <description>Default description varibales to be add in the alerts to be sent.[If more than one variable associated use comma separator]</description>
  	                         <data-type>NCHAR</data-type>
  	                         <max-size>6000</max-size>
  	                         <nullable>true</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                 </columns>
  	                 <primary-key name="EmailDCAlertTask_PK">
  	                     <primary-key-column>EMAIL_DC_ALERT_TASK_ID</primary-key-column>
  	                 </primary-key>
  	                 <foreign-keys>
  	                             <foreign-key name="EmailDCAlertTask_FK"
  	                                     reference-table-name="DCAlertType"
  	                                     isbidirectional="false">
  	                                     <fk-columns>
  	                                             <fk-column>
  	                                                     <fk-local-column>ALERT_TYPE_ID</fk-local-column>
  	                                                     <fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
  	                                             </fk-column>
  	                                     </fk-columns>
  	                                     <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                             </foreign-key>
  	                 </foreign-keys>
  	             </table>

  	             <table name="CustomerEmailDCAlert">
  	                 <description>
  	                     <![CDATA[
  	                         This table holds the information about the suject and the description of the tickets to be sent.
  	                     ]]>
  	                 </description>
  	                 <columns>
  	                     <column name="ALERT_TYPE_ID">
  	                     <description>Reference Alert Type Id from DCAlertType.</description>
  	                         <data-type>BIGINT</data-type>
  	                         <nullable>false</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                     <column name="CUSTOMER_ID">
  	                         <description>Reference Customer Id from CustomerInfo </description>
  	                         <data-type>BIGINT</data-type>
  	                         <nullable>false</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                     <column name="SUBJECT">
  	                         <description>The customer based subject content for the alerts to be sent.</description>
  	                         <data-type>NCHAR</data-type>
  	                         <max-size>250</max-size>
  	                         <nullable>true</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                     <column name="DESCRIPTION">
  	                         <description>The customer based description content for the alerts to be sent.</description>
  	                         <data-type>NCHAR</data-type>
  	                         <max-size>6000</max-size>
  	                         <nullable>true</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                 </columns>
  	                 <primary-key name="CustomerEmailDCAlert_PK">
  	                     <primary-key-column>ALERT_TYPE_ID</primary-key-column>
  	                     <primary-key-column>CUSTOMER_ID</primary-key-column>
  	                 </primary-key>
  	                 <foreign-keys>
  	                     <foreign-key name="CustomerEmailDCAlert_FK"
  	                             reference-table-name="DCAlertType"
  	                             isbidirectional="false">
  	                             <fk-columns>
  	                                     <fk-column>
  	                                             <fk-local-column>ALERT_TYPE_ID</fk-local-column>
  	                                             <fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
  	                                     </fk-column>
  	                             </fk-columns>
  	                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	                     <foreign-key name="CustomerEmailDCAlert_FK1" reference-table-name="CustomerInfo" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>CUSTOMER_ID</fk-local-column>
  	                                                 <fk-reference-column>CUSTOMER_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	                 </foreign-keys>
  	             </table>


                     <table name="CustomerTechEmailDCAlert">
  	                 <description>
  	                     <![CDATA[
  	                         This table holds the information about the suject and the description of the tickets to be sent.
  	                     ]]>
  	                 </description>
  	                 <columns>
  	                     <column name="ALERT_TYPE_ID">
  	                     <description>Reference Alert Type Id from DCAlertType.</description>
  	                         <data-type>BIGINT</data-type>
  	                         <nullable>false</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                     <column name="CUSTOMER_ID">
  	                         <description>Reference Customer Id from CustomerInfo </description>
  	                         <data-type>BIGINT</data-type>
  	                         <nullable>false</nullable>
  	                         <unique>false</unique>
  	                     </column>
                             <column name="TECH_ID">
                                <description>Technician ID for whom the alert is saved..</description>
                                <data-type>BIGINT</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                             </column>
  	                     <column name="SUBJECT">
  	                         <description>The customer based subject content for the alerts to be sent.</description>
  	                         <data-type>NCHAR</data-type>
  	                         <max-size>250</max-size>
  	                         <nullable>true</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                     <column name="DESCRIPTION">
  	                         <description>The customer based description content for the alerts to be sent.</description>
  	                         <data-type>NCHAR</data-type>
  	                         <max-size>6000</max-size>
  	                         <nullable>true</nullable>
  	                         <unique>false</unique>
  	                     </column>
  	                 </columns>
  	                 <primary-key name="CustomerTechEmailDCAlert_PK">
  	                     <primary-key-column>ALERT_TYPE_ID</primary-key-column>
  	                     <primary-key-column>CUSTOMER_ID</primary-key-column>
  	                     <primary-key-column>TECH_ID</primary-key-column>
  	                 </primary-key>
  	                 <foreign-keys>
  	                     <foreign-key name="CustomerTechEmailDCAlert_FK" reference-table-name="DCAlertType" isbidirectional="false">
  	                             <fk-columns>
  	                                     <fk-column>
  	                                             <fk-local-column>ALERT_TYPE_ID</fk-local-column>
  	                                             <fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
  	                                     </fk-column>
  	                             </fk-columns>
  	                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	                     <foreign-key name="CustomerTechEmailDCAlert_FK1" reference-table-name="CustomerInfo" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>CUSTOMER_ID</fk-local-column>
  	                                                 <fk-reference-column>CUSTOMER_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
                             <foreign-key name="CustomerTechEmailDCAlert_FK2" reference-table-name="AaaLogin" isbidirectional="false">
                                    <fk-columns>
                                            <fk-column>
                                                    <fk-local-column>TECH_ID</fk-local-column>
                                                    <fk-reference-column>LOGIN_ID</fk-reference-column>
                                            </fk-column>
                                    </fk-columns>
                                    <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                            </foreign-key>
  	                 </foreign-keys>
  	             </table>

  	             <table name="AlertKey">
  	             <description>
  	                 <![CDATA[
  	             This table holds the information about the keys used in inventory tickets.
  	                 ]]>
  	             </description>
  	             <columns>
  	             <column name="ALERT_KEY_ID">
  	                 <description>Unique Alert Key Id for each keys.</description>
  	                 <data-type>BIGINT</data-type>
  	                     <nullable>false</nullable>
  	                     <unique>true</unique>
  	             </column>
  	             <column name="ALERT_KEY">
  	                 <description>The Keys which is used by the user which will later be replaced by corresponding values.</description>
  	                     <data-type>NCHAR</data-type>
  	                     <max-size>50</max-size>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	             <column name="ALERT_KEY_DESCRIPTION">
  	                 <description>The description about the Alert Keys Used.</description>
  	                     <data-type>NCHAR</data-type>
  	                 <max-size>100</max-size>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	             </columns>
  	         <primary-key name="AlertKey_PK">
  	                 <primary-key-column>ALERT_KEY_ID</primary-key-column>
  	             </primary-key>
  	         </table>
  	         <table name="AlertKeytoTypeRel">
  	                 <description>
  	                         <![CDATA[
  	                         This table contains the relation between Alert Keys and Alert Types.
  	                 ]]>
  	                 </description>
  	                 <columns>
  	                         <column name="ALERT_KEY_ID">
  	                                 <description>Reference Alert Key Id from AlertKey.</description>
  	                                 <data-type>BIGINT</data-type>
  	                                 <nullable>false</nullable>
  	                                 <unique>false</unique>
  	                         </column>
  	                         <column name="ALERT_TYPE_ID">
  	                                 <description>Reference Alert Type Id from DCAlertType.</description>
  	                                 <data-type>BIGINT</data-type>
  	                                 <nullable>false</nullable>
  	                                 <unique>false</unique>
  	                         </column>
  	                 </columns>
  	                 <primary-key name="AlertKeytoTypeRel_PK">
  	                         <primary-key-column>ALERT_KEY_ID</primary-key-column>
  	                         <primary-key-column>ALERT_TYPE_ID</primary-key-column>
  	                 </primary-key>
  	                 <foreign-keys>
  	                         <foreign-key name="AlertKeytoTypeRel_FK" reference-table-name="AlertKey" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>ALERT_KEY_ID</fk-local-column>
  	                                                 <fk-reference-column>ALERT_KEY_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                         </foreign-key>
  	                         <foreign-key name="AlertKeytoTypeRel_FK1" reference-table-name="DCAlertType" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>ALERT_TYPE_ID</fk-local-column>
  	                                                 <fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                         </foreign-key>
  	                 </foreign-keys>
  	         </table>
                 <table name="EmailValueToTypeRel">
                      <description>
  	                         <![CDATA[
  	                         This table contains the relation between Alert Keys, variable and Alert Types.
  	                 ]]>
  	                 </description>
  	                 <columns>
                             <column name="EMAIL_VALUE_KEY_ID">
  	                                 <description>Primary key id for alertvaluetoTypeRel table.</description>
  	                                 <data-type>BIGINT</data-type>
  	                                 <nullable>false</nullable>
  	                                 <unique>true</unique>
                                         <uniquevalue-generation>
                                            <generator-name>EmailValueToTypeRel.EMAIL_VALUE_KEY_ID</generator-name>
                                         </uniquevalue-generation>
  	                         </column>
                                 <column name="ALERT_VALUE">
  	                                 <description>Alert value for the description of mail</description>
  	                                 <data-type>NCHAR</data-type>
                                         <max-size>500</max-size>
  	                                 <nullable>false</nullable>
  	                                 <unique>false</unique>
  	                         </column>
  	                         <column name="ALERT_KEY">
  	                                 <description>AlertKey for the description of mail.</description>
  	                                 <data-type>NCHAR</data-type>
                                         <max-size>50</max-size>
  	                                 <nullable>false</nullable>
  	                                 <unique>false</unique>
  	                         </column>
                                 <column name="ALERT_TYPE_ID">
  	                                 <description>Reference Alert Type Id from DCAlertType.</description>
  	                                 <data-type>BIGINT</data-type>
  	                                 <nullable>false</nullable>
  	                                 <unique>false</unique>
  	                         </column>
  	                 </columns>
  	                 <primary-key name="EmailValueToTypeRel_PK">
  	                         <primary-key-column>EMAIL_VALUE_KEY_ID</primary-key-column>
  	                 </primary-key>
  	                 <foreign-keys>
  	                         <foreign-key name="EmailValueToTypeRel_FK1" reference-table-name="DCAlertType" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>ALERT_TYPE_ID</fk-local-column>
  	                                                 <fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                         </foreign-key>
  	                 </foreign-keys>
                 </table>
                 <table name="EmailFooterToTypeRel">
                      <description>
  	                         <![CDATA[
  	                         This table contains the relation between Alert Keys, variable and Alert Types.
  	                 ]]>
  	                 </description>
  	                 <columns>
                             <column name="EMAIL_FOOTER_KEY_ID">
  	                                 <description>Primary key id for alertvaluetoTypeRel table.</description>
  	                                 <data-type>BIGINT</data-type>
  	                                 <nullable>false</nullable>
  	                                 <unique>true</unique>
                                         <uniquevalue-generation>
                                            <generator-name>EmailFooterToTypeRel.EMAIL_FOOTER_KEY_ID</generator-name>
                                         </uniquevalue-generation>
  	                         </column>
  	                         <column name="EMAIL_FOOTER">
  	                                 <description>AlertKey for the description of mail.</description>
  	                                 <data-type>NCHAR</data-type>
                                         <max-size>500</max-size>
  	                                 <nullable>false</nullable>
  	                                 <unique>false</unique>
  	                         </column>
                                 <column name="FOOTER_VARIABLES">
  	                                 <description>AlertKey for the description of mail.</description>
  	                                 <data-type>NCHAR</data-type>
                                         <max-size>500</max-size>
  	                                 <nullable>false</nullable>
  	                                 <unique>false</unique>
  	                         </column>
                                 <column name="ALERT_TYPE_ID">
  	                                 <description>Reference Alert Type Id from DCAlertType.</description>
  	                                 <data-type>BIGINT</data-type>
  	                                 <nullable>false</nullable>
  	                                 <unique>false</unique>
  	                         </column>
  	                 </columns>
  	                 <primary-key name="EmailFooterToTypeRel_PK">
  	                         <primary-key-column>EMAIL_FOOTER_KEY_ID</primary-key-column>
  	                 </primary-key>
  	                 <foreign-keys>
  	                         <foreign-key name="EmailFooterToTypeRel_FK1" reference-table-name="DCAlertType" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>ALERT_TYPE_ID</fk-local-column>
  	                                                 <fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                         </foreign-key>
  	                 </foreign-keys>
                 </table>
  	         <table name="CustomerEmailAddrRel">
  	             <columns>
  	                 <column name="CUSTOMER_ID">
  	                     <description>Reference Customer Id from CustomerInfo </description>
  	                     <data-type>BIGINT</data-type>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	                 <column name="EMAIL_ADDR_ID">
  	                     <description>Reference Email_Addr_Id from EMailAddr </description>
  	                     <data-type>BIGINT</data-type>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	             </columns>
  	             <primary-key name="CustomerEmailAddrRel_PK">
  	                         <primary-key-column>CUSTOMER_ID</primary-key-column>
  	                         <primary-key-column>EMAIL_ADDR_ID</primary-key-column>
  	             </primary-key>
  	             <foreign-keys>
  	                     <foreign-key name="CustomerEmailAddrRel_FK" reference-table-name="CustomerInfo" isbidirectional="false">
  	                             <fk-columns>
  	                                     <fk-column>
  	                                             <fk-local-column>CUSTOMER_ID</fk-local-column>
  	                                             <fk-reference-column>CUSTOMER_ID</fk-reference-column>
  	                                     </fk-column>
  	                             </fk-columns>
  	                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	                     <foreign-key name="CustomerEmailAddrRel_FK1" reference-table-name="EMailAddr" isbidirectional="false">
  	                             <fk-columns>
  	                                     <fk-column>
  	                                             <fk-local-column>EMAIL_ADDR_ID</fk-local-column>
  	                                             <fk-reference-column>EMAIL_ADDR_ID</fk-reference-column>
  	                                     </fk-column>
  	                             </fk-columns>
  	                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	             </foreign-keys>
  	         </table>
  	         <table name="CustomerAlertTypeRel">
  	             <columns>
  	                 <column name="CUSTOMER_ID">
  	                     <description>Reference Customer Id from CustomerInfo </description>
  	                     <data-type>BIGINT</data-type>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	                 <column name="ALERT_TYPE_ID">
  	                     <description>Reference Alert Type Id from DCAlertType</description>
  	                     <data-type>BIGINT</data-type>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	                 <column name="EMAIL_ALERT">
  	                     <description>Enable/disable email alert for this alert type</description>
  	                     <data-type>BOOLEAN</data-type>
  	                     <default-value>false</default-value>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	             </columns>
  	             <primary-key name="CustomerAlertTypeRel_PK">
  	                         <primary-key-column>CUSTOMER_ID</primary-key-column>
  	                         <primary-key-column>ALERT_TYPE_ID</primary-key-column>
  	             </primary-key>
  	             <foreign-keys>
  	                     <foreign-key name="CustomerAlertTypeRel_FK" reference-table-name="CustomerInfo" isbidirectional="false">
  	                             <fk-columns>
  	                                     <fk-column>
  	                                             <fk-local-column>CUSTOMER_ID</fk-local-column>
  	                                             <fk-reference-column>CUSTOMER_ID</fk-reference-column>
  	                                     </fk-column>
  	                             </fk-columns>
  	                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	                     <foreign-key name="CustomerAlertTypeRel_FK1" reference-table-name="DCAlertType" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>ALERT_TYPE_ID</fk-local-column>
  	                                                 <fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	             </foreign-keys>
  	         </table>

                 <table name="CustomerTechAlertTypeRel">
  	             <columns>
  	                 <column name="CUSTOMER_ID">
  	                     <description>Reference Customer Id from CustomerInfo </description>
  	                     <data-type>BIGINT</data-type>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
                         <column name="TECH_ID">
                                <description>Technician ID for whom the summary is generated..</description>
                                <data-type>BIGINT</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
  	                 <column name="ALERT_TYPE_ID">
  	                     <description>Reference Alert Type Id from DCAlertType</description>
  	                     <data-type>BIGINT</data-type>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	                 <column name="EMAIL_ALERT">
  	                     <description>Enable/disable email alert for this alert type</description>
  	                     <data-type>BOOLEAN</data-type>
  	                     <default-value>false</default-value>
  	                     <nullable>false</nullable>
  	                     <unique>false</unique>
  	                 </column>
  	             </columns>
  	             <primary-key name="CustomerTechAlertTypeRel_PK">
  	                         <primary-key-column>CUSTOMER_ID</primary-key-column>
  	                         <primary-key-column>TECH_ID</primary-key-column>
  	                         <primary-key-column>ALERT_TYPE_ID</primary-key-column>
  	             </primary-key>
  	             <foreign-keys>
  	                     <foreign-key name="CustomerTechAlertTypeRel_FK" reference-table-name="CustomerInfo" isbidirectional="false">
  	                             <fk-columns>
  	                                     <fk-column>
  	                                             <fk-local-column>CUSTOMER_ID</fk-local-column>
  	                                             <fk-reference-column>CUSTOMER_ID</fk-reference-column>
  	                                     </fk-column>
  	                             </fk-columns>
  	                             <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	                     <foreign-key name="CustomerTechAlertTypeRel_FK1" reference-table-name="DCAlertType" isbidirectional="false">
  	                                 <fk-columns>
  	                                         <fk-column>
  	                                                 <fk-local-column>ALERT_TYPE_ID</fk-local-column>
  	                                                 <fk-reference-column>ALERT_TYPE_ID</fk-reference-column>
  	                                         </fk-column>
  	                                 </fk-columns>
  	                                 <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
  	                     </foreign-key>
  	                     <foreign-key name="CustomerTechAlertTypeRel_FK2" reference-table-name="AaaLogin" isbidirectional="false">
                                <fk-columns>
                                        <fk-column>
                                                <fk-local-column>TECH_ID</fk-local-column>
                                                <fk-reference-column>LOGIN_ID</fk-reference-column>
                                        </fk-column>
                                </fk-columns>
                                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                        </foreign-key>
  	             </foreign-keys>
  	         </table>


	<table name="ServerDebugInfo">
		<description>
			<![CDATA[
            This table will contain the details to track issues related to out-of-memory and database locks(hprof,pid,dblock).
            ]]>
		</description>
		<columns>
			<column name="SERVER_DEBUG_INFO_ID">
				<description>Unique id generated for each ServerDebugInfo parameter. </description>
				<data-type>BIGINT</data-type>
				<uniquevalue-generation>
					<generator-name>ServerDebugInfo.SERVER_DEBUG_INFO_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="BUILD_NUMBER">
				<description>Build Number for which debug info is stored </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="FILE_NAME">
				<description>Name of the debug file </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="FILE_TYPE">
				<description>hprof files -1,pid files -2,dblock files -3 </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREATION_TIME">
				<description>Creation time of the debug file </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_DELETED">
				<description>Does the file exists or deleted</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ServerDebugInfo_PK">
			<primary-key-column>SERVER_DEBUG_INFO_ID</primary-key-column>
		</primary-key>
	</table>

    <table name="CriteriaColumnDetails">
        <description>
		<![CDATA[
		This table saves the basic criteria details for all views. Several filters listed in  this table together will form a compound criteria which is stored in CriteriaInfo table.
		]]>
    </description>
    <columns>
        <column name="CRITERIA_COLUMN_ID">
            <description>Unique id for each column</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
            <uniquevalue-generation>
                <generator-name>CriteriaColumnDetails.CRITERIA_COLUMN_ID</generator-name>
            </uniquevalue-generation>
        </column>
        <column name="COLUMN_ID">
            <description>Column ID in CRColumns</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="SEARCH_VALUE">
            <description>Value with which the column entries are to be compared</description>
            <data-type>NCHAR</data-type>
            <max-size>1500</max-size>
            <nullable>true</nullable>
            <unique>false</unique>
        </column>
		<column name="SEARCH_VALUE_2"> <!--Name as suggested by sky-->
			<description>Advanced Search Value with which the column entries are to be compared</description>
			<data-type>NCHAR</data-type>
			<max-size>1500</max-size>
			<nullable>true</nullable>
			<unique>false</unique>
		</column>
        <column name="COMPARATOR">
            <description>Comparison tokens like equals, not equals, like, not like, empty, not empty, less than, greater than etc.</description>
            <data-type>NCHAR</data-type>
            <max-size>50</max-size>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
		<column name="OP_CUSTOM_TYPE">
			<description>When the Comparator is Custom,this column defines its type</description>
			<data-type>INTEGER</data-type>
			<nullable>true</nullable>
			<unique>false</unique>
		</column>
        <column name="IS_NEGATED">
            <description>If true, the criteria should be negated. Meaning than the NOT of the criteria specified has to be evaluated</description>
            <data-type>BOOLEAN</data-type>
            <nullable>true</nullable>
            <unique>false</unique>
        </column>
        <column name="LOGICAL_OPERATOR">
            <description>The logical condition like AND, OR to be used in case of multiple criteria. This value can be null if either only one criteria is specified or the entry is the first criteria to be appended to the query. For AND the value is 1 and OR the value is 2</description>
            <data-type>INTEGER</data-type>
            <nullable>true</nullable>
            <unique>false</unique>
        </column>
        <column name="CRITERIA_ORDER">
            <description>Order in which the criteria are to be appended. Useful especially when multiple criteria are associated with a scheduled report. Starts from 1.</description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
    </columns>
    <primary-key name="CriteriaColumnDetails_PK">
        <primary-key-column>CRITERIA_COLUMN_ID</primary-key-column>
    </primary-key>
    <foreign-keys>
        <foreign-key name="CriteriaColumnDetails_FK1" reference-table-name="CRColumns" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>COLUMN_ID</fk-local-column>
                    <fk-reference-column>COLUMN_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>
</table>

<table name="SRToCriteriaRel">
    <description>
            <![CDATA[
            This table contains the relation between ViewParams and CRColumns Details.
            ]]>
    </description>
    <columns>
        <column name="SCHEDULE_REP_ID">
            <description>Holds unique Id generated for each resource. </description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="CRITERIA_COLUMN_ID">
            <description>Task id for Schedule Report Task</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
    </columns>
    <primary-key name="SRToCriteriaRel_PK">
        <primary-key-column>SCHEDULE_REP_ID</primary-key-column>
        <primary-key-column>CRITERIA_COLUMN_ID</primary-key-column>
    </primary-key>
    <foreign-keys>

            <foreign-key name="SRToCriteriaRel_FK1" reference-table-name="ScheduleRepToReportRel" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULE_REP_ID</fk-local-column>
                        <fk-reference-column>SCHEDULE_REP_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SRToCriteriaRel_FK2" reference-table-name="CriteriaColumnDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CRITERIA_COLUMN_ID</fk-local-column>
                        <fk-reference-column>CRITERIA_COLUMN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ColumnValueFetchImpl">
        <description>
            <![CDATA[
            This table contains the controller class name to fetch column values when appending custom criteria to reports.
            If a controller is not specified in this table, default controller will be used to fetch the column values
            ]]>
        </description>
        <columns>
            <column name="COLUMN_ID">
                <description>Holds unique Id generated for each resource. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
        <column name="IMPL_CLASS_NAME">
                <description>
            <![CDATA[Class to be called to fetch the browse values for the specified column.
            A special controller is needed when extra handling is required to fetch the column values
            ]]>
                </description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ColumnValueFetchImpl_PK">
            <primary-key-column>COLUMN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>

            <foreign-key name="ColumnValueFetchImpl_FK1" reference-table-name="CRColumns" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COLUMN_ID</fk-local-column>
                        <fk-reference-column>COLUMN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="BrowseValueTransformation">
        <description>
            <![CDATA[
            This table contains the controller class name to fetch column values when appending custom criteria to reports.
            If a controller is not specified in this table, default controller will be used to fetch the column values
            ]]>
        </description>
        <columns>
            <column name="COLUMN_ID">
                <description>Unique Id for each column. Refers to CRColumns </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BROWSE_KEY">
                <description>
            <![CDATA[The column browse value from database
            ]]>
                </description>
                <data-type>NCHAR</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BROWSE_VALUE">
                <description>
            <![CDATA[The value to be displayed in UI
            ]]>
                </description>
                <data-type>NCHAR</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_I18N">
                <description>
            <![CDATA[The value to be displayed in UI
            ]]>
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="BrowseValueTransformation_PK">
            <primary-key-column>COLUMN_ID</primary-key-column>
            <primary-key-column>BROWSE_KEY</primary-key-column>
        </primary-key>
        <foreign-keys>

            <foreign-key name="BrowseValueTransformation_FK1" reference-table-name="CRColumns" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COLUMN_ID</fk-local-column>
                        <fk-reference-column>COLUMN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
<table name="DCEMailAlertMetaData">
	<description>
		<![CDATA[
		This table holds the information about the queues which are to be created & used.
		]]>
	</description>
	<columns>
		<column name="A_METADATA_ID">
			<description>Unique Id for each queue data. </description>
			<data-type>BIGINT</data-type>
			<nullable>false</nullable>
			<unique>false</unique>
			<uniquevalue-generation>
				<generator-name>DCEMailAlertMetaData.A_METADATA_ID</generator-name>
			</uniquevalue-generation>
		</column>
		<column name="ALERT_NAME">
			<description>Name of the queue. </description>
			<data-type>CHAR</data-type>
			<max-size>255</max-size>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
		<column name="ALERT_DATA_CLASS_NAME">
			<description>Table to be used to store the queue state related details. </description>
			<data-type>CHAR</data-type>
			<max-size>255</max-size>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
		<column name="ALERT_XSL_FILE_NAME">
			<description>Table to be used to store the queue state related details. </description>
			<data-type>CHAR</data-type>
			<max-size>255</max-size>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
		<column name="FOLDER_PATH">
			<description>Table to be used to store the queue state related details. </description>
			<data-type>CHAR</data-type>
			<max-size>255</max-size>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
		<column name="LOGGER_NAME">
			<description>Logger to be used for this queue. </description>
			<data-type>CHAR</data-type>
			<max-size>100</max-size>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
		<column name="MAX_SIZE">
			<description>Maximum number of data can be maintained in the queue. </description>
			<data-type>INTEGER</data-type>
			<default-value>100</default-value>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
	</columns>
	<primary-key name="DCEMailAlertMetaData_PK">
		<primary-key-column>A_METADATA_ID</primary-key-column>
	</primary-key>
</table>

    <table name="AlertPlugins">
        <description>
  	         <![CDATA[
  	         This table holds the information about the alerts related plugin classes.
  	         ]]>
        </description>
        <columns>
            <column name="ALERT_PLUGIN_ID">
                <description>Unique Id for each alert data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>AlertPlugins.ALERT_PLUGIN_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="ALERT_NAME">
                <description>Name of the alert. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="PLUGIN_CLASS_NAME">
                <description>Table to be used to store the queue state related details. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AlertPlugins_PK">
            <primary-key-column>ALERT_PLUGIN_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="AlertSettings">
        <description><![CDATA[Contains task and alert relation]]>
        </description>
        <columns>
            <column name="ALERT_SETTINGS_ID">
                <description>Unique id for the alert. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>AlertSettings.ALERT_SEETINGS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="ALERT_NAME">
                <description>Name of the alert. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALERT_PARAM_ID">
                <description>Maintain the operation IDs </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                 <unique>false</unique>
            </column>
            <column name="PERIODIC_TIME">
                <description>This column will have maintain the APD mail alert time duration </description>
                <data-type>INTEGER</data-type>
                <default-value>5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLED_DAYS">
                <description>This column will have maintain the how many days mail alert will be sending</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EMAIL_ADDR">
                <description>E-Mail Address. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AlertSettings_PK">
            <primary-key-column>ALERT_SETTINGS_ID</primary-key-column>
            <primary-key-column>ALERT_NAME</primary-key-column>
        </primary-key>
    </table>

    <table name="SchedulerClasses">
        <description>This table Contains relation of Scheduler and the actual class to get invoked</description>
        <columns>
            <column name="SCHEDULER_CLASS_ID">
                <description>Unique Job ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>SchedulerClasses.SCHEDULER_CLASS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SCHEDULER_NAME">
                <description>Name of Scheduler</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="CLASS_NAME">
                <description>name of actual class to call</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="REPETITION_NAME">
                <description>name of updated scheduler name</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
            </column>
            <column name="RETRY_REQUIRED">
                <description>Whether retry of scheduler required </description>
		<data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
			<column name="WORKFLOW_NAME">
				<description>Name of workflow</description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>true</nullable>
			</column>
        </columns>
        <primary-key name="SCHEDULER_CLASS_ID_PK">
            <primary-key-column>SCHEDULER_CLASS_ID</primary-key-column>
        </primary-key>
        <unique-keys>
            <unique-key name="SchedulerClasses_UK1">
                <unique-key-column>SCHEDULER_NAME</unique-key-column>
            </unique-key>
        </unique-keys>
    </table>
    <table name="SchedulerInputs">
    <description>
        This will hold the Scheduler inputs key value pair.
    </description>
    <columns>
        <column name="SCHEDULER_INPUT_ID">
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
        </column>
        <column name="KEY">
            <data-type>CHAR</data-type>
            <max-size>250</max-size>
            <nullable>true</nullable>
        </column>
        <column name="VALUE">
            <data-type>CHAR</data-type>
            <max-size>5000</max-size>
            <nullable>true</nullable>
        </column>
    </columns>
    <primary-key name="SchedulerInputs_PK">
        <primary-key-column>SCHEDULER_INPUT_ID</primary-key-column>
        <primary-key-column>KEY</primary-key-column>
    </primary-key>
    <foreign-keys>
        <foreign-key name="JobInputs_FK1" reference-table-name="SchedulerClasses" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>SCHEDULER_INPUT_ID</fk-local-column>
                    <fk-reference-column>SCHEDULER_CLASS_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>
</table>
         <!-- Tables for Audit Clean Up starts-->
    <table name="DCCleanUpDataInfo">
        <description><![CDATA[Contains Feature Details to take Backup before cleanUp]]></description>
        <columns>
            <column name="FEATURE_ID">
                <description>Unique ID of feature</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCCleanUpDataInfo.FEATURE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FEATURE_NAME">
                <description>Name of the feature</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="BACKUP_LOCATION">
                <description>Location Of BackUp Folder with respect to Server Home</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="FILE_NAME">
                <description>Name of the File</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="MAX_FOLDER_SIZE">
                <description>Size of Folder in MBs</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCCleanUpDataInfo_PK">
            <primary-key-column>FEATURE_ID</primary-key-column>
        </primary-key>
    </table>
	<table name="DCCleanUpDataFiles">
		<description><![CDATA[Total Number Of Files for which backUp is Taken.]]></description>
		<columns>
			<column name="DATA_FILE_ID">
				<description>Unique ID for files generated</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>DCCleanUpDataFiles.DATA_FILE_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="FEATURE_ID">
				<description>Feature ID referring to DCCleanUpDataInfo</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="FILE_NAME">
				<description>Back Up File Name</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="CREATED_TIME">
				<description>File Created Time In Millis</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="FILE_SIZE">
				<description>Size of the file in bytes</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCCleanUpDataFiles_ID_PK">
			<primary-key-column>DATA_FILE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
            <foreign-key name="BackUpFiles_FK" reference-table-name="DCCleanUpDataInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FEATURE_ID</fk-local-column>
                        <fk-reference-column>FEATURE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
	</table>
      <!-- Tables for Audit Clean Up Ends-->

	<table name="ScheduledTaskDetails">
        <description>This table stores the task reference to the schedule</description>
        <columns>
            <column name="TASK_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SCHEDULE_ID"> <!-- Depecrated -->
                <data-type>BIGINT</data-type>
                <max-size>30</max-size>
                <nullable>false</nullable>
				<unique>true</unique>
            </column>
            <column name="REPEAT_FREQUENCY">
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
                <allowed-values>
                    <value>Hourly</value>
                    <value>Once</value>
                    <value>Daily</value>
                    <value>Weekly</value>
                    <value>Monthly</value>
                </allowed-values>
            </column>
			<column name="SCHEDULER_CLASS_ID">
				<description>Unique Scheduler Class ID</description>
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
			</column>
        </columns>
        <primary-key name="ScheduledTaskDetails_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ScheduledTaskDetails_FK2" reference-table-name="TaskDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TASK_ID</fk-local-column>
                        <fk-reference-column>TASK_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

	<!-- Tables for Default date and time format -->

	<table name="DefaultTimeFormat">
	    <columns>
		    <column name="ID">
			    <data-type>BIGINT</data-type>
			    <nullable>false</nullable>
			    <unique>false</unique>
			    <uniquevalue-generation>
				    <generator-name>DefaultTimeFormat.ID</generator-name>
			    </uniquevalue-generation>
		    </column>
		    <column name="TIME_FORMAT">
			    <data-type>CHAR</data-type>
				<max-size>100</max-size>
				<default-value>MMM dd,yyyy hh:mm:ss a</default-value>
			    <nullable>false</nullable>
				<unique>false</unique>
		    </column>
			<column name="DATE_FORMAT">
			    <data-type>CHAR</data-type>
				<max-size>100</max-size>
				<default-value>MMM dd,yyyy</default-value>
			    <nullable>false</nullable>
				<unique>false</unique>
		    </column>
	    </columns>
	    <primary-key name="DefaultTimeFormate_PK1">
		    <primary-key-column>ID</primary-key-column>
	    </primary-key>
    </table>
     <table name="CSVOperation">
        <description>
            <![CDATA[
            This is a table having all operation ids and associated labels for csv import operations implemented using CSVParser framework
            ]]>
        </description>
        <columns>
            <column name="OPERATION_ID">
                <description>Unique id generated for each csv import operation. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                <generator-name>CSVOperation.OPERATION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="LABEL">
                <description>Label for the operation using CSV Parser </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="TABLE_NAME">
                <description>Temporary Table Name for the operation using CSV Parser </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="CSV_TABLE_NAME">
                <description>Temporary Table Name for the operation using CSV Parser </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
            </column>
            <column name="PARSER_CLASS">
                <description>CSV Parser class name for the operation </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
			<column name="TASK_CLASS">
                <description>CSV Task class name for the operation </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="CSV_TASK_CLASS">
                <description>CSV Task class name for the operation </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
            </column>
        </columns>
        <primary-key name="CSVOperation_PK">
                <primary-key-column>OPERATION_ID</primary-key-column>
        </primary-key>
    </table>


    <table name="CSVInprogressOperation">
        <description>
            <![CDATA[
            This is a table having all necessary input params  for each csv import operation
            ]]>
        </description>
        <columns>
            <column name="INSTANCE_ID">
                <description>Unique id generated for each record. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                <generator-name>CSVInprogressOperation.INSTANCE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="OPERATION_ID">
                <description>Unique id generated for each csv import operation. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Customer Identifier.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CSVInprogressOperation_PK">
                <primary-key-column>INSTANCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CSVInprogressOperation_FK1" reference-table-name="CSVOperation" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>OPERATION_ID</fk-local-column>
                        <fk-reference-column>OPERATION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CSVInprogressOperation_FK2" reference-table-name="CustomerInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CUSTOMER_ID</fk-local-column>
                        <fk-reference-column>CUSTOMER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
        <unique-keys>
            <unique-key name="CSVInprogressOperation_UK1">
                <unique-key-column>OPERATION_ID</unique-key-column>
                <unique-key-column>CUSTOMER_ID</unique-key-column>
           </unique-key>
        </unique-keys>
    </table>

    <table name="CSVInputParams">
        <description>
            <![CDATA[
            This is a table having all necessary input params  for each csv import operation
            ]]>
        </description>
        <columns>
            <column name="PARAM_ID">
                <description>Unique id generated for each record. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                <generator-name>CSVInputParams.PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="INSTANCE_ID">
                <description>Unique id generated for each instance (customerid, operationid) </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
		<unique>false</unique>
            </column>
            <column name="PARAMETER_NAME">
                <description>Name of the the parameter </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARAMETER_VALUE">
                <description>Value of the parameter</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CSVInputParams_PK">
                <primary-key-column>PARAM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CSVInputParams_FK1" reference-table-name="CSVInprogressOperation" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>INSTANCE_ID</fk-local-column>
                        <fk-reference-column>INSTANCE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

        <table name="CustomerParams">
        <description>
        <![CDATA[
        This table will contain system parameters for each customer. As the values would be in Key-Value format, this table structure captures the same. Based on the visibility we can revisit this table later.
        ]]>
        </description>
        <columns>
            <column name="CUSTOMER_PARAM_ID">
                    <description>Unique id generated for each parameter. </description>
                    <data-type>BIGINT</data-type>
                    <nullable>false</nullable>
                    <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>CustomerParams.CUSTOMER_PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PARAM_NAME">
                    <description> Key name of the parameter. </description>
                    <data-type>CHAR</data-type>
                    <max-size>250</max-size>
                    <nullable>false</nullable>
                    <unique>false</unique>
            </column>
            <column name="PARAM_VALUE">
                    <description>Value of the parameter. </description>
                    <data-type>NCHAR</data-type>
                    <max-size>250</max-size>
                    <nullable>false</nullable>
                    <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Customer ID for which the Authentication is Enabled.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
		</columns>
		<primary-key name="CustomerParams_PK">
			<primary-key-column>CUSTOMER_PARAM_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
            <foreign-key name="CustomerParams_FK" reference-table-name="CustomerInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CUSTOMER_ID</fk-local-column>
                        <fk-reference-column>CUSTOMER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DMApplication">
		<description>
		<![CDATA[
			The DMApplication Table contains the list of high-level applications in MEDC. It also contains the status (ON/OFF) of these applications. when an application is OFF, its roles will not be loaded at startup.
		]]>
		</description>
		<columns>
			<column name="DMAPPLICATION_ID">
				<description>A unique id for each Application. </description>
				<data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DMApplication.DMAPPLICATION_ID</generator-name>
                </uniquevalue-generation>
			</column>
			<column name="DMAPPLICATION_NAME">
				<description>Name of the Application. Eg: "DC" or "MDM" </description>
				<data-type>NCHAR</data-type>
				<max-size>10</max-size>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="DMAPPLICATION_STATUS">
				<description>Status of the Application (ON/OFF) </description>
				<data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
			</column>
		</columns>
		<primary-key name="DMApplication_PK">
			<primary-key-column>DMAPPLICATION_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="DMApplnToDCUserModRel">
        <description>This table maps the DCUserModule(s) to DMApplication(s) </description>
        <columns>
            <column name="DMAPPLICATION_ID">
                <description>Taken from DMApplication</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DC_MODULE_ID">
                <description>Its taken from DCUserModule</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DMApplnToDCUserModRel_PK">
            <primary-key-column>DMAPPLICATION_ID</primary-key-column>
            <primary-key-column>DC_MODULE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="DMApplication" name="DMApplnToDCUserModRel_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DMAPPLICATION_ID</fk-local-column>
                        <fk-reference-column>DMAPPLICATION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>

            <foreign-key name="DMApplnToDCUserModRel_FK2" reference-table-name="DCUserModule" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DC_MODULE_ID</fk-local-column>
                        <fk-reference-column>MODULE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

	<!-- Search Module tables -->

	    <table name="SearchParams">
        <description>This table describes the parameters which is to be searched</description>
        <columns>
            <column name="PARAM_ID">
                <description>Search Param Id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SearchParams.PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="ROLE_ID">
                <description>Referenced Id from AAARole</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRODUCT_ID">
                <description>Product Id decide whether the param should be displayed for a product.0-All,1-Enterprise,2-MSP.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARAM_TYPE">
                    <description>Type of the parameter whether it is for Desktops or MDM. 0-Desktops, 1-MDM.</description>
                    <data-type>INTEGER</data-type>
                    <default-value>0</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
            </column>
            <column name="PARAM_NAME">
                <description>Search Param Name which is displayed while searching</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_VISIBLE">
                <description>Flag whether the search param name is shown or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SearchParams_PK">
            <primary-key-column>PARAM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SearchParams_FK1" reference-table-name="AaaRole" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ROLE_ID</fk-local-column>
                        <fk-reference-column>ROLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="SearchHierarchyRel">
        <description>This table describes the hierarchy level relation while searching</description>
        <columns>
            <column name="UPPER_PARAM_ID">
                <description>This represents the upper hierarchy level param Id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOWER_PARAM_ID">
                <description>This represents the lower hierarchy level param Id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HIERARCHY_LEVEL">
                <description>This determines the hierarchy level to position the params</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_ORDER">
                <description>This determines in which order the params should be displayed</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SearchHierarchyRel_PK">
            <primary-key-column>UPPER_PARAM_ID</primary-key-column>
            <primary-key-column>LOWER_PARAM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SearchHierarchyRel_FK1" reference-table-name="SearchParams">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>UPPER_PARAM_ID</fk-local-column>
                        <fk-reference-column>PARAM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SearchHierarchyRel_FK2" reference-table-name="SearchParams">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOWER_PARAM_ID</fk-local-column>
                        <fk-reference-column>PARAM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="SearchCriteria">
        <description>This table provides the details to create criteria of a view</description>
        <columns>
            <column name="CRITERIA_ID">
                <description>Search Criteria Id</description>
                <data-type>BIGINT</data-type>
		<nullable>false</nullable>
                <unique>false</unique>
		<uniquevalue-generation>
			<generator-name>SearchCriteria.CRITERIA_ID</generator-name>
		</uniquevalue-generation>
            </column>
            <column name="PARAM_ID">
                <description>Referenced Param Id from SearchParams</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VIEW_NAME">
                <description>View name to which the criteria is to be applied</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TABLE_NAME">
                <description>Table name for which criteria has to be applied</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COLUMN_NAME">
                <description>Column name for which criteria has to be applied</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
	   </column>
        </columns>
        <primary-key name="SearchCriteria_PK">
            <primary-key-column>CRITERIA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SearchCriteria_FK1" reference-table-name="SearchParams">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PARAM_ID</fk-local-column>
                        <fk-reference-column>PARAM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="SearchHistory">
        <description>This table provides the search history details.</description>
        <columns>
            <column name="HISTORY_ID">
                <description>Search History Id</description>
                <data-type>BIGINT</data-type>
		<nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SearchHistory.HISTORY_ID</generator-name>
		</uniquevalue-generation>
            </column>
            <column name="PARAM_ID">
                <description>Referenced Param Id from SearchParams</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGIN_ID">
                <description>Referenced Id from AAALogin table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SEARCH_TEXT">
                <description>The search text which was used for searching</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
	   </column>
           <column name="SEARCH_TIME">
                <description>Time at which the search has been made </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
           </column>
        </columns>
        <primary-key name="SearchHistory_PK">
            <primary-key-column>HISTORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SearchHistory_FK1" reference-table-name="SearchParams">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PARAM_ID</fk-local-column>
                        <fk-reference-column>PARAM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SearchHistory_FK2" reference-table-name="AaaLogin">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOGIN_ID</fk-local-column>
                        <fk-reference-column>LOGIN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>


	<!-- Deprecated table-->
    <table name="UserSummaryDisplayOrder">
        <description>
			<![CDATA[
			This table will be have details about the order of the summary with respect to the user .
		]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>Its taken from AAAUser</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUMMARY_ID">
                <description>Order of the summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_ORDER">
                <description>Order of the summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SummaryDisplayOrder_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
            <primary-key-column>SUMMARY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SummaryDisplayOrder_FK1" reference-table-name="AaaLogin" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOGIN_ID</fk-local-column>
                        <fk-reference-column>LOGIN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SummaryDisplayOrder_FK2" reference-table-name="HomePageSummary" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUMMARY_ID</fk-local-column>
                        <fk-reference-column>SUMMARY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
	<table name="APIKeyDefinition">
	<description>Table to store the web services API keys for technicians</description>
	<columns>
		<column name="LOGIN_ID">
			<description>Login ID of the technician</description>
			<data-type>BIGINT</data-type>
			<nullable>false</nullable>
			<unique>true</unique>
		</column>
		<column name="APIKEY">
			<description>The key for the technician</description>
			<data-type>CHAR</data-type>
			<max-size>250</max-size>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
		<column name="VALIDITY">
			<description>Specifies the validity of the key</description>
			<data-type>BIGINT</data-type>
			<max-size>19</max-size>
			<default-value>-1</default-value>
			<nullable>false</nullable>
		</column>
		<column name="SERVICE_TYPE">
			<description>Specifies the service for which the key is distributed 101 - SDP and 201 - MDM Admin App</description>
			<data-type>BIGINT</data-type>
			<default-value>101</default-value>
			<nullable>false</nullable>
		</column>
		<column name="STATUS">
			<description>Specifies the current status of the key</description>
			<data-type>CHAR</data-type>
			<max-size>20</max-size>
			<default-value>active</default-value>
			<nullable>false</nullable>
		</column>
		<column name="SCOPE">
			<description>Specifies the purpose of the key</description>
			<data-type>CHAR</data-type>
			<max-size>200</max-size>
			<default-value>-</default-value>
			<nullable>false</nullable>
		</column>
		<column name="CREATEDTIME">
			<description>The time in which the key was generated</description>
			<data-type>BIGINT</data-type>
			<max-size>19</max-size>
			<nullable>false</nullable>
		</column>
	</columns>
	<primary-key name="APIKeyDefinition_PK">
		<primary-key-column>LOGIN_ID</primary-key-column>
		<primary-key-column>SERVICE_TYPE</primary-key-column>
	</primary-key>
	<foreign-keys>
		<foreign-key name="APIKeyDefinition_FK1" reference-table-name="AaaLogin" isbidirectional="false">
			<fk-columns>
				<fk-column>
					<fk-local-column>LOGIN_ID</fk-local-column>
					<fk-reference-column>LOGIN_ID</fk-reference-column>
				</fk-column>
			</fk-columns>
			<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		</foreign-key>
	</foreign-keys>
</table>
<table name="APIKeyDetails">
	<description>Table to store the web services API keys for technicians based on Service</description>
	<columns>
		<column name="LOGIN_ID">
			<description>Login ID of the technician</description>
			<data-type>BIGINT</data-type>
			<nullable>false</nullable>
		</column>
		<column name="SERVICE_TYPE">
			<description>Specifies the service for which the key is distributed 101 - SDP and 201 - MDM Admin App</description>
			<data-type>BIGINT</data-type>
			<nullable>false</nullable>
		</column>
                <column name="APIKEY">
			<description>The key for the technician</description>
			<data-type>CHAR</data-type>
			<max-size>250</max-size>
			<nullable>false</nullable>
			<unique>false</unique>
		</column>
		<column name="VALIDITY">
			<description>Specifies the validity of the key</description>
			<data-type>BIGINT</data-type>
			<max-size>19</max-size>
			<default-value>-1</default-value>
			<nullable>false</nullable>
		</column>
		<column name="STATUS">
			<description>Specifies the current status of the key</description>
			<data-type>CHAR</data-type>
			<max-size>20</max-size>
			<default-value>active</default-value>
			<nullable>false</nullable>
		</column>
		<column name="SCOPE">
			<description>Specifies the purpose of the key</description>
			<data-type>CHAR</data-type>
			<max-size>200</max-size>
			<default-value>-</default-value>
			<nullable>false</nullable>
		</column>
		<column name="CREATEDTIME">
			<description>The time in which the key was generated</description>
			<data-type>BIGINT</data-type>
			<max-size>19</max-size>
			<nullable>false</nullable>
		</column>
	</columns>
	<primary-key name="APIKeyDetails_PK">
		<primary-key-column>LOGIN_ID</primary-key-column>
		<primary-key-column>SERVICE_TYPE</primary-key-column>
	</primary-key>
	<foreign-keys>
		<foreign-key name="APIKeyDetails_FK1" reference-table-name="AaaLogin" isbidirectional="false">
			<fk-columns>
				<fk-column>
					<fk-local-column>LOGIN_ID</fk-local-column>
					<fk-reference-column>LOGIN_ID</fk-reference-column>
				</fk-column>
			</fk-columns>
			<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
		</foreign-key>
	</foreign-keys>
</table>

<table name="MobileAppAPILoginExtn">
        <description><![CDATA[Contains Mobile App login user details]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>AaaLogin LoginID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="IOS_APP">
                <description>User login from IOS app. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ANDROID_APP">
                <description>User login from Android app. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MobileAppAPILoginExtn_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MobileAppAPILoginExtn_FK1" reference-table-name="AaaLogin" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOGIN_ID</fk-local-column>
                        <fk-reference-column>LOGIN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>


<table name="UserMgmtParams">
		<description>
		<![CDATA[
		This table will contain the two factor parameters. As the values would be in Key-Value format, this table structure captures the same. Based on the visibility we can revisit this table later.
		]]>
		</description>
		<columns>
			<column name="PARAMS_ID">
				<description>Unique id generated for each parameter. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
                  <generator-name>UserMgmtParams.PARAMS_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="PARAMS_NAME">
				<description> Key name of the parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAMS_VALUE">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="UserMgmtParams_PK">
			<primary-key-column>PARAMS_ID</primary-key-column>
		</primary-key>
		<indexes>
        	<index name="UserMgmtParams_IDX1">
            <index-column>PARAMS_NAME</index-column>
        	</index>
 		</indexes>
	</table>
    <table name="NotifyChangesToUser">
        <columns>
            <column name="NOTIFYCHANGESTOUSER_ID">
                <description>Unique Id for the notify changes To User. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>NotifyChangesToUser.NOTIFYCHANGESTOUSER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="LOGIN_ID">
                <description>its refer from AaaLogin table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
			<column name="FUNCTIONALITY">
				<description>A string value which holds the name of the functionality to notify the user.</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
                <unique>false</unique>
			</column>
		</columns>
		<primary-key name="NotifyChangesToUser_PK">
			<primary-key-column>NOTIFYCHANGESTOUSER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="NotifyChangesToUser_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOGIN_ID</fk-local-column>
                        <fk-reference-column>LOGIN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
	<!-- Table Entries For dcViewFilters-->
	<table name="DCViewFilterDetails">
		<description>
			<![CDATA[This table will hold the details of saved filters]]>
		</description>
		<columns>
			<column name="FILTER_ID">
				<description>Id of the Filter that is saved</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>DCViewFilterDetails.FILTER_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="FILTER_NAME">
				<description>Name of the saved filter</description>
				<data-type>CHAR</data-type>
				<max-size>150</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGIN_ID">
				<description>Id of the user who saved the filter</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCViewFilterDetails_PK">
			<primary-key-column>FILTER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="DCViewFilterDetails_FK" reference-table-name="AaaLogin">
				<fk-columns>
					<fk-column>
						<fk-local-column>LOGIN_ID</fk-local-column>
						<fk-reference-column>LOGIN_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="DCViewFilterMapping">
		<description>
			<![CDATA[This table will hold the relationship between Filter, Page and View]]>
		</description>
		<columns>
			<column name="FILTER_ID">
				<description>Id of the Filter that is saved</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PAGE_ID">
				<description>Id of the page in which filter appears</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="VIEW_ID">
				<description>Id of the view for which filter is saved</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCViewFilterMapping_PK">
			<primary-key-column>FILTER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="DCViewFilterMapping_FK" reference-table-name="DCViewFilterDetails">
				<fk-columns>
					<fk-column>
						<fk-local-column>FILTER_ID</fk-local-column>
						<fk-reference-column>FILTER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="DCViewFilterMapping_FK2" reference-table-name="DCUIPage">
				<fk-columns>
					<fk-column>
						<fk-local-column>PAGE_ID</fk-local-column>
						<fk-reference-column>PAGE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="DCViewFilterMapping_FK3" reference-table-name="ViewParams">
				<fk-columns>
					<fk-column>
						<fk-local-column>VIEW_ID</fk-local-column>
						<fk-reference-column>VIEW_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="DCViewFilterCriteria">
		<description>
			<![CDATA[This table will hold the relationship between Filter and criterias in the filter]]>
		</description>
		<columns>
			<column name="CRITERIA_COLUMN_ID">
				<description>Id of the criteria used in the filter</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="FILTER_ID">
				<description>Id of the Filter that is saved</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCViewFilterCriteria_PK">
			<primary-key-column>CRITERIA_COLUMN_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="DCViewFilterCriteria_FK" reference-table-name="DCViewFilterDetails">
				<fk-columns>
					<fk-column>
						<fk-local-column>FILTER_ID</fk-local-column>
						<fk-reference-column>FILTER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="DCViewFilterCriteria_FK2" reference-table-name="CriteriaColumnDetails">
				<fk-columns>
					<fk-column>
						<fk-local-column>CRITERIA_COLUMN_ID</fk-local-column>
						<fk-reference-column>CRITERIA_COLUMN_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="DCViewFilterColumnHandler">
		<description>
			<![CDATA[This table will hold the Special Handlers that has to be invoked while setting Criteria for the view]]>
		</description>
		<columns>
			<column name="COLUMN_ID">
				<description>Id of the Column for which Handler is to be invoked</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="Handler">
				<description>Name of Handler to be invoked for the view</description>
				<data-type>CHAR</data-type>
				<max-size>500</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCViewFilterColumnHandler_PK">
			<primary-key-column>COLUMN_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="DCViewFilterColumnHandler_FK" reference-table-name="CRColumns">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLUMN_ID</fk-local-column>
						<fk-reference-column>COLUMN_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="DCViewFilterJoinRel">
		<description>
			<![CDATA[This table will hold the Special Handlers that has to be invoked while setting Criteria for the view]]>
		</description>
		<columns>
			<column name="COLUMN_ID">
				<description>Id of the Column for which Join Relation is to looked up</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RELATION_ID">
				<description>Id of the Relation that has to be joined</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="JOIN_ORDER">
				<description>Order in which the relation has to be joined</description>
				<data-type>INTEGER</data-type>
				<max-size>2</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DCViewFilterJoinRel_PK">
			<primary-key-column>COLUMN_ID</primary-key-column>
			<primary-key-column>RELATION_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="DCViewFilterJoinRel_FK" reference-table-name="CRColumns">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLUMN_ID</fk-local-column>
						<fk-reference-column>COLUMN_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="DCViewFilterJoinRel_FK1" reference-table-name="CRJoinRelation">
				<fk-columns>
					<fk-column>
						<fk-local-column>RELATION_ID</fk-local-column>
						<fk-reference-column>RELATION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<!-- End Of Table Entries For dcViewFilters-->
        <table name="UserCustomGroupMapping">
            <description><![CDATA[This table shows user&CustomGroup relationship ]]>
            </description>
            <columns>
                <column name="LOGIN_ID">
                    <description>its refer from AaaLogin table</description>
                    <data-type>BIGINT</data-type>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="GROUP_RESOURCE_ID">
                    <description> its refer from CustomGroup</description>
                    <data-type>BIGINT</data-type>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
            </columns>
            <primary-key name="UserCustomGroupMapping_PK">
                <primary-key-column>LOGIN_ID</primary-key-column>
                <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
            </primary-key>
            <foreign-keys>
                <foreign-key reference-table-name="AaaLogin" name="UserCustomGroupMapping_FK1" isbidirectional="false">
                    <fk-columns>
                        <fk-column>
                            <fk-local-column>LOGIN_ID</fk-local-column>
                            <fk-reference-column>LOGIN_ID</fk-reference-column>
                        </fk-column>
                    </fk-columns>
                    <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                </foreign-key>
                <foreign-key reference-table-name="CustomGroup" name="UserCustomGroupMapping_FK2" isbidirectional="false">
                    <fk-columns>
                        <fk-column>
                            <fk-local-column>GROUP_RESOURCE_ID</fk-local-column>
                            <fk-reference-column>RESOURCE_ID</fk-reference-column>
                        </fk-column>
                    </fk-columns>
                    <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                </foreign-key>
            </foreign-keys>
        </table>
	<table name="AaaRoleEdition">
		<description>This table describes the various feature Roles and their mapping in the DC</description>
		<columns>
			<column name="ROLE_ID">
				<description>Its taken from AAARole</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="EDITION">
				<description>Its use to identify which type of Edition role applicable to</description>
				<data-type>CHAR</data-type>
				<max-size>2</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="VERSION">
				<description>Version - Used for back ward compatibility of restricting features </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="AaaRoleEdition_PK">
			<primary-key-column>ROLE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="AaaRoleEdition_FK1" reference-table-name="AaaRole" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>ROLE_ID</fk-local-column>
						<fk-reference-column>ROLE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<!-- Credential Manager Tables added-->
	<table name="Credential">
		<description>This table store the details of credential to be used across all modules</description>
		<columns>
			<column name="CREDENTIAL_ID">
				<description>Holds unique Id generated for Credential. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>Credential.CREDENTIAL_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="CREDENTIAL_NAME">
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CRD_USERNAME">
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CRD_PASSWORD">
				<data-type>SCHAR</data-type>
				<max-size>450</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CRD_ENC_TYPE">
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREDENTIAL_TYPE">
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CUSTOMER_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="REMARKS">
				<description>Description about the usage of credential</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LAST_MODIFIED_TIME">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ADDED_TIME">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CRD_STATUS">
				<description>Current status of the Credential 0 -> InActive 1 -> Active </description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="Credential_PK">
			<primary-key-column>CREDENTIAL_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="Credential_FK" reference-table-name="CustomerInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CUSTOMER_ID</fk-local-column>
						<fk-reference-column>CUSTOMER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ManagedDomainCredentialRel">
		<description>
			<![CDATA[
			This table contains the branch / resource members relationship.
			]]>
		</description>
		<columns>
			<column name="DOMAINRESOURCE_ID">
				<description>Domain Resource id.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREDENTIAL_ID">
				<description>Credential id. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_ROOT">
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="VALIDATION_STATUS">
				<description>Will contain the validation status.</description>
				<data-type>BOOLEAN</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ManagedDomainCredentialRel_PK">
			<primary-key-column>DOMAINRESOURCE_ID</primary-key-column><!--Ensures one to one mapping of domain credential-->
			<primary-key-column>CREDENTIAL_ID</primary-key-column><!--Ensures one to one mapping of domain credential-->
		</primary-key>
		<foreign-keys>
			<foreign-key name="ManagedDomainCredentialRel_DID_FK" reference-table-name="ManagedDomain" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>DOMAINRESOURCE_ID</fk-local-column>
						<fk-reference-column>RESOURCE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="ManagedDomainCredentialRel_CID_FK" reference-table-name="Credential" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CREDENTIAL_ID</fk-local-column>
						<fk-reference-column>CREDENTIAL_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="UserCredentialMapping">
		<description><![CDATA[This table shows user&CustomGroup relationship ]]>
		</description>
		<columns>
			<column name="USER_ID">
				<description>its refer from AaaLogin table</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CREDENTIAL_ID">
				<description> its refer from Credential</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="UserCredentialMapping_PK">
			<primary-key-column>USER_ID</primary-key-column>
			<primary-key-column>CREDENTIAL_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key reference-table-name="AaaUser" name="UserCredentialMapping_FK1" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_ID</fk-local-column>
						<fk-reference-column>USER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key reference-table-name="Credential" name="UserCredentialMapping_FK2" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CREDENTIAL_ID</fk-local-column>
						<fk-reference-column>CREDENTIAL_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
        <table name="MessageSettings">
            <description>
		 <![CDATA[ Table to store customer related message settings.
		 ]]>
            </description>
            <columns>
                <column name="MESSAGE_SETTINGS_ID">
                    <description>Unique ID for SETTINGS</description>
                    <data-type>BIGINT</data-type>
                    <nullable>false</nullable>
                    <uniquevalue-generation>
                        <generator-name>MessageSettings.MESSAGE_SETTINGS_ID</generator-name>
                    </uniquevalue-generation>
                </column>
                <column name="INFO_MSG_DISPLAY_COUNT">
                    <description>Number of times the info message has to be displayed </description>
                    <data-type>BIGINT</data-type>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
            </columns>
            <primary-key name="MessageSettings_PK">
                <primary-key-column>MESSAGE_SETTINGS_ID</primary-key-column>
            </primary-key>
        </table>

	<!-- Table for user summary display order mapping-instead of UserSummaryDisplayOrder-->
	<table name="HomePageSummaryDisplayOrder">
        <description>
			<![CDATA[
			This table will be have details about the order of the summary with respect to the user and customer.
		]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>Its taken from AAAUser</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUMMARY_ID">
                <description>Order of the summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_ORDER">
                <description>Order of the summary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Customer ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="HomePageSummaryDisplayOrder_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
            <primary-key-column>SUMMARY_ID</primary-key-column>
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="HomePageSummaryDisplayOrder_FK1" reference-table-name="AaaLogin" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOGIN_ID</fk-local-column>
                        <fk-reference-column>LOGIN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="HomePageSummaryDisplayOrder_FK2" reference-table-name="HomePageSummary" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUMMARY_ID</fk-local-column>
                        <fk-reference-column>SUMMARY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="HomePageSummaryDisplayOrder_FK3" reference-table-name="CustomerInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CUSTOMER_ID</fk-local-column>
                        <fk-reference-column>CUSTOMER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="NetworkClient">
            <description>
                    <![CDATA[
            This table contains the basic details of NetworkClient..
            WARNING: Population of Client Table should be only through XML.
            ]]>
            </description>
            <columns>
                    <column name="CLIENT_ID">
                            <description>Holds unique Id for each network client. </description>
                            <data-type>INTEGER</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="NAME">
                            <description>Name of the Network Client.</description>
                            <data-type>NCHAR</data-type>
                            <max-size>150</max-size>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
            </columns>
            <primary-key name="NetworkClient_PK">
                    <primary-key-column>CLIENT_ID</primary-key-column>
            </primary-key>
            <indexes>
                    <index name="NetworkClient_IDX1">
                            <index-column>NAME</index-column>
                    </index>
            </indexes>
    </table>
    <table name="DMDomain">
            <description>
                    <![CDATA[
            This table contains the basic details of Domain..
            ]]>
            </description>
            <columns>
                    <column name="DOMAIN_ID">
                            <description>Holds unique Id generated for each domain. </description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                            <uniquevalue-generation>
                                    <generator-name>DMDomain.DOMAIN_ID</generator-name>
                            </uniquevalue-generation>
                    </column>
                    <column name="NAME">
                            <description>Name of the Domain.</description>
                            <data-type>NCHAR</data-type>
                            <max-size>150</max-size>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="CLIENT_ID">
                            <description>Network client id, for the given domain </description>
                            <data-type>INTEGER</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="CUSTOMER_ID">
                            <description>Customer ID for which the domain is generated</description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
            </columns>
            <primary-key name="DMDomain_PK">
                    <primary-key-column>DOMAIN_ID</primary-key-column>
            </primary-key>
            <foreign-keys>
                    <foreign-key name="DMDomain_FK" reference-table-name="NetworkClient" isbidirectional="false">
                            <fk-columns>
                                    <fk-column>
                                            <fk-local-column>CLIENT_ID</fk-local-column>
                                            <fk-reference-column>CLIENT_ID</fk-reference-column>
                                    </fk-column>
                            </fk-columns>
                            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                    </foreign-key>
                    <foreign-key name="DMDomain_FK1" reference-table-name="CustomerInfo" isbidirectional="false">
                            <fk-columns>
                                    <fk-column>
                                            <fk-local-column>CUSTOMER_ID</fk-local-column>
                                            <fk-reference-column>CUSTOMER_ID</fk-reference-column>
                                    </fk-column>
                            </fk-columns>
                            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                    </foreign-key>
            </foreign-keys>
            <indexes>
                    <index name="DMDomain_IDX1">
                            <index-column>NAME</index-column>
                            <index-column>CLIENT_ID</index-column>
                            <index-column>CUSTOMER_ID</index-column>
                    </index>
            </indexes>
    </table>
    <table name="DMManagedDomain">
            <description>
                    <![CDATA[
            This table will contain the details of all managed domains.
            ]]>
            </description>
            <columns>
                    <column name="DOMAIN_ID">
                            <description>Holds unique Id of the DM managed domain. </description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="AD_DOMAIN_NAME">
                            <description>AD domain name for the domain. </description>
                            <data-type>NCHAR</data-type>
                            <max-size>100</max-size>
                            <default-value>--</default-value>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="DC_NAME">
                            <description>Given domain controller name for the domain. </description>
                            <data-type>NCHAR</data-type>
                            <max-size>100</max-size>
                            <default-value>--</default-value>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="IS_AD_DOMAIN">
                            <description>Whether the domain is Active Dir Domain or just a workgroup. </description>
                            <data-type>BOOLEAN</data-type>
                            <default-value>false</default-value>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="DNS_SUFFIX">
                            <description>DNS Suffix for the domain. </description>
                            <data-type>NCHAR</data-type>
                            <max-size>100</max-size>
                            <default-value>--</default-value>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
            </columns>
            <primary-key name="DMManagedDomain_PK">
                    <primary-key-column>DOMAIN_ID</primary-key-column>
            </primary-key>
            <foreign-keys>
                    <foreign-key name="DMManagedDomain_FK" reference-table-name="DMDomain" isbidirectional="false">
                            <fk-columns>
                                    <fk-column>
                                            <fk-local-column>DOMAIN_ID</fk-local-column>
                                            <fk-reference-column>DOMAIN_ID</fk-reference-column>
                                    </fk-column>
                            </fk-columns>
                            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                    </foreign-key>
            </foreign-keys>
    </table>
    <table name="DMManagedDomainCredentialRel">
            <description>
                    <![CDATA[
                    This table contains the domain / credential relationship.
                    ]]>
            </description>
            <columns>
                    <column name="DOMAIN_ID">
                            <description>Domain id.</description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="CREDENTIAL_ID">
                            <description>Credential id. </description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="IS_ROOT">
                            <data-type>INTEGER</data-type>
                            <default-value>0</default-value>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="VALIDATION_STATUS">
                            <description>Will contain the validation status.</description>
                            <data-type>BOOLEAN</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
            </columns>
            <primary-key name="DMManagedDomainCredentialRel_PK">
                    <primary-key-column>DOMAIN_ID</primary-key-column><!--Ensures one to one mapping of domain credential-->
                    <primary-key-column>CREDENTIAL_ID</primary-key-column><!--Ensures one to one mapping of domain credential-->
            </primary-key>
            <foreign-keys>
                    <foreign-key name="DMManagedDomainCredentialRel_DID_FK" reference-table-name="DMManagedDomain" isbidirectional="false">
                            <fk-columns>
                                    <fk-column>
                                            <fk-local-column>DOMAIN_ID</fk-local-column>
                                            <fk-reference-column>DOMAIN_ID</fk-reference-column>
                                    </fk-column>
                            </fk-columns>
                            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                    </foreign-key>
                    <foreign-key name="DMManagedDomainCredentialRel_CID_FK" reference-table-name="Credential" isbidirectional="false">
                            <fk-columns>
                                    <fk-column>
                                            <fk-local-column>CREDENTIAL_ID</fk-local-column>
                                            <fk-reference-column>CREDENTIAL_ID</fk-reference-column>
                                    </fk-column>
                            </fk-columns>
                            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                    </foreign-key>
            </foreign-keys>
    </table>

    <table name="DMMDRel">
            <description>
                    <![CDATA[
                    This table maintains the relationship between DMDOMAIN and MANAGEDDOMAIN system to facilitate easy migration later on.
                    Only Onpremise ADs and Workgroups rel must be maintained in this table.
                    ]]>
            </description>
            <columns>
                    <column name="DOMAIN_ID">
                            <description>Domain id.</description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="RESOURCE_ID">
                            <description>Resource id. </description>
                            <data-type>BIGINT</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                    </column>
                    <column name="CLIENT_ID">
                            <description>Network client id, for the given domain. Allowed values are 1 and 2 for Workgroup and Standalone On-Premise AD respectiely.</description>
                            <data-type>INTEGER</data-type>
                            <nullable>false</nullable>
                            <unique>false</unique>
                            <allowed-values>
                                <value>1</value>
                                <value>2</value>
                            </allowed-values>
                    </column>
            </columns>
            <primary-key name="DMMDRel_PK">
                    <primary-key-column>DOMAIN_ID</primary-key-column><!--Ensures one to one mapping of domain credential-->
                    <primary-key-column>RESOURCE_ID</primary-key-column><!--Ensures one to one mapping of domain credential-->
            </primary-key>
            <foreign-keys>
                    <foreign-key name="DMMDRel_DID_FK" reference-table-name="DMDomain" isbidirectional="false">
                            <fk-columns>
                                    <fk-column>
                                            <fk-local-column>DOMAIN_ID</fk-local-column>
                                            <fk-reference-column>DOMAIN_ID</fk-reference-column>
                                    </fk-column>
                            </fk-columns>
                            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                    </foreign-key>
                    <foreign-key name="DMMDRel_RID_FK" reference-table-name="ManagedDomain" isbidirectional="false">
                            <fk-columns>
                                    <fk-column>
                                            <fk-local-column>RESOURCE_ID</fk-local-column>
                                            <fk-reference-column>RESOURCE_ID</fk-reference-column>
                                    </fk-column>
                            </fk-columns>
                            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
                    </foreign-key>
            </foreign-keys>
    </table>

    <table name="AzureAppDetails">
        <description>
            <![CDATA[
            This table will contain details on the Azure App Details with which an Azure AD can be contacted.
            ]]>
        </description>
        <columns>
            <column name="APP_ID">
                <description>Unique auto generated identifier of Azure App details.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>AzureAppDetails.APP_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="AZURE_APP_CLIENT_ID">
                <description>Client ID is the unique identifier of our Azure App on Azure services.</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
            </column>
            <column name="CLIENT_SECRET">
                <description>Client secret is displayed only at the time of key generation for our Azure App, and is valid for a maximum of 2 years.</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="AzureAppDetails_PK">
            <primary-key-column>APP_ID</primary-key-column>
        </primary-key>
    </table>

	<table name="AzureTrackParams">
        <description>
            <![CDATA[
            This table will contain the parameters for Tracking, to track the usage for a few features
            ]]>
        </description>
        <columns>
            <column name="TRACK_PARAM_ID">
                <description>Unique id generated for each Tracking parameter. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>TrackParams.TRACK_PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PARAM_NAME">
                <description> Key name of the Tracking parameter. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARAM_VALUE">
                <description>Value for the Tracking parameter. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_UPDATED_TIME">
                <description>The last Updated time of the METracking parameter, which would suggest the usage of the feature. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AzureTrackParams_PK">
            <primary-key-column>TRACK_PARAM_ID</primary-key-column>
        </primary-key>
        <indexes>
            <index name="AzureTrackParams_IDX1">
                <index-column>PARAM_NAME</index-column>
            </index>
        </indexes>
    </table>

	<table name="TreeDataNodeHandler">
		<description>
			<![CDATA[
                This table maintains the details of Tree Data Handler. TREE_ID from 10000 to 11000 will be used by MDM.
            ]]>
		</description>
		<columns>
			<column name="TREE_ID">
				<description>Holds unique Id of the Tree.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="TREE_NAME">
				<description>Holds the name of the tree</description>
				<data-type>NCHAR</data-type>
				<max-size>5000</max-size>
				<nullable>true</nullable>
			</column>
			<column name="TREE_HANDLER">
				<description>The Class which handles the data requests</description>
				<data-type>NCHAR</data-type>
				<max-size>5000</max-size>
				<nullable>true</nullable>
			</column>
			<column name="TREE_LOGGER">
				<description>logger used by the tree data handler</description>
				<data-type>NCHAR</data-type>
				<max-size>5000</max-size>
				<nullable>true</nullable>
			</column>
		</columns>
		<primary-key name="TreeDataNodeHandler_PK">
			<primary-key-column>TREE_ID</primary-key-column>
		</primary-key>
	</table>

	<table name="ReportParams">
		<description>This table will contain the report parameters.</description>
		<columns>
			<column name="PARAM_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>ReportParams.PARAM_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="PARAM_NAME">
				<description> Key name of the report parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="PARAM_VALUE">
				<description>Value of the report parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ReportParams_PK">
			<primary-key-column>PARAM_ID</primary-key-column>
		</primary-key>
	</table>

	<table name="TinyUrl">
		<description>
			<![CDATA[
            This table will contain details related to a Tiny URL
            ]]>
		</description>
		<columns>
			<column name="TINY_URL_ID">
				<description>Holds Tiny URL Id specific to a device. </description>
				<data-type>BIGINT</data-type>
				<uniquevalue-generation>
					<generator-name>TinyUrl.TINY_URL_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="TINY_URL">
				<description>Holds unique tiny url for an extended url. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
			</column>
			<column name="QR_URL">
				<description>Holds unique QR url for an extended url. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
			</column>
		</columns>
		<primary-key name="TinyUrl_PK">
			<primary-key-column>TINY_URL_ID</primary-key-column>
		</primary-key>
	</table>

	<table name="SearchTrackParams">
		<description>
			<![CDATA[ This table will contain the parameters to track the usage for a Search features ]]>
		</description>
		<columns>
			<column name="SEARCH_TRACK_PARAM_ID">
				<description>Unique id generated for each Search Tracking parameter. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>SearchTrackParams.SEARCH_TRACK_PARAM_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="PARAM_NAME">
				<description> Key name of the Search Tracking parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAM_VALUE">
				<description>Value for the Search Tracking parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LAST_UPDATED_TIME">
				<description>The last Updated time of the Search Tracking parameter, which would suggest the usage of the feature. </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="SearchTrackParams_PK">
			<primary-key-column>SEARCH_TRACK_PARAM_ID</primary-key-column>
		</primary-key>
		<indexes>
			<index name="SearchTrackParams_IDX1">
				<index-column>PARAM_NAME</index-column>
			</index>
		</indexes>
	</table>

	<table name="RedisCredential">
		<description><![CDATA[
			This table can be used to confiure the server configuration details of associated applications
		]]></description>
		<columns>
			<column name="REDIS_SERVER_ID">
				<data-type>BIGINT</data-type>
				<max-size>200</max-size>
				<nullable>false</nullable>
				<unique>true</unique>
				<uniquevalue-generation>
					<generator-name>RedisCredential.REDIS_SERVER_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="REDIS_PASSWORD">
				<data-type>SCHAR</data-type>
				<max-size>450</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ENC_TYPE">
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="RedisCredential_PK">
			<primary-key-column>REDIS_SERVER_ID</primary-key-column>
		</primary-key>
	</table>


	<table name="RedisHealthParams">
		<description>
			<![CDATA[
		This table will contain the server parameters. As the values would be in Key-Value format, this table structure captures the same. Based on the visibility we can revisit this table later.
		]]>
		</description>
		<columns>
			<column name="REDIS_HEALTH_PARAM_ID">
				<description>Unique id generated for each parameter. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>RedisHealthParams.REDIS_HEALTH_PARAM_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="RPARAM_NAME">
				<description> Key name of the parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="RPARAM_VALUE">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>2500</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="RedisHealthParams_PK">
			<primary-key-column>REDIS_HEALTH_PARAM_ID</primary-key-column>
		</primary-key>
	</table>

	<table name="DMModule">
		<description>
			<![CDATA[
			This table contains the Modules available and its state.
			]]>
		</description>
		<columns>
			<column name="DMMODULE_ID">
				<description>Unique Id for each Module.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>DMModule.DMMODULE_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="MODULE_NAME">
				<description>Name of the Module.</description>
				<data-type>CHAR</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_ENABLED">
				<description>Whether the Module is enabled or not.</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="DMModule_PK">
			<primary-key-column>DMMODULE_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="ConsentGroupTable">
		<description>
			<![CDATA[
			This table contains the group name of the consents
			]]>
		</description>
		<columns>
			<column name="CONSENT_GROUP_ID">
				<description>Unique Id for each consent.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="CONSENT_GROUP_NAME">
				<description>Name of the consent.</description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ConsentGroupTable_PK">
			<primary-key-column>CONSENT_GROUP_ID</primary-key-column>
		</primary-key>
	</table>
	<table name="Consent">
		<description>
			<![CDATA[
			This table contains consents list and its type
			]]>
		</description>
		<columns>
			<column name="CONSENT_ID">
				<description>Unique Id for each consent.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="CONSENT_NAME">
				<description>Name of the consent.</description>
				<data-type>CHAR</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONSENT_DESCRIPTION">
				<description>Detailed consent</description>
				<data-type>CHAR</data-type>
				<max-size>500</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONSENT_CATEGORY">
				<description>Type of the consent. 1.common consent, 2. user-specific consent 3. optional consent
				</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONSENT_GROUP_ID">
				<description>Unique Id for each consent group.</description>
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
			</column>
		</columns>
		<primary-key name="Consent_PK">
			<primary-key-column>CONSENT_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="Consent_FK" reference-table-name="ConsentGroupTable" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONSENT_GROUP_ID</fk-local-column>
						<fk-reference-column>CONSENT_GROUP_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="SecurityParams">
		<description>
			<![CDATA[
		This table will contain the security parameters. As the values would be in Key-Value format, this table structure captures the same. Based on the visibility we can revisit this table later.
		]]>
		</description>
		<columns>
			<column name="SECURITY_PARAM_ID">
				<description>Unique id generated for each parameter. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>SecurityParams.SECURITY_PARAM_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="PARAM_NAME">
				<description> Key name of the parameter. </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PARAM_VALUE">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="SecurityParams_PK">
			<primary-key-column>SECURITY_PARAM_ID</primary-key-column>
		</primary-key>
		<indexes>
			<index name="SecurityParams_IDX1">
				<index-column>PARAM_NAME</index-column>
			</index>
		</indexes>
	</table>
	<table name="ConsentStatus">
		<description>
			<![CDATA[
			This table contains the status of the consents.
			]]>
		</description>
		<columns>
			<column name="CONSENT_STATUS_ID">
				<description>Unique Id for each status of the consents.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>ConsentStatus.CONSENT_STATUS_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="USER_ID">
				<description>status last modified user id</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STATUS">
				<description>Whether the consent is provided or denied. 1. Provided 2. Denied</description>
				<data-type>Integer</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONSENT_ID">
				<description>Unique Id for each consent.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>

			<column name="LAST_MODIFIED_TIME">
				<description>The time at which the consent is added/modified.</description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ConsentStatus_PK">
			<primary-key-column>CONSENT_STATUS_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ConsentStatus_FK" reference-table-name="Consent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONSENT_ID</fk-local-column>
						<fk-reference-column>CONSENT_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>

			<foreign-key name="ConsentStatus_FK1" reference-table-name="AaaUser" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_ID</fk-local-column>
						<fk-reference-column>USER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ConsentRememberStatus">
		<description>
			<![CDATA[
			This table contains the status of the user specific consents remember my choice. This table will have have only the entries who are enabled the remember my choice option.
			]]>
		</description>
		<columns>
			<column name="REMEMBER_STATUS_ID">
				<description>Unique Id for each status of the consents.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>ConsentRememberStatus.REMEMBER_STATUS_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="USER_ID">
				<description>status last modified user id</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONSENT_ID">
				<description>Unique Id for each consent.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LAST_MODIFIED_TIME">
				<description>The time at which the remember status is added/modified.</description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ConsentRememberStatus_PK">
			<primary-key-column>REMEMBER_STATUS_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ConsentRememberStatus_FK" reference-table-name="Consent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONSENT_ID</fk-local-column>
						<fk-reference-column>CONSENT_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="ConsentRememberStatus_FK1" reference-table-name="AaaUser" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_ID</fk-local-column>
						<fk-reference-column>USER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="EventLogAndConsentsRel">
		<description>This table holds data about the consent and eventlog table relations.</description>
		<columns>
			<column name="CONSENT_ID">
				<description>Unique Id for each consent.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="EVENT_LOG_ID">
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
		</columns>
		<primary-key name="EventLogAndConsentsRel_PK">
			<primary-key-column>EVENT_LOG_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="EventLogAndConsentsRel_FK" reference-table-name="EventLog" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>EVENT_LOG_ID</fk-local-column>
						<fk-reference-column>EVENT_LOG_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="EventModuleSubCategory_FK1" reference-table-name="Consent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONSENT_ID</fk-local-column>
						<fk-reference-column>CONSENT_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ConsentActionLogger">
		<description>
			<![CDATA[
			This table contains the consent relevant history
			]]>
		</description>
		<columns>
			<column name="ACTION_LOGGER_ID">
				<description>Unique Id for each log</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>PrivacyActionLogger.ACTION_LOGGER_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="LAST_MODIFIED_TIME">
				<description>status last modified time</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="USER_ID">
				<description>status last modified user id</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="STATUS">
				<description>Whether the consent is approved or denied. 1. approved 2. denied</description>
				<data-type>Integer</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CONSENT_ID">
				<description>Unique Id for each consent.</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_REMEMBER_STATUS">
				<description>Is inserted status is remember status</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>TRUE</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="PrivacyActionLogger_PK">
			<primary-key-column>ACTION_LOGGER_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="PrivacyActionLogger_FK" reference-table-name="Consent" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CONSENT_ID</fk-local-column>
						<fk-reference-column>CONSENT_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="PublishedReportDetails">
		<description>
			<![CDATA[
			This table contains the Modules available and its state.
			]]>
		</description>
		<columns>
			<column name="REPORT_ID">
				<description>Unique Id for each report.</description>
				<data-type>CHAR</data-type>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="REPORT_PATH">
				<description>Report file path.</description>
				<data-type>CHAR</data-type>
				<max-size>500</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="GENERATED_TIME">
				<description>Report creation time</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="SCHEDULE_BACKUP_STATUS_ID">
				<description>schedule backup status id</description>
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
			</column>
		</columns>
		<primary-key name="PublishedExportDetails_PK">
			<primary-key-column>REPORT_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ScheduleBackupDetails_FK1" reference-table-name="ScheduleBackupStatus" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>SCHEDULE_BACKUP_STATUS_ID</fk-local-column>
						<fk-reference-column>SCHEDULE_BACKUP_STATUS_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

    <table name="UserLevelRedactType">
        <description>
            <![CDATA[
			This table contains exported report history
			]]>
        </description>
        <columns>
            <column name="REDACT_USER_LEVEL_ID">
                <description>Unique Id for each log</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>UserLevelRedactType.REDACT_USER_LEVEL_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="USER_ID">
                <description>user id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="REDACT_LEVEL">
                <description>redact level</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="UserLevelRedactType_PK">
            <primary-key-column>REDACT_USER_LEVEL_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaUser" name="UserLevelRedactType_FK1" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_ID</fk-local-column>
                        <fk-reference-column>USER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ReportExportAudit">
        <description>
            <![CDATA[
			This table contains exported report history
			]]>
        </description>
        <columns>
            <column name="REPORT_AUDIT_ID">
                <description>Unique Id for each log</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>ReportAudit.REPORT_AUDIT_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="EXPORTED_TIME">
                <description>REPORT EXPORTED TIME </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VIEW_NAME">
                <description>Exported report's view name</description>
                <data-type>CHAR</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SELECTED_COLUMNS">
                <description>selected columns to export view</description>
                <data-type>CHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXPORT_TYPE">
                <description>Type of the exported report. 1. PDF 2. XLS 3. CSV</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_ID">
                <description>exported user id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ReportAudit_PK">
            <primary-key-column>REPORT_AUDIT_ID</primary-key-column>
        </primary-key>
    </table>

	<table name="SRToFilterRel">
		<description>
			<![CDATA[
	            This table contains the relation between Schedule Report Task and Filter Details.
	            ]]>
		</description>
		<columns>
			<column name="SCHEDULE_REP_ID">
				<description>ID for each Schedule report </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="FILTER_ID">
				<description>Filter ID for the given TASK</description>
				<data-type>BIGINT</data-type>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="SRToFilterRel_PK">
			<primary-key-column>SCHEDULE_REP_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="SRToFilterRel_FK1" reference-table-name="ScheduleRepToReportRel" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>SCHEDULE_REP_ID</fk-local-column>
						<fk-reference-column>SCHEDULE_REP_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="SRToFilterRel_FK2" reference-table-name="DCViewFilterDetails" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>FILTER_ID</fk-local-column>
						<fk-reference-column>FILTER_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>


	<table name="ReportBIQuery">
		<description>
			<![CDATA[
			This table contains query to get Denormalised data from all modules.
			]]>
		</description>
		<columns>
			<column name="TABLE_ID">
				<description>Unique ID for each Denormalised Reports</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>ReportBIQuery.TABLE_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="MODULE_ID">
				<description>Respective Query's Module Name</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="TABLE_NAME">
				<description>Table Name for respective Denormalised DATA</description>
				<data-type>CHAR</data-type>
				<max-size>120</max-size>
				<nullable>false</nullable>
			</column>
			<column name="QUERY_ID">
				<description>SelectQuery ID for the denormalised data</description>
				<data-type>BIGINT</data-type>
			</column>
			<column name="API_VERSION">
				<description>This column gives the table's corresponding API Version</description>
				<data-type>CHAR</data-type>
			</column>
			<column name="IS_IN_USE">
				<description>This is used to specify whether this table is in use or deprecated</description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
			</column>
			<column name="MODIFIED_SYNC_AVAILABLE">
				<description>This column tells whether the table can be Diff Synced or not </description>
				<data-type>BOOLEAN</data-type>
				<default-value>true</default-value>
			</column>
			<column name="SET_DISTINCT">
				<description>This column tells whether the table returns distinct values </description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
			</column>
			<column name="TRANSFORMER_CLASS">
				<description>This Optional column gives out the class which transforms the SelectQuery Adding CASE , Concat (Optional)</description>
				<data-type>CHAR</data-type>
				<max-size>500</max-size>
				<nullable>true</nullable>
			</column>

		</columns>
		<primary-key name="ReportBIQuery_PK">
			<primary-key-column>TABLE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key reference-table-name="SelectQuery" name="ReportBIQuery_FK1" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>QUERY_ID</fk-local-column>
						<fk-reference-column>QUERYID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key reference-table-name="DCUserModule" name="ReportBIQuery_FK2" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>MODULE_ID</fk-local-column>
						<fk-reference-column>MODULE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ReportBITableColumn">
		<description>
			<![CDATA[
			This table contains Columns for Primary Column, User Resource, Modified Time for Tables
			]]>
		</description>
		<columns>
			<column name="TABLE_ID">
				<description>DeNormalised Table ID</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="COLUMN_ID">
				<description>Column ID</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="TYPE">
				<description>Type of Column 1) for UserResource Column 2) for Modified Time Column 3) Primary Column 4)Transformation Column  5) I18N Column 6) Class Transformation</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
		</columns>
		<primary-key name="ReportBITableColumn_PK">
			<primary-key-column>TABLE_ID</primary-key-column>
			<primary-key-column>COLUMN_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key reference-table-name="ReportBIQuery" name="ReportBITableColumn_FK1" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>TABLE_ID</fk-local-column>
						<fk-reference-column>TABLE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key reference-table-name="CRColumns" name="ReportBITableColumn_FK2" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COLUMN_ID</fk-local-column>
						<fk-reference-column>COLUMN_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
	<table name="ReportBITableAssociation">
		<description>
			<![CDATA[
			This table contains Association for Denormalised Table's
			]]>
		</description>
		<columns>
			<column name="CHILD_TABLE_ID">
				<description>Child Table Primary Table ID</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="PARENT_TABLE_ID">
				<description>Parent Table Primary Table ID</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="CHILD_COLUMN_ID">
				<description>Child Table Primary Column Name</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="PARENT_COLUMN_ID">
				<description>Parent Table Primary Column Name</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
		</columns>
		<primary-key name="ReportBITableAssociation_PK">
			<primary-key-column>CHILD_TABLE_ID</primary-key-column>
			<primary-key-column>PARENT_TABLE_ID</primary-key-column>
			<primary-key-column>CHILD_COLUMN_ID</primary-key-column>
			<primary-key-column>PARENT_COLUMN_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key reference-table-name="ReportBIQuery" name="ReportBITableAssociation_FK1" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CHILD_TABLE_ID</fk-local-column>
						<fk-reference-column>TABLE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key reference-table-name="ReportBIQuery" name="ReportBITableAssociation_FK2" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>PARENT_TABLE_ID</fk-local-column>
						<fk-reference-column>TABLE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key reference-table-name="CRColumns" name="ReportBITableAssociation_FK3" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CHILD_COLUMN_ID</fk-local-column>
						<fk-reference-column>COLUMN_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key reference-table-name="CRColumns" name="ReportBITableAssociation_FK4" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>PARENT_COLUMN_ID</fk-local-column>
						<fk-reference-column>COLUMN_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

	<table name="RedirectUrl">
		<description>
			<![CDATA[
			This table contains Domain specific URL redirection informations
			]]>
		</description>
		<columns>
			<column name="RedirectUrl_ID">
				<description>Unique Id</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>RedirectUrl.RedirectUrl_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="SUPPORTED_LANGUAGE">
				<description>Language of the Locale</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SUPPORTED_COUNTRY">
				<description>Country of the Locale</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SUPPORTED_VARIANT">
				<description>Variant of the Locale</description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>

			<column name="IDENDITY_KEY">
				<description>Key used to change/replace the URL</description>
				<data-type>CHAR</data-type>
				<max-size>2000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>

			<column name="SUPPORTED_URL">
				<description>Product Domain URL</description>
				<data-type>CHAR</data-type>
				<max-size>2000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="RedirectUrl_PK">
			<primary-key-column>RedirectUrl_ID</primary-key-column>
		</primary-key>
	</table>
      
	<table name="ExportSettings">
		<description>
			<![CDATA[
			This table contains export settings redact level data.
			]]>
		</description>
		<columns>
			<column name="EXPORT_SETTING_ID">
				<description>Unique Id to the type</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>ExportSettings.EXPORT_SETTING_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="REDACT_SETTING_NAME">
				<description>name of the applied setting</description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="REDACT_TYPE">
				<description>enabled redact type. 0 - default, 1 - mask, 2 - HIDE, 3 - NONE, 4 - LET THE USER DECIDE</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
			</column>
			<column name="DEFAULT_REDACT_TYPE">
				<description>default redact type.1 - mask, 2 - HIDE, 3 - NONE, 4 - LET THE USER DECIDE</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
			</column>
				<column name="SELECTED_REDACT_TYPES">
				<description>Variant of the Locale</description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<nullable>true</nullable>
			</column>
			<column name="EXPORT_PASSWORD_TYPE">
				<description>1.Mandatory, 0. Optional</description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
			</column>
			<column name="DEFAULT_EXPORT_PASSWORD">
				<description>Default password for this settings</description>
				<data-type>CHAR</data-type>
				<max-size>100</max-size>
				<nullable>true</nullable>
			</column>
		</columns>
		<primary-key name="ExportSettings_PK">
			<primary-key-column>EXPORT_SETTING_ID</primary-key-column>
		</primary-key>
	</table>
</data-dictionary>

Youez - 2016 - github.com/yon3zu
LinuXploit