�����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.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="DesktopCentral">

    <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 CustomScriptConfigOS 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="SubConfiguration">
        <description>
            <![CDATA[
			For each configuration type, there would be two kinds of configuration may exist. For example Custom Script configuration may exist for i) User as well as ii) Computer. In these cases we may need a unique representation for both kinds of configuration. Here we generate unique id for each configuration including the derived configurations based on User, Computer etc.
	</br> </br>
		]]>
        </description>
        <columns>
            <column name="SUB_CONFIG_ID">
                <description>A unique Id for each sub configuration.  </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_ID">
                <description>Id of the configuration as present in the 'Configuration' table for which this sub configuration belongs. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_TYPE">
                <description>Type of the configuration, whether user or computer. </description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SubConfiguration_PK">
            <primary-key-column>SUB_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SubConfiguration_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>
    </table>
    <table name="ConfigFileName">
        <description>
            <![CDATA[
		This table will hold the details of configuration and corresponding file name mappings.
		]]>
        </description>
        <columns>
            <column name="CONFIG_ID">
                <description>A unique id of the configuration. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_FILENAME">
                <description>Name of the configuration. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigFileName_PK">
            <primary-key-column>CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigFileName_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>
    </table>
    <table name="ConfigKey">
        <description>
            <![CDATA[
			For each configuration, there would be one or more options will be shown in the UI to configure. For example, in case of 'Printer Configuration' the options would be 'Printer Type', 'Printer IP', etc. This table captures all the keys of each configuration and each key is referred by a unique id. This unique id will be assigned statically through an XML and the same id will be used in the code while adding the data for these keys at the run time (through some Constants defined).
	</br> </br>
	There can be 'n' CONFIG_KEY_ID's belong to one CONFIG_ID. But the same CONFIG_KEY_ID cannot belong to different CONFIG_ID's. For example, 'Printer Type' can belong to only 'Printer Configuration' and it cannot be part of any other configurations. There might be another 'Printer Type 2' may belong to some other configuration, but the same 'Printer Type' (same instance) cannot belong to multiple configurations. This is a kind of parent child relationship. The relation between CONFIG_ID and the CONFIG_KEY_ID are captured in this same table as the relationship is well fixed.
		]]>
        </description>
        <columns>
            <column name="CONFIG_KEY_ID">
                <description>A unique Id for each Configuration Key.  </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_ID">
                <description>Id of the Configuration as present in the 'Configuration' table for which this configuration key belongs. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LABEL">
                <description>Label of the configuration key. Eg: "Search Page" for "Internet Settings" configuration. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="DATA_TYPE">
                <description>The data type of the value to be assigned for this key. A mapping between the numeric representation and the actual datatype will be maintained separately and same would be used in the code. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigKeyDefn_PK">
            <primary-key-column>CONFIG_KEY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigKeyRel_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>
    </table>

    <table name="RegistryKey">
        <description>
            <![CDATA[
		This table is an extension of previous table 'ConfigKey'. As the configurations are classified into 'Registry based configurations' and 'Non Registry based configurations', for the former one there are few more predefined data are available to store as factory settings. Those values are relevant to the windows registry keys. So the keys which are pertain to windows registry will have entries in this table in addition to the entries in the table 'ConfigKey'.
	</br> </br>
	In Windows registry we have the following fields in the data structure.
	</br> </br>
	Header Key - kind of root name under which this configuration details are stored.
	</br> </br>
	Sub Key - path from the root till the key (leaf node).
	</br> </br>
	Value Name - name of the Key for which the value to be stored.
	</br> </br>
	Value Data - the value for the 'Value Name' ie, Key.
	</br> </br>
	Data Type - data type of the value.
	</br> </br>
	As almost all the Keys are known for whatever configurations we support through our tool. So we can populate those keys in this table as factory settings. Only the 'Value Data' will be given by the user at the run time which will be stored in a different table and mapped with these Keys defined here.
	</br> </br>
	Also the Registry Key differs for different OS group like Windows 2000 and Windows NT. And also within the same group, the keys are different for 'User' and 'Computer'. (If the configuration is applied for 'User', then it will be available only to the user whereas if the configuration is applied for the 'Computer', it will be available to all the users exist in the computer.) This kind of existence of variety of registry keys results in modeling the data in a fine grained level to capture all the use cases involved. To capture this, two more columns have been included namely OS_NAME and CATEGORY.
	</br> </br>
	This table is the base table for all the registry related sub tables, ie., all registry keys will have an entry in this table and have a foreign key relationship. The above said data structure is captured in the sub tables appropriately.
	</br> </br>
	As there would be more than one registry key exist for a single configuration key (For example, 'Search Page' of IE configuration will have 4 different registry keys for different OS and User/Computer category), a separate Id will be assigned for each registry key and mapped with the CONFIG_KEY_ID. As the relation is similar to parent child relation, it is being captured in the same table.
		]]>
        </description>
        <columns>
            <column name="REG_KEY_ID">
                <description>Unique id for the Registry Key.  </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_KEY_ID">
                <description>Unique id for the Configuration Key.  </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HEADER_KEY">
                <description>Header name of the Registry. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_NAME">
                <description>Name of the OS for which this key is defined. The OS names can be like Win2K, WinNT, etc. </description>
                <data-type>NCHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CATEGORY">
                <description>Category of the key - User/Computer </description>
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RegistryKey_PK">
            <primary-key-column>REG_KEY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RegistryKey_FK" reference-table-name="ConfigKey" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_KEY_ID</fk-local-column>
                        <fk-reference-column>CONFIG_KEY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="RegistrySubKey">
        <description>
            <![CDATA[
		This table captures the sub key of the registry key. This is an extension of RegistryKey table.
		]]>
        </description>
        <columns>
            <column name="REG_KEY_ID">
                <description> Unique Id of the Registry Key. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUB_KEY">
                <description>Sub key of the registry which captures the path from the header till the key name. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RegistrySubKey_PK">
            <primary-key-column>REG_KEY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RegistrySubKey_FK" reference-table-name="RegistryKey" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REG_KEY_ID</fk-local-column>
                        <fk-reference-column>REG_KEY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="RegistryKeyName">
        <description>
            <![CDATA[
		This table captures the key name of the registry key. This is an extension of RegistrySubKey table.
		]]>
        </description>
        <columns>
            <column name="REG_KEY_ID">
                <description>Unique Id of the Registry Key. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="KEY_NAME">
                <description>Name of the registry Key.  </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RegistryKeyName_PK">
            <primary-key-column>REG_KEY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RegistryKeyName_FK" reference-table-name="RegistrySubKey" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REG_KEY_ID</fk-local-column>
                        <fk-reference-column>REG_KEY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
	<table name="RegistryKeyData">
		<description>
			<![CDATA[
		This table captures the key name of the registry key. This is an extension of RegistrySubKey table.
		]]>
		</description>
		<columns>
			<column name="REG_KEY_ID">
				<description>Unique Id of the Registry Key. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="KEY_DATA">
				<description>Data for the key name.  </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="RegistryKeyName_PK">
			<primary-key-column>REG_KEY_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="RegistryKeyName_FK" reference-table-name="RegistrySubKey" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>REG_KEY_ID</fk-local-column>
						<fk-reference-column>REG_KEY_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
    <table name="ConfigurationScope">
        <description>
            <![CDATA[
		This table will hold some parameters related to the places in which the configuration will be shown/hidden.
		]]>
        </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="SHOW_IN_STD_EDITION">
                <description>Whether this configuration should be shown in the STD Edition. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_IN_PROF_EDITION">
                <description>Whether this configuration should be shown in the PROF Edition. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_IN_COLLECTION">
                <description>Whether this configuration should be shown in the collection. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_ENABLED">
                <description>Whether this configuration should be shown in the UI. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigurationScope_PK">
            <primary-key-column>CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigurationScope_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>
    </table>
    <table name="SystemToolConfig">
        <description>
            <![CDATA[
		This table will hold the necessary parameters for each system tool configuration.
		]]>
        </description>
        <columns>
            <column name="CONFIG_ID">
                <description>Unique id of the system tool configuration. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPLICATION_PATH">
                <description>Path of the tool executable. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SYSTEM_TOOL_TYPE">
                <description>Type of the system tool. Possible values are PREDEFINED or USERDEFINED </description>
                <data-type>CHAR</data-type>
                <max-size>15</max-size>
                <default-value>PREDEFINED</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SystemToolConfig_PK">
            <primary-key-column>CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SystemToolConfig_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>
    </table>
    <table name="QuickNote">
        <description>
            <![CDATA[
		This table will hold the content of quick notes to be shown on the application.
		]]>
        </description>
        <columns>
            <column name="QUICK_NOTE_ID">
                <description>Unique id of the quick note. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUICK_NOTE">
                <description>The quick note content to be shown. </description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PAGE_NAME">
                <description>The name of the page on which this quick note to be shown. </description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="QuickNote_PK">
            <primary-key-column>QUICK_NOTE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SecPolicyCategory">
        <description>
            <![CDATA[
		This table captures various category of predefined security policies.
		]]>
        </description>
        <columns>
            <column name="CATEGORY_ID">
                <description>Unique Id for each policy category. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <!--<uniquevalue-generation>
                    <generator-name>SecPolicyCategory.CATEGORY_ID</generator-name>
                </uniquevalue-generation>-->
                <!--This uvh is removed as this is static data-->
            </column>
            <column name="CATEGORY_LABEL">
                <description>The label of the category. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CATEGORY_TYPE">
                <description>The type of the category like USER or COMPUTER. </description>
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description of the category.</description>
                <data-type>NCHAR</data-type>
                <max-size>300</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CATEGORY_TITLE">
                <description>Category title visible in configuration.</description>
                <data-type>NCHAR</data-type>
                <max-size>300</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SecPolicyCategory_PK">
            <primary-key-column>CATEGORY_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SecurityPolicy">
        <description>
            <![CDATA[
		This table captures the predefined security policies.
		]]>
        </description>
        <columns>
            <column name="POLICY_ID">
                <description>Unique Id for the  policy. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <!--<uniquevalue-generation>
                    <generator-name>SecurityPolicy.POLICY_ID</generator-name>
                </uniquevalue-generation>-->
                <!--This uvh is removed as this is static data-->
            </column>
            <column name="LABEL">
                <description>The label of the policy. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SECURITY_SETTING">
                <description>Security of the policy (Enable/Disable, etc). </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description of the policy.</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VALIDITY_INFO">
                <description>Info to be shown to the user to provide valid input.</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CATEGORY_ID">
                <description>Category in which the policy comes under.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SecurityPolicy_PK">
            <primary-key-column>POLICY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SecurityPolicy_FK" reference-table-name="SecPolicyCategory" 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="INFSection">
        <description>
            <![CDATA[
		This table will be used to store the section names present in windows INF format files. Currently this is done for printer configuration.
		]]>
        </description>
        <columns>
            <column name="SECTION_ID">
                <description>Unique Id for the section. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>INFSection.SECTION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SECTION_NAME">
                <description>The name of the INF section. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="INFSection_PK">
            <primary-key-column>SECTION_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="INFSectionEntry">
        <description>
            <![CDATA[
		This table will be used to store the section entries present in windows INF format files. Currently this is done for printer configuration.
		]]>
        </description>
        <columns>
            <column name="SECTION_ENTRY_ID">
                <description>Unique Id for the section entry. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>INFSectionEntry.SECTION_ENTRY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SECTION_ENTRY_NAME">
                <description>The name of the INF section entry. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SECTION_ID">
                <description>Id of the section under which this entry present. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="INFSectionEntry_PK">
            <primary-key-column>SECTION_ENTRY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="INFSectionEntry_FK" reference-table-name="INFSection" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SECTION_ID</fk-local-column>
                        <fk-reference-column>SECTION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DynamicVariable">
        <description>
            <![CDATA[
			This table will contain all the global variables which will be used in the configurations and resolved on the agent side while applying the configurations.
			]]>
        </description>
        <columns>
            <column name="VARIABLE_ID">
                <description>Unique Id for each variable. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DynamicVariable.VARIABLE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="VARIABLE_DISP_NAME">
                <description>The Display name of the variable. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="VARIABLE_NAME">
                <description>The name of the variable. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="CSIDL_VALUE">
                <description>CSIDL_VALUE for that Dynamic variable</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TOKEN_TYPE">
                <description>Token Type for that variable.It denotes User Token or Default User Token</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USAGE_SCOPE">
                <description>It Denotes this variable applies to which Configuration (Computer or user or Both)</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CATEGORY">
                <description>Category of the variable. </description>
                <data-type>CHAR</data-type>
                <max-size>80</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHORT_DESC">
                <description>Short description of the variable.</description>
                <data-type>NCHAR</data-type>
                <max-size>150</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DETAILED_DESC">
                <description>Detailed explanation for the variable. </description>
                <data-type>NCHAR</data-type>
                <max-size>350</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXAMPLE">
                <description>An example for the variable. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DynamicVariable_PK">
            <primary-key-column>VARIABLE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="GlobalVariable">
        <description>
            <![CDATA[
		This table will contain all the global variables which will be used in the configurations and resolved on the agent side while applying the configurations.
		]]>
        </description>
        <columns>
            <column name="VARIABLE_ID">
                <description>Unique Id for each variable. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VARIABLE_NAME">
                <description>The name of the variable. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description of the variable.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXPLANATION">
                <description>Explanation for the variable. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXAMPLE">
                <description>An example for the variable. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CATEGORY">
                <description>Category of the variable. </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="GlobalVariable_PK">
            <primary-key-column>VARIABLE_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="ViewParamsExtn">
        <description>
            <![CDATA[
		This table contains PDFFile name and viewid. It is only used for 'those View title contains special character in ViewParamas Table
		]]>
        </description>
        <columns>
            <column name="VIEW_ID">
                <description>A unique id of the view. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PDF_FILE_NAME">
                <description>Name of the PDFFile </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ViewParamsExtn_PK">
            <primary-key-column>VIEW_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ViewParamsExtn_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="ReportsToEmailTemp">
        <description>
            <![CDATA[
		Reports to be send an email. It is temporary table to store the ViewID
		]]>
        </description>
        <columns>
            <column name="VIEW_ID">
                <description>A unique id of the view. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ReportsToEmailTemp_PK">
            <primary-key-column>VIEW_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ReportsToEmailTemp_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="ReportsToEmail">
        <description>
            <![CDATA[
		Reports to be send an email.
		This table is used to store viewid.
		]]>
        </description>
        <columns>
            <column name="VIEW_ID">
                <description>A unique id of the view. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ReportsToEmail_PK">
            <primary-key-column>VIEW_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ReportsToEmail_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="ReportsToEmailDetails">
        <description>
            <![CDATA[
		This table will hold the details of Email Addresses,Subject of email and Description.
		]]>
        </description>
        <columns>
            <column name="TOADDRESSES">
                <description>Email Addresses </description>
                <data-type>NCHAR</data-type>
                <max-size>400</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FROMADDRESS">
                <description>Email Addresses </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUBJECT">
                <description>Subject of the Email </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCDETAIL">
                <description>descript </description>
                <data-type>NCHAR</data-type>
                <max-size>300</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ReportsToEmailDetails_PK">
            <primary-key-column>SUBJECT</primary-key-column>
        </primary-key>
    </table>
    <table name="ViewSummaryParams">
        <description>
            <![CDATA[
		This table will hold the necessary queries and related stuff for some of the views which involves native queries.
		]]>
        </description>
        <columns>
            <column name="VIEW_ID">
                <description>Unique id of each view. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COUNT_QUERY">
                <description>select query text to get count for each view. </description>
                <data-type>CHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>

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

        <foreign-keys>
            <foreign-key name="ViewSummaryParams_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="ReportDetailsCategory">
        <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>200</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>NCHAR</data-type>
                <max-size>2000</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>CHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ReportDetailsCategory_PK">
            <primary-key-column>CATEGORY_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="ReportDetailsSubCategory">
        <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="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>
            <column name="IMAGE_NAME">
                <description>The image to be used for the sub category. </description>
                <data-type>CHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ReportDetailsSubCategory_PK">
            <primary-key-column>SUB_CATEGORY_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="ReportDetailsSubCategory_FK" reference-table-name="ReportDetailsCategory" 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="ReportDetailsParams">
        <description>
            <![CDATA[
			This table will hold the necessary parameters for each view in reports section etc.
			]]>
        </description>
        <columns>
            <column name="PARAM_ID">
                <description>Unique id for each view. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <!--This uvh is removed for cloud support-->
                <!--<uniquevalue-generation>
                    <generator-name>ReportDetailsParams.PARAM_ID</generator-name>
                </uniquevalue-generation>-->
            </column>
            <column name="NAME">
                <description>name of the view. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VALUE">
                <description>title of the view. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_TRANSFORM">
                <description>The url for the view. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_LINKED">
                <description>The url for the view. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>true</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>
            <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="ReportDetailsParams_PK">
            <primary-key-column>PARAM_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="ReportDetailsParams_FK" reference-table-name="ReportDetailsSubCategory" 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="ComputerType">
        <description>
            <![CDATA[
		This table contains the various computer type details like Desktop, Laptop, etc.
		]]>
        </description>
        <columns>
            <column name="COMPUTER_TYPE_ID">
                <description>Holds unique id for each computer type. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_TYPE">
                <description>Computer type name like Desktop, Laptop, etc </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_LABEL">
                <description>Display label for the computer type. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ComputerType_PK">
            <primary-key-column>COMPUTER_TYPE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="GPOStatusDefn">
        <description>
            <![CDATA[
		This table captures the various GPO status and the associated desc defined by MS Windows.
		]]>
        </description>
        <columns>
            <column name="GPO_STATUS_ID">
                <description>Unique id for each status defn. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>The display label for the gpo status. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="GPOStatusDefn_PK">
            <primary-key-column>GPO_STATUS_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="ConfigurationConstants">
        <description>
            <![CDATA[
		This table captures the various constants used in different configurations.
		]]>
        </description>
        <columns>
            <column name="CONSTANT_ID">
                <description>Unique id for each configuration constant.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_ID">
                <description>Mapping of constants to their corresponding configurations.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONSTANT_NAME">
                <description>Name of the constants.</description>
                <data-type>CHAR</data-type>
                <max-size>150</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description of each constant.</description>
                <data-type>NCHAR</data-type>
                <max-size>150</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigurationConstants_PK">
            <primary-key-column>CONSTANT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigurationConstants_CId_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>
    </table>
    <table name="FolderRedirConstants">
        <description>
            <![CDATA[
		This table captures the constants used in Folder Redirection configuration.
		]]>
        </description>
        <columns>
            <column name="CONSTANT_ID">
                <description>Unique id for each configuration constant.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESET_VALUE">
                <description>Name of the constants.</description>
                <data-type>NCHAR</data-type>
                <max-size>150</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FolderRedirConstants_PK">
            <primary-key-column>CONSTANT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FolderRedirConstants_CCId_FK" reference-table-name="ConfigurationConstants" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONSTANT_ID</fk-local-column>
                        <fk-reference-column>CONSTANT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="FolderRedirConstForOs">
        <description>
            <![CDATA[
            This table captures the constants used in Folder Redirection configuration depending upon OS
            ]]>
        </description>
        <columns>
            <column name="CONSTANT_ID">
                <description>Unique id for each configuration constant.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_ID">
                <description>Unique id for each OS Range</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MIN_VERSION">
                <description>Min OS version support for the Registry key. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAX_VERSION">
                <description>Max OS version support for the Registry key. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESET_VALUE">
                <description>Name of the constants.</description>
                <data-type>NCHAR</data-type>
                <max-size>150</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FolderRedirConstForOs_PK">
            <primary-key-column>OS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FolderRedirConstForOs_CCId_FK" reference-table-name="ConfigurationConstants" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONSTANT_ID</fk-local-column>
                        <fk-reference-column>CONSTANT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ResourceMACIP">
        <description>
            <![CDATA[
			This table contains the computer resource ip addresses and mac addresses as comma separated string. Look also for ResourceIPRel for the proper usage.
			]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IP_ADDRESS">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAC_ADDRESS">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUBNET_MASK">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="BROADCAST_ADDRESS">
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
        </columns>
        <primary-key name="ResourceMACIP_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceMACIP_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="ResourceIPRel">
        <description>
            <![CDATA[
			This table contains the computer resource ip addresses and mac addresses as multiple entry. Look also for ResourceMACIP for the proper usage.
			]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IP_ADDRESS">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAC_ADDRESS">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUBNET_MASK">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="BROADCAST_ADDRESS">
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="IPADDR_LONG">
                            <data-type>BIGINT</data-type>
                            <default-value>-1</default-value>
                            <nullable>false</nullable>
                            <unique>false</unique>
                        </column>
        </columns>
        <primary-key name="ResourceIPRel_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>IP_ADDRESS</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceIPRel_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="DeletedResource">
        <description>
            <![CDATA[
		This table contains few important details of the deleted resources. This will have entries only for objects deleted from Active Directory environment.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of the resource. </description>
                <data-type>BIGINT</data-type>
                <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="DOMAIN_NAME">
                <description>Name of the Domain where the AD resource exists. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DN">
                <description>DN (Distinguished Name) for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Desc of the AD resource. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_TIME">
                <description>Time at which the resource has been 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 the resource has been modified. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETED_TIME">
                <description>Time at which the resource has been deleted. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DeletedResource_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DeletedResource_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="OSFlavor">
        <description>
            <![CDATA[
		This table contains platform and flavor details
		]]>
        </description>
        <columns>
            <column name="OSFLAVOR_ID">
                <description>Unique Id of the OS family ID </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME">
                <description>name of the OS </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PLATFORM_ID">
                <description>Whether the apd task  defined is for Windows or Mac,0-unknown</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OSFlavor_PK">
            <primary-key-column>OSFLAVOR_ID</primary-key-column>
        </primary-key>
    </table>
    
    <table name="OSFamily">
        <description>
            <![CDATA[
		This table contains OS name and flavor details
		]]>
        </description>
        <columns>
            <column name="OSFAMILY_ID">
                <description>Unique Id of the OS family ID </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME">
                <description>name of the flavor </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OSFLAVOR_ID">
                <description>OS flavorid</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OSFamily_PK">
            <primary-key-column>OSFAMILY_ID</primary-key-column>
        </primary-key>
    </table>
    
    <table name="Computer">
        <description>
            <![CDATA[
	   		This table will contain the computer details which are retrieved from the computers which are managed by Desktop Central.
      	 ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_NAME">
                <description>OS name of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_VERSION">
                <description>OS version of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERVICE_PACK">
                <description>Service pack installed in the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_PLATFORM">
                <description>OS platform of computer.1-windows,2-mac,3-linux</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
             <column name="TIMEZONE_OFFSET">
                 <description>Timezone Offset sent from agent. Eg: +330 for IST, which means 330 minitues ahead of GMT. </description>
                 <data-type>CHAR</data-type>
                 <max-size>25</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="OSFAMILY_ID">
                <description>Id of the OS family ID </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="Computer_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="Computer_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>
        <indexes>
            <index name="Computer_IDX1">
                <index-column>OS_NAME</index-column>
            </index>
            <index name="Computer_IDX2">
                <index-column>SERVICE_PACK</index-column>
            </index>
        </indexes>
    </table>
    <table name="ADResource">
        <description>
            <![CDATA[
		This table contains the basic details of Active Directory resources like Domain, Organizational Unit (OUs), Group, User, Computer, etc.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds unique Id generated for each resource present in Active Directory. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NAME">
                <description>Name of the Domain where the AD resource exists. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_TIME">
                <description>Time at which the resource has been 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 the resource has been modified. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DN">
                <description>DN (Distinguished Name) for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="PARENT_GUID">
                <description>Parent GUID of the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Desc of the AD resource. </description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADResource_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADResource_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>
        <indexes>
            <index name="ADResource_IDX1">
                <index-column>DOMAIN_NAME</index-column>
            </index>
            <index name="ADResource_IDX2">
                <index-column>GUID</index-column>
            </index>
        </indexes>
    </table>
    <table name="ADDelegation">
        <description>
            <![CDATA[
		This table will contain the delegation details for AD container objects.
		]]>
        </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="RECEIVER_ID">
                <description>The resource which receives. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDelegation_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>RECEIVER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDelegation_CID_FK" reference-table-name="ADResource" 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="ADDelegation_RID_FK" reference-table-name="ADResource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RECEIVER_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="ADResGroupGUIDInfo">
        <description>
            <![CDATA[
		This table will contain the GUID of AD groups for member objects.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Id of the AD Object. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_GUID">
                <description>Group GUID of the resource in Active Dir. </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="ADResGroupGUIDInfo_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>GROUP_GUID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADResGroupGUIDInfo_FK" reference-table-name="ADResource" 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="ADResPrimaryGroupInfo">
        <description>
            <![CDATA[
		This table will contain the primary group details for AD objects (USER & COMPUTER).
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Id of the AD Object. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRIMARY_GROUP_ID">
                <description>Primary group id for the resource. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADResPrimaryGroupInfo_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADResPrimaryGroupInfo_FK" reference-table-name="ADResource" 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="ADContainer">
        <description>
            <![CDATA[
		This table will hold the details of AD container.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds the unique Id of container present in Active Directory. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCATION">
                <description>Location of the container. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ADContainer_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADContainer_FK" reference-table-name="ADResource" 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="ADOU">
        <description>
            <![CDATA[
		This table will hold the details of AD Organization Unit (OU).
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds the unique Id of OU present in Active Directory. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_INHERITANCE_BLOCKED">
                <description>To verify GPO props of parent container is blocked or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADOU_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADOU_FK" reference-table-name="ADContainer" 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="ADDomain">
        <description>
            <![CDATA[
		This table contains the details of active dir domains.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id generated for each domain. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAX_PWD_AGE">
                <description>Maximum password age for the domain. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_INHERITANCE_BLOCKED">
                <description>To verify GPO props of parent container is blocked or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDomain_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDomain_FK" reference-table-name="ADContainer" 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="ADDomainPWDInfo">
        <description>
            <![CDATA[
		This table will contain the details of password strength of each domain.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>resource id of domain. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAX_PWD_AGE">
                <description>Maximum password age (in minutes). </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MIN_PWD_AGE">
                <description>Minimum password age (in minutes). </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MIN_PWD_LENGTH">
                <description>Minimum password length. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCKOUT_DURATION">
                <description>Lockout duration (in minutes). </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCKOUT_OBSERVATION_WINDOW">
                <description>Lockout observation window (in minutes). </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCKOUT_THRESHOLD">
                <description>Lockout threshold. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PWD_HISTORY_LENGTH">
                <description>Password history length. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_COMPLEX">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_LOCKOUT_ADMINS">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_NO_ANON_CHANGE">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_NO_CLEAR_CHANGE">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_STORE_CLEARTEXT">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_REFUSE_CHANGE">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDomainPWDInfo_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDomainPWDInfo_FK" reference-table-name="ADDomain" 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="ADDomainSRVRecord">
        <description>
            <![CDATA[
		This table will contain the details of SRV records. The SRV record is used to map the name of a service (in this case, the LDAP service) to the DNS computer name of a server that offers that service.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of each domain. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECORD_ID">
                <description>Unique Id of each type of record per domain. It is the hashcode of "DOMAIN_NETBIOS_NAME + OWNER_NAME + PRIORITY + WEIGHT + etc." </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OWNER_NAME">
                <description>Owner name of the SRV record. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRIORITY">
                <description>The priority of the server. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WEIGHT">
                <description>A load-balancing mechanism that is used when selecting a target host from those that have the same priority. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT_NUMBER">
                <description>The port where the server is listening for this service. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TARGET">
                <description>The fully qualified domain name of the host computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDomainSRVRecord_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>RECORD_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDomainSRVRecord_FK" reference-table-name="ADDomain" 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="ADDomainInfo">
        <description>
            <![CDATA[
		This table contains the details of active dir domains.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of each domain. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PDC_NAME">
                <description>Name of the primary domain controller. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <!--column name="PDC_RESOURCE_ID">
				<description>Resource id of the primary domain controller. </description>
               	<data-type>BIGINT</data-type>
               	<nullable>true</nullable>
               	<unique>false</unique>
	   		</column-->
            <column name="GC_GUID">
                <description>GUID of global catalogue (GC). </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OU_COUNT">
                <description>Total number of OUs present in the domain. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_COUNT">
                <description>Total number of computers present in the domain. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_COUNT">
                <description>Total number of users present in the domain. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_COUNT">
                <description>Total number of groups present in the domain. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRINTER_COUNT">
                <description>Total number of printers present in the domain. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GPO_COUNT">
                <description>Total number of GPOs present in the domain. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUERIED_TIME">
                <description>Time at which the AD is queried and updated in DB. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDomainInfo_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDomainInfo_FK" reference-table-name="ADDomain" 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="ADGroup">
        <description>
            <![CDATA[
		This table will hold the details of AD Group.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds the unique Id for each group present in Active Directory. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCATION">
                <description>Location of the group. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_TYPE">
                <description>Type of the Group. </description>
                <data-type>NCHAR</data-type>
                <max-size>25</max-size>
                <default-value>Unknown</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_SCOPE">
                <description>Scope of the Group. </description>
                <data-type>NCHAR</data-type>
                <max-size>25</max-size>
                <default-value>Unknown</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_TOKEN_ID">
                <description>Group token id for the resource. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MANAGED_BY">
                <description>Who manages that Group </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADGroup_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADGroup_FK" reference-table-name="ADResource" 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="ADGroupOwner">
        <description>
            <![CDATA[
		This table will hold the owner for each AD group.
		]]>
        </description>
        <columns>
            <column name="GROUP_RESOURCE_ID">
                <description>Group resource Id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OWNER_RESOURCE_ID">
                <description>Resource id of owner of the Group. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADGroupOwner_PK">
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADGroupOwner_GRID_FK" reference-table-name="ADGroup" 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-key name="ADGroupOwner_ORID_FK" reference-table-name="ADResource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>OWNER_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="ADPrinter">
        <description>
            <![CDATA[
			This table contains the details of Printer present in the AD.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of the printer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCATION">
                <description>Location of the printer in AD. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="SERVER_NAME">
                <description>Server name of the printer. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="PRINTER_LOCATION">
                <description>physical location of the printer. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="MODEL">
                <description>Model name of the printer. </description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DRIVER_NAME">
                <description>Driver name for the printer. </description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="PORT_NAME">
                <description>Port name for the printer. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="SHARE_NAME">
                <description>Share name for the printer. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ADPrinter_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADPrinter_FK" reference-table-name="ADResource" 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="ADUser">
        <description>
            <![CDATA[
	   		This table will contain the user details which are present in the Active Directory.
      	 ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FULL_NAME">
                <description>Full name of the user. </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_NAME">
                <description>Last name of the user. </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_NAME">
                <description>Display name of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OFFICE_LOCATION">
                <description>Office location. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EMAIL_ADDR">
                <description>Email address of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STREET_ADDR">
                <description>Street address of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POSTAL_CODE">
                <description>Postal code for the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COUNTRY">
                <description>Country of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PO_BOX">
                <description>Post office box of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATE_OR_PROVINCE">
                <description>State or province of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HOME_PHONE">
                <description>Home phone number of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MOBILE">
                <description>Mobile phone number of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FAX">
                <description>Fax number of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PAGER">
                <description>Pager number of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IP_PHONE">
                <description>IP phone number of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NOTES">
                <description>Notes of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPANY_NAME">
                <description>Company name of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TITLE">
                <description>Title of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPT">
                <description>Dept name of the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_LOGON">
                <description>Last logon time for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_SCRIPT_PATH">
                <description>Logon script path for the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="HOME_DIRECTORY">
                <description>Home dir for user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROFILE_PATH">
                <description>Profile path for the user. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHARED_FOLDER">
                <description>Shared folder for the user. </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_DIALIN">
                <description>Whether the user account has dialin privilege. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_DISABLED">
                <description>Is the user account is disabled ?. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACCOUNT_EXPIRY_DATE">
                <description>Account expiry date for the user account. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="MANAGER">
                <description>Manager for current user. </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="ADUser_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADUser_FK" reference-table-name="ADResource" 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="ADUserPWDInfo">
        <description>
            <![CDATA[
	   		This table will contain the user password details which are present in the Active Directory.
      	 ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DAYS_TO_PWD_EXPIRE">
                <description>Number days to password expire for the user. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PWD_LAST_SET_DATE">
                <description>Last password set date for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BAD_PWD_TIME">
                <description>Bad password time for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BAD_PWD_COUNT">
                <description>Bad password count for the user. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_EXPIRED">
                <description>Is password expired for the user account ?. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_REQUIRED">
                <description>Is password required for the user account ?. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_NEVER_EXPIRES">
                <description>Whether password for the user account expires or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PWD_CANT_CHANGE">
                <description>Whether the user can change the password or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCKOUT_TIME">
                <description>Lockout time for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_LOCKED">
                <description>Is the user account is locked or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADUserPWDInfo_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADUserPWDInfo_FK" reference-table-name="ADUser" 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="ADComputer">
        <description>
            <![CDATA[
	   		This table will contain the computer details which are present in the Active Directory.
      	 ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DNS_NAME">
                <description>DNS name of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ROLE">
                <description>Role of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>150</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_LOGON">
                <description>Last logon time happened in the computer. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_DISABLED">
                <description>Is the Computer Account Disabled?</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            <column name="TRUSTED_FOR_DELEGATION">
                <description>Is the Computer Trusted for Delegation?</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            <column name="OS_NAME">
                <description>OS name of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_VERSION">
                <description>OS version of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERVICE_PACK">
                <description>Service pack installed in the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_PLATFORM">
                <description>OS platform of computer.1-windows,2-mac,3-linux</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADComputer_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADComputer_FK" reference-table-name="ADResource" 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="ADDomainController">
        <description>
            <![CDATA[
		This table will contain the AD domain controller details. As domain controller is a computer, this table must be an extension of a Computer table.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each domain controller. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OPERATION_MODE">
                <description>Operation mode for the domain controller. </description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
            </column>
            <column name="IS_GC_EXISTS">
                <description>Is Global Catelog exists ?. </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
            </column>
            <column name="KDC_STATUS">
                <description>Status of KDC (Key Distribution Service). </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
            </column>
            <column name="TIME_SERVICE_STATUS">
                <description>Windows Time Service status. </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
            </column>
            <column name="FRS_STATUS">
                <description>FRS (File Replication Service) status. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DIR_SERVICE_STATUS">
                <description>Directory service status (whether directory service is running or not). </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            <column name="AD_WRITE_STATUS">
                <description>Whether Active Directory is writable in this domain controller ?. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ADDomainController_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDomainController_FK" reference-table-name="ADComputer" 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="ADDCToDomainRel">
        <description>
            <![CDATA[
	   		This table will contain the mapping of domain controller and the associated domain.
      	 ]]>
        </description>
        <columns>
            <column name="DC_RESOURCE_ID">
                <description>Unique Id of the domain controller. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_RESOURCE_ID">
                <description>Unique Id of domain. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDCToDomainRel_PK">
            <primary-key-column>DC_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDCToDomain_DC_RID_FK" reference-table-name="ADDomainController" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DC_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="ADDCToDomain_DOMAIN_RID_FK" reference-table-name="ADDomain" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DOMAIN_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="ADDCUser">
        <description>
            <![CDATA[
	   		This table will contain the user details which are present in each domain controller.
      	 ]]>
        </description>
        <columns>
            <column name="USER_RESOURCE_ID">
                <description>Unique Id for each user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DC_RESOURCE_ID">
                <description>Unique Id of the domain controller. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_LOGON">
                <description>Last logon time for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_LOGOFF">
                <description>Last logoff time for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_COUNT">
                <description>Logon count for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BAD_PWD_TIME">
                <description>Bad password time for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BAD_PWD_COUNT">
                <description>Bad password count for the user. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDCUser_PK">
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
            <primary-key-column>DC_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDCUser_USER_RES_ID_FK" reference-table-name="ADUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="ADDCUser_DC_RES_ID_FK" reference-table-name="ADDomainController" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DC_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="ADDCRole">
        <description>
            <![CDATA[
		This table will contain the Roles of AD domain controllers. There can be more than one role for each domain controller.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of the domain controller. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ROLE">
                <description>Role of the domain controller. Values are predefined by MicroSoft. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDCRole_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>ROLE</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDCRole_FK" reference-table-name="ADDomainController" 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="ADSite">
        <description>
            <![CDATA[
			This table contains the details of sites configured in the AD.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of the site. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_INHERITANCE_BLOCKED">
                <description>To verify GPO props of parent container is blocked or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADSite_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADSite_FK" reference-table-name="ADContainer" 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="ADSubnet">
        <description>
            <![CDATA[
			This table contains the details of subnets configured in the AD.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of the subnet. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUBNET_ID">
                <description>subnet id value like 192.0.0.0 </description>
                <data-type>NCHAR</data-type>
                <max-size>25</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUBNET_MASK">
                <description>subnet mask. </description>
                <data-type>NCHAR</data-type>
                <max-size>25</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUBNET_CLASS">
                <description>subnet class. </description>
                <data-type>NCHAR</data-type>
                <max-size>15</max-size>
                <default-value> NA </default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADSubnet_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADSubnet_FK" reference-table-name="ADResource" 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="ADFSP">
        <description>
            <![CDATA[
		This table will hold the details of AD Foreign Security Principal (FSP).
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds the unique Id of FSP present in Active Directory. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADFSP_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADFSP_FK" reference-table-name="ADResource" 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="ADSubnetToSiteRel">
        <description>
            <![CDATA[
			This table contains the relation between sites and subnets configured in the AD.
		]]>
        </description>
        <columns>
            <column name="SUBNET_RESOURCE_ID">
                <description>Id of the subnet. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SITE_RESOURCE_ID">
                <description>Id of the site.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADSubnetToSiteRel_PK">
            <primary-key-column>SUBNET_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADSubnetToSiteRel_SN_FK" reference-table-name="ADSubnet" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUBNET_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="ADSubnetToSiteRel_SI_FK" reference-table-name="ADSite" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SITE_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="ADDCToSiteRel">
        <description>
            <![CDATA[
			This table contains the relation between domain controllers and sites.
		]]>
        </description>
        <columns>
            <column name="DC_RESOURCE_ID">
                <description>Id of the domain controller. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SITE_RESOURCE_ID">
                <description>Id of the site. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDCToSiteRel_PK">
            <primary-key-column>DC_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDCToSiteRel_DC_FK" reference-table-name="ADDomainController" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DC_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="ADDCToSiteRel_Site_FK" reference-table-name="ADSite" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SITE_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="ADContainerRel">
        <description>
            <![CDATA[
		This table contains the sub or child contaianers relationshsip.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Sub container id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARENT_RESOURCE_ID">
                <description>Parent container id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADContainerRel_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADContainerRel_CID_FK" reference-table-name="ADResource" 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="ADContainerRel_PCID_FK" reference-table-name="ADContainer" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PARENT_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="ADGroupMemberRel">
        <description>
            <![CDATA[
		This table contains the group member relationship present in the AD.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Member 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="ADGroupMemberRel_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADGrpMembrRel_MID_FK" reference-table-name="ADResource" 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="ADGrpMembrRel_GID_FK" reference-table-name="ADResource" 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="GroupPolicyObject">
        <description>
            <![CDATA[
		This table will have GPO related attributes.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds unique id for each GPO. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_NAME">
                <description>Display name of GPO </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_SYS_PATH">
                <description>File system path of GPO </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_VERSION">
                <description>User version of the GPO. No. of changes made in the GPO. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_VERSION">
                <description>Computer version of the GPO. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GPO_STATUS">
                <description> </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DS_VERSION">
                <description>	</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SYSVOL_VERSION">
                <description>	</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="GroupPolicyObject_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="GroupPolicyObject_FK" reference-table-name="ADResource" 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="ADContainerGPOLink">
        <description>
            <![CDATA[
		This table contains the container to gpo link details.
		]]>
        </description>
        <columns>
            <column name="CONTAINER_RESOURCE_ID">
                <description>container resource id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GPO_RESOURCE_ID">
                <description>Associated GPO resource id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_ENABLED">
                <description>Whether the GPO is enabled for the container or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NO_OVERRIDE">
                <description> </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADContainerGPOLink_PK">
            <primary-key-column>CONTAINER_RESOURCE_ID</primary-key-column>
            <primary-key-column>GPO_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADContainerGPOLink_CID_FK" reference-table-name="ADContainer" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONTAINER_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="ADContainerGPOLink_GPOID_FK" reference-table-name="GroupPolicyObject" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>GPO_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="ADUpdateScope">
        <description>
            <![CDATA[
		This table will domain ids for which the report update is enabled.
		]]>
        </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="UPDATE_TYPE">
                <description>whether to perform complete update or only modified update </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_SCH_UPDATE_ENABLED">
                <description>whether scheduled AD update is enabled for this domain </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADUpdateScope_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADUpdateScope_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="ADDomainToSync">
        <description>
            <![CDATA[
		This table will domain ids for which the report update is enabled.
		]]>
        </description>
        <columns>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>Name of the Domain. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <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="UPDATE_TYPE">
                <description>whether to perform complete update or only modified update </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_SCH_UPDATE_ENABLED">
                <description>whether scheduled AD update is enabled for this domain </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDomainToSync_PK">
            <primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDomainToSync_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="ADResourceAdded">
        <description>
            <![CDATA[
		This table contains newly added ADResource. It is temporary table only used for Email ADReport purpose.
		]]>
        </description>
        <columns>
            <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="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </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="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="CREATION_TIME">
                <description>Time at which the resource has been 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 the resource has been modified. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_TIME_IN_STR">
                <description>Time at which the resource has been created. </description>
                <data-type>NCHAR</data-type>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME_IN_STR">
                <description>Time at which the resource has been modified. </description>
                <data-type>NCHAR</data-type>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DN">
                <description>DN (Distinguished Name) for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ADResourceAdded_PK">

            <primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
            <primary-key-column>GUID</primary-key-column>

        </primary-key>
        <foreign-keys>
            <foreign-key name="ADResourceAdded_FK" reference-table-name="ADDomainToSync" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DOMAIN_NETBIOS_NAME</fk-local-column>
                        <fk-reference-column>DOMAIN_NETBIOS_NAME</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADUpdateStatus">
        <description>
            <![CDATA[
		This table will contain the population status like COMPLETED/INCOMPLETE for each type of AD objects.
		]]>
        </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="RESOURCE_TYPE">
                <description>Will hold the resource type of container object for which the AD data is updated. Resource.UNKNOWN means all the objects for the domain</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UPDATE_STATUS">
                <description>Will contain the population status, 1 for COMPLETED and -1 for INCOMPLETE. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_UPDATED_TIME">
                <description>This column will have have the last updated time for AD objects for each category like users, computers, etc. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADUpdateStatus_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>RESOURCE_TYPE</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADUpdateStatus_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="ADResourceDeleted">
        <description>
            <![CDATA[
		This table contains few details to capture the changes in  Active Directory objects.
		]]>
        </description>
        <columns>


            <column name="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>Name of the Domain where the AD resource exists. </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="NAME">
                <description>Name of the AD resource deleted. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NAME">
                <description>Name of the Domain where the AD resource exists. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="DN">
                <description>DN (Distinguished Name) for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Desc of the AD resource. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_TIME">
                <description>Time at which the resource has been 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 the resource has been modified. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETION_FOUND_AT">
                <description>Time at which the resource deletion found. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADResourceDeleted_PK">

            <primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
            <primary-key-column>GUID</primary-key-column>

        </primary-key>
        <foreign-keys>
            <foreign-key name="ADResourceDeleted_FK" reference-table-name="ADDomainToSync" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DOMAIN_NETBIOS_NAME</fk-local-column>
                        <fk-reference-column>DOMAIN_NETBIOS_NAME</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADResourceDeletedDate">
        <description>
            <![CDATA[
		This table is used to show date in EmailReports.
		]]>
        </description>
        <columns>



            <column name="DOMAIN_NETBIOS_NAME">
                <description>Name of the Domain where the AD resource exists. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>


            <column name="CREATION_TIME_IN_STR">
                <description>Time at which the resource has been created. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME_IN_STR">
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ADResourceDeletedDate_PK">

            <primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
            <primary-key-column>GUID</primary-key-column>


        </primary-key>
        <foreign-keys>
            <foreign-key name="ADResourceDeletedDate_FK" reference-table-name="ADResourceDeleted" isbidirectional="false">
                <fk-columns>

                    <fk-column>
                        <fk-local-column>DOMAIN_NETBIOS_NAME</fk-local-column>
                        <fk-reference-column>DOMAIN_NETBIOS_NAME</fk-reference-column>
                    </fk-column>
                    <fk-column>
                        <fk-local-column>GUID</fk-local-column>
                        <fk-reference-column>GUID</fk-reference-column>
                    </fk-column>



                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>


        </foreign-keys>
    </table>
    <table name="ADResourceTracked">
        <description>
            <![CDATA[
		This table contains few details to capture the changes in  Active Directory objects.
		]]>
        </description>
        <columns>

            <column name="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>Name of the Domain where the AD resource exists. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME">
                <description>Name of the AD resource deleted. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</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="OPERATION_TYPE">
                <description>Type of the operation involved with the resource. The value will be 5101 - ADDED,  5102 - MODIFIED, 5103 - DELETED. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TRACKED_AT">
                <description>Time at which the resource change is found. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADResourceTracked_PK">

            <primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
            <primary-key-column>GUID</primary-key-column>

        </primary-key>
        <foreign-keys>
            <foreign-key name="ADResourceTracked_FK" reference-table-name="ADDomainToSync" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DOMAIN_NETBIOS_NAME</fk-local-column>
                        <fk-reference-column>DOMAIN_NETBIOS_NAME</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADDomainTrackPeriod">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>Name of the Domain. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="START_TIME">
                <description>Time at which the tracking is started. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="END_TIME">
                <description>Time at which the tracking is ended. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_SYNC_INVOKED_AT">
                <description>Time at which the last AD sync update is invoked. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_SYNC_STATUS">
                <description>Status of the last AD sync invocation. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <default-value>Unknown</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADDomainTrackPeriod_PK">
            <primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDomainTrackPeriod_FK" reference-table-name="ADDomainToSync" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DOMAIN_NETBIOS_NAME</fk-local-column>
                        <fk-reference-column>DOMAIN_NETBIOS_NAME</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADDomainTrackPeriodDate">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>Name of the Domain. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="START_TIME">
                <description>Time at which the tracking is started. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="END_TIME">
                <description>Time at which the tracking is ended. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>


        </columns>
        <primary-key name="ADDomainTrackPeriodDate_PK">
            <primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADDomainTrackPeriodDate_FK" reference-table-name="ADDomainToSync" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DOMAIN_NETBIOS_NAME</fk-local-column>
                        <fk-reference-column>DOMAIN_NETBIOS_NAME</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADChangeSummary">
        <description>
            <![CDATA[
		This table contains overall changes summary for each AD domain.
		]]>
        </description>
        <columns>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>Name of the Domain netbios name. </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 OU, User, Computer, etc. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RES_TYPE">
                <description>Type of the resource. The value will represent the OU, User, Computer, etc.Default value is set to 111 it refers  Unknown resourcetype.</description>
                <data-type>INTEGER</data-type>
                <default-value>111</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AD_DOMAIN_NAME">
                <description>Name of the AD domain. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TOTAL_COUNT">
                <description>Total objects count in AD. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ADDED_COUNT">
                <description>Total objects count in AD. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_COUNT">
                <description>Total objects count in AD. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETED_COUNT">
                <description>Total objects count in AD. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GENERATED_AT">
                <description>Time at which the summary is generated. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADChangeSummary_PK">
            <primary-key-column>DOMAIN_NETBIOS_NAME</primary-key-column>
            <primary-key-column>RESOURCE_TYPE</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADChangeSummary_FK1" reference-table-name="ADDomainToSync" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DOMAIN_NETBIOS_NAME</fk-local-column>
                        <fk-reference-column>DOMAIN_NETBIOS_NAME</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADUserLogonInfo">
        <description>
            <![CDATA[
	   		This table will contain the user logon details along with the computer details where the user logging in.
      	 ]]>
        </description>
        <columns>
            <column name="RECORD_ID">
                <description>Uinque Id generated for each record inserted in this table. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ADUserLogonInfo.RECORD_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="USER_RESOURCE_ID">
                <description>Unique Id of the user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_RESOURCE_ID">
                <description>Unique Id of the computer in which the user is log in. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DC_RESOURCE_ID">
                <description>Unique Id of the Domain Controller through which the user is log in. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_TIME">
                <description>Logon time of the user in the specific computer. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGOFF_TIME">
                <description>Logoff time for the user. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_TIME_COMPONENT">
                <description>Logon time in minutes of the user in the specific computer. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGOFF_TIME_COMPONENT">
                <description>Logoff time in miuters for the user. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADUserLogonInfo_PK">
            <primary-key-column>RECORD_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADUserLogonInfo_User_FK" reference-table-name="ADResource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="ADUserLogonInfo_Comp_FK" reference-table-name="ADComputer" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COMPUTER_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="ADUserLogonInfo_DC_FK" reference-table-name="ADComputer" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DC_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="ADCurrentComputerLogon">
        <description>
            <![CDATA[
			This table will contain the Latest user logon details.
			]]>
        </description>
        <columns>
            <column name="COMPUTER_RESOURCE_ID">
                <description>Unique Id of the computer in which the user is log in. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECORD_ID">
                <description>Unique Id of the record in the ADUserLogonInfo table. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_FREQUENCY">
                <description>Number of Logins per day in the computer. </description>
                <data-type>FLOAT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADCurrentComputerLogon_PK">
            <primary-key-column>COMPUTER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADCurrCompLogon_Comp_FK" reference-table-name="ADComputer" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COMPUTER_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="ADCurrCompLogon_Record_FK" reference-table-name="ADUserLogonInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RECORD_ID</fk-local-column>
                        <fk-reference-column>RECORD_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADCurrentUserLogonInfo">
        <description>
            <![CDATA[
			This table will contain the Latest user logon details.
			]]>
        </description>
        <columns>
            <column name="USER_RESOURCE_ID">
                <description>Unique Id of the user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_RESOURCE_ID">
                <description>Unique Id of the computer in which the user is log in. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECORD_ID">
                <description>Uinque Id of the record in the ADUserLogonInfo table. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADCurrentUserLogonInfo_PK">
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
            <primary-key-column>COMPUTER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADCurrUserLogonInfo_User_FK" reference-table-name="ADResource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="ADCurrUserLogonInfo_Comp_FK" reference-table-name="ADComputer" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COMPUTER_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="ADCurrUserLogonInfo_Record_FK" reference-table-name="ADUserLogonInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RECORD_ID</fk-local-column>
                        <fk-reference-column>RECORD_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADCurrentUserLogon">
        <description>
            <![CDATA[
			This table will contain the Latest user logon details.
			]]>
        </description>
        <columns>
            <column name="USER_RESOURCE_ID">
                <description>Unique Id of the user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECORD_ID">
                <description>Uinque Id of the record in the ADUserLogonInfo table. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_FREQUENCY">
                <description>Number of Logins per day by the user. </description>
                <data-type>FLOAT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADCurrentUserLogon_PK">
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADCurrUserLogon_User_FK" reference-table-name="ADResource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="ADCurrUserLogon_Record_FK" reference-table-name="ADUserLogonInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RECORD_ID</fk-local-column>
                        <fk-reference-column>RECORD_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="UserLastLogoffRecord">
        <description>
            <![CDATA[
			This table will contain the Latest user logon details.
			]]>
        </description>
        <columns>
            <column name="USER_RESOURCE_ID">
                <description>Unique Id of the user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECORD_ID">
                <description>Uinque Id of the record in the ADUserLogonInfo table. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserLastLogoffRecord_PK1">
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UserLastLogoffRecord_FK1" reference-table-name="ADResource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="UserLastLogoffRecord_FK2" reference-table-name="ADUserLogonInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RECORD_ID</fk-local-column>
                        <fk-reference-column>RECORD_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADUserLogonConfig">
        <description>
            <![CDATA[
			This table will contain the Settings related to User Logon Information capturing.
			]]>
        </description>
        <columns>
            <column name="USER_LOGON_CONFIG_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ADUserLogonConfig.USER_LOGON_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="USER_LOGON_HISTORY">
                <description>This will store the number of days to maintain the history of User Logon Info</description>
                <data-type>INTEGER</data-type>
                <default-value>30</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_ENABLED">
                <description>Whether the User Logon Info Fetching is enabled or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_TRACKING_START_TIME">
                <description>It will hold the time when user logon tracking starts. </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 the Corresponding Setting</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <!--NOT_NULL constraint to be removed for Cloud-->
            </column>
        </columns>
        <primary-key name="ADUserLogonConfig_PK">
            <primary-key-column>USER_LOGON_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADUserLogonConfig_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="LogonUserComputerRel">
        <description>
            <![CDATA[
			This table will contain the latest data of user logoned to the computer. ie Everytime you will have a user mapped to computer, whether user logged on or no user logged on.
			]]>
        </description>
        <columns>
            <column name="USER_RESOURCE_ID">
                <description>Unique Id of the user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_RESOURCE_ID">
                <description>Unique Id of the computer in which the user is log in. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LogonUserComputerRel_PK">
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
            <primary-key-column>COMPUTER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LogonUserComputerRel_User_FK" reference-table-name="Resource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="LogonUserComputerRel_Comp_FK" reference-table-name="Resource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COMPUTER_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="DCEnvVariables">
        <description>
            <![CDATA[
			Contains variables to be used through out dc
		]]>
        </description>
        <columns>
            <column name="VAR_ID">
                <description>Unique Id of the Variable. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCEnvVariables.VAR_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="NAME">
                <description>name of the var</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VALUE">
                <description>arg val</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCEnvVariables_PK">
            <primary-key-column>VAR_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCEnvVarToCustomerRel">
        <description><![CDATA[Table contains mapping  between Customer and dynamic variable ]]> </description>
        <columns>
            <column name="VAR_ID">
                <description>Dynamic variable id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CUSTOMER_ID">
                <description>Unique identifier of customer id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DCEnvVarToCustomerRel_PK">
            <primary-key-column>VAR_ID</primary-key-column>
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCEnvVarToCustomerRel_FK1" reference-table-name="DCEnvVariables" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>VAR_ID</fk-local-column>
                        <fk-reference-column>VAR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DCEnvVarToCustomerRel_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="PkgAppDownloadStatus">
        <description>
            Download status of binaries from PredefinedPackages.
        </description>
        <columns>
            <column name="PKGAPPDOWNLOADSTATUS_AUTO_ID">
                <description>This is added for sas support</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>PkgAppDownloadStatus.PKGAPPDOWNLOADSTATUS_AUTO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="APP_LOCATION_ID">
                <description>Location id for pre-defined package from AppLocation</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="LOCAL_FILE_PATH">
                <description>Local file path of downloaded file</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOWNLOAD_STATUS">
                <description>Download status</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Reason for download failure</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PkgAppDownloadStatus_PK">
            <primary-key-column>PKGAPPDOWNLOADSTATUS_AUTO_ID</primary-key-column>
        </primary-key>
    </table>

	    <table name="PkgFileDownloadStatus">
        <description>
            Download status of binaries from PredefinedPackages.
        </description>
        <columns>
            <column name="PKGFILEDOWNLOADSTATUS_AUTO_ID">
                <description>This is added for sas support</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>PkgFileDownloadStatus.PKGFILEDOWNLOADSTATUS_AUTO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FILE_ID">
                <description>Location id for Deployment File Details</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="LOCAL_FILE_PATH">
                <description>Local file path of downloaded file</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOWNLOAD_STATUS">
                <description>Download status</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Reason for download failure</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PkgFileDownloadStatus_PK">
            <primary-key-column>PKGFILEDOWNLOADSTATUS_AUTO_ID</primary-key-column>
        </primary-key>
    </table>

    <!-- Table to maintain over-all package creation status from templates -->
    <table name="PkgCreationSummary">
        <description>
            Creation status of packages in templates
        </description>
        <columns>
            <column name="PKGCREATIONSUMMARY_AUTO_ID">
                <description>This column added for sas support</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>PkgCreationSummary.PKGCREATIONSUMMARY_AUTO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PRE_DEF_PACKAGE_ID">
                <description>Package ID from PreDefPackages table that supports automation</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="DOWNLOAD_STATUS">
                <description>Download Status of all application w.r.to the package </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_STATUS">
                <description>Over-all package creation status</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Reason for creation failure</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PkgCreationSummary_PK">
            <primary-key-column>PKGCREATIONSUMMARY_AUTO_ID</primary-key-column>
        </primary-key>
    </table>

	    <!-- Table to maintain over-all package creation status from templates Using Patchid-->
    <table name="PatchPkgCreationSummary">
        <description>
            Creation status of packages in templates
        </description>
        <columns>
            <column name="PATCHID">
                <description>Package ID from PreDefPackages table that supports automation</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOWNLOAD_STATUS">
                <description>Download Status of all application w.r.to the package </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_STATUS">
                <description>Over-all package creation status</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Reason for creation failure</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PatchPkgCreationSummary_PK">
            <primary-key-column>PATCHID</primary-key-column>
        </primary-key>
	</table>

    <table name="SWPackage">
        <description>
            <![CDATA[
		This table contains the software package details defined by the user.
		]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id for each package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SWPackage.PACKAGE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PACKAGE_TYPE">
                <description>This will capture the type of the package. The allowed values are 1 (Windows Installer Package), 2 (Windows Installer Patch), 3 (Mac Package). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_PATH">
                <description>Path for the package. </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TIMEOUTVALUE">
                <description>Time requried to perform the given operation.</description>
                <data-type>BIGINT</data-type>
                <default-value>7200000</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_NAME">
                <description>Name of the package. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPLICATION_NAME">
                <description>Name of the Application. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_MANUFACTURER">
                <description>Manufacturer name of the package. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_VERSION">
                <description>Manufacturer name of the package. </description>
                <data-type>NCHAR</data-type>
                <max-size>150</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_LANGUAGE">
                <description>Language of the package. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_DESC">
                <description>A short description about the MSI file. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>Not Specified</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ROOT_PATH">
                <description>Root Path where to install source package. </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_SOURCE_URL">
                <description>URL of source package. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HTTP_URL_OPTION">
                <description>Whether package source is HTTP URL.Allowed values are 1 - HTTP_URL ; 0 - Network share</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_OPTION">
                <description>Whether reboot of the computer is allowed. The allowed values are 1 (allow reboot), 0 (don't allow reboot). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_TIME">
                <description>Time at which this package is created. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME">
                <description>Time at which this package is modified. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SEARCH_ID">
                <description>predefined package id selected</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_COPY_FILE_ENABLED">
                <description>check whether the file copy is enabled</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_FOR_ALL_CUSTOMERS">
                <description>Is the package is associated for all customers or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_CREATED_FROM_TEMPLATE">
                <description>Is the package is Created from Template or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_PLATFORM">
                <description>OS platform of computer.1-windows,2-mac,3-linux</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_FOR_ALL_LANG">
                <description>Is the package url is common for all language. 0 - NO, 1 -Yes </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ARCHITECTURE">
                <description>Is the software is 32 bit or 64 bit applciation, 1 for x86, 2 for x64</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_MODE">
                <description>Whether the package contains both install and Uninstall commands. 0 - Only Install , 1 - Only Uninstall , 2 - both install and uninstall </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="SWPackage_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
    </table>

	<table name="SWPackageExtn">
        <description>
            <![CDATA[
            This table contains the software package created from details
            ]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id for each package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PKG_CREATED_SOURCE_PAGE">
                <description>Package created from which source Page. 1.From Manual package creation page / 2. From template view page </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackageExtn_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
    </table>


    <table name="SWPackageInstall">
        <description>
            <![CDATA[
		This table contains the parameters related to software package install option.
		]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_CMD">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_CMD_PARAMS">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_CMD_PARAMS_EX">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_PRE_INSTALL_CMD">
                <description>Enable pre install command</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRE_INSTALL_CMD">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRE_INSTALL_CMD_PARAMS">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRE_INSTALL_SUCCESS_EC">
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRE_INSTALL_IGNORE_EC">
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_POST_INSTALL_CMD">
                <description>Enable pre install command</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POST_INSTALL_CMD">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POST_INSTALL_CMD_PARAMS">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POST_INSTALL_SUCCESS_EC">
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POST_INSTALL_IGNORE_EC">
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackageInstall_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageInstall_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWUninstallFiles">
        <description>
            <![CDATA[
		Files to be copied while executing the binary
		]]>
        </description>
        <columns>
            <column name="UNINSTALL_FILE_ID">
                <description>unique id for each file or folder</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>SWUninstallFiles.FILE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UNINSTALL_FILE_PATH">
                <description>network path of file or folder to be copied</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="SWUninstallFiles_PK">
            <primary-key-column>UNINSTALL_FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWUninstallFiles_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWPackageUninstall">
        <description>
            <![CDATA[
		This table contains the parameters related to software package uninstall option.
		]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UNINSTALL_CMD">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_PRE_UNINSTALL_CMD">
                <description>Enable pre install command</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRE_UNINSTALL_CMD">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRE_UNINSTALL_CMD_PARAMS">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRE_UNINSTALL_SUCCESS_EC">
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRE_UNINSTALL_IGNORE_EC">
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_POST_UNINSTALL_CMD">
                <description>Enable pre install command</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POST_UNINSTALL_CMD">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POST_UNINSTALL_CMD_PARAMS">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POST_UNINSTALL_SUCCESS_EC">
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POST_UNINSTALL_IGNORE_EC">
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackageUninstall_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageUninstall_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWPackageFiles">
        <description>
            <![CDATA[
		Files to be copied while executing the binary
		]]>
        </description>
        <columns>
            <column name="FILE_ID">
                <description>unique id for each file or folder</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>SWPackageFiles.FILE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_PATH">
                <description>network path of file or folder to be copied</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="SWPackageFiles_PK">
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageFiles_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="PkgToPreDefPkgRel">
        <description>Mapping between Pre-Defined Package and Location  </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>SW Package ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="PRE_DEF_PACKAGE_ID">
                <description>PACKAGE_ID from PreDefPackages</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="PkgToPreDefPkgRel_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PkgToPreDefPkgRel_FK1" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

		<table name="SWPackageToPatchRel">
        <description>Mapping between Pre-Defined PackageExtn and SWPackage  </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>SW Package ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="PATCHID">
                <description>PATCHID from PackageExtn</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="SWPackageToPatchRel_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageToPatchRel_FK1" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="SWPublishPkgConfig">
        <description>
            <![CDATA[
  	         This table captures Relation of sw Package to Config Data Id. 
                           Purpose : Sending the Status details from Agent to server for SSP
  	         ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>                   
            <column name="PUBLISH_PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ADDED_TIME">
                <description>Time at which this package is published to CG is added </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column> 
            <column name="IS_APPROVAL_REQUIRED">
                <description>Whether the package published to a group requires approval to install. 0- No , 1- Yes </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns> 
        <primary-key name="SWPublishPkgConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>            
            <foreign-key name="SWPublishPkgConfig_FK1" 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>
        <!-- ////////////////////////////SW Publish Tables ends////////////////////////-->
    <table name="DCConfigCredentials">
        <description>
            <![CDATA[
            contains the credentials used in dc
            ]]>
        </description>
        <columns>
			<column name="CREDENTIAL_UUID">
                <description>unique uuid  for credential</description>
                <data-type>CHAR</data-type>
				<max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>DCConfigCredentials.CREDENTIAL_UUID</generator-name>
                </uniquevalue-generation>
            </column>
			<column name="CREDENTIAL_ID">
                <description>unique id  for credential</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="CUSTOMER_ID">
                <description>Unique identifier of customer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="USERNAME">
                <description>username</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <default-value></default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWORD">
                <description>password</description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>1000</max-size>
                <default-value></default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_NAME">
                <description>name for credential</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>noname</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_DESCRIPTION">
                <description>description for credential</description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>nodescription</default-value>
                <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="DCConfigCredentials_PK">
            <primary-key-column>CREDENTIAL_UUID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCConfigCredentials_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="SWPackageRepository">
        <description>
            <![CDATA[
            This table contains the software repository details .
            ]]>
        </description>
        <columns>
            <column name="SWREPOSITORY_ID">
                <description>Unique Id for each software repository. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>SWPackageRepository.SWREPOSITORY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CUSTOMER_ID">
                <description>Unique identifier of customer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="IS_SWREPOSITORY_CREATE">
                <description>Is the software repository to be created or other existing network share .</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SWREPOSITORY_NW_PATH">
                <description>The software repository path where the applications are stored.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_SWREPOSITORY_LOCKED">
                <description>Is the software repository to be locked with the user name and password .</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SWREPOSITORY_LOCAL_PATH">
                <description>local path to create</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>c:\SWRepository</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SWREPOSITORY_SHARE_NAME">
                <description>The software repository path where the applications are stored.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>DesktopcentralSWRepository</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackageRepository_PK">
            <primary-key-column>SWREPOSITORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageRepository_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="RepositoryCredentialRel">
        <description>
            <![CDATA[
            	This table contains relation between repository and credential
            ]]>
        </description>
        <columns>
            <column name="SWREPOSITORY_ID">
                <description>Unique Id for each software repository. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CREDENTIAL_UUID">
                <description>Unique uuid  for credential</description>
                <data-type>CHAR</data-type>
				<max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
				<unique>flase</unique>
            </column>
			<column name="CREDENTIAL_ID">
                <description>Unique id  for credential</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="RepositoryCredentialRel_PK">
            <primary-key-column>SWREPOSITORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RepositoryCredentialRel_FK1" reference-table-name="SWPackageRepository" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SWREPOSITORY_ID</fk-local-column>
                        <fk-reference-column>SWREPOSITORY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="RepositoryCredentialRel_FK2" reference-table-name="DCConfigCredentials" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CREDENTIAL_UUID</fk-local-column>
                        <fk-reference-column>CREDENTIAL_UUID</fk-reference-column>
                    </fk-column>
                </fk-columns>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWPkgToRepositoryRel">
        <description><![CDATA[mapping  between SWPackageRepository and SW Packages defined ]]> </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>s/w package id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SWREPOSITORY_ID">
                <description>Unique identifier of  software repository id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="SWPkgToRepositoryRel_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPkgToRepositoryRel_FK1" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SWPkgToRepositoryRel_FK2" reference-table-name="SWPackageRepository" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SWREPOSITORY_ID</fk-local-column>
                        <fk-reference-column>SWREPOSITORY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWPkgToCustomerRel">
        <description><![CDATA[mapping  between Customer and SW Packages defined ]]> </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>s/w package 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="SWPkgToCustomerRel_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPkgToCustomerRel_FK1" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SWPkgToCustomerRel_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="DeletedSWPkgDetails">
        <description><![CDATA[Deleted sw packages details ]]> </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>s/w package 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>
            <column name="DELETED_TIME">
                <description>Time at which the package is deleted from DC. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_SOURCEFILE">
                <description>Represents the XML file which contains Package details where to be stored.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DeletedSWPkgDetails_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
    </table>
    
    <table name="SWPackageToDCUserRel">
        <description><![CDATA[mapping  between DCUser and SW Packages defined ]]> </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>s/w package id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DC_USER_ID">
                <description>Unique identifier of DC User</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="LAST_MODIFIED_USER_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackageToDCUserRel_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageToDCUserRel_FK1" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SWPackageToDCUserRel_FK2" 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-key name="SWPackageToDCUserRel_FK3" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LAST_MODIFIED_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="SWPackageSettings">
        <description>
            <![CDATA[
		Contains msi related settings
		]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_LOGGING">
                <description>Enable pre install command</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISABLE_ADDREMOVE_UNINST">
                <description>Enable pre install command</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <!-- Instal_exit_code column is deprecated as to support multiple eexit codes -->
            <column name="INSTALL_EXIT_CODE">
                <description>Exit code for installation. currently populating for exe type only.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_MUL_EXIT_CODES">
                <description>Multiple Exit code for installation with comma separated. currently populating for exe type only.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>NA</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackageSettings_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageSettings_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWPackageTransforms">
        <description>
            <![CDATA[
		This table contains the parameters related to software package transforms option.
		]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TRANSFORMS_FILE">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackageTransforms_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageTransforms_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWPackagePath">
        <description>
            <![CDATA[
		This table captures the path of the software package xml.
		]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>package id for which this configuration is defined. Should be selected from predefined packages.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_SOURCEFILE">
                <description>Represents the XML file which contains Package details where to be stored.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackagePath_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackagePath_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWPackageSourceURL">
        <description>
            <![CDATA[
		This table contains the http urls to be uresd for installing the package.
		]]>
        </description>
        <columns>
            <column name="SWPACKAGE_SOURCE_ID">
                <description>Unique Id for each SWPackageSourceURL. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SWPackageSourceURL.SWPACKAGE_SOURCE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PACKAGE_ID">
                <description>package id for which this configuration is defined. Should be selected from predefined packages.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROTOCOL">
                <description>Protocol used.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>http://</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HOST">
                <description>Host name in which the installation files reside.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>localhost</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT">
                <description>Port to which connected.</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>8020</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="URL">
                <description>The path entered after port.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPLETE_URL">
                <description>Compllete url obtained on combining all the above.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_INSTALL_TYPE">
                <description>This will capture the installation type of the package. The allowed values are 0 (Install package), 1 (uninstall package) </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="DOWNLOAD_TYPE">
                <description>Which dowload have to do in DS and Cloud, 1 - Internal,2 - External, 3 - Third Party Drive </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXTERNAL_DOWNLOAD_URL">
                <description>Download URL of application if the direct download option enabled </description>
                <data-type>CHAR</data-type>
                <max-size>300</max-size>
                <nullable>false</nullable>
            </column>
            <column name="ISCHECKSUMVALREQUIRED">
                <description>Mention the whether is checksum validation required  0 - No, 1- yes </description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="FILE_ID">
                       <description>File id Mapping.</description>
                       <data-type>BIGINT</data-type>
                       <default-value>-1</default-value>
                       <nullable>false</nullable>
                       <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPackageSourceURL_PK">
            <primary-key-column>SWPACKAGE_SOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageSourceURL_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DriverDetails">
        <description>
            <![CDATA[
		This table contains the details of Drivers available for Printer, etc.
		]]>
        </description>
        <columns>
            <column name="DRIVER_ID">
                <description>Unique Id for each driver. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DriverDetails.DRIVER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DRIVER_NAME">
                <description>Name of the driver. </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 driver. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCATION">
                <description>Location of the driver. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DriverDetails_PK">
            <primary-key-column>DRIVER_ID</primary-key-column>
        </primary-key>
    </table>
    
    <table name="ScriptDetails">
	<description>
	    <![CDATA[
		This table contains the details of Scripts available for various tasks.
		]]>
	</description>
	<columns>
	    <column name="SCRIPT_ID">
		<description>Unique Id for each script. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
		<uniquevalue-generation>
		    <generator-name>ScriptDetails.SCRIPT_ID</generator-name>
		</uniquevalue-generation>
	    </column>
	    <column name="SCRIPT_NAME">
		<description>Name of the script. </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 script. </description>
		<data-type>NCHAR</data-type>
		<max-size>250</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_ARGS">
		<description>Arguments for the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>255</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="EXIT_CODE">
		<description>specified value to be returned after script execution success.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_FILE">
		<description>Absolute file path of script in repository. </description>
		<data-type>NCHAR</data-type>
		<max-size>255</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CREATED_TIME">
		<description>Time at which this script is added. </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 script is modified. </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 script details is shared. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_TYPE">
		<description>Extension of script. </description>
		<data-type>CHAR</data-type>
		<max-size>10</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptDetails_PK">
	    <primary-key-column>SCRIPT_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptDetails_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="ScriptRepo">
	<description>
	    <![CDATA[
		This table contains the details of Scripts available for various tasks.
		]]>
	</description>
	<columns>
	    <column name="SCRIPT_ID">
		<description>Unique Id for each script. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
		<uniquevalue-generation>
		    <generator-name>ScriptRepo.SCRIPT_ID</generator-name>
		</uniquevalue-generation>
	    </column>
	    <column name="SCRIPT_NAME">
		<description>Name of the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DESCRIPTION">
		<description>A short description about the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_ARGS">
		<description>Arguments for the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="EXIT_CODE">
		<description>specified value to be returned after script execution success.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_FILE">
		<description>Absolute file path of script in repository. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CREATED_TIME">
		<description>Time at which this script is added. </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 script is modified. </description>
		<data-type>BIGINT</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CUSTOMER_ID">
		<description>@deprecated. This column is not used </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_TYPE">
		<description>Extension of script. </description>
		<data-type>CHAR</data-type>
		<max-size>10</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_TEMPLATE_ID">
		<description>@deprecated. This column is not used</description>
		<data-type>BIGINT</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="IS_FOR_ALL_CUSTOMERS">
		<description>Whether the script is for all customers or single customer</description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
		<column name="OS_PLATFORM">
        <description>OS platform of computer.1-Windows,2-Mac,3-Linux</description>
        <data-type>INTEGER</data-type>
        <default-value>1</default-value>
        <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>
        <column name="SCRIPT_MUL_EXIT_CODE">
            <description>specified value to be returned after script execution success.</description>
            <data-type>NCHAR</data-type>
			<max-size>250</max-size>
            <default-value>0</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="FILE_ID">
            <description>File id Mapping.</description>
            <data-type>BIGINT</data-type>
            <default-value>-1</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="DB_UPDATED_TIME">
            <description>This column will have have the last updated time for ScriptRepo records </description>
            <data-type>BIGINT</data-type>
            <default-value>0</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
	</columns>
	<primary-key name="ScriptRepo_PK">
	    <primary-key-column>SCRIPT_ID</primary-key-column>
	</primary-key>
    </table>
    <table name="ConfigDataDCFilesMapping">
        <description>
            <![CDATA[
           This table captures the credentials to be used for Configurations.
           ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Holds FK value from ConfigData</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_ID">
                <description>Holds FK value from DCFiles</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigDataDCFilesMapping_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigDataDCFilesMapping_FK1" 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="DCFiles">
        <description>
            <![CDATA[
                This table will contain details necessary for File Upload
            ]]>
        </description>
        <columns>
            <column name="FILE_ID">
                <description>Holds the unique id for each File Uploaded via API</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCFiles.FILE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FILE_NAME">
                <description>Holds the file name of the uploaded file.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_SYSTEM_LOCATION">
                <description>Holds the file system path of the uploaded file.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTENT_TYPE">
                <description>Holds the Content-Type of the uploaded file.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <unique>false</unique>
            </column>
            <column name="CONTENT_LENGTH">
                <description>Holds the Content-Length of the uploaded file.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="EXPIRY_TIME">
                <description>Holds the expiry time for the upload URL</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>
            </column>
            <column name="FILE_STATUS">
                <description>Holds the file availability status with respect to server : 1 - Not Ready ; 2 - Ready ; 3 - Failed</description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
            </column>
            <column name="FILE_STATUS_REMARKS">
                <description>Holds the file availability remarks </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
            </column>
        </columns>
        <primary-key name="DCFiles_PK">
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCFiles_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="SharedScripts">
	<description>
	    <![CDATA[
		This table contains the Scripts which were shared
            ]]>
	</description>
        <columns>
	    <column name="SCRIPT_ID">
		<description>Unique Id for each script. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SHARED_TIME">
		<description>Time at which this script is shared.</description>
		<data-type>BIGINT</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SHARED_USER_ID">
		<description>Shared User ID</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
	    </column>
        </columns>
	<primary-key name="SharedScripts_PK">
	    <primary-key-column>SCRIPT_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="SharedScripts_FK1" reference-table-name="ScriptRepo" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SCRIPT_ID</fk-local-column>
			<fk-reference-column>SCRIPT_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	    <foreign-key name="SharedScripts_FK2" reference-table-name="AaaUser" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SHARED_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="ScriptRepoToCustomerRel">
	<description>
	    <![CDATA[
		This table contains the Scripts Types and applicable OS details.
		]]>
	</description>
	<columns>
	    <column name="SCRIPT_ID">
		<description>Unique Id for each script. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CUSTOMER_ID">
		<description>Customer ID for which the script details is shared. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptRepoToCustomerRel_PK">
	    <primary-key-column>SCRIPT_ID</primary-key-column>
		<primary-key-column>CUSTOMER_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptRepoToCustomerRel_FK1" reference-table-name="ScriptRepo" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SCRIPT_ID</fk-local-column>
			<fk-reference-column>SCRIPT_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	    <foreign-key name="ScriptRepoToCustomerRel_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="ScriptType">
	<description>
	    <![CDATA[
		This table contains the Scripts Types and applicable OS details.
		]]>
	</description>
	<columns>
	    <column name="SCRIPT_TYPE">
		<description>Extension of script. </description>
		<data-type>CHAR</data-type>
		<max-size>10</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="OS_PLATFORM">
		<description>Type of the platform. 1-Windows, 2-Mac.</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptType_PK">
	    <primary-key-column>SCRIPT_TYPE</primary-key-column>
	    <primary-key-column>OS_PLATFORM</primary-key-column>
	</primary-key>
    </table>
    <table name="DCUsersScriptMapping">
	<description>
	    <![CDATA[
		This table contains the Scripts and the User IDs of tech who created and modified the scripts
		]]>
	</description>
	<columns>
	    <column name="SCRIPT_ID">
		<description>Unique Id for each script. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>true</unique>
	    </column>
	    <column name="CREATED_USER_ID">
		<description>Unique identifier</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
	    </column>
	    <column name="MODIFIED_USER_ID">
		<description>Unique identifier</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
	    </column>
	</columns>
	<primary-key name="DCUsersScriptMapping_PK">
	    <primary-key-column>SCRIPT_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="DCUsersScriptMapping_FK1" reference-table-name="ScriptDetails" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SCRIPT_ID</fk-local-column>
			<fk-reference-column>SCRIPT_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	    <foreign-key name="DCUsersScriptMapping_FK2" reference-table-name="AaaUser" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CREATED_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="DCUsersScriptMapping_FK3" reference-table-name="AaaUser" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>MODIFIED_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="DCUsersScriptRepoMapping">
	<description>
	    <![CDATA[
		This table contains the Scripts and the User IDs of tech who created and modified the scripts
		]]>
	</description>
	<columns>
	    <column name="SCRIPT_ID">
		<description>Unique Id for each script. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>true</unique>
	    </column>
	    <column name="CREATED_USER_ID">
		<description>Unique identifier</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
	    </column>
	    <column name="MODIFIED_USER_ID">
		<description>Unique identifier</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
	    </column>
	</columns>
	<primary-key name="DCUsersScriptRepoMapping_PK">
	    <primary-key-column>SCRIPT_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="DCUsersScriptRepoMapping_FK1" reference-table-name="ScriptRepo" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SCRIPT_ID</fk-local-column>
			<fk-reference-column>SCRIPT_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	    <foreign-key name="DCUsersScriptRepoMapping_FK2" reference-table-name="AaaUser" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CREATED_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="DCUsersScriptRepoMapping_FK3" reference-table-name="AaaUser" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>MODIFIED_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="ScriptTemplate">
	<description>
	    <![CDATA[
		This table will be used for Script Templates from central server
	    ]]>
	</description>
	<columns>
	    <column name="SCRIPT_TEMPLATE_ID">
		<description>Unique Id for each script.</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>		
	    </column>
	    <column name="DEFINITION_ID">
		<description>Id for the defenition </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
	    </column>
	    <column name="SCRIPT_NAME">
		<description>Name of the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DESCRIPTION">
		<description>A short description about the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_ARGS">
		<description>Arguments for the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="EXIT_CODE">
		<description>specified value to be returned after script execution success.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_DOWNLOAD_URL">
		<description>Arguments for the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CREATED_TIME">
		<description>Time at which this script is added. </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 script is modified. </description>
		<data-type>BIGINT</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_TYPE">
		<description>Extension of script file</description>
		<data-type>CHAR</data-type>
		<max-size>10</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CATEGORY">
		<description>Category of the script</description>
		<data-type>NCHAR</data-type>
		<max-size>200</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CHECKSUM">
		<description>Check sum value for the binary</description>
		<data-type>CHAR</data-type>
		<max-size>50</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="OS_PLATFORM">
		<description>OS platform of computer.1-windows,2-mac,3-linux</description>
		<data-type>INTEGER</data-type>
		<default-value>1</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_STATUS">
		<description>This is support status, 1-Supported, 2-Not Supported</description>
		<data-type>INTEGER</data-type>
		<default-value>1</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptTemplate_PK">
	    <primary-key-column>SCRIPT_TEMPLATE_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptTemplate_FK1" reference-table-name="DefinitionMetaData" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>DEFINITION_ID</fk-local-column>
			<fk-reference-column>DEFINITION_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="ScriptRepoToTemplateRel">
	<description>
	    <![CDATA[
		This table contains the Scripts Types and applicable OS details.
		]]>
	</description>
	<columns>
	    <column name="SCRIPT_ID">
		<description>Unique Id for each script. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_TEMPLATE_ID">
		<description>Customer ID for which the script details is shared. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptRepoToTemplateRel_PK">
	    <primary-key-column>SCRIPT_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptRepoToTemplateRel_FK1" reference-table-name="ScriptRepo" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SCRIPT_ID</fk-local-column>
			<fk-reference-column>SCRIPT_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	    <foreign-key name="ScriptRepoToTemplateRel_FK2" reference-table-name="ScriptTemplate" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SCRIPT_TEMPLATE_ID</fk-local-column>
			<fk-reference-column>SCRIPT_TEMPLATE_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="ScriptTemplateCreationSummary">
	<description>
	    <![CDATA[
		This table will be used to store download and creations status of Script Repository from Templates
	    ]]>
	</description>
	<columns>
        <column name="SCRIPT_TEMPLATE_CREATION_ID">
            <description>Unique Id for each script template creation</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <uniquevalue-generation>
                <generator-name>ScriptTemplateCreationSummary.SCRIPT_TEMPLATE_CREATION_ID</generator-name>
            </uniquevalue-generation>
        </column>
	    <column name="SCRIPT_TEMPLATE_ID">
		<description>Unique Id for each script.</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>true</unique>
	    </column>
	    <column name="CREATION_STATUS">
		<description>1. Creation Success, 2. Creation Failure</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="REMARKS">
		<description>Remarks whether script has been created or failed</description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptTemplateCreationSummary_PK">
	   <primary-key-column>SCRIPT_TEMPLATE_CREATION_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptTemplateCreationSummary_FK" reference-table-name="ScriptTemplate" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SCRIPT_TEMPLATE_ID</fk-local-column>
			<fk-reference-column>SCRIPT_TEMPLATE_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="ScriptTemplateStatus">
	<description>
	    <![CDATA[
		This table will be used to store download and creations status of Script Repository from Templates
	    ]]>
	</description>
	<columns>
	    <column name="SCRIPT_TEMPLATE_ID">
		<description>Unique Id for each script.</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CUSTOMER_ID">
		<description>Unique identifier of customer</description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
	    </column>
	    <column name="CREATION_STATUS">
		<description>1. Creation Success, 2. Creation Failure</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="REMARKS">
		<description>Remarks whether script has been created or failed</description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptTemplateStatus_PK">
	   <primary-key-column>SCRIPT_TEMPLATE_ID</primary-key-column>
	   <primary-key-column>CUSTOMER_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptTemplateStatus_FK1" reference-table-name="ScriptTemplate" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>SCRIPT_TEMPLATE_ID</fk-local-column>
			<fk-reference-column>SCRIPT_TEMPLATE_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	    <foreign-key name="ScriptTemplateStatus_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="DCSequence">
        <description>
            <![CDATA[
		This table will hold the sequence names and the next subsequent value for each sequence.
		]]>
        </description>
        <columns>
            <column name="SEQUENCE_ID">
                <description>Unique Id for each sequence used in desktop central. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCSequence.SEQUENCE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SEQUENCE_NAME">
                <description>Name of the sequence based on the purpose or module in which the sequence is being used. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NEXT_VALUE">
                <description>Next value to be returned from the sequence. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCSequence_PK">
            <primary-key-column>SEQUENCE_ID</primary-key-column>
        </primary-key>
    </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>
                    <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="collectionHolders">
        <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="TARGET_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>
        </columns>
        <primary-key name="collectionHolders_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="CollectionDeleted">
        <description>
            <![CDATA[
        This table contains deleted configuration details like collectionID,Deleted Time ...
        ]]>
        </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="DELETED_TIME">
                <description>Time at which the collection is deleted from DC. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DC_USER_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DeletedCollection_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DeletedCollection_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="ToolsCollection">
        <description>
            <![CDATA[
			This table will hold the collection IDs for tools.
		]]>
        </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>
        </columns>
        <primary-key name="ToolsCollection_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ToolsCollection_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="CollectionExtn">
        <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="TEMPLATE_TYPE">
                <description>Template type for which the collection is generated i.e template id</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CLONED_CONFIG_TYPE">
                <description>type of cloned configuration,1-All target,2-Failed target,3-Without target, 0- not a cloned configuration</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_DEPLOY_IMMEDIATELY">
                <description>Whether collection is deploy immediately or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOY_IMMEDIATE_TARGET_COUNT">
                <description>No of target machines in deploy immediately</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollectionExtn_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollectionExtn_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-keys>
    </table>

    <table name="CollectionRWStatus">
        <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="IS_REPWINDOW_ENABLED">
                <description>Whether collection is replication window 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="CollectionRWStatus_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollectionRWStatus_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-keys>
    </table>

    <table name="StatusUnavailableConfig">
        <description>
            <![CDATA[
			This table is used to identify the configurations which doesn't create status and which were defined before applying PPM
			This is an extension of 'ConfigData'.         ]]>
        </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>
            </column>
        </columns>
        <primary-key name="StatusUnavailableConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="StatusUnavailableConfig_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="SuspendedConfig">
        <description>
            <![CDATA[
		This table will hold the details of suspended configurations. The details stored in this table will be used to retain the old status once the suspended configuration is resumed.
		]]>
        </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="MODIFIED_TIME">
                <description>Time at which this configuration is last modified before suspend. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OLD_STATUS">
                <description>Holds the old state of the configuration. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SuspendedConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="SuspendedCfg_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="SuspendedCfg_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="ConfigDataItemCred">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for Configurations.
		   ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id of the configuration data item instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_NAME">
                <description>The network share user name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWORD">
                <description>The network share password. </description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>1000</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="ConfigDataItemCred_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigDataItemCred_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="RegistryConfigCredMapping">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for Configurations.
		   ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Holds FK value from ConfigData</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="CREDENTIAL_UUID">
                <description>Holds FK value from Credential</description>
                <data-type>CHAR</data-type>
				<max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_ID">
                <description>Holds FK value from Credential</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RegistryConfigCredMapping_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RegistryConfigCredMapping_FK1" 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="RegistryConfigCredMapping_FK2" reference-table-name="Credential" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CREDENTIAL_UUID</fk-local-column>
                        <fk-reference-column>CREDENTIAL_UUID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ConfigDataCredMapping">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for Configurations.
		   ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Holds FK value from ConfigData</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="CREDENTIAL_UUID">
                <description>Holds FK value from Credential</description>
                <data-type>CHAR</data-type>
				<max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_ID">
                <description>Holds FK value from Credential</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigDataCredMapping_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigDataCredMapping_FK1" 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="ConfigDataCredMapping_FK2" reference-table-name="Credential" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CREDENTIAL_UUID</fk-local-column>
                        <fk-reference-column>CREDENTIAL_UUID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
	<table name="ConfigDataItemCredMapping">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for Configurations.
		   ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Holds FK value from ConfigDataItem</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_UUID">
                <description>Holds FK value from Credential</description>
                <data-type>CHAR</data-type>
				<max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="CREDENTIAL_ID">
                <description>Holds FK value from Credential</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigDataItemCredMapping_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigDataItemCredMapping_FK1" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="ConfigDataItemCredMapping_FK2" reference-table-name="Credential" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CREDENTIAL_UUID</fk-local-column>
                        <fk-reference-column>CREDENTIAL_UUID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DisplayConfigDCFilesMapping">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for Configurations.
		   ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Holds FK value from ConfigData</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_ID">
                <description>Holds FK value from DCFiles</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_TYPE">
                <description>1 for wallpaper, 2 for screensaver file and 3 for lockscreen</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DisplayConfigDCFilesMapping_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DisplayConfigDCFilesMapping_FK1" 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="ConfigDataItemDCFilesMapping">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for Configurations.
		   ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Holds FK value from ConfigData</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_ID">
                <description>Holds FK value from DCFiles</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigDataItemDCFilesMapping_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigDataItemDCFilesMapping_FK1" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SubConfigData">
        <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="SUB_CONFIG_DATA_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>SubConfigData.SUB_CONFIG_DATA_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <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>
        </columns>
        <primary-key name="SubConfigData_PK">
            <primary-key-column>SUB_CONFIG_DATA_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="SubConfigData_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="RegistryConfig">
        <description>
            <![CDATA[
		All the registry based configurations will get added in this table. Here the CONFIG_KEY_ID must be one of the predefined keys exists in 'RegistryKey'. For example, if I configure 'Internet Settings' for a client machine with data 'start page=http://DesktopCentral' and 'search page=http://google.com', then the data population will go like this. Insert a record in 'ConfigData' with appropriate CONFIG_ID defined in 'Configuration' for 'Internet Settings'. A new CONFIG_DATA_ID will be generated for this instance of configuration. Then insert two rows in this table with the same CONFIG_DATA_ID along with appropriate key ids defined in 'RegistryKey' for 'start page' and 'search page'. The values 'http://DesktopCentral' and 'http://google.com' should be set for VALUE_DATA accordingly.
	</br> </br>
		An important advantage of this approach is, if there is any new software/product comes with registry based configuration, which can be easily supported by our product without changing or extending our schema. We need to simply feed the relevant data into the tables which are meant for factory settings.
		]]>
        </description>
        <columns>
            <column name="CONFIG_KEY_ID">
                <description>Unique Id of the configuration key. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_DATA_ID">
                <description> Id of the configuration data for which this registry entry is getting added. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VALUE_DATA">
                <description>The value to be assigned for the registry key pointed by CONFIG_KEY_ID for the instance of CONFIG_DATA_ID. </description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REG_ACTION">
                <description>This field captures the action to be performed over the registry with the given input. There are only two operations are possible Addition/Deletion and these will be represented by integer values 1,0 respectively. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RegistryConfig_PK">
            <primary-key-column>CONFIG_KEY_ID</primary-key-column>
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RegistryConfig_CDId_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="RegistryConfig_KeyId_FK" reference-table-name="ConfigKey" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_KEY_ID</fk-local-column>
                        <fk-reference-column>CONFIG_KEY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="RegCustomKeyConfig">
        <description>
            <![CDATA[
		There is a need of generic registry configuration where the user will provide all the details including the header, subkey, and everything and also might want to perform different actions like adding a registry key, deleting a registry key, adding a registry value etc. It differs from the previous table 'RegistryConfig' where the keys are predefined and only the values are accepted at the run time (actions are assigned implicitly ADD or OVERWRITE if already exists). Whereas here everything is accepted at the runtime. By this, we give more flexibility to the user. If he/she familiar with the registry keys, he/she can very well use this for various registry based configurations which are not captured by us explicitly. This table is modeled for Registry Key Addition/Deletion.
		]]>
        </description>
        <columns>
            <column name="REG_CUSTOM_KEY_ID">
                <description>Unique Id for the custom registry key data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>RegCustomKeyConfig.REG_CUSTOM_KEY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Unique Id of the config data for which this registry data is getting configured. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HEADER_KEY">
                <description>Header name under which the sub key to be added. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUB_KEY">
                <description>The sub key to be added under the header specified in the registry </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REG_ACTION">
                <description>This field captures the action to be performed over the registry with the given input. There are only two operations are possible Addition/Deletion and these will be represented by integer values 1,0 respectively. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RegCustomKeyConfig_PK">
            <primary-key-column>REG_CUSTOM_KEY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RegCustomKeyConfig_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="RegCustomValueConfig">
        <description>
            <![CDATA[
		This table captures the Registry Value (along with its key) Addition/Deletion configurations.
		]]>
        </description>
        <columns>
            <column name="REG_CUSTOM_VALUE_ID">
                <description>Unique Id for this value data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>RegCustomValueConfig.REG_CUSTOM_VALUE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the config data for which this registry data is getting configured. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HEADER_KEY">
                <description>Header name of the Registry under which the given value to be written. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUB_KEY">
                <description>The sub key name under which the given value to be written. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="KEY_NAME">
                <description>The name of the value (Key) for which this value to be written. </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VALUE_DATA">
                <description>The value/data to be written in the registry. </description>
                <data-type>NCHAR</data-type>
                <max-size>20000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_TYPE">
                <description>The data type of the given value to be written in the registry </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REG_ACTION">
                <description>This field captures the action to be performed over the registry with the given input. There are only two operations are possible Addition/Deletion and these will be represented by integer values 1,0 respectively. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RegCustomValueConfig_PK">
            <primary-key-column>REG_CUSTOM_VALUE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RegCustomValueConfig_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="RegConfigImportFile">
        <description>
            <![CDATA[
  	                 This table captures the Registry file details to import.
  	                 ]]>
        </description>
        <columns>
            <column name="REG_IMPORT_FILE_ID">
                <description>Unique Id for this value data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>RegConfigImportFile.REG_IMPORT_FILE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Id of the config data item for which this registry data is getting configured. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HTTP_URL_OPTION">
                <description>option to differentiate local or share file  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_LOCATION">
                <description>The file location of .reg file </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RegConfigImportFile_PK">
            <primary-key-column>REG_IMPORT_FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RegConfigImportFile_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="EnvVariableConfig">
        <description>
            <![CDATA[
		This table captures the details of Environment variables to be set on the clients. This is an extension of 'ConfigData'. Whenever a new instance of Environment Variable configuration is to be added, a row in 'ConfigData' must be added followed by an addition of a row in this table with the same CONFIG_DATA_ID generated for 'ConfigData'.
		]]>
        </description>
        <columns>
            <column name="ENV_CONFIG_ID">
                <description>Unique Id for the environment variable config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>EnvVariableConfig.ENV_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <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="VARIABLE_NAME">
                <description>Variable Name </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VALUE">
                <description>Value </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="EnvVariableConfig_PK">
            <primary-key-column>ENV_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="EnvVariableConfig_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="IEHomepageConfig">
	<description>
	    <![CDATA[
		This table captures the details about Internet explorer secondary home pages.
	    ]]>
	</description>
	<columns>
	    <column name="IE_HOMEPAGE_ID">
		<description>Unique Id for this IE homepage. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
		<uniquevalue-generation>
		<generator-name>IEHomepageConfig.IE_HOMEPAGE_ID</generator-name>
		    </uniquevalue-generation>
	    </column>
	    <column name="CONFIG_DATA_ID">
		<description>Id of the config data for which this IE home page settings configured. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SEC_START_PAGE">
		<description>The secondary home pages </description>
		<data-type>NCHAR</data-type>
		<max-size>2000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="IEHomepageConfig_PK">
	    <primary-key-column>IE_HOMEPAGE_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="IEHomepageConfig_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="IEFavoritesConfig">
	<description>
	    <![CDATA[
		This table captures the details about Internet explorer favorites.
	    ]]>
	</description>
	<columns>
	    <column name="IE_FAVORITE_ID">
		<description>Unique Id for this value data. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
		<uniquevalue-generation>
		    <generator-name>IEFavoritesConfig.IE_FAVORITE_ID</generator-name>
		</uniquevalue-generation>
	    </column>
	    <column name="CONFIG_DATA_ITEM_ID">
		<description>Id of the config data item for which this registry data is getting configured. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="ACTION">
		<description>option to differentiate add(0) or delete(1) favorite  </description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="FOLDER_PATH">
		<description>The folder path where the favorite to be added or deleted </description>
		<data-type>NCHAR</data-type>
		<max-size>255</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="FAVORITE_NAME">
		<description>name of the favorite, unique for the folder </description>
		<data-type>NCHAR</data-type>
		<max-size>255</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="TARGET_URL">
		<description>The URL to be mapped for the favorite </description>
		<data-type>NCHAR</data-type>
		<max-size>2000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="IEFavoritesConfig_PK">
	    <primary-key-column>IE_FAVORITE_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="IEFavoritesConfig_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
			<fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="BrowserCompatibility">
	<description>
            <![CDATA[
		This will be pre-populated static table
		Used to specify the columns in BrowserConfigDetails Table and compatible browsers
	    ]]>
        </description>
        <columns>
            <column name="BROWSER_COMPATIBILITY_ID">
                <description>Unique Id for the table.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>BrowserCompatibility.BROWSER_COMPATIBILITY_ID</generator-name>
                </uniquevalue-generation>
            </column>
	    <column name="CONFIG_ID">
		<description>Unique ID for a configuration</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="INTERNET_EXPLORER">
		<description>Is compatible with INTERNET_EXPLORER</description>
                <data-type>BOOLEAN</data-type>
		<default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
	    <column name="GOOGLE_CHROME">
		<description>Is compatible with GOOGLE_CHROME</description>
                <data-type>BOOLEAN</data-type>
		<default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
	    <column name="FIREFOX">
		<description>Is compatible with FIREFOX</description>
                <data-type>BOOLEAN</data-type>
		<default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EDGE">
                <description>Is compatible with EDGE</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
	    <column name="COLUMN_NAME">
                <description>Column Names of  BrowserConfigDetails table. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
	</columns>
	<primary-key name="BrowserCompatibility_PK">
            <primary-key-column>BROWSER_COMPATIBILITY_ID</primary-key-column>
        </primary-key>
	<foreign-keys>
            <foreign-key name="BrowserCompatibility_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>
    </table>
    <table name="BrowserConfig">
	<description>
	    <![CDATA[
		This table gives the default browser and the browsers to which browser specific configurations apply to.
	    ]]>
	</description>
	<columns>
	    <column name="CONFIG_DATA_ID">
		<description>Unique Id </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>true</unique>
	    </column>
	    <column name="DEFAULT_BROWSER">
		<description> Number for the browser 1. IE 2.Google chrome 3.Firefox 4.Don't modify </description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="INTERNET_EXPLORER">
		<description>If true, BrowserConfigDetails applies to IE</description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="GOOGLE_CHROME">
		<description>If true, BrowserConfigDetails applies to GC</description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="FIREFOX">
		<description>If true, BrowserConfigDetails applies to Firefox</description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
        <column name="EDGE">
            <description>If true, BrowserConfigDetails applies to Edge</description>
            <data-type>BOOLEAN</data-type>
            <default-value>false</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
	</columns>
	<primary-key name="BrowserConfig_PK">
	    <primary-key-column>CONFIG_DATA_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="BrowserConfig_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="BrowserConfigDetails">
	<description>
	    <![CDATA[
		This  table gives the basic parameters to configure browser settings
	    ]]>
	</description>
	<columns>
	    <column name="CONFIG_DATA_ID">
		<description>Unique Id </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>true</unique>
	    </column>
        <column name="HOMEPAGE_ACTION">
            <description> home page action </description>
            <data-type>INTEGER</data-type>
            <default-value>2</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
	    <column name="HOMEPAGE">
		<description> URL for the homepage </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SECONDARY_START_PAGES">
		<description> URL for the secondary start pages in MULTI_SZ format </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DEFAULT_SEARCH">
		<description> The url for default search  </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DOWNLOAD_DIR">
		<description> Default directory for download </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="ICONNECT_WIZARD">
		<description>showing internet connection wizard. 0- no, 1- yes 2- don't modify </description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="ENABLE_PROXY">
		<description>If proxy should be enabled 0- no, 1- yes 2- don't modify </description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="AUTO_CONFIG_URL">
		<description> URL for pac file </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PROXY_ADDR">
		<description>Proxy Address url/ ip </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PROXY_PORT">
		<description> Port number for the proxy </description>
		<data-type>INTEGER</data-type>
		<default-value>-1</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="LOCAL_ADDR_BYPASS">
		<description> to enable/disable local bypass 0-disable, 1-enable, 2-don't modify </description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="NO_USE_PROXY_ON">
		<description> urls or addresses to bypass proxy </description>
		<data-type>NCHAR</data-type>
		<max-size>2064</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
        <column name="TRUSTED_SITES_ACTION">
            <description> trusted sites action </description>
            <data-type>INTEGER</data-type>
            <default-value>2</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
	    <column name="TRUSTED_SITES">
		<description> URLs of sites that can be trusted </description>
		<data-type>NCHAR</data-type>
		<max-size>4000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
        <column name="RESTRICTED_SITES_ACTION">
            <description> restricted sites action </description>
            <data-type>INTEGER</data-type>
            <default-value>2</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
	    <column name="RESTRICTED_SITES">
		<description> URLs of sites that should be restricted </description>
		<data-type>NCHAR</data-type>
		<max-size>4000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
        <column name="INTRANET_SITES_ACTION">
            <description> local intranet sites action </description>
            <data-type>INTEGER</data-type>
            <default-value>2</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="INTRANET_SITES">
            <description> URLs of sites are added to local intranet sites </description>
            <data-type>NCHAR</data-type>
            <max-size>4000</max-size>
            <nullable>true</nullable>
            <unique>false</unique>
        </column>
	    <column name="CLEAR_CACHE">
		<description> If cache should be cleard. true- yes false - No </description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PASSWORD_CACHE">
		<description>Should password be allowed to be stored : 1) ENABLE 0) DISABLE 2) DON'T MODIFY</description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="ENABLE_TOOLBAR">
		<description>If toolbar should be enabled : 1) ENABLE 0) DISABLE 2) DON'T MODIFY</description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="BLOCK_POPUP">
		<description> If popup blocker should be enabled : 1) ENABLE 0) DISABLE 2) DON'T MODIFY </description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="AUTO_PROMPT_DOWNLOAD">
		<description>IF Auto prompt for download should be enabled : 0) ENABLE 3) DISABLE 2) DON'T MODIFY</description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="BrowserConfigDetails_PK">
	    <primary-key-column>CONFIG_DATA_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="BrowserConfigDetails_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="BrowserConfigDetailsExtn">
        <description>
            <![CDATA[
		This  table contains some additional parameters to configure browser settings
	    ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Unique Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>

            <column name="ALLOW_EXTN">
                <description> to configure extension 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CONFIG_COOKIES">
                <description> to configure cookie 0-block all, 1-block only 3rd party, 2-don't modify 3-allow all </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CONFIG_DO_NOT_TRACK">
                <description> to configure do not track 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CONFIG_ADOBE_FLASH">
                <description> to configure adobe flash 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FIREFOX_UPDATE">
                <description>firefox updates 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="ALLOW_PRIVATE_BROWSING">
                <description> to allow private browsing 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="PREVENT_ABOUT_FLAG">
                <description> to prevent about flag 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="PREVENT_WEBRTC">
                <description> to prevent localhost webrtc 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CONFIG_ENTERPRISE_MODE">
                <description> Enterprise mode list file path </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CONFIGURE_AUTOFILL">
                <description> to configure autofill 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CLEAR_HISTORY_ON_EXIT">
                <description> to configure extension 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CONFIG_DEV_TOOLS">
                <description> to configure developer tools  0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="WIN_DFND_SMARTSCREEN">
                <description> windows defender smartscreen 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="WIN_DFND_FILES">
                <description> windows defender files 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="WIN_DFND_SITES">
                <description> windows defender sites 0-disable, 1-enable, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="BrowserConfigExtnDetails_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BrowserConfigExtnDetails_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="BrowserConfigParams">
        <description>
            <![CDATA[
		This  table contains key and values to configure firefox browser settings
	    ]]>
        </description>
        <columns>
            <column name="FF_KEY_ID">
                <description>Unique Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
               <uniquevalue-generation>
                    <generator-name>BrowserConfigParams.FF_KEY_ID</generator-name>
                </uniquevalue-generation>
            </column>

            <column name="CONFIG_DATA_ID">
                <description>config data id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_OPERATION">
                <description> to configure extension 0-remove, 1-add, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_KEY">
                <description>ff key  </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_VALUE_TYPE">
            <description> ff value type 0 - boolean 1 - number 2- string</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_VALUES">
                <description> multiple ff values</description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="BrowserConfigParams_PK">
            <primary-key-column>FF_KEY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BrowserConfigParams_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="BrowserConfigParams">
        <description>
            <![CDATA[
		This  table contains key and values to configure firefox browser settings
	    ]]>
        </description>
        <columns>
            <column name="FF_KEY_ID">
                <description>Unique Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
               <uniquevalue-generation>
                    <generator-name>BrowserConfigParams.FF_KEY_ID</generator-name>
                </uniquevalue-generation>
            </column>

            <column name="CONFIG_DATA_ID">
                <description>config data id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_OPERATION">
                <description> to configure extension 0-remove, 1-add, 2-don't modify </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_KEY">
                <description>ff key  </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_VALUE_TYPE">
            <description> ff value type 0 - boolean 1 - number 2- string</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_VALUES">
                <description> multiple ff values</description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="BrowserConfigParams_PK">
            <primary-key-column>FF_KEY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BrowserConfigParams_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="DisplayConfig">
        <description>
            <![CDATA[
			As the display setting configuration is registry based the basic data's are stored in RegistryConfig. Since we are supporting the WAN approach then the destination file might not be available in the network share. It might be available in the web-server. Hence we need to download the file from the web-server using the below data and proceed with the same approach. This is an extension of 'ConfigData'.
			Display Configurations has been enhanced in build number <buildnumber> and extra options are being introduced. More tables have been added to persist the new configuration data. To reduce migration cost, this old table has been preserved by adding new columns relating to Wallpaper settings in addition to existing options.
			]]>
        </description>
        <columns>
            <column name="DISPLAY_CONFIG_ID">
                <description>Unique Id for the image to be displayed. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DisplayConfig.DISPLAY_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HTTP_URL_OPTION">
                <description>This option will help us to provide whether to download the file from desktop central server or from network share. 0 for network share and 1 for http option.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILESPEC">
                <description>Location of the image to be displayed. </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHANGE_WALLPAPER">
                <description>This attribute says what to do about the wallpaper. Possible values are 0 - Preserve existing wallpaper, 1 - Change with the file specified in configuration and 2 - Disable wallpaper</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SET_SAME_IMAGE_FOR_LOCKSCREEN">
                <description>This attribute says whether to set same image for lockscreen. Values are 0 - false, 1 - true</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WALLPAPER_POSITION">
                <description>How to position the wallpaper. Possible values are 0 - Tile,1 - Center, 2 - Stretch, 3 - Fit, 4 - Fill</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PREVENT_CHANGE">
                <description>Prevent user from changing wallpaper by disabling settings. Possible values are 0 - User can change, 1 - User cannot change, 2 - Preserve Existing settings</description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FONT_DPI">
                <description>Set Font DPI option</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DisplayConfig_PK">
            <primary-key-column>DISPLAY_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DisplayConfig_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="ScreensaverSettings">
        <description>
            <![CDATA[
			Stores the screensaver settings of Display Configuration (User Config). This is an extension of 'ConfigData'.
			]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Primary Key of ConfigData</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_HTTP_FETCH_REQUIRED">
                <description>This option will help us to provide whether the file has to be downloaded from desktop central server or taken from network share. Possible values 0 for network share and 1 for http option</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_LOCATION">
                <description>Location of the screensaver file </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHANGE_SCREENSAVER">
                <description>This attribute says what to do about the screensaver. Possible values are 0 - Preserve existing screensaver, 1 - Change with the screensaver specified in configuration and 2 - Disable screensaver</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WAIT_TIME">
                <description>Duration in minutes to invoke screensaver</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="PREVENT_CHANGE">
                <description>Prevent user from changing screensaver by disabling settings. Possible values are 0 - User can change, 1 - User cannot change, 2 - Preserve Existing settings</description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_LOGON_ON_RESUME">
                <description>Show log on screen when the machine resumes. Possible values are 0 - Do not show log on screen and 1 - Show log on screen</description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ScreensaverSettings_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ScreensaverSettings_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="FontSettings">
        <description>
            <![CDATA[
			Stores the font settings of Display Configuration (Computer Config). This maps to 'ConfigDataItem' which in turn maps to 'ConfigData'. 'ConfigDataItem' has been introduced to as 'Add More' option is applicable for Font Settings.
			]]>
        </description>
        <columns>
            <column name="FONT_CONFIG_ID">
                <description>Unique Key</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>FontSettings.FONT_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Primary Key of ConfigDataItem</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_HTTP_FETCH_REQUIRED">
                <description>This option will help us to provide whether the file has to be downloaded from desktop central server or taken from network share. Possible values 0 for network share and 1 for http option</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_LOCATION">
                <description>Location of the font file </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OPERATION">
                <description>This defines the type of operation. Possible values 1 to add font and 0 to remove font</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FontSettings_PK">
            <primary-key-column>FONT_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FontSettings_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DisplayResolutionSettings">
        <description>
            <![CDATA[
			Stores the dsiplay resolution settings of Display Configuration (Computer Config). This is an extension of 'ConfigData'.
			]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Primary Key of ConfigData</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRIMARY_DISPLAY_X">
                <description>Set X axis resolution for primary display device</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="PRIMARY_DISPLAY_Y">
                <description>Set X axis resolution for primary display device</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="SECONDARY_DISPLAY_X">
                <description>Set X axis resolution for secondary display device</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="SECONDARY_DISPLAY_Y">
                <description>Set Y axis resolution for secondary display device</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DisplayResolutionSettings_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DisplayResolutionSettings_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="AppLauncherConfig">
        <description>
            <![CDATA[
		This table captures the details of Application to be launched on the client start ups. This is an extension of 'ConfigData'.
		]]>
        </description>
        <columns>
            <column name="APPLN_CONFIG_ID">
                <description>Unique Id for the application launcher config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AppLauncherConfig.APPLN_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPLICATION_NAME">
                <description>Name of the application to be launched. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HTTP_URL_OPTION">
                <description>This option will help us to provide whether to download the file from desktop central server or from network share. 0 for network share and 1 for http option.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILESPEC">
                <description>Location of the application to be launched. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ARGUMENTS">
                <description>Location of the application to be launched. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_ID">
                <description>id vlaue for the file uploaded </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AppLauncherConfig_PK">
            <primary-key-column>APPLN_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AppLauncherConfig_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="ShortcutConfig">
        <description>
            <![CDATA[
			This table captures the shortcut configuration details. This is an extension of 'ConfigData'. As this configuration is under 'Non Registry based configuration', it is captured here separately.
		]]>
        </description>
        <columns>
            <column name="SC_CONFIG_ID">
                <description>Unique Id for shortcut config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ShortcutConfig.SC_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SC_NAME">
                <description>Name of the Shortcut. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SC_LOCATION">
                <description>Number that specifies the location for the Shortcut. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			 <column name="CUSTOM_LOCATION_PATH">
                <description>specifies the custom location for the Shortcut. </description>
                <data-type>NCHAR</data-type>
				<max-size>200</max-size>
                 <default-value>--</default-value>       				
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SC_OPERATION">
                <description>The operation to be performed on the Shortcut. The values can be either CREATE(1) or DELETE(2). In case of CREATE, the other necessary details will be looked up from another child table. In case of DELETE, this details provided in this table itself enough to perform this operation. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SC_TYPE">
                <description>Type is the shortcut type i.e general shortcut is 0 and internet shortcut is 1.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ShortcutConfig_PK">
            <primary-key-column>SC_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ShortcutConfig_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="ShortcutPropsConfig">
        <description>
            <![CDATA[
		This table captures all the necessary details of shortcut configuration. This is an extension of 'ShortcutConfig'.
		]]>
        </description>
        <columns>
            <column name="SC_CONFIG_ID">
                <description>Id of the short cut configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SC_TARGET">
                <description>The program or folder location that the shortcut should point to. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SC_TARGET_ARGS">
                <description>Optional command line params for the shortcut pointing to. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="START_IN_FOLDER">
                <description>Folder name where the reference files exist for the shortcut. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SC_COMMENT">
                <description>Description of the shortcut. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ICON_NAME">
                <description>Icon file to display for the shortcut. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SC_KEY">
                <description>Keyboard shortcut keys for the shortcut. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RUN_WINDOW">
                <description>Number that specifies the Run Window type (Normal, Minimized, maximized) </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OVERWRITE">
                <description>Overwrite if already exists ? </description>
                <data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
                 
            </column>
			 <column name="RUN_AS_ADMIN">
                <description>Run shortcut as admin? </description>
                <data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_ID">
			    <description>file id which contains details of the uploaded file </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
				<unique>false</unique>
			</column>
        </columns>
        <primary-key name="ShortcutPropsConfig_PK">
            <primary-key-column>SC_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ShortcutPropsConfig_FK" reference-table-name="ShortcutConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SC_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SC_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SharedPrinterAddConfig">
        <description>
            <![CDATA[
		This table captures the details for adding Shared Printer Configurations. This is an extension of 'ConfigData'.
		]]>
        </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="SHARE_PATH">
                <description>The name of the shared printer including the full path. </description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SET_AS_DEFAULT">
                <description>Set as Default this added printer. </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEFAULT_SHARE_PATH">
                <description>The name of the shared printer which is set as default.Default printer name is based on this column and set_as_default columns.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
	    <column name="USE_SHARE_CREDENTIALS">
		<description>Whether to use credentials of share path. 0-Dont use credentials, 1-User credentials</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
        </columns>
        <primary-key name="SharedPrinterAddCfg_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SharedPrinterAddCfg_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="SharedPrinterDelConfig">
        <description>
            <![CDATA[
		This table captures details for deleting Shared Printer Configurations. This is an extension of 'ConfigData'.
		]]>
        </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="SHARE_PATH">
                <description>The name of the shared printer including full path. </description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEL_ALL_PRINTER_CONN">
                <description>Delete all existing shared printer connections. </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SharedPrinterDelCfg_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SharedPrinterDelCfg_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="IPPrinterConfig">
        <description>
            <![CDATA[
			This table captures the IP Printer Configurations.
		]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id of the configuration data item instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRINTER_DISP_NAME">
                <description>Printer display name. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEL_ALL_PRINTER_CONN">
                <description>Delete all existing IP printer connections. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRINTER_OPERATION">
                <description>Operation to be carried out. 1. ADD 2. DELETE  3. SET_AS_DEFAULT  </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="IPPrinterConfig_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="IPPrinterConfig_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="IPPrinterConfigExtn">
        <description>
            <![CDATA[
			This table captures the IP Printer Configuration additional details mainly for ADD operation.
		]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SET_AS_DEFAULT">
                <description>Set as Default this added printer </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DRIVER_NAME">
                <description>Driver name for the printer configuration. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DNS_OR_IP_OF_PRINTER">
                <description>DNS name or Ip of this printer </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHARED_DRIVER_PATH">
                <description>Path of the driver to be installed for the new printer configuration. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROTOCOL_NAME">
                <description>Name of the protocol to be used for the new printer configuration. The available values would be RAW or LPR.  </description>
                <data-type>NCHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT_NUMBER">
                <description>Port number to be used for the new printer configuration.  </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT_NAME">
                <description>Name of the Port to be used for the new printer configuration.  </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OVERWRITE">
                <description>Whether to overwrite if already exists </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="IPPrinterConfigExtn_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="IPPrinterConfigExtn_FK" reference-table-name="IPPrinterConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DriverPkgDetails">
        <description>
            <![CDATA[
			This table captures the Driver package details for IP Printer Configurations.
		]]>
        </description>
        <columns>

            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="DRIVER_FILE_NAME">
                <description>Driver File name. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DRIVER_NAME">
                <description>Driver name. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SELECTED_INF_PATH">
                <description>INF file path inside driver file. </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="DriverPkgDetails_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DriverPkgDetails_FK" reference-table-name="IPPrinterConfigExtn" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DriverPkgInfDetails">
        <description>
            <![CDATA[
			This table captures the INF file paths  of Driver package  for IP Printer Configurations.
		]]>
        </description>
        <columns>
            <column name="DRIVER_PKG_INF_ID">
                <description>Unique Id for each driver package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DriverPkgInfDetails.DRIVER_PKG_INF_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

            <column name="INF_PATH">
                <description>INF file path of the INF file inside driver file. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="DriverPkgInfDetails_PK">
            <primary-key-column>DRIVER_PKG_INF_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DriverPkgInfDetails_FK" reference-table-name="DriverPkgDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="IPPrinterAddConfig">
        <description>
            <![CDATA[
			This table captures the IP Printer Configurations.
		]]>
        </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="PRINTER_NAME">
                <description>The DNS name of the IP printer. IP address also can be provided here. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_DNS_NAME">
                <description>This field will say whether the printer name is given as ip address or DNS name. </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SET_AS_DEFAULT">
                <description>Set as Default this added printer </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DRIVER_NAME">
                <description>Driver name for the printer configuration. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODEL_NAME">
                <description>Model name for the printer. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHARED_DRIVER_PATH">
                <description>Path of the driver to be installed for the new printer configuration. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROTOCOL_NAME">
                <description>Name of the protocol to be used for the new printer configuration. The available values would be RAW or LPR.  </description>
                <data-type>NCHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT_NUMBER">
                <description>Port number to be used for the new printer configuration.  </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT_NAME">
                <description>Name of the Port to be used for the new printer configuration.  </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="IPPrinterAddConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="IPPrinterAddConfig_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="IPPrinterDelConfig">
        <description>
            <![CDATA[
			This table captures Deletion of IP Printer Configurations. This is an extension of 'ConfigData'.
		]]>
        </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="PRINTER_NAME">
                <description>The DNS name of the IP printer. IP address also can be provided here. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_DNS_NAME">
                <description>This field will say whether the printer name is given as ip address or DNS name. </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEL_ALL_PRINTER_CONN">
                <description>Delete all existing IP printer connections. </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="IPPrinterDelConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="IPPrinterDelConfig_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="MailProfGeneralConfig">
        <description>
            <![CDATA[
		Mail profiles are part of the Windows Messaging system and are used to define the services and options needed to connect the Outlook client to Microsoft Exchange server. As this configuration is a Non Registry based configuration, this table captures the general configurations of Mail Profile options. This is an extension of ConfigData.
		]]>
        </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="MAIL_PROFILE_NAME">
                <description>The name for the new profile to be created. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROFILE_TEMPLATE_FILE">
                <description>Name of the profile template that will be used to create new profiles from. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXCHANGE_SERVER_NAME">
                <description>Name of the Exchange Server to which the profile will be connected to. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAIL_BOX_NAME">
                <description>The name of the mailbox the user will be connected to on the Exchange Server.  </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OVERWRITE">
                <description>Whether to delete any existing profile with the same name as the profile to be created. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MailProfGeneralConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MailProfGeneralConfig_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="MailProfPABConfig">
        <description>
            <![CDATA[
		This table captures the Mail Profile Personal Address Book configurations of MS Outlook. This is an extension of 'ConfigData'.
		]]>
        </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="ENBL_PAB">
                <description>To add the Personal Address Book service to the new profile. The possible values would be 0 for preserve client settings, 1 for true and 2 for false. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PAB_FOLDER">
                <description>To be used to store the Personal Address Book and Folder Settings. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PAB_FILE_NAME">
                <description>The file name to be used for the Personal Address Book. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PERSONAL_FLDR_NAME">
                <description>The file name to be used for Personal Folders. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENBL_PERSONAL_FLDRS">
                <description>To add the Personal Folders service to the new profile. The possible values would be 0 for preserve client settings, 1 for true and 2 for false. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MailProfPABConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MailProfPABConfig_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="MailProfOfflineConfig">
        <description>
            <![CDATA[
		This table captures the Mail Profile Offline configurations of MS Outlook. This is an extension of 'ConfigData'.
		]]>
        </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="OFFLINE_FLDR_PATH">
                <description>The common physical path on the client machines where the Offline Address Book (OAB) and Offline Folder files should be stored. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OFFLINE_FLDR_NAME">
                <description>File name to be used for Offline folders. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENBL_OFFLINE_ADR_BOOK">
                <description>To add the Offline Address Book service to the new profile. The possible values would be 0 for preserve client settings, 1 for true and 2 for false. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENBL_OFFLINE_FLDRS">
                <description>To enable Outlook to work offline. The possible values would be 0 for preserve client settings, 1 for true and 2 for false. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MailProfOfflineConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MailProfOfflineConfig_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="OutlookGenConfig">
        <description>
            <![CDATA[
		This table captures the general configurations of the ms outlook.
		]]>
        </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="VIEW_OUTLOOK_BAR">
                <description>Whether to view outlook bar. The possible values would be 0 for preserve client settings, 1 for true and 2 for false. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VIEW_FOLDER_LIST">
                <description>Whether to view folder list. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WARN_BEFORE_DELETE">
                <description>Whether the user to be warned before any deletion. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STARTUP_FOLDER">
                <description>Folder name for outlook startup. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EMPTY_DLTD_ON_EXIT">
                <description>When to empty the deleted items. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OutlookGenConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="OutlookGenConfig_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="OutlookMailConfig">
        <description>
            <![CDATA[
		This table captures the mail configurations of the ms outlook.
		]]>
        </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="DISP_NOTIFICATION">
                <description>Whether to display notification on new mail arrival. The possible values would be 0 for preserve client settings, 1 for true and 2 for false. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PLAY_SOUND">
                <description>Whether to play sound on new mail arrival. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTO_ARCHIVE">
                <description>Whether the mails to be auto archived. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTO_ARCHIVE_DAYS">
                <description>Auto archive period. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROMPT_AUTO_ARCHIVE">
                <description>Whether to prompt for auto archiving. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTO_ARCHIVE_FOLDER">
                <description>Folder name for auto archiving. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTO_ARCHIVE_FILE">
                <description>Auto archiving file name. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEL_EXPIRED_ITEMS">
                <description>Whether to delete expired items. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMMA_ADDR_SEPARATOR">
                <description>Whether comma as address separator. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTO_NAME_CHECK">
                <description>Whether to enable automatic name checking while sending mails. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OutlookMailConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="OutlookMailConfig_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="OutlookMsgConfig">
        <description>
            <![CDATA[
		This table captures the message format and handling configurations of the ms outlook.
		]]>
        </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="MESSAGE_FORMAT">
                <description>Message format. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MSWORD_AS_EDITOR">
                <description>Whether to set MS Word as default editor. The possible values would be 0 for preserve client settings, 1 for true and 2 for false. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SEND_PICS_FROM_NET">
                <description>Whether to send pictures from internet. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SAVE_IN_SENT_FLDR">
                <description>Whether to save copies in sent folder. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTO_SAVE_UNSENT_MSGS">
                <description>Whether to auto save unsent messages. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTO_SAVE_INTERVAL">
                <description>Interval(in minutes) for auto save unsent messages. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OutlookMsgConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="OutlookMsgConfig_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="OutlookSpellChkConfig">
        <description>
            <![CDATA[
		This table captures the spell check configurations of the ms outlook.
		]]>
        </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="ALWAYS_CHK_SPELL">
                <description>Whether always to check spelling. The possible values would be 0 for preserve client settings, 1 for true and 2 for false. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALWAYS_SUGG_REPL">
                <description>Whether to suggest replacements always. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IGNORE_UCASE">
                <description>Whether to ignore words in UPPER case. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IGNORE_NUMBERS">
                <description>Whether to ignore words with numbers. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IGNORE_ORG_MSG">
                <description>Whether to ignore original messages in replies. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OutlookSpellChkConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="OutlookSpellChkConfig_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="AlertConfig">
        <description>
            <![CDATA[
		This table captures the various alert and warning configurations of client desktop.
		]]>
        </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="WARN_PSWD_EXPIRE_DAYS">
                <description>Warn number of days before the network password expire. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WARN_ON_DRIVE_SPACE">
                <description>Warn user if free space on the system drive is less than given value in MB. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PURGE_ON_TEMP">
                <description>The flag to control the purge on temp floder. The allowed values are 'Never', 'Prompt', 'Always'.</description>
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PURGE_FILE_TYPE">
                <description>The flag to control the purge on temp floder. The allowed values are 'Never', 'Prompt', 'Always'.</description>
                <data-type>NCHAR</data-type>
                <max-size>25</max-size>
                <default-value>*.*</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PURGE_FILE_SIZE">
                <description>Purge file size.</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AlertConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AlertConfig_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="GeneralConfig">
        <description>
            <![CDATA[
		This table captures the general configurations of client desktop.
		]]>
        </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="REGTD_OWNER">
                <description>Registered owner name to be updated. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REGTD_COMPANY">
                <description>Registered company name to be updated. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TIME_SERVER">
                <description>Time server location. </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_LAST_USER">
                <description>Whether to display the last login user. </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MY_DOCUMENT_DESKTOP_ICON">
                <description>Whether to display the last login user. </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="GeneralConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="GeneralConfig_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="SWPackageConfig">
        <description>
            <![CDATA[
		This table captures the details of softwares to be installed on the client machines. This is an extension of 'ConfigData'.
		]]>
        </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="PACKAGE_ID">
                <description>package id for which this configuration is defined. Should be selected from predefined packages.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_NAME">
                <description>Name of the user Name. The package is installed by this user credential</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWORD">
                <description>Password of the user</description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>1000</max-size>
                <default-value></default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_TYPE">
                <description>Package type, one of the options from MSI(1), EXE(2). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OPERATION">
                <description>Operation type, one of the options from ASSIGN(1), PUBLISH(2), REMOVE(3), REDEPLOY(4). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOM_MESSAGE">
                <description>Message to be displayed on the client machines. </description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COPY_OPTION">
                <description>Operation type, one of the options from ASSIGN(1), PUBLISH(2), REMOVE(3), REDEPLOY(4). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SCHEDULE_TYPE">
                <description>To capture whether install or uninstall should take place on the client machines at the earliest or only after the specified time. Allowed values are 0 (AT_THE_EARLIEST), 1 (ONLY_AFTER_SPECIFIED_TIME)</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>
            <column name="PRIVILEGE_OPTION">
                <description>User Privilege type, Options to install a software as - None(0) Run as user(1), system(2), target user(3). </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXECUTE_SILENT_OPTION">
                <description>Option to install the software with UI displayed on Client Machines. Allowed values are 0 (Silent Installation), 1 (Open UI in the client machines)</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <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="SWPackageConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageConfig_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="CollSchExecution">
            <description>
                <![CDATA[
                table captures the scheduler and excution option of 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>
                </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="DriveConfig">
        <description>
            <![CDATA[
			This table captures the details of Drive mapping configuration. This is an extension of 'ConfigData'.  There can be multiple instances of DriveConfig for single ConfigData entry.
		]]>
        </description>
        <columns>
            <column name="DRIVE_CONFIG_ID">
                <description>Unique Id for the drive mapping config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DriveConfig.DRIVE_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DRIVE_LETTER">
                <description>Drive letter like C, D, etc. </description>
                <data-type>NCHAR</data-type>
                <max-size>2</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION_TO_PERFORM">
                <description>The action to be performed for the drive map. The allowed values would be 1 (for ADD), 2 (for REMOVE). </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DRIVE_PATH">
                <description>Path for the drive to be mapped. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HIDE_FROM_EXPLORER">
                <description>Whether hide this drive from explorer ? </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXPLORER_LABEL">
                <description>Label to be shown in the explorer for this drive. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECONNECT_AT_LOGON">
                <description>Whether to reconnect at logon ? </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DriveConfig_PK">
            <primary-key-column>DRIVE_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DriveConfig_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="DriveConfigExtn">
        <description>
            <![CDATA[
			This table captures some of the additional parameters related to the Drive Mapping configuration. This is an extension of 'ConfigData'.
		]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISCNT_OLD_DRIVES">
                <description>How to handle exisitng drive. 0 - Do not over ride existing drives, 1 - Disconnect all existing , 2 - Override existing drives if any </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTINUE_ON_FAILURE">
                <description>In case of multiple drive mapping tasks, what does failure of one task imply? 0 - Do not proceed to next task if one task fails, 1- proceed to next task</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DriveConfigExtn_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DriveConfigExtn_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="MessageBoxConfig">
        <description>
            <![CDATA[
			This table captures the details of message box configuration (Windows and MAC). This is an extension of 'ConfigData'.
		]]>
        </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="MSG_TITLE">
                <description>The title to be shown in the message box. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MSG_CONTENT">
                <description>Message to be shown in the message box. </description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MSG_STYLE">
                <description>The message style.</description>
                <data-type>INTEGER</data-type>
                <default-value>64</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MSG_TIMEOUT">
                <description>Timeout value in seconds for the message box. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MSG_OPERATION">
                <description>The operation to be performed on the Message Box. The values can be either CREATE(1) or DELETE(2) or DELETEALL(3). In case of CREATE, the other necessary details will be looked up from another child table.</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INVOCATION_SCHEDULE">
                <description>Schedule to invoke the message on the client machcines. </description>
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MSG_EXEC_TYPE">
                <description>execution type 0-at every login (or start up) ,1-only once,2-during x logins (or start up),3-every login (or start up) till.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MSG_EXEC_EXP_TIME">
                <description>Time till which the configuration should execute.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MSG_EXEC_COUNT">
                <description>this count gives number of times configraton should execute.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MessageBoxConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MessageBoxConfig_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="ScriptConfig">
	<description>
		<![CDATA[
		    Table not used after introduction of CustomScriptConfig table
		]]>
	</description>
	<columns>
	    <column name="SCRIPT_CONFIG_ID">
		<description>Unique Id for the script config data. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
		<uniquevalue-generation>
		    <generator-name>ScriptConfig.SCRIPT_CONFIG_ID</generator-name>
		</uniquevalue-generation>
	    </column>
	    <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="SCRIPT_ID">
		<description>Unique ID of the script in repository</description>
		<data-type>BIGINT</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_NAME">
                <description>deprecated. The file name with fully qualified path for the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>250</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_FILE">
                <description>deprecated. The file name with fully qualified path for the script. </description>
		<data-type>NCHAR</data-type>
		<max-size>250</max-size>
		<default-value>--</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_ARGS">
		<description>The arguments for the given script file. </description>
		<data-type>NCHAR</data-type>
		<max-size>250</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>			
	    <column name="EXIT_CODE">
		<description>specified value to be returned after script execution success.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="INVOCATION_SCHEDULE">
		<description>Schedule to invoke the script on the client machcines. </description>
		<data-type>CHAR</data-type>
		<max-size>10</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_OPERATION">
		<description>Operation  is the operation type i.e create script is 1 and delete script is 2 and delete all script is 3.</description>
		<data-type>INTEGER</data-type>
		<default-value>1</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_EXEC_TYPE">
		<description>execution type 0-at every login (or start up) ,1-during x logins (or start up),2-every login (or start up) till,3-only once.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_EXEC_EXP_TIME">
		<description>Time till which the configuration should execute.</description>
		<data-type>BIGINT</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_EXEC_COUNT">
		<description>his count gives number of times configraton should execute.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptConfig_PK">
	    <primary-key-column>SCRIPT_CONFIG_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptConfig_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="CustomScriptConfig">
	<description>
		<![CDATA[
		This table captures the details of script invocation configuration. This is an extension of 'ConfigData'.
		]]>
	</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="USE_CREDENTIALS">
		<description>To choose Run-As option for script. 0-System_User for ComputerConfig and Target_User for UserConfig, 1-System_User, 2-Target_User, 3-Cred_User</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="INVOCATION_SCHEDULE">
		<description>Schedule to invoke the script on the client machcines. </description>
		<data-type>CHAR</data-type>
		<max-size>10</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_OPERATION">
		<description>
		    Operation type
		    1 - Create file script
		    2 - Delete single script
		    3 - Delete all scripts
		    4 - Create Command Line script
		</description>
		<data-type>INTEGER</data-type>
		<default-value>1</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_EXEC_TYPE">
		<description>execution type 0-at every login (or start up) ,1-during x logins (or start up),2-every login (or start up) till,3-only once.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_EXEC_EXP_TIME">
		<description>Time till which the configuration should execute.</description>
		<data-type>BIGINT</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_EXEC_COUNT">
		<description>his count gives number of times configraton should execute.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="ENABLE_LOGGING">
		<description>Location for logs. 1 - enable,  0 - disable </description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SHOW_SCRIPT_UI">
		<description>value to check if the script should interact with the user. 1 - yes, 0 - no </description>
		<data-type>INTEGER</data-type>
		<default-value>1</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="CustomScriptConfig_PK">
	    <primary-key-column>CONFIG_DATA_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="CustomScriptConfig_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="ScriptFileConfig">
	<description>
		<![CDATA[
		This table captures the details of script id, script args and exit code. This is an extension of 'CustomScriptConfig'.
		]]>
	</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="SCRIPT_ID">
		<description>Unique ID of the script in repository</description>
		<data-type>BIGINT</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_ARGS">
		<description>The arguments for the given script file. </description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>	
	    <column name="EXIT_CODE">
		<description>specified value to be returned after script execution success.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<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>
        <column name="SCRIPT_MUL_EXIT_CODE">
            <description>specified value to be returned after script execution success.</description>
            <data-type>NCHAR</data-type>
			<max-size>250</max-size>
            <default-value>0</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
	</columns>
	<primary-key name="ScriptFileConfig_PK">
	    <primary-key-column>CONFIG_DATA_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptFileConfig_FK" reference-table-name="CustomScriptConfig" 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="ScriptCommandConfig">
	<description>
		<![CDATA[
		This table captures the details of script id, script args and exit code. This is an extension of 'CustomScriptConfig'.
		]]>
	</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="COMMAND_LINE">
		<description>Single line command that has to be executed </description>
		<data-type>NCHAR</data-type>
		<max-size>500</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="EXIT_CODE">
		<description>specified value to be returned after script execution success.</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<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>
        <column name="SCRIPT_MUL_EXIT_CODE">
            <description>specified value to be returned after script execution success.</description>
            <data-type>NCHAR</data-type>
			<max-size>250</max-size>
            <default-value>0</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
	</columns>
	<primary-key name="ScriptCommandConfig_PK">
	    <primary-key-column>CONFIG_DATA_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptCommandConfig_FK" reference-table-name="CustomScriptConfig" 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="ScriptConfigDependencyFiles">
	<description>
		<![CDATA[
		This table captures the details of script id, script args and exit code. This is an extension of 'CustomScriptConfig'.
		]]>
	</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="FILE_URL">
		<description>Download url of the specified file </description>
		<data-type>NCHAR</data-type>
		<max-size>250</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptConfigDependencyFiles_PK">
	    <primary-key-column>CONFIG_DATA_ID</primary-key-column>
		<primary-key-column>FILE_URL</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptConfigDependencyFiles_FK" reference-table-name="CustomScriptConfig" 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="CSToDCFiles">
        <description>
            <![CDATA[
            This is mapping table for DCFiles & ChecksumValues Table.
            ]]>
        </description>
        <columns>
            <column name="FILE_ID">
                <description>Holds unique Id generated for File Upload. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CHECKSUM_ID">
                <description>Holds unique Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="CSToDCFiles_PK">
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CSToDCFiles_FK1" reference-table-name="DCFiles" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FILE_ID</fk-local-column>
                        <fk-reference-column>FILE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CSToDCFiles_FK2" reference-table-name="ChecksumValues" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CHECKSUM_ID</fk-local-column>
                        <fk-reference-column>CHECKSUM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ScriptPathMapping">
        <description>
            <![CDATA[
            This is mapping table for script id & script xml file Path.
            ]]>
        </description>
        <columns>
            <column name="SCRIPT_ID">
                <description>Unique Id for each script. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="FILEPATH">
                <description>Path of the file which contains script details. </description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ScriptPathMapping_PK">
            <primary-key-column>SCRIPT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ScriptPathMapping_FK1" reference-table-name="ScriptRepo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCRIPT_ID</fk-local-column>
                        <fk-reference-column>SCRIPT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ScriptConfigLogs">
	<description>
		<![CDATA[
		    This table stores path in where Script Logs are stored.
		]]>
	</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="RESOURCE_ID">
		<description>Holds unique Id generated for each resource. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="STATUS_VERSION">
		<description>Time at which the logs are received at the server. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SCRIPT_LOG_PATH">
		<description>Log file location stored in server</description>
		<data-type>NCHAR</data-type>
		<max-size>1000</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="ScriptConfigLogs_PK">
	    <primary-key-column>CONFIG_DATA_ID</primary-key-column>
	    <primary-key-column>RESOURCE_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="ScriptConfigLogs_FK1" reference-table-name="CustomScriptConfig" 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="ScriptConfigLogs_FK2" 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="FirewallConfig">
        <description>
            <![CDATA[
		This table captures the firewall actions configuration. This is an extension of 'ConfigData'.
		]]>
        </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="FIREWALL_ACTION">
                <description>Overall status of the firewall, that whether it has to be switched ON/OFF/DO NOT MODIFY. 0 - OFF; 1 - ON; 2 - DO NOT MODIFY</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FirewallConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FirewallConfig_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="FirewallPortConfig">
        <description>
            <![CDATA[
		This table captures the details of firewall port configuration. This is an extension of 'FirewallConfig'.
		]]>
        </description>
        <columns>
            <column name="PORT_CONFIG_ID">
                <description>Unique Id for firewall port config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>FirewallPortConfig.PORT_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Unique Id of the firewall configuration for the port is configured. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT_FRIENDLY_NAME">
                <description>A friendly name(display name) added to the port.</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FW_PORT">
                <description>The port number which has to be blocked or unblocked. There can be multiple ports separated by comma. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FW_ACTION">
                <description>The action to be performed. The allowed values would be 1 (for BLOCK), 2 (for UNBLOCK). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROTOCOL">
                <description>Protocol type whether TCP or UDP. The allowed values would be 1 (for TCP) and 2 (for UDP). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FirewallPortConfig_PK">
            <primary-key-column>PORT_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FirewallPortConfig_FK" reference-table-name="FirewallConfig" 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="AdvancedFirewallConfiguration">
	<description>
	    <![CDATA[
		This table gives the basic settings for a windows firewall (Advanced Security)
		]]>
	</description>
	<columns>
	    <column name="CONFIG_DATA_ITEM_ID">
		<description>Unique Id for firewall configuration per profile </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>true</unique>
	    </column>
	    <column name="PROFILE">
		<description> The number for the profile : 1 for Domain, 2 for Private, 4 for Public </description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="STATE">
		<description> The number for state - 0 for OFF , 1 for ON ,  2 for Don't modify </description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="INBOUND_DEFAULT">
		<description> 
		    <![CDATA[The default action for inbound connection -  0 for Block (default) ,1 for Allow(default), 2  for Don't modify,
			3 for Block All connection
			]]>
		</description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="OUTBOUND_DEFAULT">
		<description> The number for state - 0 for Block (default) , 1 for Allow (default) , 2 for Don't modify  </description>
		<data-type>INTEGER</data-type>
		<default-value>2</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="AdvancedFirewallConfiguration_PK">
	    <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="AdvancedFirewallConfiguration_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
			<fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="FirewallRule">
	<description>
	    <![CDATA[
		This  table gives the basic parameters required for a Windows Firewall Rule
		]]>
	</description>
	<columns>
	    <column name="CONFIG_DATA_ITEM_ID">
		<description>Unique Id for firewall rule configuration </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>true</unique>
	    </column>
	    <column name="RULE_NAME">
		<description> The name for the rule given </description>
		<data-type>NCHAR</data-type>
		<max-size>100</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="GROUP_NAME">
		<description> The name for the rule given </description>
		<data-type>NCHAR</data-type>
		<max-size>100</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="RULE_ACTION">
		<description>Type of rule : To add, to delete or to toggle state of rule: 0-Add  1-Enable rule 2-Disable rule 3-Delete rule 4-Enable group 5-Disable group 6-Delete Group</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="FirewallRule_PK">
	    <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="FirewallRule_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
			<fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="FirewallRuleProperty">
	<description>
	    <![CDATA[
		This  table gives the required data if the rule is to be added. Rule_action of FirewallRule table should be 0 for this table to be filled.
		]]>
	</description>
	<columns>
	    <column name="CONFIG_DATA_ITEM_ID">
		<description>Unique Id for firewall rule configuration. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>true</unique>
	    </column>
	    <column name="PROFILE_BITMASK">
		<description> The number for the profile : 1 for Domain, 2 for Private, 4 for Public and corresponding bitmask value for the combinations </description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DIRECTION">
		<description> The number for direction - 0 for Inbound , 1 for Outbound</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="ACTION">
		<description> The number for state - 0 for Block, 1 for Allow </description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PROTOCOL">
		<description> The number for protocol , NULL for 'ALL' </description>
		<data-type>INTEGER</data-type>
		<default-value>256</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PORT">
		<description> The port number, NULL for "ALL" </description>
		<data-type>CHAR</data-type>
		<max-size>50</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PROGRAM_PATH">
		<description> The path for the program , NULL for 'ALL' </description>
		<data-type>NCHAR</data-type>
		<max-size>1024</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="IS_OVERWRITE">
		<description>Bool value to check if the rule to be added can overwrite existing rule under same name </description>
		<data-type>BOOLEAN</data-type>
		<default-value>true</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>	
	<primary-key name="FirewallRuleProperty_PK">
	    <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="FirewallRuleProperty_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
			<fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
		
    <table name="ServiceConfig">
        <description>
            <![CDATA[
		This table captures the details of service configuration. This is an extension of 'ConfigData'.
		]]>
        </description>
        <columns>
            <column name="SERVICE_CONFIG_ID">
                <description>Unique Id for the service config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ServiceConfig.SERVICE_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <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="ACTION">
                <description>The action to be performed on the service. The allowed values would be 1 (for START), 2 (for STOP), 3 (for RESTART), and 4 (for DONT MODIFY). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERVICE_NAME">
                <description>The name of the service which need to be handled. </description>
                <data-type>NCHAR</data-type>
                <max-size>128</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_NAME">
                <description>The display name of the service. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERVICE_TYPE">
                <description>Type of the service. The allowed values would be 1 (for AUTO), 2 (for MANUAL), 3 (for DISABLED), 4 (for DONT MODIFY) and 5 (for Delayed Start). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ServiceConfig_PK">
            <primary-key-column>SERVICE_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ServiceConfig_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>
      <!-- For MAC CONFIGURAITONS -->
        <table name="MobileConfigInfo">
            <description>
                <![CDATA[
                This table used to manage .mobileconfig files.
                ]]>
            </description>
            <columns>
                <column name="CONFIG_DATA_ID">
                    <description>Unique ID for config data item</description>
                    <data-type>BIGINT</data-type>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="MOBILECONFIG_PATH">
                    <description>Contains path of the created mobileconfig file</description>
                    <data-type>NCHAR</data-type>
                    <max-size>250</max-size>
                    <default-value>-</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="PROFILE_IDENTIFIER">
                    <description>ProfileIdentifier that is  included in the .mobileConfig file</description>
                    <data-type>NCHAR</data-type>
                    <max-size>250</max-size>
                    <default-value>-</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
		<column name="OPERATION">
 	             <description>1.Install      2.Remove        3.Remove all</description>
 	             <data-type>INTEGER</data-type>
 	             <default-value>1</default-value>
 	             <nullable>false</nullable>
 	             <unique>false</unique>
 	        </column>
            </columns>
            <primary-key name="MobileConfigInfo_PK">
                <primary-key-column>CONFIG_DATA_ID</primary-key-column>
            </primary-key>
            <foreign-keys>
                <foreign-key name="MobileConfigInfo_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="OSXConfigurationDetails">
            <description>
                <![CDATA[
                This table has Details about OSX Configurations
                ]]>
            </description>
            <columns>
                <column name="CONFIG_ID">
                    <description>Unique ID for a configuration</description>
                    <data-type>INTEGER</data-type>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="PROFILE_IDENTIFIER">
                    <description>ProfileIdentifier that is  included in the .mobileConfig file</description>
                    <data-type>NCHAR</data-type>
                    <max-size>100</max-size>
                    <default-value>-</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="MOBILECONFIG_NAME">
                    <description>Use this as mobileconfig name</description>
                    <data-type>NCHAR</data-type>
                    <max-size>100</max-size>
                    <default-value>-</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="PAYLOAD_TYPE">
                    <description>Tells whether it is additive or exclusive configuration. 1 - Additive 2 - Exclusive</description>
                    <data-type>INTEGER</data-type>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="CAN_OVERWRITE">
                    <description>Tells whether this configuration mobileconfig can be overwritten on agent .</description>
                    <data-type>BOOLEAN</data-type>
                    <default-value>false</default-value>
                    <nullable>false</nullable>
                    <unique>false</unique>
                </column>
                <column name="MIN_OS_VERSION">
                    <description>Minimum OSX version, the configuration is supported</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="OSXConfigurationDetails_PK">
                <primary-key-column>CONFIG_ID</primary-key-column>
            </primary-key>
            <foreign-keys>
                <foreign-key name="OSXConfigurationDetails_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>
        </table>

        
        
        
        <!-- For SYSTEM PREFERENCE RESTRICTIONS -->
        <table name="OSXPreferencePanes">
                <description>
                <![CDATA[
                This table has SystemPreferencePanes and their IDs.
                ]]>
                </description>
                <columns>
                        <column name="OSX_SYSTEM_PREFERENCE_PANE_ID">
                                <description>Unique ID for a system preference pane</description>
                                <data-type>INTEGER</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SYSTEM_PREFERENCE_PANE_NAME">
				<description>System preference panes</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="OSXPreferencePanes_PK">
			<primary-key-column>OSX_SYSTEM_PREFERENCE_PANE_ID</primary-key-column>
		</primary-key>
        </table>

        <table name="SystemPreferenceRestrictions">
                <description>
                <![CDATA[
                This table has SystemPreferenceRestrictions created.
                ]]>
                </description>
                <columns>
                        <column name="CONFIG_DATA_ID">
                                <description>Unique ID for a system preference restriction configuration</description>
                                <data-type>BIGINT</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SELECTED_PANES_LIST_ID">
				<description>From the table SelectedPreferencePaneList</description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
                                <uniquevalue-generation>
                                        <generator-name>SystemPreferenceRestrictions.SELECTED_PANES_LIST_ID</generator-name>
                                </uniquevalue-generation>
			</column>
                        <column name="IsEnabled">
				<description>True, if the Restrict items in System Preferences checkbox is checked, else false</description>
				<data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="IsDisabled">
				<description>True, if Disable selected items radioButton is selected, else false.</description>
				<data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="OPERATION_TYPE">
				<description>1 - add, 2 - delete, 3 - delete all</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
			</column>
                </columns>
                <primary-key name="SystemPreferenceRestrictions_PK">
			<primary-key-column>CONFIG_DATA_ID</primary-key-column>
		</primary-key>
                <foreign-keys>
                        <foreign-key name="SystemPreferenceRestrictions_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="SelectedPreferencePaneList">
                <description>
                <![CDATA[
                This table has composite values of SystemPreferenceRestrictions and OSXPreferencePanes
                ]]>
                </description>
                <columns>
                    <column name="SELECTEDPREFERENCEPANELIST_ID">
                        <description>This column added for sas support</description>
                        <data-type>BIGINT</data-type>
                        <nullable>false</nullable>
                        <uniquevalue-generation>
                            <generator-name>SelectedPreferencePaneList.SELECTEDPREFERENCEPANELIST_ID</generator-name>
                        </uniquevalue-generation>
                    </column>
                        <column name="CONFIG_DATA_ID">
                                <description>Unique ID for a system preference restriction configuration</description>
                                <data-type>BIGINT</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SELECTED_PANES_LIST_ID">
                                <description>selected Panes List ID fk to SELECTED_PANES_LIST_ID</description>
                                <data-type>INTEGER</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="OSX_SYSTEM_PREFERENCE_PANE_ID">
				<description>System preference panes</description>
				<data-type>INTEGER</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                </columns>
            <primary-key name="SelectedPreferencePaneList_PK">
                <primary-key-column>SELECTEDPREFERENCEPANELIST_ID</primary-key-column>
            </primary-key>
            <!--<primary-key name="SelectedPreferencePaneList_PK">
                <primary-key-column>SELECTED_PANES_LIST_ID</primary-key-column>
                <primary-key-column>OSX_SYSTEM_PREFERENCE_PANE_ID</primary-key-column>
            </primary-key>-->
                <foreign-keys>
                        <foreign-key name="SelectedPreferencePaneList_FK" reference-table-name="OSXPreferencePanes" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>OSX_SYSTEM_PREFERENCE_PANE_ID</fk-local-column>
						<fk-reference-column>OSX_SYSTEM_PREFERENCE_PANE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="SelectedPreferencePaneList_FK1" 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>
            <unique-keys>
                <unique-key name="SelectedPreferencePaneList_UK">
                    <unique-key-column>SELECTED_PANES_LIST_ID</unique-key-column>
                    <unique-key-column>OSX_SYSTEM_PREFERENCE_PANE_ID</unique-key-column>
                </unique-key>
            </unique-keys>
        </table>
        <!-- For SYSTEM PREFERENCE RESTRICTIONS ENDs -->

        <!-- For LOGIN WINDOW SETTINGS OSX  -->
        <table name="LoginWindowSettings">
                <description>
                        <![CDATA[
                                Configuration details for Login Window Settings for OSX 
                        ]]>
                </description>
                <columns>
                        <column name="CONFIG_DATA_ID">
                                <description>Primary Key of ConfigData</description>
                                <data-type>BIGINT</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="BANNER_TEXT">
                                <description>Text to be displayed on Login Window</description>
                                <data-type>NCHAR</data-type>
                                <max-size>2000</max-size>
                                <nullable>true</nullable>
                                <unique>false</unique>
			</column>
                        <column name="SHOW_USER_NAME">
                                <description>If Name and Password Text field is selected, its value is true. If List of users able to use this computer is selected, its value is false</description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_LOCAL_USERS">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_MOBILE_ACCOUNTS">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_NETWORK_USERS">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_ADMIN_USERS">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_OTHERS">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_SLEEP_BUTTON">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_RESTART_BUTTON">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_SHUTDOWN_BUTTON">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SHOW_PASSWORD_HINT">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="DISABLE_AUTO_LOGIN">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="ENABLE_CONSOLE_LOGIN">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="ADMIN_DISABLE_MANAGEMENT">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="COMPUTER_NAME_TO_REC_NAME">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="ENABLE_EXTERNAL_ACCOUNTS">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="ALLOW_GUEST">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="ENABLE_FAST_USER_SWITCH">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="USER_LOGOUT_TIME">
                                <description>AutoLogout delay time. If Unchecked its value is set as 0 else minimum of 3 minutes </description>
                                <data-type>INTEGER</data-type>
                                <default-value>30</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="WINDOW_IDLE_TIME">
                                <description>Start Screensaver after X minutes. If Unchecked its value is set as 0 else minimum of 3 minutes</description>
                                <data-type>INTEGER</data-type>
                                <default-value>15</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SCREEN_SAVER_MODULE_PATH">
                                <description>Use screensaver module at path.This Screensaver module should be available on the client machine, else this configuration wont take effect </description>
                                <data-type>NCHAR</data-type>
                                <max-size>250</max-size>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="ASK_FOR_PASSWORD">
                                <description>Whether to ask for password after sleep mode or screensaver</description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
			<column name="OPERATION_TYPE">
				<description>1 - add, 2 - delete, 3 - delete all</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
			</column>
                </columns>
                <primary-key name="LoginWindowSettings_PK">
                                <primary-key-column>CONFIG_DATA_ID</primary-key-column>
                </primary-key>
                <foreign-keys>
                        <foreign-key name="LoginWindowSettings_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>
        <!-- For LOGIN WINDOW SETTINGS OSX ends -->

        <!-- For GATE KEEPER SETTINGS OSX -->
        <table name="GateKeeperSettings">
                <description>
                        <![CDATA[
                                Configuration details for Gatekeeper Settings for OSX 
                        ]]>
                </description>
                <columns>
                        <column name="CONFIG_DATA_ID">
                                        <description>Primary Key of ConfigData</description>
                                        <data-type>BIGINT</data-type>
                                        <nullable>false</nullable>
                                        <unique>false</unique>
                        </column>
                        <column name="ENABLE_ASSESSMENT">
                                <description>True if Allow apps from "Anywhere" is not selected</description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="ALLOW_IDENTIFIED_DEVELOPERS">
                                <description>True if Allow apps downloaded from Mac App Store and identified developers is selected, else false.</description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="DISABLE_OVERRIDE">
                                <description>True if Do not allow users to override Gatekeeper settings checkbox is checked,  else this key should not be in the payload mobileconfig. </description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
			<column name="OPERATION_TYPE">
				<description>1 - add, 2 - delete, 3 - delete all</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
			</column>
                </columns>
                <primary-key name="GateKeeperSettings_PK">
                                <primary-key-column>CONFIG_DATA_ID</primary-key-column>
                </primary-key>
                <foreign-keys>
                        <foreign-key name="GateKeeperSettings_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>
        <!-- For GATE KEEPER SETTINGS Ends -->
        
        <!-- For NETWORK SHARES -->
        <table name="NetworkMount">
                <description>
                        <![CDATA[
                                Configuration details for Network Shares for OSX 
                        ]]>
                </description>
                <columns>
                        <column name="CONFIG_DATA_ID">
                                        <description>Primary Key of ConfigData</description>
                                        <data-type>BIGINT</data-type>
                                        <nullable>false</nullable>
                                        <unique>false</unique>
                        </column>
                        <column name="URL">
                                <description>Full URL of the share to be mounted at login</description>
                                <data-type>NCHAR</data-type>
                                <max-size>500</max-size>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="HIDE">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="AUTHENTICATE_AS_USER">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
			<column name="OPERATION_TYPE">
				<description>1 - add, 2 - delete, 3 - delete all</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
			</column>
                </columns>
                <primary-key name="NetworkMount_PK">
                                <primary-key-column>CONFIG_DATA_ID</primary-key-column>
                </primary-key>
                <foreign-keys>
                        <foreign-key name="NetworkMount_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>
             
        <!-- For NETOWRK SHARES ends -->        
        
        <!-- For ENERGY SAVER SETTINGS OSX-->
        <table name="EnergySaverSettings_OSX">
                <description>
                        <![CDATA[
                                Configuration details for Energy Saver Settings for OSX 
                        ]]>
                </description>
                <columns>
                        <column name="CONFIG_DATA_ID">
                                <description>Primary Key of ConfigData</description>
                                <data-type>BIGINT</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="SYSTEM_SLEEP_TIMER_BATTERY">
                                <description>Time in minutes</description>
                                <data-type>INTEGER</data-type>
                                <default-value>10</default-value>
				<nullable>false</nullable>
                                <unique>false</unique>
			</column>
                        <column name="DISPLAY_SLEEP_TIMER_BATTERY">
                                <description>Time in minutes</description>
                                <data-type>INTEGER</data-type>
                                <default-value>5</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
			</column>
                        <column name="DISK_SLEEP_BATTERY">
                                <description>True if checked</description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="WAKE_ON_LAN_BATTERY">
                                <description>1 when checked, else 0</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
				<nullable>false</nullable>
                                <unique>false</unique>
			</column>
                        <column name="AUTOMATIC_STARTUP_BATTERY">
                                <description>1 when checked, else 0. Automatic startup on power loss in battery</description>
                                <data-type>INTEGER</data-type>
                                <default-value>0</default-value>
				<nullable>false</nullable>
                                <unique>false</unique>
        		</column>
                        <column name="SYSTEM_SLEEP_TIMER_ACPOWER">
                                <description>Time in minutes</description>
                                <data-type>INTEGER</data-type>
                                <default-value>10</default-value>
				<nullable>false</nullable>
                                <unique>false</unique>
			</column>
                        <column name="DISPLAY_SLEEP_TIMER_ACPOWER">
                                <description>Time in minutes</description>
                                <data-type>INTEGER</data-type>
                                <default-value>5</default-value>
				<nullable>false</nullable>
                                <unique>false</unique>
			</column>
                        <column name="DISK_SLEEP_ACPOWER">
                                <description>True if checked</description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>true</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="WAKE_ON_LAN_ACPOWER">
                                <description>1 when checked, else 0</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
								<nullable>false</nullable>
                                <unique>false</unique>
						</column>
                        <column name="AUTOMATIC_STARTUP_ACPOWER">
                                <description>1 when checked, else 0.  Automatic startup on power loss in acpower</description>
                                <data-type>INTEGER</data-type>
                                <default-value>0</default-value>
				<nullable>false</nullable>
                                <unique>false</unique>
			</column>
			<column name="OPERATION_TYPE">
				<description>1 - add, 2 - delete, 3 - delete all</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
			</column>
                </columns>
                <primary-key name="EnerySaverSettings_OSX_PK">
                                <primary-key-column>CONFIG_DATA_ID</primary-key-column>
                </primary-key>
                <foreign-keys>
                        <foreign-key name="EnerySaverSettings_OSX_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>
        <!-- For ENERGY SAVER SETTINGS OSX ends -->

        <!-- For LOGIN ITEMS OSX -->
        <table name="LoginItems_OSX">
                <description>
                        <![CDATA[
                                Configuration details for LoginItems for OSX 
                        ]]>
                </description>
                <columns>
                        <column name="CONFIG_DATA_ID">
                                <description>Primary Key of ConfigData</description>
                                <data-type>BIGINT</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="LOGIN_ITEM_PATH">
                                <description>Full path of the item to be opened at login</description>
                                <data-type>NCHAR</data-type>
                                <max-size>500</max-size>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="HIDE">
                                <description></description>
                                <data-type>BOOLEAN</data-type>
                                <default-value>false</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
			<column name="OPERATION_TYPE">
				<description>1 - add, 2 - delete, 3 - delete all</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
			</column>
                </columns>
                <primary-key name="LoginItems_OSX_PK">
                                <primary-key-column>CONFIG_DATA_ID</primary-key-column>
                </primary-key>
                <foreign-keys>
                        <foreign-key name="LoginItems_OSX_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>
        
        <!-- For LOGIN ITEMS OSX ends -->
	
        <!-- For Fonts OSX -->
        <table name="Fonts_OSX">
                <description>
                        <![CDATA[
                                Configuration details for Fonts for OSX 
                        ]]>
                </description>
                <columns>
                        <column name="CONFIG_DATA_ID">
                                <description>Primary Key of ConfigData</description>
                                <data-type>BIGINT</data-type>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
                        <column name="FONT_FILE_NAME">
                                <description>File name of the font file selected</description>
                                <data-type>NCHAR</data-type>
                                <max-size>500</max-size>
                                <nullable>false</nullable>
                                <unique>false</unique>
                        </column>
			<column name="OPERATION_TYPE">
				<description>1 - add, 2 - delete, 3 - delete all</description>
                                <data-type>INTEGER</data-type>
                                <default-value>1</default-value>
                                <nullable>false</nullable>
                                <unique>false</unique>
			</column>
                </columns>
                <primary-key name="Fonts_OSX_PK">
                                <primary-key-column>CONFIG_DATA_ID</primary-key-column>
                </primary-key>
                <foreign-keys>
                        <foreign-key name="Fonts_OSX_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>
        <!-- For Fonts OSX ends -->
	
	<!-- for WEBCLIPS_OSX -->
	<table name="Webclips_OSX">
		<description>
			<![CDATA[
				Configuration details for Webclips for OSX
			]]>
		</description>
		<columns>
			<column name="CONFIG_DATA_ID">
				<description>Primary Key of ConfigData</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="WEBCLIP_LABEL">
				<description>Label of the webclip</description>
				<data-type>NCHAR</data-type>
				<max-size>500</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="WEBCLIP_URL">
				<description>Url of the webclip</description>
				<data-type>NCHAR</data-type>
				<max-size>500</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="ICON_FILE_NAME">
				<description>Optional. A PNG icon to be shown on the Home screen.</description>
				<data-type>NCHAR</data-type>
				<max-size>255</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
			</column>
			<column name="OPERATION_TYPE">
				<description>1 - add, 2 - delete, 3 - delete all</description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="Webclips_OSX_PK">
			<primary-key-column>CONFIG_DATA_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="Webclips_OSX_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>
        <!-- for WEBCLIPS_OSX ends -->
        
        
    <table name="LocalUserConfig">
        <description>
            <![CDATA[
		This table captures the action details of local user account for a computer.
		]]>
        </description>
        <columns>
            <column name="USER_ACCOUNT_CFG_ID">
                <description>Unique Id for the local user account config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>LocalUserConfig.USER_ACCOUNT_CFG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION_TO_PERFORM">
                <description>The action to be performed for the local user account. The allowed values would be 1 (for ADD USER), 2 (for ADD USER OVERWRITE), 3 (for DELETE USER),  4 (for MODIFY USER PROPS), 5 (for RESET PASSWORD) and 6 (for RENAME USER ACC). </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CURR_USER_NAME">
                <description>This field will have the existing local user account name in case of rename/delete user account. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXECUTION_ORDER">
                <description>Order in which the user account actions to be carried out in case of multiple actions are added. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETE_PROFILE">
                <description>
                    For remove user profile,weather to remove all the folders of the selected user.
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LocalUserConfig_PK">
            <primary-key-column>USER_ACCOUNT_CFG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LocalUserConfig_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="LocalUserProps">
        <description>
            <![CDATA[
		This table captures the details of local user account creation.
		]]>
        </description>
        <columns>
            <column name="USER_ACCOUNT_CFG_ID">
                <description>Unique Id for the user account config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_NAME">
                <description>The local user account name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FULL_NAME">
                <description>The local user account full name. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description for the user account. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWORD">
                <description>The local user account password. </description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USR_MUST_CHANGE_PW">
                <description>Whether the user has to change the password at next logon?. The allowed values would be 1 (for ENABLE), 2 (for DISABLE), and 3 (for DONT MODIFY). </description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USR_CANT_CHANGE_PW">
                <description>Whether the user cannot change the password? The allowed values would be 1 (for ENABLE), 2 (for DISABLE), and 3 (for DONT MODIFY). </description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PW_NEVER_EXPIRES">
                <description>Whether the password never expires? The allowed values would be 1 (for ENABLE), 2 (for DISABLE), and 3 (for DONT MODIFY). </description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OLD_PASSWORD">
                <description>The local user account old password. </description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWORD_HINT">
                <description>Password hint for the user account. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USR_AS_ADMIN">
                <description>Whether sets user as admin user?. The allowed values would be 1 (for ENABLE), 2 (for DISABLE), and 3 (for DONT MODIFY). </description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USR_AS_HIDDEN">
                <description>Whether sets user as hidden user?. The allowed values would be 1 (for ENABLE), 2 (for DISABLE), and 3 (for DONT MODIFY). </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACC_IS_DISABLED">
                <description>Whether the account is disabled? The allowed values would be 1 (for ENABLE), 2 (for DISABLE), and 3 (for DONT MODIFY). </description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACC_IS_LOCKEDOUT">
                <description>Whether the account is locked out? The allowed values would be 1 (for ENABLE), 2 (for DISABLE), and 3 (for DONT MODIFY). </description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <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="LocalUserProps_PK">
            <primary-key-column>USER_ACCOUNT_CFG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LocalUserProps_FK" reference-table-name="LocalUserConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_ACCOUNT_CFG_ID</fk-local-column>
                        <fk-reference-column>USER_ACCOUNT_CFG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LocalUserProfile">
        <description>
            <![CDATA[
		This table captures the profile details of local user account.
		]]>
        </description>
        <columns>
            <column name="USER_ACCOUNT_CFG_ID">
                <description>Unique Id for the user account config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROFILE_PATH">
                <description>The local user profile path. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_SCRIPT">
                <description>Login script for the local user account. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HOME_FOLDER_PATH">
                <description>home folder path for the user account. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HOME_FOLDER_DRIVE">
                <description>home folder drive for the user account. </description>
                <data-type>NCHAR</data-type>
                <max-size>5</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LocalUserProfile_PK">
            <primary-key-column>USER_ACCOUNT_CFG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LocalUserProfile_FK" reference-table-name="LocalUserConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_ACCOUNT_CFG_ID</fk-local-column>
                        <fk-reference-column>USER_ACCOUNT_CFG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LocalUserToGroupRel">
        <description>
            <![CDATA[
		This table captures the relation of local user accounts and the local groups for a computer.
		]]>
        </description>
        <columns>
            <column name="USER_TO_GROUP_ID">
                <description>Unique Id for relation configuration of local user account and local group. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>LocalUserToGroupRel.USER_TO_GROUP_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="USER_ACCOUNT_CFG_ID">
                <description>Id of the user account config for which the group relation has to be modified. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_NAME">
                <description>Name of the local group in which the local user account has to be added. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OPERATION">
                <description>Whether user account is to be added or removed from the group. The allowed values are 1 (for ADD), and 2 (for DELETE). </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LocalUserToGroupRel_PK">
            <primary-key-column>USER_TO_GROUP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LocalUserToGroupRel_FK" reference-table-name="LocalUserConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_ACCOUNT_CFG_ID</fk-local-column>
                        <fk-reference-column>USER_ACCOUNT_CFG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LocalGroupConfig">
        <description>
            <![CDATA[
		This table captures the action details of local group for a computer.
		]]>
        </description>
        <columns>
            <column name="GROUP_CFG_ID">
                <description>Unique Id for the local group onfig data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>LocalGroupConfig.GROUP_CFG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION_TO_PERFORM">
                <description>The action to be performed for the local group. The allowed values would be 1 (for ADD GROUP), 2 (for ADD GROUP OVERWRITE), 3 (for DELETE GROUP),  4 (for MODIFY PROPS), and 5 (for RENAME GROUP). </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CURR_GROUP_NAME">
                <description>This field will have the existing local group name in case of rename/delete group. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXECUTION_ORDER">
                <description>Order in which the local group actions to be carried out in case of multiple actions are added. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LocalGroupConfig_PK">
            <primary-key-column>GROUP_CFG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LocalGroupConfig_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="LocalGroupProps">
        <description>
            <![CDATA[
		This table captures the details of local group.
		]]>
        </description>
        <columns>
            <column name="GROUP_CFG_ID">
                <description>Unique Id for the local group config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_NAME">
                <description>Name of the group. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description for the local group. </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="LocalGroupProps_PK">
            <primary-key-column>GROUP_CFG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LocalGroupProps_FK" reference-table-name="LocalGroupConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>GROUP_CFG_ID</fk-local-column>
                        <fk-reference-column>GROUP_CFG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LocalGroupToMemberRel">
        <description>
            <![CDATA[
		This table captures the relation of local group and the local user accounts for a computer.
		]]>
        </description>
        <columns>
            <column name="GROUP_TO_USER_ID">
                <description>Unique Id for relation configuration of local group and local user account. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>LocalGroupToMemberRel.GROUP_TO_USER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="GROUP_CFG_ID">
                <description>Id of the local group config for which the group/member relation has to be modified. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MEMBER_NAME">
                <description>Name of the local user account which has to be added/deleted from group. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MEMBER_TYPE">
                <description>Whether the member is the local user or the domain user. The allowed values are 1 (for LOCAL USER), and 2 (for DOMAIN USER, and 3 for DOMAIN GROUP). </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OPERATION">
                <description>Whether member is to be added or removed from the group. The allowed values are 1 (for ADD), and 2 (for DELETE). </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LocalGroupToMemberRel_PK">
            <primary-key-column>GROUP_TO_USER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LocalGroupToMemberRel_FK" reference-table-name="LocalGroupConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>GROUP_CFG_ID</fk-local-column>
                        <fk-reference-column>GROUP_CFG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SchedulerConfig">
        <description>
            <![CDATA[
		This table captures the details of scheduler configuration. This is an extension of 'ConfigData'.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SchedulerConfig.SCHEDULER_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <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="SCHEDULER_ACTION">
                <description>
                    Action to be performed, CREATE/MODIFY/DELETE, 1 - CREATE; 2 - MODIFY; 3 - DELETE
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OVERWRITE">
                <description>
                    Whether the scheduled task should be overwritten or not, when CREATE is choosed
                    and it already exists. YES = 1; NO = 0;
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME_OF_TASK">
                <description>The name of the task</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_NAME">
                <description>The username as which the application should be run.</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWD">
                <description>The password for the user as which the application should be run.</description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="START_TIME">
                <description>The time at which the task executes.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			
            <column name="RUN_TASK_BY_SERVER_TIME">
                <description>The time zone offset for run task by agent timezone.</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			 <column name="SYNCHRONIZE_FOR_SCHEDULE">
                <description>synchronize time for expire date</description>
                <data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TIME_PERIOD">
                <description>There are eight periods associated with the scheduler, like, Once(0), Daily(1), Weekly(2), Monthly Date(3), Monthly Day of Week(4), On Idle(5), At System Start(6) and At Logon(7).</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SchedulerConfig_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerConfig_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="SchedulerTriggerConfig">
        <description>
            <![CDATA[
		This table captures the application and arguments details of scheduler configuration.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RANDOM_DELAY">
                <description>random delay for task to be run</description>
                <data-type>BIGINT</data-type>
					<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			  <column name="REPEAT_DURATION">
                <description>repeat task for specific duration</description>
                <data-type>BIGINT</data-type>
					<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			  <column name="REPEAT_INTERVAL">
                <description>repeat task for specific interval</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
          <column name="STOP_TASK_AT_END_DUR">
                <description>stop the task at end of the duration</description>
                <data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			 <column name="EXPIRE_DATE">
                <description>expire date for stop the task</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			 <column name="SYNCHRONIZE_FOR_EXPIRE">
                <description>synchronize time for expire date</description>
                <data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
		
			
        </columns>
        <primary-key name="SchedulerTriggerConfig_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerTriggerConfig_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    
    <table name="SchedulerApplnConfig">
        <description>
            <![CDATA[
		This table captures the application and arguments details of scheduler configuration.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPLN_NAME">
                <description>The application name of the task which need to be run on the scheduled time.</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPLN_ARGS">
                <description>The arguments for the application.</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SchedulerApplnConfig_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerApplnConfig_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SchedulerDailyConfig">
        <description>
            <![CDATA[
		This table captures the interval, in days, at which a task is run.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DAYS_INTERVAL">
                <description>Specifies the number of days between task runs.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TYPE">
                <description>
                    Specifies the type of the daily operation like,
                    EveryDay - 1
                    Weekdays - 2
                    Every __ days - 3
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SchedulerDailyConfig_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerDailyConfig_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SchedulerWeeklyConfig">
        <description>
            <![CDATA[
		This table captures the interval, in weeks, between invocations of a task.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WEEKS_INTERVAL">
                <description>Number of weeks between invocations of a task.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DAYS_OF_THE_WEEK">
                <description>The days of the week the task runs.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SchedulerWeeklyConfig_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerWeeklyConfig_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SchedulerMonthlyDateConfig">
        <description>
            <![CDATA[
		This table captures the interval, in days, at which a task is run.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DAY">
                <description>The day of the month a task runs.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MONTHS">
                <description>The month(s) when the task runs.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SchedulerMonthlyDateConfig_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerMonthlyDateConfig_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SchedulerMonthlyDOWConfig">
        <description>
            <![CDATA[
		This table defines the date(s) that the task runs by month, week, and day of the week.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WEEKS">
                <description>The week of the month when the task runs.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DAYS_OF_THE_WEEK">
                <description>The day(s) of the week when the task runs.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MONTHS">
                <description>That describes the month(s) when the task runs.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SchedulerMonthlyDOWConfig_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerMonthlyDOWConfig_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SchedulerAdvProps">
        <description>
            <![CDATA[
		This table defines the advanced properties that can be set with each scheduled task.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_RUN_ONLY_IF_LOG_ON">
                <description>The work item runs only if the user is logged on interactively.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_DISABLED">
                <description>
                    The work item is disabled. This is useful to temporarily prevent a
                    work item from running at the scheduled time(s).
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="TASK_STORE_USER_PASSWD">
                <description>
                   specifies the the password to be store for the user specified 
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			
			<column name="TASK_RUN_WITH_PRIVILEGES">
                <description>
                 specifies the user privileges for running the task
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			
			<column name="TASK_HIDDEN">
                <description>
                  specifies hide the task in tasklist
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			
			<column name="DELETE_TASK_AFTER">
                <description>
                  specify the duration for delete the task
                </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            
            </column>
			
            <column name="TASK_DELETE_WHEN_DONE">
                <description>
                    The work item will be deleted when there are no more
                    scheduled run times.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_KILL_ON_IDLE_END">
                <description>
                    The work item terminates if the computer makes an idle
                    to non-idle transition while the work item is running.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			
			 <column name="RESTART_IF_IDLE_RESUMES">
                <description>restart the running task when idle resumes</description>
                <data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_DONT_START_ON_BATT">
                <description>
                    The work item does not start if its target computer is
                    running on battery power.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_KILL_IF_ON_BATT">
                <description>
                    The work item ends, and the associated application quits if the work item's
                    target computer switches to battery power.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_SYSTEM_REQUIRED">
                <description>
                    The work item causes the system to be resumed, or awakened, if the system
                    is running on battery power.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_STOP_IF_RUNS">
                <description>
                    This table captures the time that specifies whether the task is stopped after it
                    has been running for the specified amount of time.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_START_IF_IDLE">
                <description>
                    The minutes that the system must be idle before the work item can run.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
		
			
        </columns>
        <primary-key name="SchedulerAdvProps_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerAdvProps_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SchedulerAdvPropsStop">
        <description>
            <![CDATA[
		This table captures the time that specifies whether the task is stopped after it
		has been running for the specified amount of time.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HOURS">
                <description>Specifies the hours that the task has to be stopped.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MINS">
                <description>Specifies the mins that the task has to be stopped.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SchedulerAdvPropsStop_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerAdvPropsStop_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SchedulerAdvPropsStart">
        <description>
            <![CDATA[
		This table captures the minutes that the system must be idle before the work item can run.
		]]>
        </description>
        <columns>
            <column name="SCHEDULER_CONFIG_ID">
                <description>Unique Id for the scheduler config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IDLE_MINS">
                <description>
                    Specifies how long, in minutes, the system must remain idle before the
                    work item can run.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEADLINE_MINS">
                <description>
                    Specifies the maximum number of minutes that Task Scheduler will wait
                    for the idle-time period.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SchedulerAdvPropsStart_PK">
            <primary-key-column>SCHEDULER_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SchedulerAdvPropsStart_FK" reference-table-name="SchedulerConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULER_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SCHEDULER_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="PwrMgmtConfig">
        <description>
            <![CDATA[
		This table captures the details of power management configuration.
		This is an extension of 'ConfigData'.
		]]>
        </description>
        <columns>
            <column name="PWRMGMT_CONFIG_ID">
                <description>Unique Id for the power management config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>PwrMgmtConfig.PWRMGMT_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <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="PWRMGMT_ACTION">
                <description>
                    Action to be performed, CREATE/MODIFY/DELETE, 1 - CREATE; 2 - MODIFY; 3 - DELETE
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OVERWRITE">
                <description>
                    Whether the power scheme should be overwritten or not, when CREATE is choosed and
                    it already exists. YES = 1; NO = 0;
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME_OF_SCHEME">
                <description>The name of the scheme to be created</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTIVE_PWR_SCHEME">
                <description>
                    Whether the scheme to be configured to be made as the active power scheme.
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IDLE_TIMEOUT_AC">
                <description>
                    Time that the level of system activity must remain below the idle detection
                    threshold before the system idle timer expires when running on AC (utility) power,
                    in seconds.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IDLE_TIMEOUT_DC">
                <description>
                    Time that the level of system activity must remain below the idle detection
                    threshold before the system idle timer expires when running on battery power,
                    in seconds.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VIDEO_TIMEOUT_AC">
                <description>
                    Time before the display is turned off when the system is running on AC (utility) power,
                    in seconds.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VIDEO_TIMEOUT_DC">
                <description>
                    Time before the display is turned off when the system is running on battery power,
                    in seconds.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SPINDOWN_TIMEOUT_AC">
                <description>
                    Time before power to fixed disk drives is turned off when the system is running on
                    AC (utility) power, in seconds.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SPINDOWN_TIMEOUT_DC">
                <description>
                    Time before power to fixed disk drives is turned off when the system is running on
                    battery power, in seconds.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOZE_S4_TIMEOUT_AC">
                <description>
                    Time to wait between entering the suspend state and entering the hibernate sleeping
                    state when the system is running on AC power, in seconds. A value of zero indicates
                    never hibernate.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOZE_S4_TIMEOUT_DC">
                <description>
                    Time to wait between entering the suspend state and entering the hibernate sleeping
                    state when the system is running on battery power, in seconds. A value of zero
                    indicates never hibernate.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PwrMgmtConfig_PK">
            <primary-key-column>PWRMGMT_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PwrMgmtConfig_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="PwrMgmtAdvProps">
        <description>
            <![CDATA[
		This table defines the advanced properties that can be set with each power management scheme.
		]]>
        </description>
        <columns>
            <column name="PWRMGMT_CONFIG_ID">
                <description>Unique Id for the power management config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HIBERNATE">
                <description>
                    Enables or disables the hibernate mode
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_ICON">
                <description>
                    Enables or disables the battery meter icon in the system tray.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROMPT_PASSWD">
                <description>
                    Enables or disables requiring password logon when the system resumes from
                    standby or hibernate.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LID_CLOSE">
                <description>
                    The action to take when the lid is closed.
                    Standby - 1
                    Do Nothing - 0
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POWER_BUTTON">
                <description>
                    The action to take when the power button is pressed.
                    Do Nothing - 0
                    Standby - 1
                    Shutdown - 2
                    Ask me what to do - 3
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SLEEP_BUTTON">
                <description>
                    The action to take when the sleep button is pressed.
                    Do Nothing - 0
                    Standby - 1
                    Shutdown - 2
                    Ask me what to do - 3
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PwrMgmtAdvProps_PK">
            <primary-key-column>PWRMGMT_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PwrMgmtAdvProps_FK" reference-table-name="PwrMgmtConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PWRMGMT_CONFIG_ID</fk-local-column>
                        <fk-reference-column>PWRMGMT_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="PowerMgmtConfig">
	<description>
	    <![CDATA[
		This table captures the details of Power Management Configuration.
		This is an extension of 'ConfigDataItem'.
		PwrMgmtConfig, PwrMgmtAdvProps tables are to be deprecated
	    ]]>
	</description>
	<columns>
	    <column name="CONFIG_DATA_ITEM_ID">
		<description>Unique Id for the power management config data. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PWRMGMT_ACTION">
		<description>
		    Action to be performed, CREATE/MODIFY/DELETE, 1 - CREATE; 2 - MODIFY; 3 - DELETE
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="OVERWRITE">
		<description>
		    Whether the power scheme should be overwritten or not, when CREATE is choosed and it already exists. YES = 1; NO = 0;
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="NAME_OF_SCHEME">
		<description>The name of the scheme to be created</description>
		<data-type>NCHAR</data-type>
		<max-size>100</max-size>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="ACTIVE_PWR_SCHEME">
		<description>
		    Whether the scheme to be configured to be made as the active power scheme.
		</description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="IDLE_TIMEOUT_AC">
		<description>
		    Time that the level of system activity must remain below the idle detection
		    threshold before the system idle timer expires when running on AC (utility) power,
		    in seconds.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="IDLE_TIMEOUT_DC">
		<description>
		    Time that the level of system activity must remain below the idle detection
		    threshold before the system idle timer expires when running on battery power,
		    in seconds.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="VIDEO_TIMEOUT_AC">
		<description>
		    Time before the display is turned off when the system is running on AC (utility) power,
		    in seconds.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="VIDEO_TIMEOUT_DC">
		<description>
		    Time before the display is turned off when the system is running on battery power,
		    in seconds.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SPINDOWN_TIMEOUT_AC">
		<description>
		    Time before power to fixed disk drives is turned off when the system is running on
		    AC (utility) power, in seconds.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SPINDOWN_TIMEOUT_DC">
		<description>
		    Time before power to fixed disk drives is turned off when the system is running on
		    battery power, in seconds.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DOZE_S4_TIMEOUT_AC">
		<description>
		    Time to wait between entering the suspend state and entering the hibernate sleeping
		    state when the system is running on AC power, in seconds. A value of zero indicates
		    never hibernate.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DOZE_S4_TIMEOUT_DC">
		<description>
		    Time to wait between entering the suspend state and entering the hibernate sleeping
		    state when the system is running on battery power, in seconds. A value of zero
		    indicates never hibernate.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DIM_DISPLAY_AC">
		<description>
		    Time to wait after which the display is dimmed when the system
		    is plugged in.
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="DIM_DISPLAY_DC">
		<description>
		    Time to wait after which the display is dimmed when the system
		    runs on batteries. 
		</description>
		<data-type>INTEGER</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="HIBERNATE">
		<description>
		    Enables or disables the hibernate mode
		</description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SHOW_ICON">
		<description>
		    Enables or disables the battery meter icon in the system tray.
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PROMPT_PASSWD">
		<description>
		    Enables or disables requiring password logon when the system resumes from
		    standby or hibernate.
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="LID_CLOSE_AC">
		<description>
		    The action to take when the lid is closed while system is plugged in.
		    0 - Do Nothing
		    1 - Standby
		    2 - Shutdown
		    3 - Ask me what to do
		    4 - Hibernate
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="LID_CLOSE_DC">
		<description>
		    The action to take when the lid is closed while running on batteries
		    0 - Do Nothing
		    1 - Standby
		    2 - Shutdown
		    3 - Ask me what to do
		    4 - Hibernate
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>        
	    <column name="POWER_BUTTON_AC">
		<description>
		    The action to take when the power button is pressed while system is plugged in.
		    0 - Do Nothing
		    1 - Standby
		    2 - Shutdown
		    3 - Ask me what to do
		    4 - Hibernate
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="POWER_BUTTON_DC">
		<description>
		    The action to take when the power button is pressed while running on batteries
		    0 - Do Nothing
		    1 - Standby
		    2 - Shutdown
		    3 - Ask me what to do
		    4 - Hibernate
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>        
	    <column name="SLEEP_BUTTON_AC">
		<description>
		    The action to take when the sleep button is pressed while system is plugged in.
		    0 - Do Nothing
		    1 - Standby
		    2 - Shutdown
		    3 - Ask me what to do
		    4 - Hibernate
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SLEEP_BUTTON_DC">
		<description>
		    The action to take when the sleep button is pressed while running on batteries
		    0 - Do Nothing
		    1 - Standby
		    2 - Shutdown
		    3 - Ask me what to do
		    4 - Hibernate
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column> 
	    <column name="HYBRID_SLEEP">
		<description>
		    Enable or disable hybrid sleep.
		    0 - Do Nothing
		    1 - Enable
		    2 - Disable
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="PowerMgmtConfig_PK">
	    <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="PowerMgmtConfig_FK2" reference-table-name="ConfigDataItem" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
			<fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="FileFolderConfig">
        <description>
            <![CDATA[
			This table captures the details of file/folder operations.
			This is an extension of 'ConfigData'.         ]]>
        </description>
        <columns>
            <column name="FF_CONFIG_ID">
                <description>Unique Id generated for the file/folder configuration data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>FileFolderConfig.FF_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <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="FF_ACTION">
                <description>
                    Action to be performed,
                    1 - COPY;
                    2 - RENAME/MOVE;
                    3 - DELETE
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_ACTION_EXTN">
                <description>
                    Action Extn for Reference.
                    1. Copy a file or Rename a file or delete a file.
                    2. Copy a file to Folder
                    3. Copy multiple Files or delete  multiple files
                    4. Copy a folder or Rename a folder or delete a folder
                    5. Rename the file
                    6. Rename the folder
                    7. Delete the file
                    8. Delete multiple files
                    9. Delete a folder
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_SRC_FOLDER">
                <description>
                    The source folder(UNC path) which has to be copied.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_SRC_FILE">
                <description>
                    The source file(UNC path) which has to be copied. wild chars are supported.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_DEST_FOLDER">
                <description>
                    The destination folder(UNC path) to which copying has to be done.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_DEST_FILE">
                <description>
                    The destination file(UNC path) which has to be copied.wild chars are supported.
                </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="FileFolderConfig_PK">
            <primary-key-column>FF_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FileFolderConfig_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="FileFolderConfigExtn">
        <description>
            <![CDATA[
			This table captures the option details of provided with file/folder operations.
			This is an extension of 'ConfigData'.         ]]>
        </description>
        <columns>
            <column name="FF_CONFIG_ID">
                <description>Unique Id for the file/folder config data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_INC_SUBFOLDERS">
                <description> the value decides whether to perform the selected operation on the subdirectories.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_OVERWRITE_READONLY">
                <description> the value decides whether to perform the selected operation on the read only files.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_CONTINUE_ONERROR">
                <description> the value decides whether to continue the selected operation when an error occurs.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_OVERWRITE_EXISTING">
                <description> the value decides whether to overwrite the existing files when copy or move operation is performed.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_INC_HIDDEN">
                <description> the value decides whether to perform the selected operation on the hidden files.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_INC_SYSTEM">
                <description> the value decides whether to perform the selected operation on the system files.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_CREATE_DIR">
                <description> the value decides whether create the desination directory ifr doesn't exists</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_CHANGED">
                <description>
                    Option to depending on the timestamp,
                    Changed before  : 1
                    Changed after   : 2
                    Changed on      : 3
                    Changed between : 4
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_CHANGED_TIME">
                <description>
                    Time stamp using which the file/folder operation to be performed.
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FF_CHANGED_BTW_TIME">
                <description>
                    Time stamp if a range is provided for file/folder operations.
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FileFolderConfigExtn_PK">
            <primary-key-column>FF_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FileFolderConfigExtn_FK" reference-table-name="FileFolderConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FF_CONFIG_ID</fk-local-column>
                        <fk-reference-column>FF_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DCFileFolderConfig">
        <description>
            <![CDATA[
  	                         This table captures the details of file/folder operations.
  	                         This is an extension of 'ConfigData'.         ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION">
                <description>
                    Action to be performed,
                    1 - COPY;
                    2 - RENAME
                    3 - DELETE
                    4 - MOVE
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OPERATION">
                <description>
                    Action Extn for Reference.
                    1) Copy or Rename or delete a file. 2) Copy a file or many files to Folder 3) Copy Patten Files or delet  multiple files 4) Copy or Rename or delete a folder 5) Rename the file
                    6. Rename the folder 7) Delete the file 8) Delete multiple files 9) Delete a folder 10) Move the file 11)Move the folder 12)Http File 13)Http File/Folder archive
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEST_FOLDER">
                <description>
                    The destination folder(UNC path) to which copying has to be done.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEST_FILE">
                <description>
                    The destination file(UNC path) which has to be copied.wild chars are supported.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SOURCE_TYPE">
                <description>The value decides whether to selected type of file upload.1 -> Network Share 2 -> HTTP Upload</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCFileFolderConfig_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCFileFolderConfig_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DCFileFolderConfigExtn">
        <description>
            <![CDATA[
  	                         This table captures the option details of provided with file/folder operations.
  	                         This is an extension of 'ConfigData'.         ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id for the file/folder config data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INC_SUB_FOLDERS">
                <description> the value decides whether to perform the selected operation on the subdirectories.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OVERWRITE_READ_ONLY">
                <description> the value decides whether to perform the selected operation on the read only files.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CONTINUE_ON_ERROR">
                <description> the value decides whether to continue the selected operation when an error occurs.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="OVERWRITE_EXISTING">
                <description> the value decides whether to overwrite the existing files when copy or move operation is performed.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="INC_HIDDEN">
                <description> the value decides whether to perform the selected operation on the hidden files.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="INC_SYSTEM">
                <description> the value decides whether to perform the selected operation on the system files.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CREATE_DIR">
                <description> the value decides whether create the desination directory ifr doesn't exists</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="CHANGE_TIME_CRI_TYPE">
                <description>
                    Option to depending on the timestamp,
                    Changed before  : 1
                    Changed after   : 2
                    Changed on      : 3
                    Changed between : 4
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FILE_CHANGED_TIME">
                <description>
                    Time stamp is provided for file/folder operations .
                    The following operation this time stamp will be use ==>
                    before  : 1
                    after   : 2
                    on      : 3
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>


            <column name="FILE_CHANGED_START_TIME">
                <description>
                    Start time, Time stamp if a range is provided for file/folder changed (Modified).
                    Access between : 4
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FILE_CHANGED_END_TIME">
                <description>
                    Start time, Time stamp if a range is provided for file/folder Changed(Modified).
                    Access between : 4
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>


            <column name="CREATE_TIME_CRI_TYPE">
                <description>
                    Option to depending on the timestamp,
                    Changed before  : 1
                    Changed after   : 2
                    Changed on      : 3
                    Changed between : 4
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FILE_CREATED_TIME">
                <description>
                    Time stamp is provided for file/folder operations .
                    The following operation this time stamp will be use ==>
                    before  : 1
                    after   : 2
                    on      : 3
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FILE_CREATED_START_TIME">
                <description>
                    Start time, Time stamp if a range is provided for file/folder created.
                    Access between : 4
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>


            <column name="FILE_CREATED_END_TIME">
                <description>
                    Start time, Time stamp if a range is provided for file/folder Created
                    Access between : 4
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="ACCESS_TIME_CRI_TYPE">
                <description>
                    Option to depending on the timestamp,
                    Access before  : 1
                    Access after   : 2
                    Access on      : 3
                    Access between : 4
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FILE_ACCESS_TIME">
                <description>
                    Time stamp is provided for file/folder operations.
                    The following operation this time stamp will be use ==>
                    before  : 1
                    after   : 2
                    on      : 3
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FILE_ACCESS_START_TIME">
                <description>
                    Start time, Time stamp if a range is provided for file/folder accessed.
                    Access between : 4
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="FILE_ACCESS_END_TIME">
                <description>
                    End time, Time stamp if a range is provided for file/folder accessed.
                    Access between : 4
                </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>


        </columns>
        <primary-key name="DCFileFolderConfigExtn_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCFileFolderConfigExtn_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DCFFConfigSrcDetails">
        <description>
            <![CDATA[
  	             This table captures the option details of provided with file/folder operations.
  	             This is an extension of 'ConfigData'.         ]]>
        </description>
        <columns>
            <column name="FILE_ID">
                <description>Unique Id generated for the file/folder configuration data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCFFConfigSrcDetails.FILE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ITEM_ID">
                <description> Id for the file/folder config data. FK</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SRC_FOLDER">
                <description>
                    The source folder(UNC path) which has to be copied.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SRC_FILE">
                <description>
                    The source file(UNC path) which has to be copied. wild chars are supported.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HTTP_FILE_PATH">
                <description>
                    The http source file path (Web path) which has available this location.
                </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="DCFFConfigSrcDetails_PK">
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCFFConfigSrcDetails_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="PermissionConfig">
        <description>
            <![CDATA[
			This table captures the details of permission management for file/folder/Registry.
			This is an extension of 'ConfigData'.         ]]>
        </description>
        <columns>
            <column name="PERMISSION_CONFIG_ID">
                <description>Unique Id for the permission config data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>PermissionConfig.PERMISSION_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>

            <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="PERMISSION_OBJECT_TYPE">
                <description>
                    The object type that Permissions will be applied to.
                    1 - FILE;
                    2 - FOLDER;
                    3 - REGISTRY
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="PERMISSION_ACTION">
                <description>
                    This action defines how to apply the Permissions to the selected object.
                    1 - APPEND;
                    2 - OVERWRITE;
                    3 - REVOKE
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="OBJECT_PATH">
                <description>
                    The File/Folder Path that will be assigned the designated permissions.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>

            <column name="REGISTRY_HIVE">
                <description>
                    REGISTRY_HIVE identifies that whether registry is to class_root or machine or user or
                    current user or current config
                    1 - HKEY_CLASSES_ROOT;
                    2 - HKEY_CURRENT_USER;
                    3 - HKEY_LOCAL_MACHINE;
                    4 - HKEY_USERS;
                    5 - HKEY_CURRENT_CONFIG;
                </description>
                <data-type>INTEGER</data-type>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>

            <column name="REGISTRY_KEY">
                <description>
                    The USER/GROUP name  that will be assigned the designated permissions.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>

            <column name="PERMISSION_PRINCIPAL">
                <description>
                    The USER/GROUP name  that will be assigned the designated permissions.
                </description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="PERMISSION_INHERTANCE">
                <description>
                    PERMISSION_INHERTANCE defines which components (Parent and/or Child) of the object are affected by the
                    Permission change.
                    1 - This folder, SubFolders and files;
                    2 - This Folder only;
                    3 - This Folder and Subfolder Only;
                    4 - This Folder and Files only;
                    5 - Files Only;
                    6 - SubFolder, Files Only;
                    7 - SubFolder Only
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>

        <primary-key name="PermissionConfig_PK">
            <primary-key-column>PERMISSION_CONFIG_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="PermissionConfig_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="PermissionConfigExtn">
        <description>
            <![CDATA[
			This table captures the option details of provided with file/folder operations.
			This is an extension of 'ConfigData'.         ]]>
        </description>
        <columns>
            <column name="PERMISSION_CONFIG_ID">
                <description>Unique Id for the permission config data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FULLCONTROL">
                <description>
                    Option to allow the FULL CONTROL to the selected object to that user/group;
                    0 - DON'T SET
                    1 - ALLOW
                    2 - DENY
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFY">
                <description>
                    Option to allow the MODIFY to the selected object to that user/group;
                    0 - DON'T SET
                    1 - ALLOW
                    2 - DENY
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LIST_FOLDER_CONTENTS">
                <description>
                    Option to allow the list the contents in the selected folder to that user/group;
                    0 - DON'T SET
                    1 - ALLOW
                    2 - DENY
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXECUTE">
                <description>
                    Option to allow the READ AND EXECUTE to the selected object to that user/group;
                    0 - DON'T SET
                    1 - ALLOW
                    2 - DENY
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WRITE">
                <description>
                    Option to allow the WRITE to the selected object to that user/group;
                    0 - DON'T SET
                    1 - ALLOW
                    2 - DENY
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="READ">
                <description>
                    Option to allow the READ to the selected object to that user/group;
                    0 - DON'T SET
                    1 - ALLOW
                    2 - DENY
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PermissionConfigExtn_PK">
            <primary-key-column>PERMISSION_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PermissionConfigExtn_FK" reference-table-name="PermissionConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PERMISSION_CONFIG_ID</fk-local-column>
                        <fk-reference-column>PERMISSION_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="FolderRedirOptions">
        <description>
            <![CDATA[
		Extension table of ConfigData to add special features for "Folder Redirection".
		]]>
        </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>
            </column>
            <column name="ACTION">
                <description>Action to perform : Copy or Reset.
                    0 - Don't Copy
                    1 - Copy
                    2 - Reset
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FolderRedirOptions_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FolderRedirOptions_CDId_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="FolderRedirExtn">
        <description>
            <![CDATA[
		Table that contains the exclude folders for Folder Redirection.
		]]>
        </description>
        <columns>
            <column name="FOLDER_EXTN_ID">
                <description>Unique Id for each exclude folder given.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>FolderRedirExtn.FOLDER_EXTN_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Unique Id for each configuration record.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FOLDER_CONSTANT_ID">
                <description>Maps under which folder the directories need to excluded.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESTINATION_FOLDER">
                <description>Contains the destination folder.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXCLUDE_FOLDERS">
                <description>Contains the list of folders to be excluded.</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FolderRedirExtn_PK">
            <primary-key-column>FOLDER_EXTN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FolderRedirExtn_CDId_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="FolderRedirExtn_FCId_FK" reference-table-name="FolderRedirConstants" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FOLDER_CONSTANT_ID</fk-local-column>
                        <fk-reference-column>CONSTANT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>

    </table>
    <table name="SystemToolCfgOptions">
        <description>This table contains the options to system tools task configuration.</description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Unique Id of the task. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_FLAG">
                <description>Reboot flag for the client machines after the tools execution. Possible values are 1 for REBOOT, and 0 for NO_REBOOT </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SystemToolCfgOptions_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name ="SystemToolCfgOptions_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="SystemToolConfigData">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="SYSTOOL_DATA_ID">
                <description>Unique Id of each system tool configuration record. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SystemToolConfigData.SYSTOOL_DATA_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <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="DEFINED_ORDER">
                <description>Order of tool entries which is defined by the user. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SystemToolConfigData_PK">
            <primary-key-column>SYSTOOL_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SystemToolConfigData_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="SystemToolConfigParams">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="PARAM_ID">
                <description>Unique Id for each parameter of the system tool. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SystemToolConfigParams.PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SYSTOOL_DATA_ID">
                <description>Unique Id of the system tool data instance. </description>
                <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>NCHAR</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="SystemToolConfigParams_PK">
            <primary-key-column>PARAM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SystemToolConfigParams_FK" reference-table-name="SystemToolConfigData" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SYSTOOL_DATA_ID</fk-local-column>
                        <fk-reference-column>SYSTOOL_DATA_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="Filter">
        <description>
            <![CDATA[
		Filters are nothing but some simple/complex conditions which will decide whether some configurations to be applied or not on the client machines. The filters can be associated with a Collection or an individual Configuration. This table captures the basic properties of the filters supported by the DesktopCentral tool. In general, the supported filters would be Domain, Site, Computer, User, Group Membership, UserName, TCP/IP-Address, ComputerName, etc.
	</br> </br>
		A simple filter would be like  DomainName='MyDomain' AND OS='Windows XP' AND NOT GroupName='ExGroup'. This expression will be evaluated on the client machines (by our client side service) on logon process and based on the results the respective configurations would be applied.
		]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>A unique id generated for each filter.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>Filter.FILTER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FILTER_TYPE">
                <description>To capture whether the filter is specific to Domain or Workgroup environment. Allowed values are 1- AD DOMAIN ENV, 2-WORKGROUP ENV </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>NetBIOS name of the Domain for which the filter is defined.</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_TYPE_VALUE">
                <description>Environment value for which the filter is defined.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <unique>false</unique>
            </column>
            <column name="BRANCH_LABEL">
                <description>Its the combination of branch name and domain netbios name</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="Filter_PK">
            <primary-key-column>FILTER_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="FilterExpression">
        <description>
            <![CDATA[
		A Filter Expression is an expression which contains one or more FilterComponent Expressions.
		]]>
        </description>
        <columns>
            <column name="FILTER_EXPRESSION_ID">
                <description>A unique id generated for each filter expression.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>FilterExpression.FILTER_EXPRESSION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FILTER_ID">
                <description>Filter Id for which the expression is defined.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_EXPR_INDEX">
                <description>Order at which the expression to be evaluated. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_EXPR_OPERATOR">
                <description>Operator (AND, OR) to be used in between the FilterComponent Expressions involved in this expression. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
	    <column name="FILTER_EXPRESSION_TYPE">
				<description>Which section does the FilterExpression belong. 0 - Refine Filter, 1- Scope Filter, 2- not to be rendered in UI </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
        </columns>
        <primary-key name="FilterExpression_PK">
            <primary-key-column>FILTER_EXPRESSION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FilterExpression_FK" reference-table-name="Filter" 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="FilterComponentExpr">
        <description>
            <![CDATA[
		This is the base table for all the Filter Components. There are different types of Filter Components are supported. Examples are Domain, Computer, User, Site, etc. For each filter type there is a separate table defined with specific parameters. For example, DomainName is the attribute of Domain table which is defined for Domain filter. And the common attributes of filters are captured is this base table.
	</br> </br>
	A Filter Component Expr must be associated with a Filter Expr (which would be associated with a Filter). A Filter Expr can have 'n' Filter Components.  A FilterComponent Expr cannot belong to more than one Filter Expr, hence the FILTER_EXPRESSION_ID (relation) also captured in this same table.
	</br> </br>
	Most of the use cases involved in this domain are associated with a simple criteria than a complex one. Based on this, the boolean operator also has been captured in this same table itself. In case if we need to have a complex criteria in place, we can simply replace the relevant columns and reuse the WorkEngine tables for storing the same, and link them with an expression id.
		]]>
        </description>
        <columns>
            <column name="FILTER_COMP_EXPR_ID">
                <description>A unique id generated for each filter component expr. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>FilterComponentExpr.FILTER_COMP_EXPR_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FILTER_EXPRESSION_ID">
                <description>Id of the filter expr for which this filter component expr is created. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_CATEGORY_ID">
                <description>Id Filter Category this filter component expr belogs.. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_CLASS_ID">
                <description>Id of the filter class, this filter component specific to. This id would be pointing to any of filter class from the supported filter classes like Domain, Site, Group, OU, Computer, User, etc. The mapping between the filter class name and the filter class id would be maintained as constants and the same will be used in the code. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_COMP_VALUE">
                <description>Filter value given to compare.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPARATOR">
                <description>Comparator (=, !=) to be used to evaluate this expression. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_EXCLUDE">
                <description>Whether this filter component has exclude property enabled ? </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_COMP_INDEX">
                <description>The index or order of the filter component expr within the Filter Expr. This will be useful while evaluating the filter as well as while showing the filter on the client in the same order as it was created. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FilterComponentExpr_PK">
            <primary-key-column>FILTER_COMP_EXPR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FilterComponentExpr_FK" reference-table-name="FilterExpression" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FILTER_EXPRESSION_ID</fk-local-column>
                        <fk-reference-column>FILTER_EXPRESSION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="FilterComponentParams">
        <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="FILTER_COMP_EXPR_ID">
                <description>A unique id generated for each filter component. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FC_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="FC_PARAM_VALUE">
                <description>Value of the parameter. </description>
                <data-type>NCHAR</data-type>
                <max-size>20000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USAGE_PATTERN">
                <description>This column defines useage of this params 1 -> Both server and Agent 2 ->  Server Alone </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FilterComponentParams_PK">
            <primary-key-column>FILTER_COMP_EXPR_ID</primary-key-column>
            <primary-key-column>FC_PARAM_NAME</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FilterComponentParams_FK" reference-table-name="FilterComponentExpr" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FILTER_COMP_EXPR_ID</fk-local-column>
                        <fk-reference-column>FILTER_COMP_EXPR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

<table name="FilterComponentValue">
		<description>
		<![CDATA[
		This table will contain the Target Values domain wise
		]]>
		</description>
		<columns>
			<column name="FILTER_COMP_VALUE_ID">
				<description>A unique id generated for each filter value </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			    <uniquevalue-generation>
                  <generator-name>FilterComponentValue.FILTER_COMP_VALUE_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="FILTER_COMP_EXPR_ID">
				<description>Reference to FilterComponentExpr table </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="DOMAIN_NAME">
				<description>Domain to which the object belongs to. If the filter value is not domain specific, a default value will be added</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>false</nullable>
			</column>
			<column name="ID">
				<description>This column will contain GUID or Resource ID based on the target type as specified in DTTargetsList table</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
			</column>
			<column name="FILTER_COMP_VALUE">
				<description>Value of the target object which was previously tracked in FilterComponentExpr table</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
			</column>
		</columns>
		<primary-key name="FilterComponentValue_PK">
			<primary-key-column>FILTER_COMP_VALUE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="FilterComponentValue_FK" reference-table-name="FilterComponentExpr" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>FILTER_COMP_EXPR_ID</fk-local-column>
						<fk-reference-column>FILTER_COMP_EXPR_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

	<table name="FilterCompValueParams">
		<description>
		<![CDATA[
		This table will contain additional attrubtes if any for specific target types
		]]>
		</description>
		<columns>
			<column name="FCV_PARAM_ID">
				<description>A unique id generated for each FilterCompValueParams </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			    <uniquevalue-generation>
                  <generator-name>FilterCompValueParams.FCV_PARAM_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="FILTER_COMP_VALUE_ID">
				<description>A unique id generated for each FilterComponentValue </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="FILTER_VALUE_PARAM_KEY">
				<description>Attribute name</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
			</column>
			<column name="FILTER_VALUE_PARAM_VALUE">
				<description>Attribute value</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
			</column>
		</columns>
		<primary-key name="FilterCompValueParams_PK">
			<primary-key-column>FCV_PARAM_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="FilterCompValueParams_FK" reference-table-name="FilterComponentValue" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>FILTER_COMP_VALUE_ID</fk-local-column>
						<fk-reference-column>FILTER_COMP_VALUE_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>
    <table name="FilterComponent">
        <description>
            <![CDATA[
		This is the base table for all the Filter Components. There are different types of Filter Components are supported. Examples are Domain, Computer, User, Site, etc. For each filter type there is a separate table defined with specific parameters. For example, DomainName is the attribute of Domain table which is defined for Domain filter. And the common attributes of filters are captured is this base table.
	</br> </br>
	A Filter Component must be associated with a Filter (which would be associated with a Configuration). A Filter can have 'n' Filter Components. This is like a parent child relationship. ie, A FilterComponent cannot belong to more than one Filter, hence the FILTER_ID (relation) also captured in this same table.
	</br> </br>
	Most of the use cases involved in this domain are associated with a simple criteria than a complex one. Based on this, the boolean operator also has been captured in this same table itself. In case if we need to have a complex criteria in place, we can simply replace the relevant columns and reuse the WorkEngine tables for storing the same, and link them with an expression id.
		]]>
        </description>
        <columns>
            <column name="FILTER_COMPONENT_ID">
                <description>A unique id generated for each filter component. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>Filter.FILTER_COMPONENT_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FILTER_ID">
                <description>Id of the filter for which this filter component is created. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_CLASS_ID">
                <description>Id of the filter class, this filter component specific to. This id would be pointing to any of filter class from the supported filter classes like Domain, Site, Group, OU, Computer, User, etc. The mapping between the filter class name and the filter class id would be maintained as constants and the same will be used in the code. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXCLUDE">
                <description>Whether this filter component has exclude property enabled ? </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_INDEX">
                <description>The index or order of the filter component within the Filter. This will be useful while evaluating the filter as well as while showing the filter on the client in the same order as it was created. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FilterComponent_PK">
            <primary-key-column>FILTER_COMPONENT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FilterComponent_FId_FK" reference-table-name="Filter" 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="FilterComponentDN">
        <description>
            <![CDATA[
		This table will hold the Distinguished Name (DN) of filter component resources.
		]]>
        </description>
        <columns>
            <column name="FILTER_COMPONENT_ID">
                <description>A unique id generated for each filter component. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_GUID">
                <description>GUID of the resource which configured in this filter. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_DN">
                <description>Distinguished Name (DN) of the resource which configured in this filter. </description>
                <data-type>NCHAR</data-type>
                <max-size>2050</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FilterComponentDN_PK">
            <primary-key-column>FILTER_COMPONENT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FilterComponentDN_FK" reference-table-name="FilterComponent" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FILTER_COMPONENT_ID</fk-local-column>
                        <fk-reference-column>FILTER_COMPONENT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="FilterToCollection">
        <description>
            <![CDATA[
		A Collection must be associated with a Filter to find the exact targets for which the configurations to be applied. This table captures the relation between the Collection and the Filter. Each Collection can be associated with one or more filters which inturn captures any kind of complex criteria.
		]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>Filter Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COLLECTION_ID">
                <description>Collection Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_INDEX">
                <description>Index of each filter in case of multiple filters defined for a collection. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FilterToCollection_PK">
            <primary-key-column>FILTER_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="FilterToCollection_FK1" reference-table-name="Filter" 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-key name="FilterToCollection_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-keys>
    </table>
    <table name="AppliedConfigHistory">
        <description>
            <![CDATA[
		Whenever a configuration (captured in ConfigData) is applied on a client machine on logon process, these activities to be recorded for future references and also for Report Generation purposes. This table will hold the history of configurations which are applied for the domain resources (users/computers).
		]]>
        </description>
        <columns>
            <column name="HISTORY_ID">
                <description>History data id for user/computer related configurations. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AppliedConfigHistory.HISTORY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>Resource Id for whom the history details to be stored. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance which is applied for the user/computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPLIED_TIME">
                <description>Time at which the configuration is applied on the target. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>Status of the configuration applied. May contain a value like 'SUCCESSFUL', 'FAILED', etc. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_NAME">
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_DOMAIN_NAME">
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IP_ADDRESS">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_RETRY_ATTEMPT">
                <description>Last attempted retry count </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RETRY_STATUS">
                <description>Status of the retry process</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPLY_TYPE">
                <description>The configuration applied type like logon, startup or refresh. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NEXT_APPLY_TYPE">
                <description>The configuration's next retry attempt like logon, startup or refresh. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Not Available</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 regarding the configuration applied. </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS_EN">
                <description>Any specific remarks regarding the configuration applied. </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</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="AppliedConfigHistory_PK">
            <primary-key-column>HISTORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AppliedConfigHistory_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="AppliedConfigHistory_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-keys>
        <indexes>
            <index name="AppliedConfigHistory_IDX2">
                <index-column>APPLIED_TIME</index-column>
            </index>
            <index name="AppliedConfigHistory_IDX3">
                <index-column>STATUS</index-column>
            </index>
            <index name="AppliedConfigHistory_IDX4">
                <index-column>CONFIG_DATA_ID</index-column>
                <index-column>RESOURCE_ID</index-column>
            </index>
        </indexes>
    </table>
    <table name="UpdatedConfigHistory">
        <description>
            <![CDATA[
		This table will have the unique reference of latest history record entries for each resource vs configuration (user/computer). Will be useful in status calculations.
		]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance 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>Resource Id for whom the history details to be stored. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HISTORY_ID">
                <description>History data id for user/computer related configurations. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UpdatedConfigHistory_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UpdatedConfigHistory_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="UpdatedConfigHistory_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="UpdatedConfigHistory_HID_FK" reference-table-name="AppliedConfigHistory" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>HISTORY_ID</fk-local-column>
                        <fk-reference-column>HISTORY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
        <indexes>
            <index name="UpdatedConfigHistory_IDX1">
                <index-column>CONFIG_DATA_ID</index-column>
            </index>
            <index name="UpdatedConfigHistory_IDX2">
                <index-column>RESOURCE_ID</index-column>
            </index>
            <index name="UpdatedConfigHistory_IDX3">
                <index-column>HISTORY_ID</index-column>
            </index>
        </indexes>
    </table>
    <table name="ToolStatusHistory">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="HISTORY_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXECUTION_DATE">
                <description>Date on which tool invocation is scheduled. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXECUTION_START_TIME">
                <description>Time at which the execution of the tool is started. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXECUTION_END_TIME">
                <description>Time at which the execution of the tool is completed. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOG_FILE_PATH">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Not Available</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ToolStatusHistory_PK">
            <primary-key-column>HISTORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ToolStatusHistory_FK" reference-table-name="AppliedConfigHistory" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>HISTORY_ID</fk-local-column>
                        <fk-reference-column>HISTORY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CollnToResourcesExtn">
        <description>
            <![CDATA[
		This table will hold the target resources (users/computers) for which the collection is applied even after the collections's state is set as 'COMPLETED'.
		]]>
        </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 the Id of the user/computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollnToResourcesExtn_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollnToResourcesExtn_FK" reference-table-name="CollnToResources" 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-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="ToolsLogHistorySettings">
        <description>
            <![CDATA[ number of history details to be maintained for each customer
  	                                  ]]>
        </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="MAX_HISTORY_COUNT">
                <description>Number of History Details To Be Maintained</description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
            </column>
        </columns>

        <primary-key name="ToolsLogHistorySettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ToolsLogHistorySettings_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="InactiveUser">
        <description>
            <![CDATA[
		This table will have global (common to all domains) inactive user entries.
		]]>
        </description>
        <columns>
            <column name="USER_ID">
                <description>Holds unique Id generated for each inactive user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>InactiveUser.USER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="USER_NAME">
                <description>Name of the inactive user. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
            </column>
            <column name="ADDED_ON">
                <description>Time at which the inactive user is added. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="InactiveUser_PK">
            <primary-key-column>USER_ID</primary-key-column>
        </primary-key>
        <unique-keys>
            <unique-key name="InactiveUser_UK">
                <unique-key-column>USER_NAME</unique-key-column>
            </unique-key>
        </unique-keys>
    </table>
    <table name="TargetStatusSummary">
        <description>
            <![CDATA[
		This table will hold the summary of execution status 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="TOTAL_TARGET">
                <description>Will hold the total number of targets(users/computers) for which the configuration is to be applied. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUCCESS_TARGET">
                <description>Will hold the number of targets(users/computers) for which the configuration already applied successfully. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FAILURE_TARGET">
                <description>Will hold the number of targets(users/computers) for which the configuration already applied, but failed. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UNMATCHED_TARGET">
                <description>Will hold the number of targets(users/computers) for which the configuration is not applicable, ie, the filter is not matching for these users/computers. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INACTIVE_TARGET">
                <description>Will hold the number of inactive targets(users) for the configuration. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PENDING_TARGET">
                <description>Will hold the number of pending targets(users) for the configuration. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="TargetStatusSummary_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="TargetStatusSummary_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="ConfigTypeSummary">
        <description>
            <![CDATA[
		This table will hold the summary of configurations deployed based on the config type/category like IE, PATH, ENV, etc.
		]]>
        </description>
        <columns>
            <column name="CONFIGTYPESUMMARY_AUTO_ID">
                <description>This is a uvh column added for cloud support</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ConfigTypeSummary.CONFIGTYPESUMMARY_AUTO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_ID">
                <description>Will hold the id of config type/category for the summary details. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="RECENT_CONFIG_DATA_ID">
                <description>Will hold the config data id which contains the recently deployed configuration details for this type. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_COUNT">
                <description>Total config count (deployed) for this configuration type. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigTypeSummary_PK">
            <primary-key-column>CONFIGTYPESUMMARY_AUTO_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="ConfigTypeSummary_CId_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-key name="ConfigTypeSummary_CDId_FK" reference-table-name="ConfigData" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RECENT_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="ResourceToCfgSummary">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of AD resource (User, Computer, etc). </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TOTAL_CONFIG_COUNT">
                <description>Will hold the total number of configurations which have been applied for the resource. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECENT_HISTORY_ID">
                <description>Will hold the history id which contains the recently applied configuration details. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ResourceToCfgSum_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="ResToCfgSummary">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of AD resource (User, Computer, etc). </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TOTAL_CONFIG_COUNT">
                <description>Will hold the total number of configurations which have been applied for the resource. </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECENT_HISTORY_ID">
                <description>Will hold the history id which contains the recently applied configuration details. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ResToCfgSum_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="ResToCfgSum_Rid_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="ResToCfgSum_Hid_FK" reference-table-name="AppliedConfigHistory" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RECENT_HISTORY_ID</fk-local-column>
                        <fk-reference-column>HISTORY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DCTemplate">
        <description>
            <![CDATA[
		This table captures the basic attributes of templates used in Desktop Central.
		]]>
        </description>
        <columns>
            <column name="TEMPLATE_ID">
                <description>Unique Id of the template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCTemplate.TEMPLATE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TEMPLATE_NAME">
                <description>Name of the template. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TEMPLATE_TYPE">
                <description>type of the template. Possible values are 1 for Collection Template, 2 for Filter Template.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TEMPLATE_DESC">
                <description>Description for the template. </description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TEMPLATE_SOURCE">
                <description>Source through which the template was created. 0 - Predefined, 1- User Defined </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCTemplate_PK">
            <primary-key-column>TEMPLATE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCTemplateTag">
        <description>
            <![CDATA[
		This table captures the tags used in templates of Desktop Central.
		]]>
        </description>
        <columns>
            <column name="TEMPLATE_TAG_ID">
                <description>Unique Id of the template tag. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCTemplateTag.TEMPLATE_TAG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TEMPLATE_ID">
                <description>Unique Id of the template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TAG_NAME">
                <description>Name of the tag. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCTemplateTag_PK">
            <primary-key-column>TEMPLATE_TAG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCTemplateTag_FK1" reference-table-name="DCTemplate" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CollectionTemplate">
        <description>
            <![CDATA[
		This table captures the Collection Template. As the data to be saved in Template is similar to the Configuration data, the same tables can be used for this purpose. The respective Config Ids will be captured here and these configurations will be treated as special, will be ignored while applying the configurations on the client machines.
		]]>
        </description>
        <columns>
            <column name="TEMPLATE_ID">
                <description>Unique Id of the collection template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COLLECTION_ID">
                <description> Id of the collection where the template data is getting stored. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollectionTemplate_PK">
            <primary-key-column>TEMPLATE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollectionTemplate_FK1" reference-table-name="DCTemplate" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CollectionTemplate_FK2" 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="ADSchedulersettings">
        <description>
            <![CDATA[
		This table will contain the ADSchedulerSettings details. 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="SCHEDULER_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>ADSchedulersettings.SCHEDULER_PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>

            <column name="IS_SCHEDULER_ENABLE">
                <description> To Enable or Disable ADScheduler Setting </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_REPORT_EMAIL_ENABLE">
                <description>To Enable or Disable ADEmailADReport </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADSchedulersettings_PK">
            <primary-key-column>SCHEDULER_PARAM_ID</primary-key-column>
        </primary-key>

    </table>

    <table name="ManagedComputer">
        <description>
            <![CDATA[
		This table will contain the details of all managed computers.
		]]>
        </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="ADDED_TIME">
                <description>Time at which the computer is added in the managed computer list. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME">
                <description>Time at which the computer is modified from the managed computer list. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MANAGED_STATUS">
                <description> Managed status of the computer.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_INSTALLED_ON">
                <description>Time at which the agent is installed on the computer. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_UNINSTALLED_ON">
                <description>Time at which the agent is installed on the computer. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_UPGRADED_ON">
                <description>Time at which the agent is upgraded on the computer. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_EXECUTED_ON">
                <description>Time at which the agent is installed on the computer. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_INSTALLED_DIR">
                <description>Dir on which the agent is installed </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALLATION_STATUS">
                <description>Status of the agent installation. Default value is 21 (Agent Yet To Install) </description>
                <data-type>INTEGER</data-type>
                <default-value>21</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS_UPDATED_TIME">
                <description>Time at which the installation status is changed. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_VERSION">
                <description>Agent version which is installed. </description>
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Any specific remarks regarding the agent installation success/failure etc. </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS_ARGS">
                <description>Argument list for remarks, for multiple values add i18n_argu_seperator</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FULL_NAME">
                <description>Full name of the computer. Introduced to store the original computer name which solves the 15 characters trim problem by AD.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FQDN_NAME">
                <description>FQDN name of the computer. Introduced to solve SDP integration problems.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UUID">
                <description>Unique ID of the computer. Applicable for both AD and Workgroup computers </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_STATUS">
                <description>Status of the current agent. Default value is 0 (unknown) </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ManagedComputer_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ManagedComputer_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="SelectedComputer">
        <description>
            <![CDATA[
		This table will contain the details of all selected computers which are to be added to the managed computers. This is a temporary table to hold the selected computers to be managed. Once the user confirms these entries will be moved to ManagedComputer table, and this table entries will be cleaned up.
		]]>
        </description>
        <columns>
            <column name="SELECTED_COMPUTER_ID">
                <description>Holds unique Id generated for each selected computer before adding to managed computer list. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SelectedComputer.SELECTED_COMPUTER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="COMPUTER_NAME">
                <description>selected computer name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_DN">
                <description>selected computer's distinguished name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTAINER_NAME">
                <description>Container name (domain/workgroup name) in which the computer belongs. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_CATEGORY">
                <description>Whether the computer belongs to Domain or Workgroup. Possible values are 1 for DOMAIN and 2 for WORKGROUP</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_STATUS">
                <description>Credential verification status of the computer. Possible values are 1 for SUCCESS, and 2 for FAILURE </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS_UPDATED_TIME">
                <description>Time at which the credential status is changed. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GLOBAL_CREDENTIAL_ID">
                <description>Global credential id. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_NAME">
                <description>Credential user name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWORD">
                <description>Credential password </description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_USER_ID">
                <description>User Id who performs the select computers. </description>
                <data-type>BIGINT</data-type>
                <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>
            <column name="FULL_NAME">
                <description>Full name of the computer. Introduced to store the original computer name which solves the 15 characters trim problem by AD.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_PLATFORM">
                <description>OS platform of computer.1-windows,2-mac,3-linux</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SelectedComputer_PK">
            <primary-key-column>SELECTED_COMPUTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SelectedComputer_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="DeletedComputer">
        <description>
            <![CDATA[
		This table will contain the details of all deleted computers from the SoM. This table entries will be deleted when agent uninstallation status is received. Entries for which the uninstallation status is not received will be cleaned up monthly.
		This table doesn't have foreign key to maintain the resource IDs not to be removed during AD Reports Update. Otherwise during AD Reports Update the resource IDs will be removed and the xmls will be present always.
		]]>
        </description>
        <columns>
            <column name="DELETEDCOMPUTER_AUTO_ID">
                <description>Holds unique Id of the computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>DeletedComputer.DELETEDCOMPUTER_AUTO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>Holds unique Id of the computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="NAME">
                <description>Deleted computer name. </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/Workgroup name to which the computer belongs. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETED_TIME">
                <description>Time at which the computer is deleted. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</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="DeletedComputer_PK">
            <primary-key-column>DELETEDCOMPUTER_AUTO_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DeletedComputer_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="ManagedComputerToDCUser">
        <description><![CDATA[Contains the Method details]]> </description>
        <columns>
            <column name="DC_USER_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="RESOURCE_ID">
                <description>Resource ID of the managed computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ManagedComputerToDCUser_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ManagedComputerToDCUser_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-key name="ManagedComputerToDCUser_FK2" reference-table-name="ManagedComputer" 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="ManagedComputerToErrCode">
        <description><![CDATA[Contains the Method details]]> </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ERROR_CODE">
                <description>Error Code for this resource ID</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="OPERATION_TYPE">
                <description>Operation type of this error code</description>
                <data-type>INTEGER</data-type>
                <nullable>true</nullable>
            </column>
        </columns>
        <primary-key name="ManagedComputerToErrCode_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ManagedComputerToErrCode_FK1" reference-table-name="ManagedComputer" 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="ManagedComputerToErrCode_FK2" 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="AgentRetryExtn">
		<description>Agent Retry Extn contains the Agent installation failed machines at any instance of time</description>
		<columns>
			
			<column name="RESOURCE_ID">
				<description>Resource ID of the managed computer</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
		
			<column name="AGENT_INSTALLATION_FAILED_ON">
				<description>Records agent installation failed on Time</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
		
			<column name="IS_RETRY_EXPIRED">
				<description>Retry Agent Installation expired for this computer.</description>
				<data-type>BOOLEAN</data-type>
				<default-value>false</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
                <primary-key name="AgentRetryExtn_PK">
			<primary-key-column>RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="AgentRetryExtn_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="DSRetryResource">
        <description>Distribution server Retry Extn contains the Agent installation failed machines at any instance of time</description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Resource ID of the managed computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DS_INSTALLATION_FAILED_ON">
                <description>Records agent installation failed on Time</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="IS_RETRY_EXPIRED">
                <description>Retry Agent Installation expired for this computer.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DSRetryResource_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSRetryResource_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="ConfigHistoryToErrCode">
        <description>
            <![CDATA[
			This table will have the error code returned for each configuration history id.
			]]>
        </description>
        <columns>
            <column name="HISTORY_ID">
                <description>History data id for user/computer related configurations. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>ture</unique>
            </column>
            <column name="ERROR_CODE">
                <description>Error Code for this history ID</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigHistoryToErrCode_PK">
            <primary-key-column>HISTORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigHistoryToErrCode_FK1" reference-table-name="AppliedConfigHistory" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>HISTORY_ID</fk-local-column>
                        <fk-reference-column>HISTORY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="ConfigHistoryToErrCode_FK2" 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="AgentParams">
        <description>
            <![CDATA[
		This table will contain the agent parameters. For status update, this table is used.
		]]>
        </description>
        <columns>
            <column name="AGENT_PARAM_ID">
                <description>Unique id assigned for set of parameters. </description>
                <data-type>INTEGER</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>50</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>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentParams_PK">
            <primary-key-column>AGENT_PARAM_ID</primary-key-column>
            <primary-key-column>PARAM_NAME</primary-key-column>
        </primary-key>
    </table>
    <table name="AgentProtectionSettings">
        <description>
            <![CDATA[
        This table will hold the customer agent Uninstall setting Enabled/Disabled with secretKey
        ]]>
        </description>
        <columns>
            <column name="CUSTOMER_ID">
                <description>Customer Id to refer a customer from CustomerInfo</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_UNINSTALL_RESTRICT">
                <description>Agent Uninstall Enable/Disable</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_STOP_RESTRICT">
                <description>Agent service stop restrict Enable/Disable</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SECRET_KEY">
                <description>A Secret key for each customer.</description>
                <data-type>SCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentProtectionSettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AgentProtectionSettings_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="GlobalAgentProtectionSettings">
        <description>
            <![CDATA[
        This table will hold the global agent Uninstall setting Enabled/Disabled with secretKey
        ]]>
        </description>
        <columns>
            <column name="SETTING_ID">
                <description>Unique Id for the setting.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>GlobalAgentProtectionSettings.SETTING_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="AGENT_UNINSTALL_RESTRICT">
                <description>AGENT move across remote offices action</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_STOP_RESTRICT">
                <description>Agent service stop restrict Enable/Disable</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OTP_LENGTH">
                <description>Stored OTP length for a particular customer</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OTP_DURATION">
                <description>Expiry duration for a OTP in minutes</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UNINSTALL_ATTEMPTS">
                <description>Max attempts allowed in a single OTP Duration window</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="GlobalAgentProtectionSettings_PK">
            <primary-key-column>SETTING_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="RetryAgentConfig">
		<description>
		<![CDATA[
		This table will contain the agent parameters. For status update, this table is used.
		]]>
		</description>
		<columns>
			<column name="RETRY_USER_ID">
				<description>Unique id assigned for set of parameters. </description>
                                <data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="INTERVAL_DELAY">
				<description> Delay between retrying agent installation. </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DAYS_TO_EXPIRE_AGENT">
				<description>Installation failed computers will not considered for agent retry after this time </description>
				<data-type>INTEGER</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
            <column name="ALERT_EMAIL_ID">
				<description>Value of the parameter. </description>
				<data-type>NCHAR</data-type>
				<max-size>1000</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="RetryAgentConfig_PK">
			<primary-key-column>RETRY_USER_ID</primary-key-column>
		</primary-key>
                <foreign-keys>
                    <foreign-key name="RetryAgentConfig_FK1" reference-table-name="AaaUser" isbidirectional="false">
                        <fk-columns>
                            <fk-column>
                                <fk-local-column>RETRY_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="SyMTask">
        <description>This table stores the task related details which are controlled by Work Eengine. </description>
        <columns>
            <column name="SYMTASK_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SyMTask.SYMTASK_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TASK_NAME">
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="DESCRIPTION">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>Not Given </default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATION_TIME">
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="START_TIME">
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPLETION_TIME">
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>Allowed values are SCHEDULED, RUNNING, COMPLETED, FAILED. </description>
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <default-value>SCHEDULED</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <data-type>NCHAR</data-type>
                <max-size>300</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SyMTask_PK">
            <primary-key-column>SYMTASK_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SearchKeyWord">
        <description>This table contains all the possible keywords for search. </description>
        <columns>
            <column name="KEY_WORD_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SearchKeyWord.KEY_WORD_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="KEY_WORD">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SearchKeyWord_PK">
            <primary-key-column>KEY_WORD_ID</primary-key-column>
        </primary-key>
        <indexes>
            <index name="SearchKeyWord_IDX1">
                <index-column>KEY_WORD</index-column>
            </index>
        </indexes>
    </table>
    <table name="HelpKeyURL">
        <description>This table contains all urls for help search. </description>
        <columns>
            <column name="HELP_URL_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <!--<uniquevalue-generation>-->
                    <!--<generator-name>HelpKeyURL.HELP_URL_ID</generator-name>-->
                <!--</uniquevalue-generation>-->
            </column>
            <column name="HELP_URL">
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_TEXT">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="HelpKeyURL_PK">
            <primary-key-column>HELP_URL_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SearchKeyWordToURL">
        <description>This table contains mapping between the help search word and the urls. </description>
        <columns>
            <column name="KEY_WORD_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HELP_URL_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SearchKeyWordToURL_PK">
            <primary-key-column>KEY_WORD_ID</primary-key-column>
            <primary-key-column>HELP_URL_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SKeyWordToURL_KEY_FK" reference-table-name="SearchKeyWord" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>KEY_WORD_ID</fk-local-column>
                        <fk-reference-column>KEY_WORD_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SKeyWordToURL_URL_FK" reference-table-name="HelpKeyURL" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>HELP_URL_ID</fk-local-column>
                        <fk-reference-column>HELP_URL_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SearchKeyWordToCfg">
        <description>This table contains mapping between the search word and the configurations. </description>
        <columns>
            <column name="KEY_WORD_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_ID">
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SearchKeyWordToCfg_PK">
            <primary-key-column>KEY_WORD_ID</primary-key-column>
            <primary-key-column>CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SKeyWordToCfg_KWID_FK" reference-table-name="SearchKeyWord" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>KEY_WORD_ID</fk-local-column>
                        <fk-reference-column>KEY_WORD_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SKeyWordToCfg_CID_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>
    </table>
    <table name="ConfigToHelpURL">
        <description>This table contains mapping between the help url for each configuration. </description>
        <columns>
            <column name="SUB_CONFIG_ID">
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HELP_URL_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigToHelpURL_PK">
            <primary-key-column>SUB_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigToHelpURL_CFG_FK" reference-table-name="SubConfiguration" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SUB_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SUB_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="ConfigToHelpURL_URL_FK" reference-table-name="HelpKeyURL" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>HELP_URL_ID</fk-local-column>
                        <fk-reference-column>HELP_URL_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="DCAgentMSIInfo">
        <description>This table contains server config details. </description>
        <columns>
            <column name="SERVER_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>false</unique>
            </column>
            <column name="SERVER_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="AGENT_VERSION_UPDATED_ON">
                <description>Time at which the agent is changed on the server. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCAgentMSIInfo_PK">
            <primary-key-column>SERVER_NAME</primary-key-column>
        </primary-key>
    </table>
    <table name="DCServerIPDetected">
        <description>This table contains server config details. </description>
        <columns>
            <column name="SERVER_ID">
                <description>Primary key id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCServerIPDetected.SERVER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SERVER_IPADDR">
                <description>This will store the detected ipaddress of the machine using INetAddress Java API where the product is installed</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="DCServerIPDetected_PK">
            <primary-key-column>SERVER_ID</primary-key-column>
        </primary-key>
    </table>
    <!-- OFFICE CTR TABLES -->
    <table name="O365CTRLanguages">
        <description><![CDATA[This table is used to store the office click-to-run language IDs]]></description>
        <columns>
            <column name="O365_CTR_ID">
                <description>This is a uvh column added for cloud support</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>O365CTRLanguages.O365_CTR_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="LANGUAGE_ID">
                <description>Office click-to-run language IDs</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="O365CTRLanguages_PK">
            <primary-key-column>O365_CTR_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="O365CTRProofingTools">
        <description><![CDATA[This table is used to store the office click-to-run proofing tool IDs]]></description>
        <columns>
            <column name="O365_CTR_ID">
                <description>This is a uvh column added for cloud support</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>O365CTRProofingTools.O365_CTR_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PROOFING_LANGUAGE_ID">
                <description>Office click-to-run proofing tool IDs</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="O365CTRProofingTools_PK">
            <primary-key-column>O365_CTR_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="O365CTRSettings">
        <description><![CDATA[This table is used to store the office click-to-run configured settings]]></description>
        <columns>
            <column name="O365_CTR_ID">
                <description>This is a uvh column added for cloud support</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>O365CTRSettings.O365_CTR_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="AUTO_ADD_NEW_LANG">
                <description>Office click-to-run configuration to add new languages automatically</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REDOWNLOAD_FOR_NEW_LANG">
                <description>Office click-to-run configuration to re-download for new languages</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOWNLOAD_SOURCE">
                <description>Office click-to-run configuration for download source (Microsoft CDN / Desktop Central Server)</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <default-value>microsoftCDN</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HOW_TO_INSTALL">
                <description>Office click-to-run configuration to choose how to proceed with installation</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="O365CTRSettings_PK">
            <primary-key-column>O365_CTR_ID</primary-key-column>
        </primary-key>
    </table>
    <!-- OFFICE CTR TABLES -->
    <table name="ResourceAppLanguage">
        <description><![CDATA[This table is used to store application based language details]]></description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRODUCT_ID">
                <description>Unique Id for each product</description>
                <data-type>BIGINT</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
            </column>
            <column name="SERVICE_PACK_ID">
                <description>Unique Id for each service pack</description>
                <data-type>BIGINT</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
            </column>
            <column name="LANGUAGE_ID">
                <description>Unique Id for each language</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ResourceAppLanguage_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>PRODUCT_ID</primary-key-column>
            <primary-key-column>SERVICE_PACK_ID</primary-key-column>
            <primary-key-column>LANGUAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceAppLanguage_FK" reference-table-name="ManagedComputer" 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="O365Languages">
        <description><![CDATA[This table is used to map office 365 language abbreviation with language ID]]></description>
        <columns>
                <column name="LANGUAGE_ID">
                        <data-type>INTEGER</data-type>
                        <nullable>false</nullable>
                        <unique>false</unique>
                </column>
                <column name="O365_ABBREVIATION">
                        <data-type>NCHAR</data-type>
                        <max-size>255</max-size>
                        <nullable>false</nullable>
                </column>
                <column name="DESCRIPTION">
                        <data-type>NCHAR</data-type>
                        <max-size>255</max-size>
                        <nullable>false</nullable>
                </column>
        </columns>
        <primary-key name="O365Languages_PK">
                <primary-key-column>LANGUAGE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="O365ProofingLanguages">
        <description><![CDATA[This table is used to map office 365 proofing tool languages]]></description>
        <columns>
                <column name="PROOFING_LANGUAGE_ID">
                        <data-type>INTEGER</data-type>
                        <nullable>false</nullable>
                        <unique>false</unique>
                </column>
                <column name="ABBREVIATION">
                        <data-type>NCHAR</data-type>
                        <max-size>255</max-size>
                        <nullable>false</nullable>
                </column>
                <column name="DESCRIPTION">
                        <data-type>NCHAR</data-type>
                        <max-size>255</max-size>
                        <nullable>false</nullable>
                </column>
        </columns>
        <primary-key name="O365ProofingLanguages_PK">
                <primary-key-column>PROOFING_LANGUAGE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="PMPatchAppType">
        <columns>
            <column name="PATCHID">
                <data-type>BIGINT</data-type>
                <max-size>19</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="LANGUAGEID">
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <nullable>false</nullable>
            </column>
            <column name="APPTYPE">
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PMPatchAppType_PK">
            <primary-key-column>PATCHID</primary-key-column>
        </primary-key>
    </table>
    <table name="InstallPatchConfig">
        <description>
            <![CDATA[
			This table captures the details of relational data of ConfigData and Patch Table.
			]]>
        </description>
        <columns>
            <column name="INSTALL_PATCH_ID">
                <description>Unique Id for the environment variable config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>InstallPatchConfig.INSTALL_PATCH_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PATCH_ID">
                <description>Unique Id for the environment variable config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <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>
        </columns>
        <primary-key name="InstallPatchConfig_PK">
            <primary-key-column>INSTALL_PATCH_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="InstallPatchConfig_CD_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="RebootPolicy">
        <description>This table stores the Reboot policy for Patch deployment/undeployment</description>
        <columns>
            <column name="COLLECTION_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT">
                <description>DC_NO_REBOOT 0 : DC_FORCE_REBOOT 1 : DC_FORCE_SHUTDOWN 2 : DC_ALLOWSKIP_REBOOT 3 : DC_ALLOWSKIP_SHUTDOWN 4</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
                <allowed-values>
                    <value>0</value>
                    <value>1</value>
                    <value>2</value>
                    <value>3</value>
                    <value>4</value>
                </allowed-values>
            </column>
            <column name="EXCLUDE_SERVER">
                <description>1 - Allow user to skip reboot for servers,0 - Dont skip reboot for servers</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOTTIME">
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="MESSAGE">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RebootPolicy_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name ="RebootPolicy_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-keys>
    </table>
    <table name="InstallSPConfig">
        <description>
            <![CDATA[
			This table captures the details of relational data of ConfigData and Patch Table.
			]]>
        </description>
        <columns>
            <column name="INSTALL_SERVICEPACK_ID">
                <description>Unique Id for the environment variable config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>InstallSPConfig.INSTALL_SERVICEPACK_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PRODUCT_ID">
                <description>Unique Id for the selected product. </description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERVICEPACK_ID">
                <description>Unique Id for the servicepack.</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <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>
        </columns>
        <primary-key name="InstallSPConfig_PK">
            <primary-key-column>INSTALL_SERVICEPACK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="InstallSPConfig_CD_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="DCRoles">
        <description><![CDATA[
			Contains ADMP Role Details
			]]></description>
        <columns>
            <column name="DC_ROLE_ID">
                <description>A Unique Description for Each Role</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>DCRoles.DC_ROLE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DC_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="DC_ROLE_DESCRIPTION">
                <description>Description for Role</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
            </column>
        </columns>
        <primary-key name="DCRoles_PK">
            <primary-key-column>DC_ROLE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCUsersRoleMapping">
        <description><![CDATA[Contains the Method details]]> </description>
        <columns>
            <column name="LOGIN_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DC_ROLE_ID">
                <description>A Name for Each method</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DCUsersRoleMapping_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
            <primary-key-column>DC_ROLE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="DCRoles" name="DCUsersRoleMapping_FK1">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DC_ROLE_ID</fk-local-column>
                        <fk-reference-column>DC_ROLE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key reference-table-name="AaaLogin" name="DCUsersRoleMapping_FK2">
                <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="DCUsersCollectionMapping">
        <description><![CDATA[Contains the Method details]]> </description>
        <columns>
            <column name="COLLECTION_ID">
                <description>A Name for Each method</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DC_USER_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="LAST_MODIFIED_USER_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DCUsersCollectionMapping_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCUsersCollectionMapping_FK2" 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="DCUsersCollectionMapping_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-key name="DCUsersCollectionMapping_FK3" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LAST_MODIFIED_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="EMailAddrToCustRel">
        <description><![CDATA[mapping  between Customer and SW Packages defined ]]> </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>
        </columns>
        <primary-key name="EMailAddrToCustRel_PK">
            <primary-key-column>EMAIL_ADDR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="EMailAddrToCustRel_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="EMailAddrToCustRel_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="ClientMetaData">
        <description>
            <![CDATA[
			This table will hold the details of config meta data for each name space.
			]]>
        </description>
        <columns>
            <column name="CLIENT_META_DATA_ID">
                <description>Unique Id for each config meta data entry. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ClientMetaData.CLIENT_META_DATA_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="META_DATA_KEY">
                <description>unique key to be used for each meta data. </description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>name space </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="META_DATA_FILE_NAME">
                <description>file path for the meta data. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="META_DATA_FILE_PATH">
                <description>file path for the meta data. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME">
                <description>Time at which the meta data has been modified. </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 meta data is generated.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ClientMetaData_PK">
            <primary-key-column>CLIENT_META_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ClientMetaData_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>
        <unique-keys>
            <unique-key name="ClientMetaData_UK">
                <unique-key-column>META_DATA_KEY</unique-key-column>
                <unique-key-column>DOMAIN_NETBIOS_NAME</unique-key-column>
                <unique-key-column>CUSTOMER_ID</unique-key-column>
            </unique-key>
        </unique-keys>
    </table>
    <table name="MetaDataParams">
        <description>
            <![CDATA[
		This table will contain the meta data parameters. Thease parameters will be generated along with the configuration meta data.
		]]>
        </description>
        <columns>
            <column name="MD_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>MetaDataParams.MD_PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>name space </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MD_PARAM_NAME">
                <description> Key name of the parameter. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="MD_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 meta data is generated. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MetaDataParams_PK">
            <primary-key-column>MD_PARAM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MetaDataParams_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>
        <unique-keys>
            <unique-key name="MetaDataParams_UK">
                <unique-key-column>DOMAIN_NETBIOS_NAME</unique-key-column>
                <unique-key-column>MD_PARAM_NAME</unique-key-column>
                <unique-key-column>CUSTOMER_ID</unique-key-column>
            </unique-key>
        </unique-keys>
    </table> 

    <table name="WakeOnResource">
        <description>
            <![CDATA[
			This table contains the resource details required for wake on lan
			]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Id of the site.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IP_ADDRESS">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAC_ADDRESS">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUBNET_ADDRESS">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BROADCAST_ADDRESS">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="WakeOnResource_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="WakeOnResource_FK2" 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="WakeOnTaskResourceRel">
        <description>
            <![CDATA[
			This table contains the relation between taskdetails and resources scheduled in wakeOnLan.
			]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Id of the subnet.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_ID">
                <description>Id of the site.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WOL_STATUS">
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Default</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS_UPDATE_TIME">
                <description>Time of status update.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USED_OR_NOT">
                <description></description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="WakeOnTaskResourceRel_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="WakeOnTaskResourceRel_FK1" reference-table-name="WakeOnResource" 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="WakeOnTaskResourceRel_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>
    <table name="WakeOnConfiguration">
        <description>
            <![CDATA[
			This table contains the relation between taskdetails and wake on lan configuration settings
		       	The time "PING_REQUEST_BEFORE" and "TIME_INTERVAL" are in minutes
			]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>From taskDetails table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="THREAD_COUNT">
                <description>Number of threads executed for the task</description>
                <data-type>INTEGER</data-type>
                <default-value>5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PING_REQUEST_BEFORE">
                <description>1 for not initial ping, 2 for initial ping</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TIME_INTERVAL">
                <description>Time to wait after sending magic packet  - in minutes</description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CAST_TYPE">
                <description>1 for unicast, 2 for multicast</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT">
                <description>Magic packet using this port</description>
                <data-type>INTEGER</data-type>
                <default-value>7</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOLVE_IP">
                <description>1 not to resolve,2 to resolve</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABE_SCHEDULE">
                <description>tru to enable scheduler</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WAKE_ON_TYPE">
                <description>This column describes which type of task this, 1 for wake up now ,2 for schedule wake up</description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="WakeOnConfiguration_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="WakeOnConfiguration_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="WakeOnNowResource">
        <description>
            <![CDATA[
			This table is used for maintaining wake up now computers.
			]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Id of the computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WOL_STATUS">
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Default</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS_UPDATE_TIME">
                <description>Time of status update.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USED_OR_NOT">
                <description>Is used only to maintain status in memory when a thread is using this row.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="WakeOnNowResource_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="WakeOnNowResource_FK1" reference-table-name="WakeOnResource" 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="WolXmlFileCleanUp">
        <description>
            <![CDATA[
			This table is used for maintaining clean up data for WOL.
			]]>
        </description>
        <columns>
            <column name="WOL_ID">
                <description>Id of the computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>WolXmlFileCleanUp.WOL_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CREATION_TIME">
                <description>The time at which the xml file created.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="XML_PATH">
                <description> Path of XML file. </description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="WolXmlFileCleanUp_PK">
            <primary-key-column>WOL_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="WolParams">
        <description>
            <![CDATA[
			This table is used for maintaining clean up data for WOL.
			]]>
        </description>
        <columns>
            <column name="WOL_ID">
                <description>Id of the computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>WolParams.WOL_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PARAM_NAME">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="PARAM_VALUE">
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="WolParams_PK">
            <primary-key-column>WOL_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="WakeUpNowSettings">
        <description>
            <![CDATA[
			This table is used for maintaining Wake up now settings for each customer
			]]>
        </description>
        <columns>
            <column name="CUSTOMER_ID">
                <description>From CustomerInfo table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGIN_ID">
                <description>From AaaLogin table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TIME_INTERVAL">
                <description>Time to wait after sending magic packet  - in minutes</description>
                <data-type>INTEGER</data-type>
                <default-value>5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT">
                <description>Magic packet using this port</description>
                <data-type>INTEGER</data-type>
                <default-value>7</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="WakeUpNowSettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
            <primary-key-column>LOGIN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="WakeUpNowSettings_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 reference-table-name="AaaLogin" name="WakeUpNowSettings_FK2" 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="ToolsTechParams">
		<description>
			<![CDATA[
		This table will contain the Tools and RDS parameters. As the values would be in Key-Value format, this table structure captures the same.
		]]>
		</description>
		<columns>
			<column name="TOOLS_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>ToolsTechParams.TOOLS_PARAM_ID</generator-name>
				</uniquevalue-generation>
			</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="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="ToolsTechParams_PK">
			<primary-key-column>TOOLS_PARAM_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ToolsTechParams_FK" 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>
		<indexes>
			<index name="ToolsTechParams_IDX1">
				<index-column>PARAM_NAME</index-column>
			</index>
		</indexes>
	</table>

    <table name="TechFavComputers">
        <description>
            <![CDATA[
        This table contains favorite computers list of each technician
        ]]>
        </description>
        <columns>
            <column name="PARAM_ID">
                <description>Unique ID generated for each entry.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>TechFavComputers.PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TECH_ID">
                <description>Technician ID for whom the favorites are mapped.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_ID">
                <description>Resource ID of the favorite computer.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="TechFavComputers_PK">
            <primary-key-column>PARAM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="TechFavComputers_FK1" 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-key name="TechFavComputers_FK2" reference-table-name="ManagedComputer" 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>
        <indexes>
            <index name="TechFavComputers_IDX1">
                <index-column>RESOURCE_ID</index-column>
            </index>
        </indexes>
    </table>

    <table name="ToolsActionStatus">
        <description>
            <![CDATA[
        This table contains information such as recent action initiated on a resource,
        along with the action initiated time
        ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Resource ID of the computer.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="FEATURE_CODE">
                <description>
                    Unique code for the last initiated Tools feature.
                    1 - Remote Control
                    2 - Chat
                    3 - System Manager
                    4 - Shutdown
                    5 - Wake on LAN
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_UPDATED_TIME">
                <description>Last update time for the last initiated action (ms).</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ToolsActionStatus_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ToolsActionStatus_FK1" reference-table-name="ManagedComputer" 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>
        <indexes>
            <index name="ToolsActionStatus_IDX1">
                <index-column>RESOURCE_ID</index-column>
            </index>
        </indexes>
    </table>

    <table name="ResourceToGUID">
        <description>
            <![CDATA[
		relation between resoure and GUID
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Member resource id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the resource. </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="ResourceToGUID_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceToGUID_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="TaskToCustomGroupRel">
        <description> <![CDATA[Contains task and custom group 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="GROUP_RESOURCE_ID">
                <description>It is referred from CustomGroup</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="TaskToCustomGroupRel_PK">
            <primary-key-column>TASK_ID</primary-key-column>
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="TaskToCustomGroupRel_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="TaskToCustomGroupRel_FK2" 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="InstallPatchOption">
        <description>
            <![CDATA[
			Contains details of installation time and option selected for patch.
		]]>
        </description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Member resource id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALLATION_TIME">
                <description>Time after which installation should takeplace </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_OPTION">
                <description>Type of installation  0 during startup,1 after startup,2 both </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SCAN_PATCH">
                <description>Scan system before installing patch </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="InstallPatchOption_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="InstallPatchOption_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-keys>
    </table>
    <table name="CollectionSettings">
        <description>
            <![CDATA[
			Contains details to show the deployment progress details.
			]]>
        </description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Id for the collection weather to show the download status of the patch.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_PROGRESS">
                <description>To Show progress 1,Not To Show Progress 0 </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SKIP_COLLECTION">
                <description>1 - Allow user to skip deployment,0 - Dont allow user to skip</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SKIP_TILL_TIME">
                <description>Time till which user can skip the deployment. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollectionSettings_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollectionSettings_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-keys>
    </table>
    <table name="RemoteShutdownTaskDetails">
        <description>
            <![CDATA[
			This table contains the relation between taskdetails and resources scheduled in wakeOnLan.
			]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Task id for Remote Shutdown Task</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OPERATION">
                <description>Stores what operation is to be performed.  1 - Log Off, 2 - Shut Down, 3 - Restart, 4 - Hibernate, 5 - Lock</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHUTDOWN_MODE">
                <description>Stores what type of operation is to be performed.  1 - Normal, 2 - Forced</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHUTDOWN_TIMEOUT">
                <description>Stores the time out in sec</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>30</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHUTDOWN_MESSAGE">
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			 <column name="SHUTDOWN_MESSAGE_TITLE">
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
				<default-value>NA</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REFLECT_GROUP_CHANGES">
                <description>It provides whether to change the task targets when custom group is changed or not.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SKIP_ENABLED">
                <description>It provides whether to skip reboot/shut down when user logged in</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <unique>false</unique>
            </column>
			<column name="SKIP_OR_POSTPONE">
                <description>It provides whether to disable skip option in postpone shutdown window</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="POSTPONE_COUNT">
                <description>It denotes how many times a shutdown window can be postponed</description>
                <data-type>INTEGER</data-type>
				<max-size>11</max-size>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
             <column name="POSTPONE_ENABLED">
                <description>It provides whether to Postpone reboot/shutdown when user logged in</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <unique>false</unique>
            </column>            
             <column name="TASK_OS_PLATFORM">
                <description>Task OS platform of Shutdown task 0 - Default, 1 - Windows, 2 - Mac, 3 - Linux</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RemoteShutdownTaskDetails_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RemoteShutdownTaskDetails_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="RmtShtdwnTaskToResourceRel">
        <description>
            <![CDATA[
			This table contains the relation between taskdetails and resources scheduled in wakeOnLan.
			]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Task id for Remote Shutdown Task</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_ID">
                <description>Id for resources</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_OPERATION">
                <description>column to store the last initiated operation.  0 - Not Available  1 - Log off, 2 - shutdown, 3 - Restart, 4 - Hibernate, 5 - Stand by, 6 - Lock Computers</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>column to store the status of the resource.  0 - Not Available  1 - In Progress, 2 - Success, 3 - Failed</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS_UPDATE_TIME">
                <description>Time of status update.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION_INITIATED_ON">
                <description>Last operation time.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOM_GROUP_ID">
                <description>Custom group ID.  This is not FK with custom group table.  The delete custom group has a special handling, which is handled via listener.</description>
                <data-type>BIGINT</data-type>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RmtShtdwnTaskToResourceRel_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RmtShtdwnTaskToResourceRel_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="RmtShtdwnTaskToResourceRel_FK2" reference-table-name="RemoteShutdownTaskDetails" 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="ResourceShutdownStatus">
        <description>
            <![CDATA[
			This table stores the shutdown status for each resources managed
			]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Id for resources</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_OPERATION">
                <description>column to store the last initiated operation.  0 - Not Available  1 - Log off, 2 - shutdown, 3 - Restart, 4 - Hibernate, 5 - Stand by, 6 - Lock Computers</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>column to store the status of the resource.  0 - Not Available  1 - In Progress, 2 - Success, 3 - Failed</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS_UPDATE_TIME">
                <description>Time of status update.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_ACTION_INITIATED_ON">
                <description>Last operation time.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <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="ResourceShutdownStatus_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceShutdownStatus_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-keys>
    </table>
    <table name="CmptsAddedForShutdownTask">
        <description>
            <![CDATA[
			This table stores the shutdown status for each resources managed
			]]>
        </description>
        <columns>
            <column name="COMPUTER_ID">
                <description>Unique id generated for each computers added. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>CmptsAddedForShutdownTask.COMPUTER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>Id for resources</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_NAME">
                <description>selected computer name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NAME">
                <description>selected computer name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>column to store the status of the resource.  0 - Not Available  1 - In Progress, 2 - Success, 3 - Failed</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_USER_ID">
                <description>User Id who performs the select computers. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOM_GROUP_ID">
                <description>Custom group ID</description>
                <data-type>BIGINT</data-type>
                <nullable>true</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="CmptsAddedForShutdownTask_PK">
            <primary-key-column>COMPUTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CmptsAddedForShutdownTask_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="BranchOfficeDetails">
        <description>
            <![CDATA[
            This table contains details of branch office details.
            ]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>BranchOfficeDetails.BRANCH_OFFICE_ID</generator-name>
                </uniquevalue-generation>

            </column>
            <column name="BRANCH_OFFICE_NAME">
                <description>Holds the name of the branch office.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <!-- Agent Localtion column will be removed after major release. Because we have move to seperate Table for BranchAgentDetails  -->
            <column name="AGENT_LOCATION">
                <description>Agent location in server.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="AGENT_ARC_LOC">
                <description>Agent location in server.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <!-- Agent Version column will be removed after major release. Because we have move to seperate Table for BranchAgentDetails  -->
            <column name="AGENT_VERSION">
                <description>Version of this agent.</description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="HAS_MASTERAGENT">
                <description>It provides whether the master agent is required.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            <column name="BRANCH_OFFICE_DESC">
                <description>Holds the Description of the branch office.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</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="ENABLE_DS_ROUTE">
                <description>It provides whether distribution server is enabled</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="BranchOfficeDetails_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchOfficeDetails_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>
        <unique-keys>
            <unique-key name="BranchOfficeDetails_UK">
                <unique-key-column>BRANCH_OFFICE_NAME</unique-key-column>
                <unique-key-column>CUSTOMER_ID</unique-key-column>
            </unique-key>
        </unique-keys>
    </table>
    <table name="BranchOfficeStatusForOSD">
        <description>
            <![CDATA[
            This table contains whether Branch Office is enable for OSDeployer.
            ]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OSD_ENABLED_STATUS">
                <description>Whether Branch Office is enabled for OSDeployer. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="BranchOfficeStatusForOSD_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchOfficeStatusForOSD_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DisServerDetails">
        <description>
            <![CDATA[
            This table contains details of Distribution Server details.
            ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Resource id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="DS_IPADDRESS">
                <description>Agent location in server.</description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DS_DNS_NAME">
                <description>secondary DNS name of server.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DS_LOCATION">
                <description>Agent location in server.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DS_VERSION">
                <description>Version of this agent.</description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
			<column name="DS_FILESERVER_VERSION">
                <description>Version of this apache.</description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DS_PORT">
                <description>This will store the port of the Master Agent</description>
                <data-type>CHAR</data-type>
                <max-size>6</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DS_HTTPS_PORT">
                <description>This will store the https port of the Master Agent</description>
                <data-type>CHAR</data-type>
                <max-size>6</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DS_STATUS">
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DS_SYNC_STATUS">
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="UPDATED_TIME">
                <description>Master agent status last updated time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="LAST_CONTACT_TIME">
                <description>Master agent last contact time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="LAST_SUCCESS_SYNC">
                <description>Master agent last success sync time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="ERROR_CODE">
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="REMARKS">
                <description>This will store the causes for the error</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
            </column>
            <column name="AGENT_STATUS">
                <description>Agent Modify status 1 -> Success 2 -> Failure 3 -> Inprogress  </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DS_AUTO_INSTALL">
                <description>It provides whether the DS has to be installed automatically.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DisServerDetails_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DisServerDetails_FK1" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DisServerDetails_FK2" 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="DisServerResource">
        <description>
            <![CDATA[
            This table contains details of Distribution Server mapping to Resource. This shall be deprecated in future.
            ]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </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>
        </columns>
        <primary-key name="DisServerResource_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DisServerResource_FK1" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DisServerResource_FK2" 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="DSToCollnReplicationRel">
        <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="DS_RESOURCE_ID">
                <description>Unique identifier for DS resource ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
			<column name="REPLICATED_TIME">
                <description>Replicated time for collection</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
				<unique>false</unique>
            </column>
            <column name="STATUS">
                <description>Whether collection is replication window enabled or not</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DSToCollnReplicationRel_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
			<primary-key-column>DS_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSToCollnReplicationRel_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="DSToCollnReplicationRel_FK2" reference-table-name="DisServerDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DS_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="BranchAgentDetails">
        <description>
            <![CDATA[
            This table contains details of Branch Agent details.
            ]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_LOCATION">
                <description>Agent location in server.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="AGENT_VERSION">
                <description>Version of this agent.</description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="AGENT_STATUS">
                <description>Agent Modify status 1 -> Success 2 -> Failure 3 -> Inprogress  </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="AGENT_REGENERATION_TIME">
                <description>Agent Regeneration time  </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="AGENT_AUTO_INSTALL">
                <description>It provides whether the Agent has to be installed automatically.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="BranchAgentDetails_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchAgentDetails_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="AgentMstConfig">
        <description>
            <![CDATA[
            This table contains details of Agent MST Config.
            ]]>
        </description>
        <columns>
            <column name="AGENTMSTCONFIG_ID">
                <description>Unique identifier</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<uniquevalue-generation>
					<generator-name>AgentMstConfig.AGENTMSTCONFIG_ID</generator-name>
				</uniquevalue-generation>
            </column>
            <column name="CONFIG_ID">
                <description>Holds unique Id generated for each Agent mst config </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="REGENERATION_TIME">
                <description>Regeneration Time for Agent.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>true</nullable>
            </column>
            <column name="NO_OF_THREADS">
                <description>Number of threads scalability concern</description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
            </column> 
            <column name="THREAD_INTERVAL">
                <description>Thread Interval between two threads in MilliSeconds</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="THREAD_DELAY">
                <description>Thread Delay start up for Regeneration in MilliSeconds</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="MST_CREATION_INPROGRESS">
                <description>MST creation inprogress value set to false by default</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>false</default-value>
                <unique>false</unique>
            </column>
            <column name="MST_CREATION_SUCCESS">
                <description>MST creation Success value set to true by default</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>true</default-value>
                <unique>false</unique>
            </column>
           <column name="BATCH_MST_COUNT">
                <description>Batch of runnables that can be created</description>
                <data-type>INTEGER</data-type>
                <default-value>50</default-value>
                <unique>false</unique>
           </column>
           <column name="BATCH_MST_THREAD_SLEEP">
               <description>Thread sleep interval for a batch of runnable</description>
                <data-type>BIGINT</data-type>
                <default-value>500</default-value>
                <unique>false</unique>               
           </column>             
        </columns>
        <primary-key name="AgentMstConfig_PK">
            <primary-key-column>AGENTMSTCONFIG_ID</primary-key-column>
        </primary-key>       
    </table>
     

      <table name="BranchOfficeDefault">
 	         <description>
 	             <![CDATA[
 	             This table contains details of Default Branch office ID for mutliple customers
 	             ]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds fk relation with branchoffice management</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Holds fk relation with customer info table and it will unique</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="STATUS">
                <description> status 0 -> Disable 1 -> Enable </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="BranchOfficeDefault_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchOfficeDefault_FK1" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="BranchOfficeDefault_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="DSErrors">
        <description>
            <![CDATA[
            This table contains details of Distribution Server error details.
            ]]>
        </description>
        <columns>
            <column name="ERROR_ID">
                <description>Holds unique Id generated for each error event. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DSErrors.ERROR_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ERROR_CODE">
                <description>This will store the error numbers</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="GENERATED_TIME">
                <description>Error event  generated time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="REMARKS">
                <description>This will store the causes for the error</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
            </column>
        </columns>
        <primary-key name="DSErrors_PK">
            <primary-key-column>ERROR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSErrors_FK1" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DSErrors_FK2" 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="DSErrorToSWPackage">
        <description>
            <![CDATA[
            This table contains details of Distribution Server error details.
            ]]>
        </description>
        <columns>
            <column name="ERROR_ID">
                <description>Holds unique Id generated for each error event. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="PACKAGE_ID">
                <description>Holds  Id generated for each SWPacge</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DSErrorToSWPackage_PK">
            <primary-key-column>ERROR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSErrorToSWPackage_FK1" reference-table-name="DSErrors" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ERROR_ID</fk-local-column>
                        <fk-reference-column>ERROR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DSErrorToMSServicePack">
        <description>
            <![CDATA[
            This table contains details of Distribution Server error details.
            ]]>
        </description>
        <columns>
            <column name="ERROR_ID">
                <description>Holds unique Id generated for each error event. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SERVICEPACKID">
                <description>Unique Id for the servicepack.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DSErrorToMSServicePack_PK">
            <primary-key-column>ERROR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSErrorToMSServicePack_FK1" reference-table-name="DSErrors" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ERROR_ID</fk-local-column>
                        <fk-reference-column>ERROR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DSErrorToPatch">
        <description>
            <![CDATA[
            This table contains details of Distribution Server error details.
            ]]>
        </description>
        <columns>
            <column name="ERROR_ID">
                <description>Holds unique Id generated for each error event. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="PATCHID">
                <description>Unique Id for the servicepack.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DSErrorToPatch_PK">
            <primary-key-column>ERROR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSErrorToPatch_FK1" reference-table-name="DSErrors" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ERROR_ID</fk-local-column>
                        <fk-reference-column>ERROR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DSErrorToCollection">
        <description>
            <![CDATA[
            This table contains details of Distribution Server error details.
            ]]>
        </description>
        <columns>
            <column name="ERROR_ID">
                <description>Holds unique Id generated for each error event. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="COLLECTION_ID">
                <description>Unique Id for the servicepack.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DSErrorToCollection_PK">
            <primary-key-column>ERROR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSErrorToCollection_FK1" reference-table-name="DSErrors" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ERROR_ID</fk-local-column>
                        <fk-reference-column>ERROR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="BranchOffProxyDetails">
        <description>
            <![CDATA[
			This table contains details of branch office details.
			]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PROXY">
                <description>It provides whether the proxy server is required to connect the dc server.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROXY_SERVER_NAME">
                <description>Holds the proxy server name.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <unique>false</unique>
            </column>
            <column name="PROXY_PORT_NUMBER">
                <description>Proxy server communication port number </description>
                <data-type>INTEGER</data-type>
                <default-value>80</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROXY_USERNAME">
                <description>Holds the proxy user name.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <unique>false</unique>
            </column>
            <column name="PROXY_PASSWORD">
                <description>Holds the proxy password.</description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>250</max-size>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="BranchOffProxyDetails_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchOffProxyDetails_BID_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="AgentServerCommunicationDtl">
        <description>
            <![CDATA[
			This table contains details of branch office details.
			]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POLLING_INT">
                <description>delay in sucsseive communication with server.</description>
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <unique>false</unique>
            </column>
            <column name="IS_HTTPS">
                <description>enable disabe secured connection.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_TRANSFER_RATE">
                <description>Bandwidth going to use patch/software download from server. Unit KBps(Kilo Bytes per sec)</description>
                <data-type>BIGINT</data-type>
                <default-value>1024</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="AgentServerComDtl_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AgentServerComDtl_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="BranchMemberResourceRel">
        <description>
            <![CDATA[
			This table contains the branch / resource members relationship.
			]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Branch office 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>
        </columns>
        <primary-key name="BranchMemberResourceRel_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchMemberResourceRel_BID_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="BranchMemberResourceRel_RID_FK" reference-table-name="ManagedComputer" 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="BranchToDomainRel">
        <description>
            <![CDATA[
			This table contains the branch and domain relationship.
			]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Branch office id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_ID">
                <description>Domain Resource id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BRANCH_LABEL">
                <description>Branch label in the format branchname-domainname. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="BranchToDomainRel_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchToDomainRel_BID_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="BranchToDomainRel_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="BranchToPlatformRel">
        <description>
            <![CDATA[
			This table contains the branch and platform relationship.
			]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Branch office id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_PLATFORM">
                <description>Os platform id. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="BranchToPlatformRel_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
			<primary-key-column>OS_PLATFORM</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchToPlatformRel_BID_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
	
	<table name="BranchToOsRel">
        <description>
            <![CDATA[
			This table contains the branch and os relationship.
			]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Branch office id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRODUCT_ID">
                <description>Os product id. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="BranchToOsRel_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
			<primary-key-column>PRODUCT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchToOsRel_BID_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <!--Replication Policy Tables Start-->
    <table name="ReplicationPolicyDetails">
        <description>
            <![CDATA[
        This table will contain details of Replication Policies.
        ]]>
        </description>
        <columns>
            <column name="POLICY_ID">
                <description>Holds unique Id of the Replication Policy.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ReplicationPolicyDetails.POLICY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POLICY_NAME">
                <description>Name of the Replication Policy </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description of the Replication Policy </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_TRANSFER_RATE">
                <description>Bandwidth going to use patch/software download from server. Unit KBps(Kilo Bytes per sec)</description>
                <data-type>BIGINT</data-type>
                <default-value>1024</default-value>
                <nullable>false</nullable>
            </column>
            <column name="POLLING_INTERVAL">
                <description>Delay in sucsseive communication with server.</description>
                <data-type>INTEGER</data-type>
                <unique>false</unique>
            </column>
            <column name="REP_DAYS_OF_WEEK">
                <description>Days at which Replication Process should occur</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REP_WINDOW_START_TIME">
                <description>Time at which Replication Process should Start</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REP_WINDOW_END_TIME">
                <description>Time at which Replication Process should Start</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATED_TIME">
                <description>Time at which Replication Policy was created</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME">
                <description>Time at which Replication Policy was modified</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_ID">
                <description>ID of the User who created/Modified Replication Policy</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>ID of the Customer for whom the Replication Policy is created</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_TRANSFER_RATE_LAN">
                <description>Bandwidth going to use patch/software download from DS Unit KBps(Kilo Bytes per sec)</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ReplicationPolicyDetails_PK">
            <primary-key-column>POLICY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ReplicationPolicyDetails_FK" 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="ReplicationPolicyDetails_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="ReplicationPolicyDetails_UK">
                <unique-key-column>POLICY_NAME</unique-key-column>
                <unique-key-column>CUSTOMER_ID</unique-key-column>
            </unique-key>
        </unique-keys>
    </table>
    <table name="PolicyToBranchOfficeRel">
        <description>
            <![CDATA[
        This table will contain relational details between Replication Policy and Branch Office
        ]]>
        </description>
        <columns>
            <column name="POLICY_ID">
                <description>Holds Id of the Replication Policy.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds the ID of Branch Office ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ASSOCIATED_TIME">
                <description>Time at which Replication Policy was Associated to BranchOffice</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ASSOCIATED_BY_USER_ID">
                <description>ID of the User who created/Modified Replication Policy</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PolicyToBranchOfficeRel_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PolicyToBranchOfficeRel_FK" reference-table-name="ReplicationPolicyDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>POLICY_ID</fk-local-column>
                        <fk-reference-column>POLICY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="PolicyToBranchOfficeRel_FK2" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ASSOCIATED_BY_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="PolicyToBranchOfficeRel_FK3" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <!--Replication Policy Tables End-->
    <table name="ResourceOperations">
        <description>
            <![CDATA[
		This table will contain the operations performed on resources.
		]]>
        </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="COMPUTER_NAME">
                <description>Name of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NAME">
                <description>Name of the domain of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PATCH_SCAN">
                <description>Whether patch scanning is initiated for this resource</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INVENTORY_SCAN">
                <description>Whether inventory scanning is initiated for this resource</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMOTE_DESKTOP">
                <description>Whether remote desktop sharing is initiated for this resource</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_LOG_UPLOAD">
                <description>Whether agent log upload is initiated for this resource</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MOVE_TO_OTHER_OFFICE">
                <description>AGENT move across remote offices action</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ResourceOperations_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceOperations_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="AgentSettings">
        <description>This table contains Agent Trayicon settings. </description>
        <columns>
            <column name="SETTINGS_ID">
                <description>Holds unique Id generated for each Agent settings. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AgentSettings.SETTINGS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SHOW_AGENT_TRAYICON">
                <description>Boolean value to indicate whether agent tray icon to be shown or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_WELCOME_MESSAGE">
                <description>Boolean value to indicate whether welcome message should be shown or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_CONFIG_MENU">
                <description>Boolean value to indicate whether welcome message should be shown or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="LAUNCH_SDP">
                <description>Boolean value to indicate whether service desk plus should be shown or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
 
            <column name="SHOW_PATCH_MENU">
                <description>Boolean value to indicate whether welcome message should be shown or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_INV_MENU">
                <description>Boolean value to indicate whether welcome message should be shown or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_SEND_REQ_MENU">
                <description>Boolean value to indicate whether welcome message should be shown or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_USER_LOGON_MENU">
                <description>Boolean value to indicate whether welcome message should be shown or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_BALLOON">
                <description>Boolean value to indicate whether to show the balloon or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_PROHIBITED_SW_MENU">
                <description>Boolean value to indicate whether to show the prohibited software menu or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
             <column name="SHOW_SSP_MENU">
                <description>Boolean value to indicate whether to show the self service portal menu or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>  
            <column name="SHOW_SERVER_DETAILS">
                <description>Boolean value to indicate whether to show the server details or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_TEMP_ACCESS">
                <description>Boolean value to indicate whether temporary access menu should be enabled or not.
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPLY_TA_BALLOON">
                <description>Boolean value to indicate whether to show temporary access processed balloon.
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentSettings_PK">
            <primary-key-column>SETTINGS_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="AgentSettingsToCustRel">
        <description><![CDATA[mapping  between Customer and SW Packages defined ]]> </description>
        <columns>
            <column name="SETTINGS_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>
        </columns>
        <primary-key name="AgentSettingsToCustRel_PK">
            <primary-key-column>SETTINGS_ID</primary-key-column>
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AgentSettingsToCustRel_FK1" reference-table-name="AgentSettings" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SETTINGS_ID</fk-local-column>
                        <fk-reference-column>SETTINGS_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="AgentSettingsToCustRel_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="AgentPostInstSettings">
        <description>This table contains Agent post installation settings. </description>
        <columns>
            <column name="SETTINGS_ID">
                <description>Holds unique Id generated for each Agent post installation settings. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AgentPostInstSettings.SETTINGS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PATCH_SCAN">
                <description>Boolean value to indicate whether to start patch scanning or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INVENTORY_SCAN">
                <description>Boolean value to indicate whether to start inventory scanning or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_HTTPS">
                <description>Boolean value to indicate whether to enable secure communication or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_REMOTE_ADMIN">
                <description>Boolean value to indicate whether to enable remote admin or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_WOL_SETTINGS">
                <description>Boolean value to indicate whether to enable Wake On LAN settings in agent machine.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTO_SAVE_IP_CHANGE">
                <description>Boolean value to indicate whether to detect IP Address change and save automatically. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_CHECKSUM">
                <description>Boolean value to indicate whether to enable CHECKSUM validation for DS and agent </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Agent settings id for which the help desk settings are changed</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentPostInstSettings_PK">
            <primary-key-column>SETTINGS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AgentPostInstSettings_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>
    
      <!-- Agent Security Settings -->
    <table name="AgentProtectionSettings">
        <description>This table contains agent security settings. </description>
        <columns>
            <column name="customer_id">
                <description> Agent settings id for which the uninstall settings will be enabled </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
		            <column name="agent_stop_restrict">
                <description>Integer value to indicate whether to enable service stop from services console. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="agent_uninstall_restrict">
                <description>Integer value to indicate whether  pasword protected uninstallation is enabled</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
    </table>

	 <!-- Agent Image Details -->
	 
	 <table name="AgentImageDetails">
		<description>
		<![CDATA[
		This table contains the details about imaged computers
		]]>
		</description>
		<columns>
			<column name="AGENT_IMAGE_ID">
                 <description>Holds unique Id generated for each Agent Image Status. </description>
                 <data-type>BIGINT</data-type>
                 <nullable>false</nullable>
                 <unique>false</unique>
                 <uniquevalue-generation>
                    <generator-name>AgentImageDetails.AGENT_IMAGE_ID</generator-name>
                 </uniquevalue-generation>
             </column>
			<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="NAME">
                    <data-type>CHAR</data-type>
                    <max-size>250</max-size>
                    <nullable>false</nullable>
                    <unique>false</unique>
             </column>
			<column name="UUID">
				<description>Unique ID of the computer. Applicable for both AD and Workgroup computers </description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="SERVICE_TAG">
				<description>Service tag of the computer </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MAC_ADDRESS">
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="HDD_SNO">
				<description>Hard disk serial number </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RAM_SNO">
				<description>RAM serial number </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="MOTHER_BOARD_SNO">
				<description>Mother board serial number </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="PROCESSOR_ID">
				<description>Processor ID of the computer </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="VIDEO_CTRL">
				<description>Video control details </description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="KEYBOARD_PNPID">
				<description>Keyboard  Plug and Play ID</description>
				<data-type>CHAR</data-type>
				<max-size>250</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_VIRTUAL">
                 <description>Whether the machine is virtual or not. </description>
                 <data-type>BOOLEAN</data-type>
                 <default-value>false</default-value>
                 <nullable>false</nullable>
                 <unique>false</unique>
             </column>
		</columns>
		<primary-key name="AgentImageDetails_PK">
			<primary-key-column>AGENT_IMAGE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="AgentImageDetails_FK" reference-table-name="ManagedComputer" 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>
	 
	 <!-- Agent Image Details -->

    <!-- Agent Common  Settings -->
    <table name="AgentCommonSettings">
        <description>This table contains Configuration settings. </description>
        <columns>
            <column name="SETTINGS_ID">
                <description>Holds unique Id generated for each Common settings. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AgentCommonSettings.SETTINGS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="IS_MULTI_LANG_ENABLED">
                <description>Boolean value to indicate whether MULTI LANGUAGE PACK IS ENABLED </description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentCommonSettings_PK">
            <primary-key-column>SETTINGS_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="ConfigurationSettings">
        <description>This table contains Configuration settings. </description>
        <columns>
            <column name="SETTINGS_ID">
                <description>Holds unique Id generated for each Configuration settings. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ConfigurationSettings.SETTINGS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="ENABLE_STARTUP_DETECTION">
                <description>Boolean value to indicate whether to apply Configurations at every System Startup or User Logon or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_REFRESH_DETECTION">
                <description>Boolean value to indicate whether to apply Configurations at some interval or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DETECTION_INTERVAL">
                <description>Integer value to indicate the interval to apply configuration. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="PROCESS_OLD_CONFIG">
                <description>Boolean value to indicate whether to process configs deployed before agent installation. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
			</column>
			  <column name="MAX_IDLE_DAYS">
                 <description>Collection, that is not modified configured days and no agent status post for configured days is moved to trash</description>
                 <data-type>INTEGER</data-type>
		         <default-value>-1</default-value>
		         <nullable>false</nullable>
		         <unique>false</unique>
             </column>
            <column name="TRASH_CLEANUP_DAYS">
                <description>Collection, that is in trash for configured days will be deleted</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Customer id for which the configuration settings are changed</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigurationSettings_PK">
            <primary-key-column>SETTINGS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigurationSettings_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="HelpDeskSettings">
        <description>This table contains Agent Trayicon settings. </description>
        <columns>
            <column name="HELP_DESK_SETTINGS_ID">
                <description>Holds unique Id generated for each Agent settings. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>HelpDeskSettings.HELP_DESK_SETTINGS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SUBJECT_PREFIX">
                <description>Boolean value to indicate whether agent tray icon to be shown or not. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EMAIL_SUFFIX">
                <description>Boolean value to indicate whether welcome message should be shown or not. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IMAGE_TYPE">
                <description>This value to indicate that imge type to upload the sceenshot from agent tray icon </description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>png</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_FROM_ADDR">
                <description>This value to indicate if sender address can be edited from agent tray icon. true - Canchange. false - Cannot change</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
            </column>
			<column name="VIDEO_TYPE">
                <description>This value to indicate that video type to upload from agent tray icon 1.Save and send video link 2.Attach video</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ATTACH_LIMIT">
                <description>Attachment Limit of video files</description>
               <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>10</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="MAX_LIMIT">
                <description>Max size limit of folder</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SETTINGS_ID">
                <description>Agent settings id for which the help desk settings are changed</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			 <column name="DISCLAIMER_INFO">
                <description>Disclaimer message displayed in helpdesk window</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>desktopcentral.admin.helpdeskserver.disclaimerinfo</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_DISCLAIMER">
                <description>whether disclaimer message needs to displayed or not</description>
                <data-type>boolean</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
           </column>
        </columns>
        <primary-key name="HelpDeskSettings_PK">
            <primary-key-column>HELP_DESK_SETTINGS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="HelpDeskSettings_FK" reference-table-name="AgentSettings" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SETTINGS_ID</fk-local-column>
                        <fk-reference-column>SETTINGS_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="HelpDeskMailToCustRel">
        <description>This table contains HelpDesk Mail subject and content. </description>
        <columns>
            <column name="HELPDESK_MAILPROPS_ID">
                <description>Holds unique Id generated for each Mail Properties. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>HelpDeskMailToCustRel.HELPDESK_MAILPROPS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SUBJECT">
                <description>subject of the mail that should shown in the agent. </description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTENT">
                <description>>Content of the mail that should shown in the agent. </description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ORDER_OF_DISPLAY">
                <description>Order at which this subject category to be displayed in the ui. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SETTINGS_ID">
                <description>Agent settings id for which the help desk settings are changed</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="HelpDeskMailToCustRel_PK">
            <primary-key-column>HELPDESK_MAILPROPS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="HelpDeskMailToCustRel_FK" reference-table-name="AgentSettings" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SETTINGS_ID</fk-local-column>
                        <fk-reference-column>SETTINGS_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="HelpDeskMailProps">
        <description>This table contains HelpDesk Mail subject and content. </description>
        <columns>
            <column name="HELPDESK_MAILPROPS_ID">
                <description>Holds unique Id generated for each Mail Properties. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>HelpDeskMailProps.HELPDESK_MAILPROPS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SUBJECT">
                <description>subject of the mail that should shown in the agent. </description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTENT">
                <description>>Content of the mail that should shown in the agent. </description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ORDER_OF_DISPLAY">
                <description>Order at which this subject category to be displayed in the ui. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="HelpDeskMailProps_PK">
            <primary-key-column>HELPDESK_MAILPROPS_ID</primary-key-column>
        </primary-key>
    </table>
	        <table name="HelpDeskVideoDetails">
		<description>
			<![CDATA[
			This table contains details about the viewers of history of remote connetions.
			]]>
		</description>
		<columns>
			<column name="HELPDESK_VIDEOPROPS_ID">
                <description>Holds unique Id generated for each video details. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>HelpDeskVideoDetails.HELPDESK_VIDEOPROPS_ID</generator-name>
                </uniquevalue-generation>
            </column>
			<column name="HELPDESKVIDEO_UNIQUEID">
				<description>Unique Id for each helpdesk file.</description>
				<data-type>CHAR</data-type>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
           <column name="VIDEO_PATH">
				<description>Path of the video file to be copied.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
			</column>
             <column name="CREATED_ON">
				<description>VIDEO file created time </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
             </column>
			 <column name="VIDEO_SIZE">
				<description>Contains the size of the recorded video file. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
             </column>
              <column name="VIDEO_TYPE">
                <description>This value to indicate that video type to upload from agent tray icon 1.Save and send video link 2.Attach video</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>1</default-value>
                <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="HelpDeskVideoDetails_PK">
			<primary-key-column>HELPDESK_VIDEOPROPS_ID</primary-key-column>
			<primary-key-column>HELPDESKVIDEO_UNIQUEID</primary-key-column>
	    </primary-key>
         <foreign-keys>
            <foreign-key name="HelpDeskVideoDetails_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="PatchGlobalParams">
        <description>
            <![CDATA[
		This table will contain the parameters for the operations perfomed in the Patch Mgmt module.
		]]>
        </description>
        <columns>
            <column name="OPERATION_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>PatchGlobalParams.OPERATION_PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="OPERATION_ID">
                <description>This will capture the type of the operation like patch scanning, inventory scanning and remote desktop sharing. The value would be either 1 (for patch scanning), or 2 (for inventory scanning) or 3(for remote desktop sharing). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_ID">
                <description>Id of the subnet.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PatchGlobalParams_PK">
            <primary-key-column>OPERATION_PARAM_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCNativeSQL">
        <description>
            <![CDATA[
			This table contains the native SQL queries used by Desktop Central.
			]]>
        </description>
        <columns>
            <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>false</unique>
            </column>
            <column name="DB_ID">
                <description>ID which denotes the DB </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SQL_COMMAND">
                <description>SQL Command to be executed. </description>
                <data-type>CHAR</data-type>
                <max-size>2000</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>
        </columns>
        <primary-key name="DCNativeSQL_PK">
            <primary-key-column>SQL_ID</primary-key-column>
            <primary-key-column>DB_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCGSQLQueryRel">
        <description>
            <![CDATA[
			This table contains the native SQL queries used by Desktop Central.
			]]>
        </description>
        <columns>
            <column name="GROUP_RESOURCE_ID">
                 <description>Custom Group Id</description>
                 <data-type>BIGINT</data-type>
                 <nullable>false</nullable>
            </column>
            <column name="QUERYID">
                <description>SQL Command to be executed. </description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
            <column name="IS_VISIBLE">
                <description>Dynamic CG Visible</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCGSQLQueryRel_PK">
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
                <foreign-key name="DCGSQLQueryRel_FK1" 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-key name="DCGSQLQueryRel_FK2" reference-table-name="ACSQLString" 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="MSOfficeInstallType">
        <description>
            <![CDATA[
			This table captures the details of relational data of ConfigData and Patch Table.
			]]>
        </description>
        <columns>
            <column name="INSTALL_PATCH_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_TYPE">
                <description>column to store the type of the patch.  1 - Full-file, 2 - Client-file, 3 - AIP </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="MSOfficeInstallType_PK">
            <primary-key-column>INSTALL_PATCH_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="InstallPatchConfig_FK" reference-table-name="InstallPatchConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>INSTALL_PATCH_ID</fk-local-column>
                        <fk-reference-column>INSTALL_PATCH_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ComputerUpTimeHistory">
        <description>
            <![CDATA[
			Maintains only the startup/shutdown time (hibernate/resume not considered)
		]]>
        </description>
        <columns>
            <column name="UP_HISTORY_ID">
                <description>Unique id for each boot-shutdown duration</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ComputerUpTimeHistory.UP_HISTORY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>related to the computer resource id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATE">
                <description>date in long format</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BOOTUP_TIME">
                <description>system bootup time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHUTDOWN_TIME">
                <description>system shutdown time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_CONTACT_TIME">
                <description>last contact time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EVENT_TYPE">
                <description>is shutdown or hibernate</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EVENT_STATUS">
                <description>is obtained after network is retained</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PREVIOUS_EVENT_ID">
                <description>previous event time entry to match with</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ComputerUpTimeHistory_PK">
            <primary-key-column>UP_HISTORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ComputerUpTimeHistory_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="ComputerPowerEvtHistory">
        <description>
            <![CDATA[
			Maintains the bootup/shutdown/hibernate/resume history
		]]>
        </description>
        <columns>
            <column name="EVT_HISTORY_ID">
                <description>Unique id for each boot-shutdown duration</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ComputerPowerEvtHistory.EVT_HISTORY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>related to the computer resource id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATE">
                <description>date in long format</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BOOTUP_TIME">
                <description>system bootup time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHUTDOWN_TIME">
                <description>system shutdown time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_CONTACT_TIME">
                <description>last contact time</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EVENT_TYPE">
                <description>is shutdown or hibernate</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EVENT_STATUS">
                <description>is obtained after network is retained</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PREVIOUS_EVENT_ID">
                <description>previous event time entry to match with</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_WINDOWS_EVENT">
                <description>is 90 min refresh policy or startup/shutdown/reboot/resume event</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ComputerPowerEvtHistory_PK">
            <primary-key-column>EVT_HISTORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ComputerPowerEvtHistory_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="PowerSettings">
        <description>
            <![CDATA[
			power mgmt settings stored here
		]]>
        </description>
        <columns>
            <column name="POWER_SETTING_ID">
                <description>setting id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>PowerSettings.POWER_SETTING_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONSIDER_HIBERNATE">
                <description>1 to consider hibernate or standby, 0 to neglect hibernate or standby</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HISTORY_MAINTAIN_DAYS">
                <description>no of days for which history will be maintained</description>
                <data-type>INTEGER</data-type>
                <default-value>30</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PowerSettings_PK">
            <primary-key-column>POWER_SETTING_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SystemContactDetails">
        <description>
            <![CDATA[
			contains the details of system contacted
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>related to the computer resource id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_CONTACT_TIME">
                <description>time when server was contacted</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SYSTEM_START_TIME">
                <description>last system bootup/resume time</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SystemContactDetails_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SystemContactDetails_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="ScheduledScanConfig">
        <description>
            <![CDATA[
		This table captures the details of relational data of ConfigData and Patch Table.
		]]>
        </description>
        <columns>
            <column name="SCHEDULED_SCAN_ID">
                <description>Unique Id for the environment variable config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ScheduledScanConfig.SCHEDULED_SCAN_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <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="SCHEDULED_SCAN_TYPE">
                <description>Type of the scheduled scan. Possible values are 1 - Patch Scan, 2 - Inventory Scan</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SCHEDULED_SCAN_MODE">
                <description>Mode of the scheduled scan. Possible values are 1 - Full Mode, 2 - AV Defintion Scan Mode for Patch Mgmt </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ScheduledScanConfig_PK">
            <primary-key-column>SCHEDULED_SCAN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ScheduledScanConfig_CD_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="DCRebootPolicy">
        <description>This table stores the Reboot policy for Patch deployment/undeployment</description>
        <columns>
            <column name="REBOOT_POLICY_ID">
                <description>Unique Id for the DCRebootPolicy. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCRebootPolicy.REBOOT_POLICY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="REBOOT">
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
                <allowed-values>
                    <value>0</value>
                    <value>1</value>
                    <value>2</value>
                    <value>3</value>
                    <value>4</value>
                </allowed-values>
            </column>
            <column name="EXCLUDE_SERVER">
                <description>1 - Allow user to skip reboot for servers,0 - Dont skip reboot for servers</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOTTIME">
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="MESSAGE">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_TITLE">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Desktop Central Reboot Control</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCRebootPolicy_PK">
            <primary-key-column>REBOOT_POLICY_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="FilterToTask">
        <description>
            <![CDATA[
			A Collection must be associated with a Filter to find the exact targets for which the configurations to be applied. This table captures the relation between the Collection and the Filter. Each Collection can be associated with one or more filters which inturn captures any kind of complex criteria.
			]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>Filter Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_ID">
                <description>Task ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FilterToTask_PK">
            <primary-key-column>FILTER_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="FilterToTask_FK1" reference-table-name="Filter" 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-key name="FilterToTask_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>
    <table name="DCRebootPolicyToTask">
        <description>
            <![CDATA[
			A Collection must be associated with a Filter to find the exact targets for which the configurations to be applied. This table captures the relation between the Collection and the Filter. Each Collection can be associated with one or more filters which inturn captures any kind of complex criteria.
			]]>
        </description>
        <columns>
            <column name="REBOOT_POLICY_ID">
                <description>Task ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_ID">
                <description>Task Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCRebootPolicyToTask_PK">
            <primary-key-column>REBOOT_POLICY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCRebootPolicyToTask_FK1" reference-table-name="DCRebootPolicy" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REBOOT_POLICY_ID</fk-local-column>
                        <fk-reference-column>REBOOT_POLICY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DCRebootPolicyToTask_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>
    <table name="DeploymentSettings">
        <description>This table stores the settings configured while scheduling the Patch Deployment.</description>
        <columns>
            <column name="DEPLOYMENT_SETTINGS_ID">
                <description>Unique Id for the DeploymentSettings. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DeploymentSettings.DEPLOYMENT_SETTINGS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="INSTALL_OPTION">
                <description>Type of installation  0 during startup,1 after startup,2 both </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOYMENT_PROGRESS">
                <description>To Show progress 1,Not To Show Progress 0 </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTINUE_DEPLOYMENT">
                <description>To continue deployment even if some patches fails to download 1 else 0 </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SKIP_COLLECTION">
                <description>1 - Allow user to skip deployment,0 - Dont allow user to skip</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SKIP_TILL_TIME">
                <description>Time till which user can skip the deployment. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DeploymentSettings_PK">
            <primary-key-column>DEPLOYMENT_SETTINGS_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DeploySettingsToTask">
        <description> Relation to the DeploymentSettings and Task. </description>
        <columns>
            <column name="DEPLOYMENT_SETTINGS_ID">
                <description>DeploymentSettings ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_ID">
                <description>Task Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DeploySettingsToTask_PK">
            <primary-key-column>DEPLOYMENT_SETTINGS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DeploySettingsToTask_FK1" reference-table-name="DeploymentSettings" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DEPLOYMENT_SETTINGS_ID</fk-local-column>
                        <fk-reference-column>DEPLOYMENT_SETTINGS_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DeploySettingsToTask_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>
    <table name="ChildTaskDetails">
        <description> Relation to the DeploymentSettings and Task. </description>
        <columns>
            <column name="PARENT_TASK_ID">
                <description>DeploymentSettings ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHILD_TASK_ID">
                <description>Task Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ChildTaskDetails_PK">
            <primary-key-column>PARENT_TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ChildTaskDetails_FK1" reference-table-name="TaskDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PARENT_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="ChildTaskDetails_FK2" reference-table-name="TaskDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CHILD_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="APDTasks">
        <description> This table will hold the collection IDs for tools. </description>
        <columns>
            <column name="TASK_ID">
                <description>Unique Id for each Collection. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PLATFORM_ID">
                <description>Whether the apd task  defined is for Windows or Mac</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="APDTasks_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="APDTasks_FK" 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="TaskExecutionDetails">
        <description>This table stores the task run time details</description>
        <columns>
            <column name="TASK_ID">
                <data-type>BIGINT</data-type>
                <max-size>30</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="SCHEDULE_DESC">
                <description>Status / result of the scheduled Task execution</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NEXT_RUN_TIME">
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_RUN_TIME">
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_RESULT"><!--Need To depricate as id column is added-->
                <description>Status / result of the scheduled Task execution</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_RESULT_ID">
                <description>status id corresponding to above last result column and mapping with congstatusdefn.</description><!-- added to support I18N -->
                <data-type>INTEGER</data-type>
                <default-value>99</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Remarks for task status</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="TaskExecutionDetails_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name ="TaskExecutionDetails_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="TaskExecutionDetails_FK2" reference-table-name="ConfigStatusDefn" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LAST_RESULT_ID</fk-local-column>
                        <fk-reference-column>STATUS_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="TaskToCollection">
        <description>
            <![CDATA[
		This table contains the taskdetails relation with Collectiondetails.
		]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Task id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COLLECTION_ID">
                <description>Collection id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="TaskToCollection_PK">
            <primary-key-column>TASK_ID</primary-key-column>
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="TaskToCollection_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="TaskToCollection_FK2" 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="TaskToCollHistory">
        <description>
            <![CDATA[
		This table contains the  history of taskdetails relation with Collectiondetails.
		]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Task id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COLLECTION_ID">
                <description>Collection id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="TaskToCollHistory_PK">
            <primary-key-column>TASK_ID</primary-key-column>
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="TaskToCollHistory_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="TaskToCollHistory_FK2" 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="TaskHistory">
        <description>
            <![CDATA[
			This table contains the  history details of automatic patch deployed scheduled task.
			]]>
        </description>
        <columns>
            <column name="TASK_HISTORY_ID">
                <description>Unique Id.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>TaskHistory.TASK_HISTORY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TASK_ID">
                <description>Task id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXECUTION_TIME">
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="TaskHistory_PK">
            <primary-key-column>TASK_HISTORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="TaskHistory_FK" 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="UpdatedTaskHistory">
        <description>
            <![CDATA[
			This table contains the collection details for automatic patch deployment task.
			]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Task id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_HISTORY_ID">
                <description>Unique Id.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UpdatedTaskHistory_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UpdatedTaskHistory_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="UpdatedTaskHistory_FK2" reference-table-name="TaskHistory" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TASK_HISTORY_ID</fk-local-column>
                        <fk-reference-column>TASK_HISTORY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CRViewDetails">
        <columns>
            <column name="USER_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="QUERYID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="VIEWID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

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

        </columns>

        <primary-key name="CRViewDetails_PK">
            <primary-key-column>USER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>

            <foreign-key name="CRViewDetails_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-key name="CRViewDetails_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="CRViewDetails_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-keys>

    </table>


    <table name="CRViewDetailsInfo">
        <columns>

            <column name="CRVIEWDETAILS_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>CRViewDetailsInfo.CRVIEWDETAILS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="USER_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="QUERYID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="VIEWID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

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

            <column name="SESSIONID">
                <data-type>CHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
            </column>

        </columns>

        <primary-key name="CRViewDetailsInfo_PK">
            <primary-key-column>CRVIEWDETAILS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>

            <foreign-key name="CRViewDetailsInfo_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-key name="CRViewDetailsInfo_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="CRViewDetailsInfo_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-keys>

    </table>

    <table name="CRColumnInternalMap">
        <columns>
            <column name="COLUMN_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>

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

            </column>
        </columns>

        <primary-key name="CRColumnInternalMap_PK">
            <primary-key-column>COLUMN_ID</primary-key-column>
            <primary-key-column>ASSOCIATED_COLUMN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CRColumnInternalMap_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-key name="CRColumnInternalMap_FK2" reference-table-name="CRColumns" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ASSOCIATED_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="CRColumnBrowseSQL">
        <columns>
            <column name="COLUMN_ID">
                <description>Holds unique id for each column  </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>

            </column>
            <column name="SQL_ID">
                <description>Holds unique id for each sql query  </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>

            </column>
            <column name="DB_ID">
                <description>ID which denotes the DB </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>

        <primary-key name="CRColumnBrowseSQL_PK">
            <primary-key-column>COLUMN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CRColumnBrowseSQL_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-key name="CRColumnBrowseSQL_FK2" reference-table-name="DCNativeSQL" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SQL_ID</fk-local-column>
                        <fk-reference-column>SQL_ID</fk-reference-column>
                    </fk-column>
                    <fk-column>
                        <fk-local-column>DB_ID</fk-local-column>
                        <fk-reference-column>DB_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>

    </table>


    <table name="CRSaveCriteriaDetails">
        <columns>

            <column name="CRSAVECRITERIA_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>CRSaveCriteriaDetails.CRSAVECRITERIA_ID</generator-name>
                </uniquevalue-generation>
            </column>

            <column name="CRSAVEVIEW_ID">
                <description>Custom Report Save View ID </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="COLUMN_ID">
                <description>Selected Column ID for Criteria </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

            <column name="CRITERIATYPE">
                <description>Criteria Type ex. equal,notequal,greater than </description>
                <data-type>NCHAR</data-type>
                <max-size>35</max-size>
                <nullable>false</nullable>
            </column>

            <column name="SEARCHVALUE">
                <description>Search Value for Column </description>
                <data-type>NCHAR</data-type>
                <max-size>800</max-size>
                <nullable>true</nullable>
            </column>

            <column name="LOGICALOPERATOR">
                <description>Logical Operator for Criteria Ex. AND,OR </description>
                <data-type>NCHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
            </column>

            <column name="DISPLAY_ORDER">
                <description>Display order for Criteria</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>

        <primary-key name="CRSaveCriteriaDetails_PK">
            <primary-key-column>CRSAVECRITERIA_ID</primary-key-column>
        </primary-key>


        <foreign-keys>
            <foreign-key name="CRSaveCriteriaDetails_FK1" 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-key name="CRSaveCriteriaDetails_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="CRSaveColumnDetails">
        <columns>

            <column name="CRSAVECOLUMN_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>CRSaveColumnDetails.CRSAVECOLUMN_ID</generator-name>
                </uniquevalue-generation>
            </column>

            <column name="CRSAVEVIEW_ID">
                <description>Custom Report Save View ID </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="COLUMN_ID">
                <description>Selected Column ID for Criteria </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

            <column name="DISPLAY_ORDER">
                <description>Display order for Criteria</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>

        <primary-key name="CRSaveColumnDetails_PK">
            <primary-key-column>CRSAVECOLUMN_ID</primary-key-column>
        </primary-key>


        <foreign-keys>
            <foreign-key name="CRSaveColumnDetails_FK1" 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-key name="CRSaveColumnDetails_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="DCServiceInfo">
        <description>
            <![CDATA[
		This table captures the details of DC Service Info.
		]]>
        </description>
        <columns>
            <column name="DC_SERVICE_INFO_ID">
                <description>Unique Id for the dc service config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCServiceInfo.DC_SERVICE_INFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="USER_NAME">
                <description>The user account name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWORD">
                <description>The user account password. </description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_STARTED_AFTER_ACC_IS_SET">
                <description>Whether the service has been restarted after the account is set. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCServiceInfo_PK">
            <primary-key-column>DC_SERVICE_INFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="StatusUpdateQueueInfo">
        <description>
            <![CDATA[
			This table holds the information about the files which were sent from the agent.
			]]>
        </description>
        <columns>
            <column name="STAT_UPDATE_Q_INFO_ID">
                <description>Unique Id for the status update queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>StatusUpdateQueueInfo.STAT_UPDATE_Q_INFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the status update data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_PATH">
                <description>The path where status update data is stored. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS_TYPE">
                <description>Status update type 1-> config status update 2-> agent status update</description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_STATE">
                <description>Two states of file are identified 1 -> File is in server, 2 -> File is converted into DO and is present in Queue. The row is deleted only when DO of the XML file is populated. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="StatusUpdateQueueInfo_PK">
            <primary-key-column>STAT_UPDATE_Q_INFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCQueue">
        <description>
            <![CDATA[
			This table holds the information about the files which were sent from the agent.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueue.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. Example Power Update, Refresh Update, etc</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueue_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCQueueExtn">
        <description>
            <![CDATA[
			This table holds the information about the files which were sent from the agent.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <!-- Additional columns can be added here-->
        </columns>
        <primary-key name="DCQueueExtn_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCQueueExtn_FK" reference-table-name="DCQueue" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>QINFO_ID</fk-local-column>
                        <fk-reference-column>QINFO_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DCQueueAgentStatusInfo">
        <description>
            <![CDATA[
			This table holds the information about the files which were sent from the agent.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueAgentStatusInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. Example Power Update, Refresh Update, etc</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
				<default-value>NA</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueAgentStatusInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCQueueCfgStatusInfo">
        <description>
            <![CDATA[
			This table holds the information about the files which were sent from the agent.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueCfgStatusInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. Example Power Update, Refresh Update, etc</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>				
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueCfgStatusInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCQueuePowerDataInfo">
        <description>
            <![CDATA[
			This table holds the information about the files which were sent from the agent.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueuePowerDataInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. Example Power Update, Refresh Update, etc</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>				
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueuePowerDataInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCQueueDSStatusInfo">
        <description>
            <![CDATA[
			This table holds the information about the files which were sent from the Master agent.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueDSStatusInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. Example Power Update, Refresh Update, etc</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>				
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueDSStatusInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCQueueAgentRefreshInfo">
        <description>
            <![CDATA[
			This table contains the information about the files from the agent. This queue is for storing the last contact time of the agent sent on each refresh cycle.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueAgentRefreshInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>				
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueAgentRefreshInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCQueueUserLogonInfo">
        <description>
            <![CDATA[
			This table holds the information about the files which were sent from the agent. This queue is for user logon data.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueUserLogonInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data.</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>				
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueUserLogonInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="DCQueueSDPODInvInfo">
        <description>
            <![CDATA[
			This table holds the information about the files which are to be sent to SPDOD Server. This queue is for DC-SDPOD Assest Post data.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueSDPODInvInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data.</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>				
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueSDPODInvInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="DCQueueSDPODInvRefInfo">
        <description>
            <![CDATA[
			This table holds the information about the SDPODInv queue to resource mapping.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="REFERENCE_ID">
                <description>Unique id for each computer.RESOURCE_ID to be used.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueSDPODInvRefInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCQueueSDPODInvRefInfo_FK1" reference-table-name="DCQueueSDPODInvInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>QINFO_ID</fk-local-column>
                        <fk-reference-column>QINFO_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DCQueueDSServiceInfo">
        <description>
            <![CDATA[
			This table contains the information about the files from the Distribution server. This queue is for storing the ldap data / other service data if any received from DS.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueDSServiceInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueDSServiceInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SDPODAssetProcessedDetails">
        <description>
            <![CDATA[
			This table can be used to track XML Files generated and Zipped for DC-SDPOD Integration
		]]>
        </description>
        <columns>
            <column name="SDPOD_ASSET_ID">
                <description>Unique Id for each XML Generated for SDPOD</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SDPODAssetProcessedDetails.ASSET_XML_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FILE_NAME">
                <description>Asset XML Name</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <unique>true</unique>
            </column>
            <column name="FILE_SIZE">
                <description>Asset XML Size</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATE_MODIFIED">
                <description>Time at  which the Data is entered into the table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ZIPFILE_STATUS">
                <description>Either Zipped or not Zipped Status</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            <column name="ZIPFILE_NAME">
                <description>Zipped File Name</description>
                <data-type>CHAR</data-type>
                <max-size>400</max-size>
                <nullable>true</nullable>
            </column>
            <column name="IS_QUEUED">
                <description>Zipped File is added to Queue or Not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
			<column name="RESOURCE_ID">
                <description>Unique Id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="AUDIT_ID">
             	<description>ID for each audit made on the inventory.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
			</column>
            <column name="NEXT_SCAN_STATUS">
                <description>Data which is going to post to SDPOD {0-full data,1-next scan must be full,2-diff data} </description>
				<data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="SDPODAssetProcessedDetails_PK">
            <primary-key-column>SDPOD_ASSET_ID</primary-key-column>
        </primary-key>
    </table>
	 <table name="SDPODZipProcessedDetails">
        <description>
            <![CDATA[
			This table can be used to track Zip File status for DC-SDPOD Integration
		]]>
        </description>
        <columns>
            <column name="ZIP_ID">
                <description>Unique Id for each ZIP Generated for SDPOD</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SDPODZipProcessedDetails.ZIP_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SDPOD_ZIP_ID">
                <description>Zip Id for which is uploaded to SDPOD</description>
                <data-type>CHAR</data-type>
                <max-size>400</max-size>
                <nullable>false</nullable>
            </column>
			  <column name="ZIPFILE_NAME">
                <description>Zipped File Name</description>
                <data-type>CHAR</data-type>
                <max-size>400</max-size>
                <nullable>true</nullable>
            </column>
            <column name="ZIPFILE_STATUS">
                <description>Either zip file is processed or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            </columns>
        <primary-key name="SDPODZipProcessedDetails_PK">
            <primary-key-column>ZIP_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SDPODAssetStatus">
        <description>
            <![CDATA[
			This table can be used to track non posted computers to SDPOD
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_POSTED">
                <description>Asset data can be posted to sdpod or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
			  <column name="DATE_MODIFIED">
                <description>Time at  which the Data is entered or modified into the table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
           <column name="SCAN_TYPE">
				<description>Last scan type of the computer. 0 - Diff Scan, 1 - Full Scan.</description>
				<data-type>INTEGER</data-type>
				<default-value>1</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>

        </columns>
        <primary-key name="SDPODAssetStatus_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="ManagedComputerExtn">
        <description>
            <![CDATA[
		This table is the extension of ManagedComputer table which hold some additional info about Managed Computers.
        	These additional information are given by the user, and is also editable from the UI.
		]]>
        </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="OWNER">
                <description>To which owner the computer is currently assigned </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOCATION">
                <description>Where the computer is located </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SEARCH_TAG">
                <description>Holds some tags for searching the computer and locating it</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Any other comments/descriptions about this computer</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="OWNER_EMAIL_ID">
                <description>email address of the computers owner</description>
                <data-type>NCHAR</data-type>
                <max-size>128</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ManagedComputerExtn_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ManagedComputerExtn_FK" reference-table-name="ManagedComputer" 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>
        <indexes>
            <index name="ManagedComputerExtn_IDX1">
                <index-column>OWNER</index-column>
            </index>
            <index name="ManagedComputerExtn_IDX2">
                <index-column>LOCATION</index-column>
            </index>
            <index name="ManagedComputerExtn_IDX3">
                <index-column>SEARCH_TAG</index-column>
            </index>
        </indexes>
    </table>
	
	<table name="ComputerToDeviceMapping">
        <description>
            <![CDATA[
		This table contains the mapping between Computer and Devices.
		]]>
        </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="SERVICETAG">
                <description>Service tag of the computer and device </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UDID">
                <description>UDID of the computer and device </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="DEVICE_ID">
                <description>Holds unique Id of the Device. </description>
                <data-type>BIGINT</data-type>
				<default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ComputerToDeviceMapping_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ComputerToDeviceMapping_FK" reference-table-name="ManagedComputer" 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="SecureUSBConfig">
        <description>
            <![CDATA[
  	         This table captures the details of Securing the USB endpoint devices. This is an extension of 'ConfigData'.
  	         ]]>
        </description>
        <columns>
            <column name="SECURE_USB_CONFIG_ID">
                <description>Unique Id for the Secure USB config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SecureUSBConfig.SECURE_USB_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_LIST">
                <description>List of the Devices do not be prohibited. </description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISABLE_LIST">
                <description>List of the Devices to be prohibited. </description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NOCHANGE_LIST">
                <description>List of the Devices to retain the pervious status. </description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TYPE_OF_CONFIG">
                <description>Indicates the type of configuration. 1--New Configuration; 2-Reset Configuration.</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGOFF_ACTION">
                <description>Indicates the User log off option on device status. 0-No Action; 1-Disable all Devices Except Mouse.</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="SecureUSBConfig_PK">
            <primary-key-column>SECURE_USB_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SecureUSBConfig_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="WirelessConfig">
	<description>
	    <![CDATA[
	    This table captures the details of Wireless Configuration.
	    This is an extension of 'ConfigData'.
	    ]]>
	</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="WIFI_ACTION">
		<description>
		    Enable or Disable wifi adaptor of a computer
		    0 - Do Nothing
		    1 - Enable
		    2 - Disable
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<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="WirelessConfig_PK">
	    <primary-key-column>CONFIG_DATA_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="WirelessConfig_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="WirelessSettingsConfig">
	<description>
	    <![CDATA[
	    This table captures the details of Wireless Settings Configuration.
	    This is an extension of 'ConfigDataItem'.
	    ]]>
	</description>
	<columns>
	    <column name="CONFIG_DATA_ITEM_ID">
		<description>Unique Id of the configuration data item instance. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="WIRELESS_SETTING_ACTION">
		<description>
		    Add, import, Delete profile or Do nothing
		    0 - Do Nothing
		    1 - Add Profile
		    2 - Import Profile
		    3 - Modify Profile
		    4 - Delete Profile
		    5 - Delete all Profiles
		</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="WIFI_PROFILE_NAME">
		<description>The name of the Profile to be deleted</description>
		<data-type>NCHAR</data-type>
		<max-size>100</max-size>
		<default-value>--</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="OVERWRITE">
		<description>Overwrite if profile already exists</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PRIORITY">
		<description>Whether this profile needs to be preferred over others</description>
		<data-type>INTEGER</data-type>
		<default-value>0</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PROFILE_XML_FILE_PATH">
		<description>The Profile xml file path (Web path) which is available in this location </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="WirelessSettingsConfig_PK">
	    <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="WirelessSettingsConfig_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
			<fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="WirelessConfigProps">
	<description>
	    <![CDATA[
	    This table captures the details of Wireless Settings Configuration. For server Usage
	    This is an extension of 'ConfigDataItem'.
	    ]]>
	</description>
	<columns>
	    <column name="CONFIG_DATA_ITEM_ID">
		<description>Unique Id of the configuration data item instance. </description>
		<data-type>BIGINT</data-type>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="PROFILE_PASSWORD">
		<description>Profile Password for WEP, WPA Personal, WPA2 Personal</description>
		<data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
		<max-size>1000</max-size>
		<default-value></default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SECURITY_TYPE">
		<description>Security Type Values - Open, WEP, WPA Personal, WPA2 Personal, WPA Enterprise, WPA2 Enterprise, 802.1x</description>
		<data-type>NCHAR</data-type>
		<max-size>50</max-size>
		<default-value>--</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="ENCRYPTION_TYPE">
		<description>Encryption Type Values - AES, TKIP</description>
		<data-type>NCHAR</data-type>
		<max-size>20</max-size>
		<default-value>--</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="SECURITY_CERTIFICATE_FILE">
		<description>Path where the certificate file is saved </description>
		<data-type>NCHAR</data-type>
		<max-size>255</max-size>
		<default-value>--</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CERTIFICATE_PASSWORD">
		<description>Password for certificate for.pfx and .p12 files</description>
		<data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
		<max-size>1000</max-size>
		<default-value></default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="AUTO_CONNECT">
		<description>Whether to auto connect to the Wireless Network</description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	    <column name="CONNECT_HIDDEN">
		<description>Whether to connect to the Wireless Network even if it is hidden</description>
		<data-type>BOOLEAN</data-type>
		<default-value>false</default-value>
		<nullable>false</nullable>
		<unique>false</unique>
	    </column>
	</columns>
	<primary-key name="WirelessConfigProps_PK">
	    <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
	</primary-key>
	<foreign-keys>
	    <foreign-key name="WirelessConfigProps_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
		<fk-columns>
		    <fk-column>
			<fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
			<fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
		    </fk-column>
		</fk-columns>
		<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
	    </foreign-key>
	</foreign-keys>
    </table>
    <table name="OutlookProfileAction">
        <description>
            <![CDATA[
            This table provides the basic attributes for an Outlook Profile
            ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Unique Id for Outlook profile </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="PROFILE_ACTION">
                <description>Action for the profile : 0-Add, 1-Delete , 2-Modify </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROFILE_NAME">
                <description>
                    <![CDATA[ The name for the profile 
                    The name of the new profile can be up to 64 characters in length and can include the following characters:
                    Embedded spaces, but not leading or trailing spaces.
                    All alphanumeric characters, including accent characters and the underscore character.
                    ]]>
                </description>
                <data-type>NCHAR</data-type>
                <max-size>64</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERVER">
                <description>The Name/URL/IP of the Exchange Server </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_NAME">
                <description> The user name of Outlook client</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_OVERWRITE">
                <description>Whether the profile created should replace existing profile in the same name. If false, error is returned if any such profile is found to exist already.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_DEFAULT">
                <description>Whether to set this profile as the default profile</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OutlookProfileAction_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="OutlookProfileAction_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 = "OutlookProfileProps">
        <description>
            <![CDATA[
            This table provides the additional attributes for a profile
            ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description> Unique Id for Outlook profile properties </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="ACCOUNT_NAME">
                <description> The account name </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_CACHED_MODE">
                <description>Whether caching mails should be enabled</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_CACHE_SHARED">
                <description>Whether shared folders should be cached</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_CACHE_PUBLIC">
                <description>Whether public folders should be cached</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_LOCATION">
                <description> The location where the ost file should be stored </description>
                <data-type>NCHAR</data-type>
                <max-size>1024</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_ENCRYPT">
                <description> Whether to encrypt communication between Outlook and Exchange </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PROMPT_CREDENTIALS">
                <description> Whether to prompt for credentials everytime while connecting to Outlook </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_AUTH_TYPE">
                <description> Authentication during logon : Negotiate - 9, NTLM auth - 10, Kerberos - 16 , Anonymous - 20 [4294967295 (0xFFFFFFFF)]</description>
                <data-type>INTEGER</data-type>
                <default-value>9</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_CONN_HTTP">
                <description> Whether to allow connection between Outlook client and Exchange Server using HTTP </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROXY_URL">
                <description> URL/IP for Proxy Server </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_SSL_ONLY">
                <description> Whether connection between Outlook client and Exchange Server be through SSL Proxy only </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROXY_PRINCIPAL_NAME">
                <description> Principal name for the server in the Certificate issued </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_HTTP_FAST_NW">
                <description> Whether connection should be made through HTTP first and then TCP/IP on Fast networks </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_HTTP_SLOW_NW">
                <description> Whether connection should be made through HTTP first and then TCP/IP on Slow networks</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROXY_AUTH_TYPE">
                <description>Authentication during Proxy connection : 1 - Basic, 2 - NTLM, 16 - Negotiate </description>
                <data-type>INTEGER</data-type>
                <default-value>2</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OutlookProfileProps_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="OutlookProfileProps_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="DupSecureUSBConfig">
        <description>
            <![CDATA[
  	         This table captures the details of Securing the USB endpoint devices. this is dublicated table used for Agent Side.
  	         ]]>
        </description>
        <columns>
            <column name="SECURE_USB_CONFIG_ID">
                <description>Unique Id for the Secure USB config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_LIST">
                <description>List of the Devices do not be prohibited. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISABLE_LIST">
                <description>List of the Devices to be prohibited. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGOFF_ACTION">
                <description>Indicates the User log off option on device status. 0-No Action; 1-Disable all Devices Except Mouse.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            
        </columns>
        <primary-key name="DupSecureUSBConfig_PK">
            <primary-key-column>SECURE_USB_CONFIG_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="USBDeviceType">
        <description>
            <![CDATA[
		This table contains device details.Its related to USB.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_TYPE_ID">
                <description>Holds unique id for each resource type </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEVICENAME">
                <description>Display label for the resource type. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEVICENAME_I18N">
                <description>Key for Display label for the resource type. </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="USBDeviceType_PK">
            <primary-key-column>RESOURCE_TYPE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="USBDeviceInstance">
        <description>
            <![CDATA[
		This table contains the basic details of Device.
		]]>
        </description>
        <columns>
            <column name="USB_DEVICE_ID">
                <description>Holds unique Id generated for each devices. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>USBDeviceInstance.USB_DEVICE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DEVICE_INSTANCE_ID">
                <description>Instance ID of the Device. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="RESOURCE_TYPE_ID">
                <description>The type of device object to say mouse, cd drivce,etc. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CUSTOMER_ID">
                <description>Customer ID for which the resource is generated</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="USBDeviceInstance_PK">
            <primary-key-column>USB_DEVICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="USBDeviceInstance_FK1" reference-table-name="USBDeviceType" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RESOURCE_TYPE_ID</fk-local-column>
                        <fk-reference-column>RESOURCE_TYPE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="USBDeviceInstance_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="USBDeviceVendor">
        <description>
            <![CDATA[
		This table contains the basic details of Vendor.
		]]>
        </description>
        <columns>
            <column name="USB_DEVICE_VENDOR_ID">
                <description>Holds unique Id generated for each devices. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>USBDeviceVendor.USB_DEVICE_VENDOR_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DEVICE_VENDOR_NAME">
                <description>Name of the Device Vendor. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_TYPE_ID">
                <description>The type of device object to say mouse, cd drivce,etc. </description>
                <data-type>INTEGER</data-type>
                <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="USBDeviceVendor_PK">
            <primary-key-column>USB_DEVICE_VENDOR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="USBDeviceVendor_FK1" reference-table-name="USBDeviceType" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RESOURCE_TYPE_ID</fk-local-column>
                        <fk-reference-column>RESOURCE_TYPE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="USBDeviceVendor_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="DupUSBDeviceInstance">
        <description>
            <![CDATA[
		This table contains the basic details of Device.This Duplicated table used in agent side.
		]]>
        </description>
        <columns>
            <column name="USB_DEVICE_ID">
                <description>Holds unique Id generated for each devices. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEVICE_INSTANCE_ID">
                <description>Instance ID of the Device. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="DEVICE_VENDOR_NAME">
                <description>Name of the Device Vendor. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_TYPE_ID">
                <description>The type of device object to say mouse, cd drivce,etc. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DEVICEID_TYPE">
                <description>The type of device object to say mouse, cd drivce,etc. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DEVICE_STATUS">
                <description>The type of device object to say mouse, cd drivce,etc. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ENCRYPT_OPTION">
                <description>Indicates the whether the device is to be unblocked based on encryption 1.Unblocked the device 2.Unblock only if it is Encrypted 3.Unblock any encrypted device </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DupUSBDeviceInstance_PK">
            <primary-key-column>USB_DEVICE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="USBDevicePolicyConfigRel">
        <description>
            <![CDATA[
		This table contains the basic details of Vendor.
		]]>
        </description>
        <columns>

            <column name="SECURE_USB_CONFIG_ID">
                <description>Unique Id of each configuration record. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="USB_DEVICE_ID">
                <description>DeviceID for USB Resource</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENCRYPT_OPTION">
                <description>Indicates the whether the device is to be unblocked based on encryption 1.Unblocked the device 2.Unblock only if it is Encrypted 3.Unblock any encrypted device </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="USBDevicePolicyConfigRel_PK">
            <primary-key-column>SECURE_USB_CONFIG_ID</primary-key-column>
            <primary-key-column>USB_DEVICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="USBDevicePolicyConfigRel_FK1" reference-table-name="SecureUSBConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SECURE_USB_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SECURE_USB_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="USBDevicePolicyConfigRel_FK2" reference-table-name="USBDeviceInstance" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USB_DEVICE_ID</fk-local-column>
                        <fk-reference-column>USB_DEVICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="USBDeviceInsToVendor">
        <description>
            <![CDATA[
		This table contains the basic details of Vendor.
		]]>
        </description>
        <columns>
            <column name="USB_DEVICE_ID">
                <description>DeviceID for USB Resource</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="USB_DEVICE_VENDOR_ID">
                <description>Unique Id of each configuration record. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="USBDeviceInsToVendor_PK">
            <primary-key-column>USB_DEVICE_ID</primary-key-column>
            <primary-key-column>USB_DEVICE_VENDOR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="USBDeviceInsToVendor_FK1" reference-table-name="USBDeviceInstance" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USB_DEVICE_ID</fk-local-column>
                        <fk-reference-column>USB_DEVICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="USBDeviceInsToVendor_FK2" reference-table-name="USBDeviceVendor" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USB_DEVICE_VENDOR_ID</fk-local-column>
                        <fk-reference-column>USB_DEVICE_VENDOR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="USBVendorPolicyConfigRel">
        <description>
            <![CDATA[
		This table contains the basic details of Vendor.
		]]>
        </description>
        <columns>

            <column name="SECURE_USB_CONFIG_ID">
                <description>Unique Id of each configuration record. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USB_DEVICE_VENDOR_ID">
                <description>Vendor ID for USB Resource</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USB_DEVICE_ID">
                <description>DeviceID for USB Resource</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENCRYPT_OPTION">
                <description>Indicates the whether the device is to be unblocked based on encryption 1.Unblocked the device 2.Unblock only if it is Encrypted 3.Unblock any encrypted device </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="USBVendorPolicyConfigRel_PK">
            <primary-key-column>SECURE_USB_CONFIG_ID</primary-key-column>
            <primary-key-column>USB_DEVICE_VENDOR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="USBVendorPolicyConfigRel_FK1" reference-table-name="SecureUSBConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SECURE_USB_CONFIG_ID</fk-local-column>
                        <fk-reference-column>SECURE_USB_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="USBVendorPolicyConfigRel_FK2" reference-table-name="USBDeviceVendor" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USB_DEVICE_VENDOR_ID</fk-local-column>
                        <fk-reference-column>USB_DEVICE_VENDOR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>

            <foreign-key name="USBVendorPolicyConfigRel_FK3" reference-table-name="USBDeviceInstance" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USB_DEVICE_ID</fk-local-column>
                        <fk-reference-column>USB_DEVICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="USBExcludeDeviceDetails">
        <description>
            <![CDATA[
		This table used for UI configured data details
		]]>
        </description>
        <columns>
            <column name="ID">
                <description>Holds unique Id generated for entry</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>USBExcludeDeviceDetails.ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_TYPE_ID">
                <description>The type of device object to say mouse, cd drivce,etc. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEVICENAME">
                <description>Display label for the resource type. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEVICE_INSTANCE_ID">
                <description>Instance ID of the Device. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_DEVICE_INSTANCE">
                <description>Name of the Device Vendor. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VENDOR_NAME">
                <description>Display label for the resource type. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGIN_ID">
                <description>its refer from AaaLogin table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ENCRYPT_OPTION">
                <description>Indicates the whether the device is to be unblocked based on encryption 1.Unblocked the device 2.Unblock only if it is Encrypted 3.Unblock any encrypted device </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="USBExcludeDeviceDetails_PK">
            <primary-key-column>ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="USBExcludeDeviceDetails_FK1" reference-table-name="AaaUser"  isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LOGIN_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="DCAlertsToTaskRel">
        <description>
            <![CDATA[
            This table relates alert ID with task ID
		]]>
        </description>
        <columns>
            <column name="ALERT_ID">
                <description>Unique ID for each alert</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TASK_ID">
                <description>maps to Task details</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCAlertsToTaskRel_PK">
            <primary-key-column>ALERT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCAlertsToTaskRel_FK1" reference-table-name="DCAlert" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ALERT_ID</fk-local-column>
                        <fk-reference-column>ALERT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DCAlertsToTaskRel_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>
    <table name="DCAlertsToComputerRel">
        <description>
            <![CDATA[
            This table relates alert ID with task ID
		]]>
        </description>
        <columns>
            <column name="ALERT_ID">
                <description>Unique ID for each alert</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_ID">
                <description>maps to computer id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_NAME">
                <description>Computer Name</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NAME">
                <description>Domain 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="DCAlertsToComputerRel_PK">
            <primary-key-column>ALERT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCAlertsToComputerRel_FK1" reference-table-name="DCAlert" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ALERT_ID</fk-local-column>
                        <fk-reference-column>ALERT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="MasterMetaDataParams">
        <description>
            <![CDATA[
			This table will contain the meta data parameters. Thease parameters will be generated along with the configuration meta data.
			]]>
        </description>
        <columns>
            <column name="MMD_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>MasterMetaDataParams.MMD_PARAM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="MMD_PARAM_NAME">
                <description> Key name of the parameter. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="MMD_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 master meta data is generated. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MasterMetaDataParams_PK">
            <primary-key-column>MMD_PARAM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MasterMetaDataParams_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>
        <unique-keys>
            <unique-key name="MasterMetaDataParams_UK">
                <unique-key-column>MMD_PARAM_NAME</unique-key-column>
                <unique-key-column>CUSTOMER_ID</unique-key-column>
            </unique-key>
        </unique-keys>
    </table>
    <table name="MasterRepository">
        <description>
            <![CDATA[
			This table will hold the details of meta data for each name space.
			]]>
        </description>
        <columns>
            <column name="REPOSITORY_ID">
                <description>Unique Id for each meta data entry. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>MasterRepository.REPOSITORY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="REPOSITORY_NAME">
                <description>name space </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REPOSITORY_FILE_NAME">
                <description>file path for the meta data. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REPOSITORY_FILE_PATH">
                <description>file path for the meta data. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ORDER_OF_REPLICATION">
                <description>Order at which the repository need to be replicated in the master agent. These repository will be replicated in ascending order only. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REPOSITORY_MODIFIED_TIME">
                <description>Time at which the meta data has been modified. </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 master repository is generated. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MasterRepository_PK">
            <primary-key-column>REPOSITORY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MasterRepository_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>
        <unique-keys>
            <unique-key name="MasterRepository_UK">
                <unique-key-column>REPOSITORY_NAME</unique-key-column>
                <unique-key-column>CUSTOMER_ID</unique-key-column>
            </unique-key>
        </unique-keys>
    </table>
    <table name="SWPackageVersion">
        <description>
            <![CDATA[
			This table will hold the version details of the Collections.
			]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id for each Collection. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_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>
        </columns>
        <primary-key name="SWPackageVersion_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageVersion_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DupSWPackageVersion">
        <description>
            <![CDATA[
			This table will hold the version details of the swpackage on the agent side to perform the version histrory handling.
			]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id for each Collection. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_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>
        </columns>
        <primary-key name="DupSWPackageVersion_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="MasterAgentVersionInfo">
        <description>
            <![CDATA[
			This table will hold the master agent version details.
			]]>
        </description>
        <columns>
            <column name="VERSION_ID">
                <description>Version id generated for each Master Agent version</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>MasterAgentVersionInfo.VERSION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="VERSION">
                <description>MasterAgent Version. </description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>Unknown</default-value>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="FILESERVER_VERSION">
                <description>MasterAgent file server Version. </description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILESERVER_CHECKSUM">
                <description>MasterAgent file server checksum. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="VALID_LICENSE">
                <description>Holds the data to run DistributionServer</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="MasterAgentVersionInfo_PK">
            <primary-key-column>VERSION_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DSComponentDetails">
        <description>
            <![CDATA[
			This table will hold the DS component version details.
			]]>
        </description>
        <columns>
            <column name="COMPONENT_ID">
                <description>Component id generated for each DS Component version</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>DSComponentDetails.COMPONENT_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="COMPONENT_NAME">
                <description>Component Name </description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>Unknown</default-value>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="COMPONENT_VERSION">
                <description>Component Version. </description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPONENT_CHECKSUM">
                <description>Component checksum. </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="DSComponentDetails_PK">
            <primary-key-column>COMPONENT_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="UserRemoteOfficeMapping">
        <description><![CDATA[This table shows user&Remoteoffice relationship ]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>its refer from dclogin table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BRANCH_OFFICE_ID">
                <description>Branch office id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserRemoteOfficeMapping_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="UserRemoteOfficeMapping_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="BranchOfficeDetails" name="UserRemoteOfficeMapping_FK2" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="UserResourceMapping">
        <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="RESOURCE_ID">
                <description> its refer from Resource</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserResourceMapping_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="UserResourceMapping_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="ManagedComputer" name="UserResourceMapping_FK2" 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="DCSuperAdmin">
        <description><![CDATA[This table tells who is super admin ]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>its refer from AaaLogin table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DCSuperAdmin_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="DCSuperAdmin_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>
    <!--DCAaaLogin Moved to OnPremise-->
    <table name="DSAlert">
        <description>
            <![CDATA[
            This table relates alert ID with task ID
		]]>
        </description>
        <columns>
            <column name="ALERT_ID">
                <description>Unique ID for each alert</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BRANCH_OFFICE_ID">
                <description>maps to computer id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="DSAlert_PK">
            <primary-key-column>ALERT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSAlert_FK1" reference-table-name="DCAlert" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ALERT_ID</fk-local-column>
                        <fk-reference-column>ALERT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DSAlert_FK2" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <!--This table is skipped because used only in agent-->
    <table name="DSFileRetry">
        <description>
            <![CDATA[
            This table is to store list of files, which are failed to replicated by Distribution Server. This is used in Native side only.
            ]]>
        </description>
        <columns>
            <column name="FILEPATH">
                <description>Path of the file to retry download. </description>
                <data-type>NCHAR</data-type>
                <max-size>254</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RETRY_COUNT">
                <description>
                    Index to store no of times the file is tried to replicate.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DSFileRetry_PK">
            <primary-key-column>FILEPATH</primary-key-column>
        </primary-key>
    </table>
    <table name="FileFolderConfigCred">
        <description>
            <![CDATA[
		    This table captures the option details of provided with file/folder operations.
		    This is an extension of 'ConfigData'.         ]]>
        </description>
        <columns>
            <column name="FF_CONFIG_ID">
                <description>Unique Id for the file/folder config data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_USER_NAME">
                <description>The network share user name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FF_PASSWORD">
                <description>The network share password. </description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FileFolderConfigCred_PK">
            <primary-key-column>FF_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FileFolderConfigCred_FK" reference-table-name="FileFolderConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FF_CONFIG_ID</fk-local-column>
                        <fk-reference-column>FF_CONFIG_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="IPPrinterConfigCred">
        <description>
            <![CDATA[
		   This table captures the IP Printer Configurations.
		   ]]>
        </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="IP_USER_NAME">
                <description>The network share user name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IP_PASSWORD">
                <description>The network share password. </description>
                <data-type>NCHAR</data-type><!--datatype is SCHAR for Cloud..DO NOT EDIT/DELETE THE COMMENT! -->
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>


        </columns>
        <primary-key name="IPPrinterConfigCred_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="IPPrinterConfigCred_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="MinuteSlot">
        <description>
            <![CDATA[
			This table will have entry for each minite.
			]]>
        </description>
        <columns>
            <column name="MINUTE_SLOT_ID">
                <description>Unique Id for each minute slot. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CLIENT_COUNT">
                <description>Number of computers assigned for this minute slot</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MinuteSlot_PK">
            <primary-key-column>MINUTE_SLOT_ID</primary-key-column>
        </primary-key>
        <indexes>
            <index name="MinuteSlot_IDX1">
                <index-column>CLIENT_COUNT</index-column>
            </index>
        </indexes>
    </table>
    <table name="SecondSlot">
        <description>
            <![CDATA[
			This table holds a row for each second and associated for MinuteSlot.
			]]>
        </description>
        <columns>
            <column name="SECOND_SLOT_ID">
                <description>Unique Id for each second slot data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MINUTE_SLOT_ID">
                <description>Unique Id of its MinuteSlot. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_OFSET">
                <description>The last ofset, a fraction of a second assigned for client. It can have the values like 0,200,400,600,800, cyclic </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CLIENT_COUNT">
                <description>Number of computers assigned for this second slot</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SecondSlot_PK">
            <primary-key-column>SECOND_SLOT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SecondSlot_FK1" reference-table-name="MinuteSlot">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>MINUTE_SLOT_ID</fk-local-column>
                        <fk-reference-column>MINUTE_SLOT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
        <indexes>
            <index name="SecondSlot_IDX1">
                <index-column>CLIENT_COUNT</index-column>
            </index>
        </indexes>
    </table>
    <table name="ResourceToSecondSlot">
        <description>
            <![CDATA[
			This table holds a mapping between the resource and the associated secondslot.
			]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique Id of the computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SECOND_SLOT_ID">
                <description>Unique Id of the second slot. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALLOCATION_TIME">
                <description>Time at which the slot is allocated for the client. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ResourceToSecondSlot_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceToSecondSlot_FK1" reference-table-name="Resource">
                <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="ResourceToSecondSlot_FK2" reference-table-name="SecondSlot">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SECOND_SLOT_ID</fk-local-column>
                        <fk-reference-column>SECOND_SLOT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="AgentSlotInfoDefault">
        <description>
            <![CDATA[
			This table holds the number number of agents slots, distribution details, etc.
			]]>
        </description>
        <columns>
            <column name="AGENT_SLOT_INFO_ID">
                <description>Unique Id for each agent slot info. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AgentSlotInfoDefault.AGENT_SLOT_INFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="REFRESH_INTERVAL">
                <description>Number minutes to set as default refresh interval. </description>
                <data-type>INTEGER</data-type>
                <default-value>90</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SLOT_EXPIRY_INTERVAL">
                <description>Expiry interval while clearing the unsed slot periodically. Value in Minutes. Default value is 4320 mins (3*24*60 = 3 days) </description>
                <data-type>INTEGER</data-type>
                <default-value>360</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentSlotInfoDefault_PK">
            <primary-key-column>AGENT_SLOT_INFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="AgentSlotInfoApplied">
        <description>
            <![CDATA[
			This table holds the number number of agents slots, distribution details, etc.
			]]>
        </description>
        <columns>
            <column name="AGENT_SLOT_INFO_ID">
                <description>Unique Id for each agent slot info. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AgentSlotInfoApplied.AGENT_SLOT_INFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="REFRESH_INTERVAL">
                <description>Number minutes to set as default refresh interval. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SLOT_EXPIRY_INTERVAL">
                <description>Expiry interval while clearing the unsed slot periodically. Value in Minutes. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POLICY_START_TIME">
                <description>Policy start time. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_POLICY_RESET_TIME">
                <description>Time at which the policy is modified. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_SLOT_LAST_MOD_TIME">
                <description>Time at which the policy values got modified. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentSlotInfoApplied_PK">
            <primary-key-column>AGENT_SLOT_INFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="QucickLinkDisplayStatus">
        <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="QucickLinkDisplayStatus_PK">
            <primary-key-column>PAGE_ID</primary-key-column>
            <primary-key-column>USER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key  name="QucickLinkDisplayStatus_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="QucickLinkDisplayStatus_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="ChecksumValues">
        <description>
            <![CDATA[
            This table is to store checksum values of binary files such as patch, servicepacks, software packages.
            ]]>
        </description>
        <columns>
            <column name="CHECKSUM_ID">
                <description>Holds unique Id . </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ChecksumValues.CHECKSUM_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CHECKSUM_VAL">
                <description>Holds checksum hash value generated from files. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="DOWNLOAD_URL">
                <description>URL to download from Server. </description>
                <data-type>NCHAR</data-type>
                <max-size>254</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOWNLOAD_URL_CHECKSUM">
                <description>stores the checksum value of URL string </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="CHECKSUM_TYPE">
                <description>Type of the checksum values. </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>MD5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ChecksumValues_PK">
            <primary-key-column>CHECKSUM_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="CSToBranchAgentDetails">
        <description>
            <![CDATA[
            This is the mapping table for BranchAgentDetails & ChecksumValues Table.
            ]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CHECKSUM_ID">
                <description>Holds unique Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="CSToBranchAgentDetails_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CSToBranchAgentDetails_FK1" reference-table-name="BranchAgentDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CSToBranchAgentDetails_FK2" reference-table-name="ChecksumValues" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CHECKSUM_ID</fk-local-column>
                        <fk-reference-column>CHECKSUM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CSToDisServerDetails">
        <description>
            <![CDATA[
            This is mapping table for DisServerDetails & ChecksumValues Table.
            ]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CHECKSUM_ID">
                <description>Holds unique Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="CSToDisServerDetails_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CSToDisServerDetails_FK1" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CSToDisServerDetails_FK2" reference-table-name="ChecksumValues" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CHECKSUM_ID</fk-local-column>
                        <fk-reference-column>CHECKSUM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CSToSWPackageSourceURL">
        <description>
            <![CDATA[
            This is mapping table for SWPackageSourceURL & ChecksumValues Table.
            ]]>
        </description>
        <columns>
            <column name="SWPACKAGE_SOURCE_ID">
                <description>Holds unique Id generated for each branch office mgmt. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CHECKSUM_ID">
                <description>Holds unique Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="CSToSWPackageSourceURL_PK">
            <primary-key-column>SWPACKAGE_SOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CSToSWPackageSourceURL_FK1" reference-table-name="SWPackageSourceURL" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SWPACKAGE_SOURCE_ID</fk-local-column>
                        <fk-reference-column>SWPACKAGE_SOURCE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CSToSWPackageSourceURL_FK2" reference-table-name="ChecksumValues" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CHECKSUM_ID</fk-local-column>
                        <fk-reference-column>CHECKSUM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="GlobalMetaData">
        <description>
            <![CDATA[
					  This table will hold the version details of xmls.
					  ]]>
        </description>
        <columns>
            <column name="DATA_ID">
                <description>Unique Id for each file used in Patch Management.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>GlobalMetaData.DATA_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DATA_KEY">
                <description>Unique key for patch data xml.</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>File name of the meta data.</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_PATH">
                <description>Path of the XML file to download via HTTP from agent.</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ORDER_OF_REPLICATION">
                <description>Order at which the meta data need to be replicated to the agent. These files will be replicated in ascending order only. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_VERSION">
                <description>Holds the version data correspoding to Patch Release.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_STATUS">
                <description>Status of the file. Here 0 - Success, 1 - In Progress, 2 - Failed.</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
                <allowed-values>
                    <value>0</value>
                    <value>1</value>
                    <value>2</value>
                </allowed-values>
            </column>
            <column name="PLATFORM_ID">
                <description> Column to differentiate the platform </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXTERNAL_DOWNLOAD_URL">
                <description>Direct download url</description>
                <data-type>CHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="CHECKSUM">
                <description>checksum of the file</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="CHECKSUM_TYPE">
                <description>Type of the checksum values. </description>
				<data-type>CHAR</data-type>
				<max-size>50</max-size>
				<default-value>SHA256</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
            </column>

        </columns>
        <primary-key name="GlobalMetaData_PK">
            <primary-key-column>DATA_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SDPCollectionToCallbackUrl">
        <description>
            <![CDATA[
  	                 This Table for store the call back url for SDP
  	                 ]]>
        </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="CALLBACK_URL">
                <description>URL for collection </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SDPCollectionToCallbackUrl_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SDPCollectionToCallbackUrl_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 ="MoveToRemoteOffice">
        <description>
            <![CDATA[
			This table is to store agents info which are all need to be moved from one remote office to other.
			]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CURRENT_REMOTEOFFICE">
                <description>AGENT prensent remote office name </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CURRENT_REMOTEOFFICE_ID">
                <description>AGENT prensent remote office id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TARGET_REMOTEOFFICE">
                <description>REMOTE OFFICE NAME, AGENT need to be moved </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TARGET_REMOTEOFFICE_ID">
                <description>AGENT prensent remote office ID </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REQUEST_TIME">
                <description>Request created time </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="MoveToRemoteOffice_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MoveToRemoteOffice_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="BranchOfficeBoundaryInfo">
        <description>
            <![CDATA[
                          This table holds the user input of all branch boundary IP addresses. While updating the entries in this table, the necessary data manipulation will be done on BranchBoundaryIPRange.
                          ]]>
        </description>
        <columns>
            <column name="BOUNDARY_ID">
                <description>Holds unique ID.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>BranchOfficeBoundaryInfo.BOUNDARY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="BRANCH_OFFICE_ID">
                <description>FK column of BranchOfficeDetails table. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="BOUNDARY_TYPE">
                <description>Holds the boundary input type .</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="IP_START_RANGE">
                <description>Holds start ipaddress of boundary info.</description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="IP_END_RANGE">
                <description>Holds end ipaddress of the boundary info.</description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="SUBNET_PREFIX">
                <description>Holds network subnet prefix.</description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="SUBNET_MASK">
                <description>Holds subnet mask for subnet_prefix field.</description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="IP_SCOPE_DESC">
                <description>Holds the Description of the IP Scope.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="BranchOfficeBoundaryInfo_PK">
            <primary-key-column>BOUNDARY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchOfficeBoundaryInfo_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="BranchBoundaryIPRange">
        <description>
            <![CDATA[
                          This table holds IP address ranges generated from BranchOfficeBoundaryInfo table. This table data will be used on the agent side to check inwhich boundary the managed client machine is located currently.
                          ]]>
        </description>
        <columns>
            <column name="BOUNDARY_ID">
                <description>Holds unique ID.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IP_START_RANGE">
                <description>Holds start ipaddress of boundary info.</description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="IP_END_RANGE">
                <description>Holds end ipaddress of the boundary info.</description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="BranchBoundaryIPRange_PK">
            <primary-key-column>BOUNDARY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchBoundaryIPRange_FK" reference-table-name="BranchOfficeBoundaryInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BOUNDARY_ID</fk-local-column>
                        <fk-reference-column>BOUNDARY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="AgentRequestCommand">
        <description>
            <![CDATA[
		This table will contain the request need to be processed on the agent side. This is an inmemory table.
		]]>
        </description>
        <columns>
            <column name="AGENT_REQUEST_ID">
                <description>Unique id generated for each parameter. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AgentRequestCommand.AGENT_REQUEST_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="REQUEST_COMMAND">
                <description>This will capture the type of the operation like patch scanning, inventory scanning and remote desktop sharing. The value would be either 1 (for patch scanning), or 2 (for inventory scanning) or 3(for remote desktop sharing). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentRequestCommand_PK">
            <primary-key-column>AGENT_REQUEST_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="AgentRequestParams">
        <description>
            <![CDATA[
		This table will contain the agent request parameters. The additional details for the ondemand task will use this table. Initially it is used for ondemand configurations , later we need to introduce this to other ondemand tasks. The table is used for only memory operation, no data will be stored in this table, only used for xml to DO conversion on the agent side
		]]>
        </description>
        <columns>
            <column name="AGENT_REQUEST_PARAM_ID">
                <description>Unique id assigned for set of parameters. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARAM_NAME">
                <description> Key name of the parameter. </description>
                <data-type>NCHAR</data-type>
                <max-size>50</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>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentRequestParams_PK">
            <primary-key-column>AGENT_REQUEST_PARAM_ID</primary-key-column>
            <primary-key-column>PARAM_NAME</primary-key-column>
        </primary-key>
    </table>
    <table name="ApplyNowParams">
        <description>
            <![CDATA[
		This table will hold the necessary parameters for apply now configuration.
		]]>
        </description>
        <columns>
            <column name="FEATURE_CATEGORY_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ApplyNowParams.FEATURE_CATEGORY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FEATURE_CATEGORY">
                <description>Name of the feature for example ApplyNowPatch,ApplyNowConfig. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAX_NUM_OF_COMPUTER">
                <description>Maximum number of Computer to be processed by Configuration.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NO_OF_COMP_PER_LOT">
                <description>No. of computer to be processed per lot</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TIME_DELAY_PER_LOT">
                <description>waiting time to apply the configuration to next set of Clients</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>


        </columns>
        <primary-key name="ApplyNowParams_PK">
            <primary-key-column>FEATURE_CATEGORY_ID</primary-key-column>
        </primary-key>


    </table>
    <table name="SoMAdSyncDetails">
        <description>This table store the details of som ad synch setting details</description>
        <columns>
            <column name="CUSTOMER_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_SYNC_TIME">
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ADD_ENABLED">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTOMATIC_AD_COMP_ADD">
                <description>True if computer is to be added automatically</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETE_ENABLED">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTOMATIC_AD_COMP_DEL">
                <description>true if automatically add and false if manual add</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <!-- start of depricated columns from build 80001 -->
            <column name="ENABLE_SOM_AD_SYNC">
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SYNC_TIME">
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_MAIL_SETTINGS">
                <description>true if automatically add and false if manual add</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TO_EMAIL_ADDR">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SUBJECT">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EMAIL_CONTENT">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <!-- End of depricated column-->
        </columns>
        <primary-key name="SoMAdSyncDetails_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SoMAdSyncDetails_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="SoMADSelectedOu">
        <columns>
            <column name="SOM_AD_OU_ID">
                <description>Holds unique Id generated for discoverd computer before adding to managed computer list. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SoMADSelectedOu.SOM_AD_OU_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CUSTOMER_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OU_NAME">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NAME">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DN">
                <description>DN (Distinguished Name) for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="TARGET_TYPE">
                <data-type>INTEGER</data-type>
                <default-value>5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FAILURE_COUNT">
                <data-type>INTEGER</data-type>
                <default-value>5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OU_LAST_SYNC_TIME">
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SoMADSelectedOu_PK">
            <primary-key-column>SOM_AD_OU_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SomAdCompAdded">
        <description>This table store the details of computer that is newly added to AD and not in SoM</description>
        <columns>
            <column name="SOM_AD_COMP_ID">
                <description>Holds unique Id generated for discoverd computer before adding to managed computer list. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SomAdCompAdded.SOM_AD_COMP_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CUSTOMER_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NAME">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FULL_NAME">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DN">
                <description>DN (Distinguished Name) for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_PLATFORM">
                <description>OS platform of computer.1-windows,2-mac,3-linux</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ADDED_TIME">
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AD_ADDED_TIME">
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_EXCLUDED">
                <description>Is true if this object has been disabled by user</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SoMADCompAdded_PK">
            <primary-key-column>SOM_AD_COMP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SomADCompAdded_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="BranchSoMADCompRel">
        <description>
            <![CDATA[
			This table contains the branch / som ad comp added members relationship.
			]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Branch office id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SOM_AD_COMP_ID">
                <description>SoM AD Comp id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="BranchSoMADCompRel_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
            <primary-key-column>SOM_AD_COMP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchSoMADCompRel_BID_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="BranchSoMADCompRel_RID_FK" reference-table-name="SomAdCompAdded" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SOM_AD_COMP_ID</fk-local-column>
                        <fk-reference-column>SOM_AD_COMP_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SomAdCompDeleted">
        <columns>
            <column name="RESOURCE_ID">
                <data-type>BIGINT</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="GUID">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NAME">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETED_TIME">
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AD_DELETED_TIME">
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SomAdCompDeleted_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name = "SomAdCompDeleted_FK" reference-table-name="ManagedComputer" 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="SomADCompDeleted_Cust_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="SoMPolicyDetails">
        <columns>
            <column name="SOM_POLICY_ID">
                <description>Holds unique Id generated for each policy defined </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SoMPolicyDetails.SOM_POLICY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SYNC_TIME">
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETE_INACTIVE_COMP">
                <description>Is true if delete of outdated computer is selected</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DELETE_INTERVAL">
                <data-type>BIGINT</data-type>
                <default-value>30</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALERT_INACTIVE_COMP">
                <description>true, alerts in the specified interval</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALERT_INTERVAL">
                <data-type>BIGINT</data-type>
                <default-value>7</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SomPolicy_PK">
            <primary-key-column>SOM_POLICY_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="SoMPolicyCustRel">
        <columns>
            <column name="SOM_POLICY_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
        </columns>
        <primary-key name="SoMPolicyCustRel_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SoMPolicyCustRel_FK1" reference-table-name="SoMPolicyDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SOM_POLICY_ID</fk-local-column>
                        <fk-reference-column>SOM_POLICY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="SoMPolicyCustRel_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="AgentContactTemp">
        <columns>
            <column name="RESOURCE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_CONTACT_TIME">
                <description>time when server was contacted</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_DS_CONTACT_TIME">
                <description>time when server was contacted</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentContactTemp_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
    </table>
	
    <table name="DeploymentTemplates">
        <description>This table stores the Deployment Settings for Patch or SW  deployment/undeployment</description>
        <columns>
            <column name="TEMPLATE_ID">
                <description>Unique Id for each Template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>DeploymentTemplates.TEMPLATE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TEMPLATE_NAME">
                <description>Name of the Template. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TEMPLATE_DESCRIPTION">
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_OPTION">
                <description>Type of installation  1 during startup,2 90 mins refreshal,3 both </description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SKIP_DEPLOYMENT">
                <description>1 - Allow user to skip deployment,0 - Dont allow user to skip</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_PROGRESS">
                <description>To Show progress 1,Not To Show Progress 0 </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_OPTION">
                <description>DC_NO_REBOOT 0 : DC_FORCE_REBOOT 1 : DC_FORCE_SHUTDOWN 2 : DC_ALLOWSKIP_REBOOT 3 : DC_ALLOWSKIP_SHUTDOWN 4</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXCLUDE_SERVER">
                <description>1 - Allow user to skip reboot for servers,0 - Dont skip reboot for servers</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_TIMEOUT">
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_MESSAGE">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_TITLE">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Desktop Central Reboot Control</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="FORCE_REBOOT_AFTER">
                <description>Number of days user can skip the Reboot or shutdown. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_PRE_NOTIFY">
                <description>true to notify the end user about the installation</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOY_SKIP_TIMEOUT">
                <description>Stores the deploy time out in mins</description>
                <data-type>INTEGER</data-type>
                <default-value>5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_TITLE">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Patch Update Notification</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_MESSAGE">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="FORCE_DEPLOY_AFTER">
                <description>Number of days/hours/minutes user can skip the installation. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IDLE_TIMEOUT">
                <description>Installation will be initiated if the system is idle for the given time </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_STAGING">
                <description>true to enable staging</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</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>
                <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>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_WOL">
		        <description>true to enable WOL for down computers</description>
		        <data-type>BOOLEAN</data-type>
		        <default-value>false</default-value>
		        <nullable>false</nullable>
		        <unique>false</unique>
	        </column>
		    <column name="SKIP_REBOOT">
                <description>1 - Skip shutdown/reboot if not required,0 - Dont skip reboot/shutdown</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WEEK_TYPE">
                <description>1-Any week,0-Patch Tuesday Week</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="REBOOT_DURING_AWAKE">
		        <description>reboot during system awake when delay reboot window is skipped </description>
		        <data-type>BOOLEAN</data-type>
		        <default-value>false</default-value>
		        <nullable>false</nullable>
		        <unique>false</unique>
	        </column>
            <column name="RESTART_AND_SHUTDOWN">
                <description>shutdown the machine after reboot</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DeploymentTemplates_PK">
            <primary-key-column>TEMPLATE_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="DepTemplateToExecWindow">
        <description>This table stores the Mapping of the Deployment Settings Template to the Window details</description>
        <columns>
            <column name="TEMP_WINDOW_ID">
                <description>Unique Id for each Window for template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>DepTemplateToExecWindow.TEMP_WINDOW_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TEMPLATE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_START_TIME">
                <description>Time after which installation should take place.  Format : HH:MM:SS </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_END_TIME">
                <description>Time till which installation can take place. Format : HH:MM:SS </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_WEEK_OF_MONTH">
                <description>Weeks of the month when the installation can take place. Format : 1,3,4,5 (1- first, 2- second...5-last) </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>1,2,3,4,5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_DAY_OF_WEEK">
                <description>Days of the week when the installation can take place. Format : 1,3,4,5 (1- Sunday, 2, Monday...) </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>1,2,3,4,5,6,7</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_REBOOT_WINDOW">
                <description>0 - Deployment Window 1 - Reboot Window</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DepTemplateToExecWindow_PK">
            <primary-key-column>TEMP_WINDOW_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DepTemplateToExecWindow_FK" reference-table-name="DeploymentTemplates" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="PrePostDeploymentActions">
        <description>Each task in prepost deployment template.</description>
        <columns>
            <column name="ACTION_ID">
                <description>Unique ID for each prepost deployment task.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>PrePostDeploymentActions.ACTION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DEPLOYMENT_TEMPLATE_ID">
                <description>Deployment template ID to be mapped with.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOYMENT_TYPE">
                <description>Pre Or Post deployment task.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ORDER_OF_EXECUTION">
                <description>Order in which the task has to be executed among pre or post deployment tasks.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROCEED_ON_FAILURE">
                <description>Whether to proceed even on failure.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PERFORM_NO_DEPLOYMENT_SUCCESS">
                <description>Whether to proceed even on no deployment success.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOYMENT_ACTION">
                <description>Type of action to be performed.</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PrePostDeploymentActions_PK">
            <primary-key-column>ACTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PrePostDeploymentActions_FK" reference-table-name="DeploymentTemplates" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>DEPLOYMENT_TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="UserNotificationAction">
        <description>This table stores the pre user notification details</description>
        <columns>
            <column name="USER_NOTIFICATION_ID">
                <description>Unique ID for the UserNotificationAction</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>UserNotificationAction.USER_NOTIFICATION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="ACTION_ID">
                <description>Unique Prepost deployment ACTION ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_TITLE">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Patch Update Notification</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_MESSAGE">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOY_SKIP_TIMEOUT">
                <description>Stores the deploy time out in mins</description>
                <data-type>INTEGER</data-type>
                <default-value>5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SKIP_DEPLOYMENT">
                <description>1 - Allow user to skip deployment,0 - Dont allow user to skip</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FORCE_DEPLOY_AFTER">
                <description>Number of days/hours/minutes user can skip the installation. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IDLE_TIMEOUT">
                <description>Installation will be initiated if the system is idle for the given time </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHOW_PROGRESS">
                <description>To Show progress 1,Not To Show Progress 0 </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserNotificationAction_PK">
            <primary-key-column>USER_NOTIFICATION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UserNotificationAction_FK1" reference-table-name="PrePostDeploymentActions" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ACTION_ID</fk-local-column>
                        <fk-reference-column>ACTION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ScriptAction">
        <description>Pre-post Custom script action.</description>
        <columns>
            <column name="SCRIPT_ACTION_ID">
                <description>Unique ID for script action</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>ScriptAction.SCRIPT_ACTION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="ACTION_ID">
                <description>Unique PrePost deployment task ID to be mapped with.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="PLATFORM_ID">
                <description>platform id</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SCRIPT_ID">
                <description>Unique ID of the script in the script repository.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENC_TYPE">
                <description>Arguments encoding type.</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SCRIPT_ARGS">
                <description>Arguments for the given script file.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SCRIPT_MUL_EXIT_CODE">
                <description>Values to be returned after successful script execution.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ScriptAction_PK">
            <primary-key-column>SCRIPT_ACTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ScriptAction_FK1" reference-table-name="PrePostDeploymentActions" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ACTION_ID</fk-local-column>
                        <fk-reference-column>ACTION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="ScriptAction_FK2" reference-table-name="ScriptRepo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCRIPT_ID</fk-local-column>
                        <fk-reference-column>SCRIPT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ScriptActionDependencyFiles">
        <description>Dependency files for the custom script.</description>
        <columns>
            <column name="SCRIPT_ACTION_ID">
                <description>Unique ID for reboot action</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_ID">
                <description>Unique ID for each dependency file</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="FILE_NAME">
                <description>Holds the file name of the uploaded file.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_URL">
                <description>URL to download the dependency file.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="CHECKSUM">
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHECKSUM_TYPE">
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>SHA256</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ScriptActionDependencyFiles_PK">
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ScriptActionDependencyFiles_PK_FK1" reference-table-name="ScriptAction" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCRIPT_ACTION_ID</fk-local-column>
                        <fk-reference-column>SCRIPT_ACTION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="RebootAction">
        <columns>
            <column name="REBOOT_POLICY_ID">
                <description>Unique ID for the Reboot Policy</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>RebootAction.REBOOT_POLICY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="ACTION_ID">
                <description>Unique Prepost deployment ACTION ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_NOTIFY">
                <description>true to notify the end user about the reboot</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_OPTION">
                <description>DC_NO_REBOOT 0 : DC_FORCE_REBOOT 1 : DC_FORCE_SHUTDOWN 2 : DC_ALLOWSKIP_REBOOT 3 : DC_ALLOWSKIP_SHUTDOWN 4</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXCLUDE_SERVER">
                <description>1 - Allow user to skip reboot for servers,0 - Dont skip reboot for servers</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_TIMEOUT">
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_MESSAGE">
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_TITLE">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>Desktop Central Reboot Control</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="SKIP_REBOOT">
                <description>1 - Skip shutdown/reboot if not required,0 - Dont skip reboot/shutdown</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_DURING_AWAKE">
                <description>reboot during system awake when delay reboot window is skipped </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESTART_AND_SHUTDOWN">
                <description>shutdown the machine after reboot</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RebootAction_PK">
            <primary-key-column>REBOOT_POLICY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RebootAction_FK1" reference-table-name="PrePostDeploymentActions" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ACTION_ID</fk-local-column>
                        <fk-reference-column>ACTION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="RebootWindowSchedule">
        <description>This table stores the Mapping of the Deployment Settings Template to the Window details</description>
        <columns>
            <column name="REBOOT_WINDOW_SCHEDULE_ID">
                <description>Unique Id for each Window for template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>RebootWindowSchedule.REBOOT_WINDOW_SCHEDULE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="REBOOT_POLICY_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_START_TIME">
                <description>Time after which installation should take place.  Format : HH:MM:SS </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_END_TIME">
                <description>Time till which installation can take place. Format : HH:MM:SS </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_WEEK_OF_MONTH">
                <description>Weeks of the month when the installation can take place. Format : 1,3,4,5 (1- first, 2- second...5-last) </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>1,2,3,4,5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_DAY_OF_WEEK">
                <description>Days of the week when the installation can take place. Format : 1,3,4,5 (1- Sunday, 2, Monday...) </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>1,2,3,4,5,6,7</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RebootWindowSchedule_PK">
            <primary-key-column>REBOOT_WINDOW_SCHEDULE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RebootWindowSchedule_FK" reference-table-name="RebootAction" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REBOOT_POLICY_ID</fk-local-column>
                        <fk-reference-column>REBOOT_POLICY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="PostponeRebootDetails">
        <description>This table stores the postpone reboot options</description>
        <columns>
            <column name="REBOOT_OPTION_ID">
                <description>Unique Id for reboot option for template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>PostponeRebootDetails.REBOOT_OPTION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="REBOOT_POLICY_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_PROMPT_TIME">
                <description>Time after reboot prompt should take place.  Format : HH:MM  </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>--</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_PROMPT_DAY">
                <description>Days of the week when the reboot prompt can take place. Format : 1,3,4,5 (1- Sunday, 2, Monday...) </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>--</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="FORCE_REBOOT_AFTER">
                <description>Number of hours user can skip the Reboot or shutdown. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALERT_FORCE_REBOOT">
                <description>minutes to alert before force reboot. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALLOWED_POSTPONE_INTERVALS">
                <description>postpone intervals values </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>15M,1H,2H,4H,6H,8H</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PostponeRebootDetails_PK">
            <primary-key-column>REBOOT_OPTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PostponeRebootDetails_FK" reference-table-name="RebootAction" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REBOOT_POLICY_ID</fk-local-column>
                        <fk-reference-column>REBOOT_POLICY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="PostponeRebootOptions">
        <description>This table stores the postpone reboot options</description>
        <columns>
            <column name="REBOOT_OPTION_ID">
                <description>Unique Id for reboot option for template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>PostponeRebootOptions.REBOOT_OPTION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TEMPLATE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_PROMPT_TIME">
                <description>Time after reboot prompt should take place.  Format : HH:MM  </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>--</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="REBOOT_PROMPT_DAY">
                <description>Days of the week when the reboot prompt can take place. Format : 1,3,4,5 (1- Sunday, 2, Monday...) </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>--</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="FORCE_REBOOT_AFTER">
                <description>Number of hours user can skip the Reboot or shutdown. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALERT_FORCE_REBOOT">
                <description>minutes to alert before force reboot. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALLOWED_POSTPONE_INTERVALS">
                <description>postpone intervals values </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>15M,1H,2H,4H,6H,8H</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PostponeRebootOptions_PK">
            <primary-key-column>REBOOT_OPTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PostponeRebootOptions_FK" reference-table-name="DeploymentTemplates" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="UserToDeployTemplateRel">
        <description>This table stores the Mapping of the Deployment Settings Template to the user.</description>
        <columns>
            <column name="TEMPLATE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <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="DC_USER_ID">
                <description>Unique identifier for login user</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <!-- SET_AS_DEFAULT should be deprecated-->
            <column name="SET_AS_DEFAULT">
                <description>Set as Default this deployment template </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_TEMPLATE_ALIVE">
                <description>Is template available for configuration</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_BY">
                <description>Id of the customer who modified the policy.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserToDeployTemplateRel_PK">
            <primary-key-column>TEMPLATE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UserToDeployTemplateRel_FK1" reference-table-name="DeploymentTemplates" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="UserToDeployTemplateRel_FK2" 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-key name="UserToDeployTemplateRel_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="UserToDeployTemplateRel_FK4" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>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="UserToDefaultDeployTemplateRel">
        <description>This table stores the Mapping of the Default Deployment Settings Template to the user.</description>
        <columns>
            <column name="DC_USER_ID">
                <description>Unique identifier for login user</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <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="TEMPLATE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserToDefaultDeployTemplateRel_PK">
            <primary-key-column>DC_USER_ID</primary-key-column>
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UserToDefaultDeployTemplateRel_FK1" reference-table-name="DeploymentTemplates" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="UserToDefaultDeployTemplateRel_FK2" 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-key name="UserToDefaultDeployTemplateRel_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="CollectionExecWindow">
        <description>This table contains collection execution time interval</description>
        <columns>
            <column name="COLL_WINDOW_ID">
                <description>Unique dummy window Id for the Collection. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>CollectionExecWindow.COLL_WINDOW_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="COLLECTION_ID">
                <description>Id for the collection for deployment.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_START_TIME">
                <description>Time after which installation should take place.  Format : HH:MM:SS </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_END_TIME">
                <description>Time till which installation can take place. Format : HH:MM:SS </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollectionExecWindow_PK">
            <primary-key-column>COLL_WINDOW_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollectionExecWindow_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-keys>
    </table>
    <table name="APDTaskToDeployWindow">
        <description>This table contains collection execution time interval</description>
        <columns>
            <column name="TASK_WINDOW_ID">
                <description>Unique dummy Id for the Collection. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>APDTaskToDeployWindow.TASK_WINDOW_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TASK_ID">
                <description>Id for the apd task.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_START_TIME">
                <description>Time after which installation should take place.  Format : HH:MM:SS </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="WINDOW_END_TIME">
                <description>Time till which installation can take place. Format : HH:MM:SS </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="APDTaskToDeployWindow_PK">
            <primary-key-column>TASK_WINDOW_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="APDTaskToDeployWindow_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="OSPlatformType">
        <description>
            <![CDATA[
			OSPlatformType
		    	]]>
        </description>
        <columns>
            <column name="OS_PLATFORM_ID">
                <description>OS platform id</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="OS_PLATFORM_NAME">
                <description>OS platform Name </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="OSPlatformType_PK1">
            <primary-key-column>OS_PLATFORM_ID</primary-key-column>

        </primary-key>
    </table>
    <table name="MacAgentSettings">
        <description>
            <![CDATA[
		This table will hold the necessary parameters for each customReport view in reports section etc.
		]]>
        </description>
        <columns>
            <column name="MACAGENT_SETTINGS_ID">
                <description>Unique Id for the MacAgentSettings. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>MacAgentSettings.MACAGENT_SETTINGS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="IS_MAC_ENABLED">
                <description>Is MacAgentSettings enabled or not.0-disabled,1-enabled </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <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>
            <!--User name and password should be deprecated-->
            <column name="USER_NAME">
				<description>UserName of linux agents.</description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
                                <default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
            </column>
            <column name="PASSWORD">
				<description>Password of linux agents.</description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
                                <default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
            </column>
            <column name="MAC_DOMAIN">
                <description>Domain of mac agents.</description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAC_AD_DOMAIN">
                <description>AD_Domain of mac agents. will be taken from the manageddomain table for the given mac_domain</description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_ID">
                <description>Credential id. </description>
                <data-type>BIGINT</data-type>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>

        <primary-key name="MacAgentSettings_PK">
            <primary-key-column>MACAGENT_SETTINGS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MacAgentSettings_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-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>

	</table>
        <table name="LinuxAgentSettings">
		<description>
		<![CDATA[
		This table will hold the necessary parameters for each customReport view in reports section etc.
		]]>
		</description>
		<columns>
		<column name="LINUXAGENT_SETTINGS_ID">
				<description>Unique Id for the LinuxAgentSettings. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
				<uniquevalue-generation>
					<generator-name>LinuxAgentSettings.LINUXAGENT_SETTINGS_ID</generator-name>
				</uniquevalue-generation>
			</column>
			<column name="IS_LINUX_ENABLED">
			<description>Is LinuxAgentSettings enabled or not.0-disabled,1-enabled </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<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>
                        <column name="USER_NAME">
				<description>UserName of linux agents.</description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
                                <default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="PASSWORD">
				<description>Password of linux agents.</description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
                                <default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>

			<column name="LINUX_DOMAIN">
				<description>Domain of linux agents.</description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LINUX_AD_DOMAIN">
				<description>AD_Domain of linux agents. will be taken from the manageddomain table for the given linux_domain</description>
				<data-type>CHAR</data-type>
				<max-size>255</max-size>
				<default-value>--</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
            <column name="CREDENTIAL_ID">
                <description>Credential id. </description>
                <data-type>BIGINT</data-type>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>

		</columns>

		<primary-key name="LinuxAgentSettings_PK">
			<primary-key-column>LINUXAGENT_SETTINGS_ID</primary-key-column>
		</primary-key>
        <foreign-keys>
            <foreign-key name="LinuxAgentSettings_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-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>


        </table>
    <table name="CustomGroupFilterRel">
        <description>
            <![CDATA[
        This table contains the relationship between CustomGroup and Filters.
        ]]>
        </description>
        <columns>
            <column name="GROUP_RESOURCE_ID">
                <description> Custom Group Resource Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_ID">
                <description>Filter Id which is generated when Dynamic Custom Group is created. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CustomGroupFilterRel_PK">
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
            <primary-key-column>FILTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CustomGroupFilterRel_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-key name="CustomGroupFilterRel_FK1" reference-table-name="Filter" 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="CGCriteriaList">
        <description>
            <![CDATA[
        This table contains the details of Criteria based Custom Group like version,source file,etc
        ]]>
        </description>
        <columns>
            <column name="GROUP_RESOURCE_ID">
                <description> Custom Group Resource Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CRITERIA_FILE_PATH">
                <description>Path of the criteria file which holds the information of criteria. </description>
                <data-type>CHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="CRITERIA_VERSION">
                <description>Holds the version data of criteria.</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CGCriteriaList_PK">
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CGCriteriaList_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="MultiDomainCGMetaData">
        <description>
            <![CDATA[ This table contains the MetaData details of MultiDomain Custom Groups]]>
        </description>
        <columns>
            <column name="GROUP_RESOURCE_ID">
                <description> Custom Group Resource Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NETBIOS_ID">
                <description>Domain netBIOS ID where the resource participates. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CG_FILE_PATH">
                <description>Path of the custom group Json file which holds the information of group. </description>
                <data-type>CHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="CG_VERSION">
                <description>Holds the version data of custom group.</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CG_STATUS">
                <description>Holds the status of CG. 0:Deleted,1:Active,2:CG is Active but this Domain is Removed</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CG_GROUP_TYPE">
                <description>Holds the group type of custom group 1:computer 2:user </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <allowed-values>
                    <value>1</value>
                    <value>2</value>
                </allowed-values>
            </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="MultiDomainCGMetaData_PK">
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
            <primary-key-column>DOMAIN_NETBIOS_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="CGMetaData">
        <description>
            <![CDATA[
        This table contains the details of Custom Groups like version,source file,etc
        ]]>
        </description>
        <columns>
            <column name="GROUP_RESOURCE_ID">
                <description> Custom Group Resource Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CG_FILE_PATH">
                <description>Path of the custom group file which holds the information of group. </description>
                <data-type>CHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="CG_VERSION">
                <description>Holds the version data of custom group.</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CG_STATUS">
                <description>Holds the status of custom group.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CG_GROUP_TYPE">
                <description>Holds the group type of custom group 1:computer 2:user </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <allowed-values>
                    <value>1</value>
                    <value>2</value>
                </allowed-values>
            </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="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="CGMetaData_PK">
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="UserComputerMappingRel">
        <description><![CDATA[Table contains Logged on User id and computer resource id relation]]> </description>
        <columns>
            <column name="USER_RESOURCE_ID">
                <description>A id for each Logged on User.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="COMPUTER_RESOURCE_ID">
                <description>Unique identifier for Computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="UserComputerMappingRel_PK">
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
            <primary-key-column>COMPUTER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UserComputerMappingRel_FK1" reference-table-name="Resource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="UserComputerMappingRel_FK2" reference-table-name="ManagedComputer" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>COMPUTER_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="UserComputersRel">
        <description>
            <![CDATA[
		This table will contain the details of computers that a user logged in.
		]]>
        </description>
        <columns>
            <column name="USER_RESOURCE_ID">
                <description>Holds unique Id of the user. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGGED_IN_COMPUTERS">
                <description>Computers that a user who have been logged in.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RECENT_COMPUTER_ID">
                <description>Computer that recently contacted.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_TRUNCATED">
                <description>Holds whether the user has logged-in in multiple computers.It is set to true- if logged_in_computers is more than one.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserComputersRel_PK">
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UserComputersRel_FK" reference-table-name="Resource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="GatewaySession">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="SESSION_ID">
                <description>Holds unique Id generated for each chat Session. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INIT_PARTICIPANT_ID">
                <description>Id of the Participant. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SESSION_PATH">
                <description>Id of the Participant.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHAT_TYPE">
                <description>Type of the chat. 1-Text Chat, 2-Voice Call, 3-Video Call</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="START_TIME">
                <description>date and time for the application when it is last used.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="END_TIME">
                <description>date and time for the application when it is last used.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TIME_DURATION">
                <description>This will have the diff of starttime and endtime.</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 storing customer specific softwares</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="GatewaySession_PK">
            <primary-key-column>SESSION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="GatewaySession_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="GatewaySessionMembers">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="SESSION_ID">
                <description>A unique Id for each Chat Session Key.  </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARTCIPANT_ID">
                <description>Holds unique Id generated for each resource. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARTICIPANT_NAME">
                <description>Id of the Participant. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARTICIPANT_TYPE">
                <description>A unique Id for each Chat Session Key.  </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="JOINED_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>
            <column name="LEFT_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>
            <column name="CUSTOMER_ID">
                <description>Customer ID for storing customer specific softwares</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="GatewaySessionMembers_PK">
            <primary-key-column>SESSION_ID</primary-key-column>
            <primary-key-column>PARTCIPANT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="GatewaySessionMembers_FK1" reference-table-name="GatewaySession" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SESSION_ID</fk-local-column>
                        <fk-reference-column>SESSION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="GatewaySessionMembers_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="ComputerChatSession">
        <description>
            <![CDATA[
                    ]]>
        </description>
        <columns>
            <column name="SESSION_ID">
                <description>A unique Id for each Chat Session Key. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARTCIPANT_ID">
                <description>Holds unique Id generated for each resource.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_ID">
                <description>A unique Id for each resource id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_RESOURCE_ID">
                <description>Id for user resource id .</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ComputerChatSession_PK">
            <primary-key-column>SESSION_ID</primary-key-column>
            <primary-key-column>PARTCIPANT_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ComputerChatSession_FK1" reference-table-name="GatewaySessionMembers" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SESSION_ID</fk-local-column>
                        <fk-reference-column>SESSION_ID</fk-reference-column>
                    </fk-column>
                    <fk-column>
                        <fk-local-column>PARTCIPANT_ID</fk-local-column>
                        <fk-reference-column>PARTCIPANT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="ComputerChatSession_FK2" 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="ChatLastStatusInfo">
        <description>Details of current chat status are stored in this table.</description>
        <columns>
            <column name="USER_RESOURCE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CHAT_STATUS">
                <description>Status for the chat</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_CHAT_PERFORMED_AT">
                <description>Time at which the last chat performed. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_CHAT_INITIATED_BY">
                <description>Id of the Participant.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Any specific remarks regarding Chat status.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS_ARGS">
                <description>Arguments for remarks column to be passed for I18N Key.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="ChatLastStatusInfo_PK">
            <primary-key-column>USER_RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ChatLastStatusInfo_FK1" reference-table-name="Resource" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>USER_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="CfgLastTargetByUser">
        <description>
            <![CDATA[
		This table will hold the necessary parameters for each customReport view in reports section etc.
		]]>
        </description>
        <columns>
            <column name="USER_ID">
                <description>User Id  </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_TYPE_ID">
                <description>Filter Type ID for user.Eg:branch,domain,workgroup </description>
                <data-type>BIGINT</data-type>

                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_CLASS_ID">
                <description>Filter Class ID for user.Eg:OU,domain,Site </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CfgLastTargetByUser_PK">
            <primary-key-column>USER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CfgLastTargetByUser_FK" 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="TaskToErrCode">
        <description><![CDATA[Task Details relation to error code table]]> </description>
        <columns>
            <column name="TASK_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ERROR_CODE">
                <description>Error Code for this resource ID</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="TaskToErrCode_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="TaskToErrCode_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="TaskToErrCode_FK2" 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="SoMDefineTarget">
        <description><![CDATA[Mac address of computer to be added to SoM]]> </description>
        <columns>
            <column name="SOM_DEFINE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SoMDefineTarget.SOM_DEFINE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="MAC_ADDRESS">
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SoMDefineTarget_PK">
            <primary-key-column>SOM_DEFINE_ID</primary-key-column>
        </primary-key>
    </table>
	
     <table name="CurrentProcessesList">
        <description>List the process details of the remote computer</description>
        <columns>
            <column name="RESOURCE_ID">
                <description>It is used to identify the system's processes</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="REMOTE_PROCESS_ID">
                <description>Unique id to each process</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="PROCESS_ID">
                <description>Identifier of the running process</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="CREATION_DATE">
                <description>It specifies the process creation date and time</description>
                <data-type>CHAR</data-type>
                <max-size>30</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="PROCESS_NAME">
                <description>It specifies the name of the process in short form</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="EXECUTABLE_PATH">
                <description>Path to the executable file of the process.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
            </column>
            <column name="USER_NAME">
                <description>the user name under which the process is running</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
            </column>
            <column name="PRIORITY">
                <description> 1 - Real Time , 2 - High , 3 - Above Normal , 4 - Normal , 5 - Below Normal , 6 - Low</description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
            </column>
            <column name="SESSION_ID">
                <description>Unique identifier that an operating system generates when a session is created. A session spans a period of time from logon until logoff from a specific system.</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="WORKINGSET">
                <description>memory in kilo bytes(kb) that a process needs to execute efficiently</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="THREAD_COUNT">
                <description>Number of active threads in a process. An instruction is the basic unit of execution in a processor, and a thread is the object that executes an instruction. Each running process has at least one thread.</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="HANDLE_COUNT">
                <description>Total number of open handles owned by the process. HandleCount is the sum of the handles currently open by each thread in this process. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="PAGE_FAULTS">
                <description>It specifies the Number of page faults that a process generates.</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="CPU_TIME">
                <description>It specifies the CPU time (or CPU usage, process time) is the amount of time  used for processing a  program(process). It is represented in seconds</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="CPU_USAGE">
                <description>Percentage</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
			
<column name="PEAK_WORKINGSET">
                 <description>Maximum amount of working set memory used by the process</description>
	
                <data-type>BIGINT</data-type>
                  <default-value>-1</default-value> 
             </column>
 						
 			<column name="COMMIT_SIZE">
                 <description>Amount of virtual memory that's reserved for use by a process</description>
                  <data-type>BIGINT</data-type>
                  <default-value>-1</default-value> 
             </column>
 			
 			<column name="PAGED_POOL">
                 <description>Amount of pageable kernel memory allocated by the kernel or drivers on behalf of a process. Pageable memory is memory that can be written to another storage medium, such as the hard disk.</description>
                 <data-type>BIGINT</data-type>
                  <default-value>-1</default-value> 
             </column>
 			
 			<column name="NP_POOL">
                 <description>Amount of non-pageable kernel memory allocated by the kernel or drivers on behalf of a process. Non-pageable memory is memory that can't be written to another storage medium.</description>
                   <data-type>BIGINT</data-type>
                  <default-value>-1</default-value> 
             </column>		
 			
 			<column name="STATUS">
                 <description>Describes Status of the Process</description>
                 <data-type>NCHAR</data-type>
                 <max-size>255</max-size>
                  
             </column>	
 			
 			 
			 
			 <column name="COMMAND_LINE">
                 <description>The Command Line of the Process</description>
                 <data-type>NCHAR</data-type>
                 <max-size>5000</max-size>                
				 
             </column>
 			
 			<column name="DESCRIPTION">
                 <description>The description of the process. It helps beginners to identify the process easily</description>
                 <data-type>NCHAR</data-type>
                 <max-size>255</max-size>                
				 
             </column>		
 
 			<column name="IO_READS">
                 <description>The number of read input/output operations generated by the process, including file, network, and device I/Os. I/O Reads directed to CONSOLE (console input object) handles are counted.</description>
                 <data-type>NCHAR</data-type>
                 <max-size>255</max-size> 
             </column>
 			
 			<column name="IO_READ_BYTES">
                 <description>The number of bytes read in input/output operations generated by the process, including file, network, and device I/Os. I/O Read Bytes directed to CONSOLE (console input object) handles are counted.</description>
                 <data-type>NCHAR</data-type>
                 <max-size>255</max-size> 
             </column>
 			
 			<column name="IO_WRITES">
                 <description>The number of write input/output operations generated by the process, including file, network, and device I/Os. I/O Writes directed to CONSOLE (console input object) handles are counted.</description>
                 <data-type>NCHAR</data-type>
                 <max-size>255</max-size> 
                  
             </column>
 			
 			<column name="IO_WRITE_BYTES">
                 <description>The number of bytes written in input/output operations generated by the process, including file, network, and device I/Os. I/O Write Bytes directed to CONSOLE (console input object) handles are counted.</description>
                 <data-type>NCHAR</data-type>
                 <max-size>255</max-size> 
                 
             </column>
 			
 			<column name="IO_OTHER">
                 <description>The number of input/output operations generated by the process that are neither a read nor a write, including file, network, and device I/Os. An example of this type of operation is a control function. I/O Other operations directed to CONSOLE (console input object) handles are counted.</description>
                <data-type>NCHAR</data-type>
                 <max-size>255</max-size> 
                  
             </column>
 			
 			<column name="IO_OTHER_BYTES">
                 <description>The number of bytes transferred in input/output operations generated by the process that are neither a read nor a write, including file, network, and device I/Os. An example of this type of operation is a control function. I/O Other Bytes directed to CONSOLE (console input object) handles are counted.</description>
                <data-type>NCHAR</data-type>
                 <max-size>255</max-size> 
                  
             </column>		
			
        </columns>
        <primary-key name="CurrentProcessesList_PK">
            <primary-key-column>REMOTE_PROCESS_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CurrentProcessesList_FK" reference-table-name="ManagedComputer" 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="CurrentServicesList">
        <description>Lists the Service details of the remote computer</description>
        <columns>
            <column name="RESOURCE_ID">
                <description> To identify the system. Unique Id to each system</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

            <column name="REMOTE_SERVICE_ID">
                <description>  Unique Id to each service</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>

            <column name="PROCESS_ID">
                <description> Running service's process id. if the service is not running it contains the value 0</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>

            <column name="SERVICE_NAME">
                <description> Name of the service in shot form(eg:AppIDSvc)</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
            </column>

            <column name="DISPLAY_NAME">
                <description> Name of the service in detailed form(eg:Application Identity)</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
            </column>

            <column name="START_UP_TYPE">
                <description> It contains the one of the following value 1. Automatic 2.Manual 3. Disabled </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
            </column>

            <column name="SERVICE_STATUS">
                <description> It contains the one of the following value 1.Running 2.Stopped</description>
                <data-type>NCHAR</data-type>
                <max-size>25</max-size>
                <nullable>false</nullable>
            </column>

            <column name="SERVICE_LOG_ON_AS">
                <description> It specifies the initiator of the service eg: LocalService,NetworkService,etc</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
            </column>

            <column name="DESCRIPTION">
                <description>It specifies the description of the service</description>
                <data-type>NCHAR</data-type>
                <max-size>2550</max-size>
                <nullable>false</nullable>
            </column>

        </columns>
        <primary-key name="CurrentServicesList_PK">
            <primary-key-column>REMOTE_SERVICE_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CurrentServicesList_FK" reference-table-name="ManagedComputer" 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>

    <!-- Remote Startup Details Tables Starts -->
    <table name="RemoteStartupPrograms">
        <description>Lists the startup programs details of the remote computer</description>
        <columns>
            <column name="RESOURCE_ID">
                <description>It is used to identify to which resource tool is initiated </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SESSION_ID">
                <description>It is used to identify session ID for the tool is initiated </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="UNIQUE_ID">
                <description>It is used to identify the Unique Entry</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>RemoteStartupPrograms.UNIQUE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PROCESS_NAME">
                <description>It specifies the process name</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DESCRIPTION">
                <description>It specifies the process name description</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="STARTUP_TYPE">
                <description>It specifies startup type</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="LOCATION">
                <description>It specifies location of startup process</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
            </column>
            <column name="STATUS">
                <description>It specifies the status of process startup type</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="USER">
                <description>It specifies the user name</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="RemoteStartupPrograms_PK">
            <primary-key-column>UNIQUE_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RemoteStartupPrograms_FK" reference-table-name="ManagedComputer" 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>

    <!-- Remote Share Details Tables Starts -->
 	<table name="RemoteSharesList">
         <description>List the share details of the remote computer</description>
         <columns>
             <column name="RESOURCE_ID">
                 <description>It is used to identify the system's processes</description>
                 <data-type>BIGINT</data-type>
                 <nullable>false</nullable>
             </column>
             <column name="UNIQUE_ID">
                 <description>It is used to identify the Unique Entry</description>
                 <data-type>INTEGER</data-type>
		 <nullable>false</nullable>
                 <unique>true</unique>
                 <uniquevalue-generation>
                    <generator-name>RemoteSharesList.UNIQUE_ID</generator-name>
                 </uniquevalue-generation>                 
             </column>
             <column name="SHARE_NAME">
                 <description>It specifies the share name</description>
                 <data-type>NCHAR</data-type>
                 <max-size>200</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="SHARE_TYPE">
                 <description>Type of the share</description>
                 <data-type>CHAR</data-type>
                 <max-size>200</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="SHARE_DESCRIPTION">
                 <description>It specifies comments about this share</description>
                 <data-type>NCHAR</data-type>
                 <max-size>1000</max-size>                 
                 <nullable>true</nullable>
             </column>
             <column name="SHARE_PERMISSION">
                 <description>It specifies the permission details about this share</description>
                 <data-type>NCHAR</data-type>
                 <max-size>100</max-size> 
		 <default-value>--</default-value>				 
                 <nullable>false</nullable>
             </column>
             <column name="MAX_USER_LIMIT">
                 <data-type>NCHAR</data-type>
                 <max-size>100</max-size> 
		 <default-value>--</default-value>				 
                 <nullable>false</nullable>
             </column>
             <column name="CURR_USER_COUNT">
                 <description>It specifies the current users count to access this share</description>
                 <data-type>INTEGER</data-type>
                 <nullable>true</nullable>
             </column>
             <column name="SHARE_PATH">
                 <description>It specifies path of this share</description>
                 <data-type>NCHAR</data-type>
                 <max-size>500</max-size>  		 				 
                 <nullable>true</nullable>
             </column>
         </columns>
         <primary-key name="RemoteSharesList_PK">                 
             <primary-key-column>UNIQUE_ID</primary-key-column>
             <primary-key-column>RESOURCE_ID</primary-key-column>
         </primary-key>
         <foreign-keys>
             <foreign-key name="RemoteSharesList_FK" reference-table-name="ManagedComputer" 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>
     
	<!-- Remote Share Members Details Tables Starts -->
 	<table name="RemoteShareMembers">
         <description>List the share details of the remote computer</description>
         <columns>             
             <column name="RESOURCE_ID">
                 <description>It is used to identify the index</description>
                 <data-type>BIGINT</data-type>
                 <nullable>false</nullable>
             </column>
             <column name="INDEX_ID">
                 <description>It is used to identify the index</description>
                 <data-type>INTEGER</data-type>
                 <nullable>false</nullable>
             </column>
             <column name="SHARE_NAME">
                 <description>It specifies the share name</description>
                 <data-type>NCHAR</data-type>
                 <max-size>200</max-size>                 
                 <nullable>false</nullable>
             </column>
             <column name="USER_NAME">
                 <description>user name of the share</description>
                 <data-type>NCHAR</data-type>
                 <max-size>200</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="FULL_ACCESS">
                <description>Shares has full access or not</description>
                <data-type>INTEGER</data-type>                 
                <default-value>0</default-value>
                <nullable>false</nullable>
             </column>
             <column name="CHANGE_ACCESS">
                <description>Is the Share can change access type</description>
                <data-type>INTEGER</data-type>                 
                <default-value>0</default-value>
                <nullable>false</nullable>
             </column>
             <column name="READ_ACCESS">
                <description>Is the Share is only Read Access</description>
                <data-type>INTEGER</data-type>                 
                <default-value>0</default-value>
                <nullable>false</nullable>
             </column>
             <column name="DENY_FULL">
                <description>Shares - Deny Full or not </description>
                <data-type>INTEGER</data-type>                 
                <default-value>0</default-value>
                <nullable>false</nullable>
             </column>
             <column name="DENY_CHANGE">
                <description>Shares - Denied can be change or not </description>
                <data-type>INTEGER</data-type>                 
                <default-value>0</default-value>
                <nullable>false</nullable>
             </column>
             <column name="DENY_READ">
                <description>Share - Is Deny Read or not </description>
                <data-type>INTEGER</data-type>                 
                <default-value>0</default-value>
                <nullable>false</nullable>
             </column>
         </columns>
         <primary-key name="RemoteShareMembers_PK">                 
             <primary-key-column>SHARE_NAME</primary-key-column>
             <primary-key-column>RESOURCE_ID</primary-key-column>
             <primary-key-column>USER_NAME</primary-key-column>
             <primary-key-column>INDEX_ID</primary-key-column>
         </primary-key>               
     </table>
     
     
     <!-- Remote Sessions List --> 
    
     <table name="RemoteSessions">
         <description>List the sessions details of the remote computer</description>
         <columns>
             <column name="UNIQUE_ID">
                 <description>It is used to identify the Unique Entry</description>
                 <data-type>INTEGER</data-type>
                 <nullable>false</nullable>
                 <uniquevalue-generation>
                    <generator-name>RemoteSessions.UNIQUE_ID</generator-name>
                 </uniquevalue-generation>
             </column>
             <column name="RESOURCE_ID">
                 <description>It is used to system resource id</description>
                 <data-type>BIGINT</data-type>
                 <nullable>false</nullable>
             </column>                
             <column name="COMPUTER_NAME">
                 <description>It specifies the Session Computer name where the share accessed</description>
                 <data-type>CHAR</data-type>
                 <max-size>200</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="USER_NAME">
                 <description>User name of the Session who accessed the Share</description>
                 <data-type>CHAR</data-type>
                 <max-size>200</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="OPENED_SESSION_COUNT">
                 <description>Number of sessions opened</description>
                 <data-type>INTEGER</data-type>                 
                 <default-value>0</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="ACTIVE_TIME">
                 <description>It specifies time of active session in seconds</description>
                 <data-type>BIGINT</data-type>                
                 <default-value>0</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="IDLE_TIME">
                 <description>It specifies Idle Time of the opened session in seconds</description>
                 <data-type>BIGINT</data-type>                
                 <default-value>0</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="USER_FLAGS">
                 <description>It specifies the User Flags</description>
                 <data-type>CHAR</data-type>
                 <max-size>50</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="CLIENT_TYPE_NAME">
                 <description>It specifies client type name</description>
                 <data-type>NCHAR</data-type>
                 <max-size>200</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="TRANSPORT_NAME">
                 <description>It specifies the transport name</description>
                 <data-type>NCHAR</data-type>
                 <max-size>200</max-size> 
		 <default-value>--</default-value>				 
                 <nullable>false</nullable>
             </column>            
         </columns>
         <primary-key name="RemoteSessions_PK">                 
             <primary-key-column>UNIQUE_ID</primary-key-column>
             <primary-key-column>RESOURCE_ID</primary-key-column>
         </primary-key>
         <foreign-keys>
             <foreign-key name="RemoteSessions_FK" reference-table-name="ManagedComputer" 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>
         
     <!-- Shared Files Open List in Sessions  --> 
    
     <table name="SharedFilesOpenList">
         <description>List the sessions details of the remote computer</description>
         <columns>
             <column name="UNIQUE_ID">
                 <description>It is used to identify the Unique Entry</description>
                 <data-type>INTEGER</data-type>
                 <nullable>false</nullable>
                 <uniquevalue-generation>
                    <generator-name>SharedFilesOpenList.UNIQUE_ID</generator-name>
                 </uniquevalue-generation>
             </column>
             <column name="RESOURCE_ID">
                 <description>It is used to identify the system's processes</description>
                 <data-type>BIGINT</data-type>
                 <nullable>false</nullable>
             </column>                
             <column name="FILE_ID">
                 <description>It specifies the File ID of the File</description>
                 <data-type>INTEGER</data-type>
                 <nullable>false</nullable>                 
             </column>
             <column name="PERMISSSION">
                 <description>Permission allow for that File</description>
                 <data-type>CHAR</data-type>
                 <max-size>200</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="FILE_NUM_LOCKS">
                 <description>Number of locks in file</description>
                 <data-type>INTEGER</data-type>                 
                 <default-value>0</default-value>
                 <nullable>false</nullable>
             </column>
             <column name="FILE_PATH">
                 <description>It specifies the path of the file</description>
                 <data-type>NCHAR</data-type>
                 <max-size>200</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>  
             <column name="USER_ACCESSED">
                 <description>It specifies the User Flags</description>
                 <data-type>CHAR</data-type>
                 <max-size>100</max-size>
                 <default-value>--</default-value>
                 <nullable>false</nullable>
             </column>                    
         </columns>
         <primary-key name="SharedFilesOpenList_PK">                 
             <primary-key-column>UNIQUE_ID</primary-key-column>
             <primary-key-column>RESOURCE_ID</primary-key-column>
         </primary-key>
         <foreign-keys>
             <foreign-key name="SharedFilesOpenList_FK" reference-table-name="ManagedComputer" 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="CurrentGroupsList">
        <description>Lists the Group details of the remote computer</description>
        <columns>
            <column name="RESOURCE_ID">
                <description> To identify the system. Unique Id to each system</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

            <column name="GROUP_ID">
                <description>  Unique Id to each groups</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
				 
            </column> 
			

            <column name="CAPTION">
                <description> A short textual description of the object.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>

            <column name="DESCRIPTION">
                <description>A textual description of the object.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>

            <column name="DOMAIN">
                <description>Name of the Windows domain to which the group account belongs.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>

            <column name="NAME">
                <description>Name of the Windows group account on the domain specified by the Domain property of this class.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
            </column>

            <column name="SID">
                <description>A SID is a string value of variable length used to identify a trustee. Each account has a unique SID issued by an authority</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>

            <column name="SIDType">
                <description>Enumerated values that specify the type of security identifier </description>
                <data-type>NCHAR</data-type>
                <max-size>20</max-size>
                <nullable>true</nullable>
            </column>
			
			<column name="STATUS">
                <description>String that indicates the current status of the object.</description>
                <data-type>NCHAR</data-type>
                <max-size>20</max-size>
                <nullable>true</nullable>
            </column>

        </columns>
        <primary-key name="CurrentGroupsList_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>GROUP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CurrentGroupsList_FK" reference-table-name="ManagedComputer" 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="CurrentGroupMemberList">
        <description>Lists the Members of Group  of the remote computer</description>
        <columns>
            <column name="RESOURCE_ID">
                <description> To identify the system. Unique Id to each system</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

            <column name="GROUP_ID">
                <description>  Unique Id to each groups</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>				 
            </column> 			
			<column name="MEMBER_ID">
                <description>  Unique Id of each member in groups</description>
                <data-type>BIGINT</data-type>
				<nullable>false</nullable>                			
            </column>			
            <column name="MEMBER_TYPE">
                <description>Type of Member that shows whether it is a user or sub group</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>

            <column name="NAME">
                <description>A textual description of the object.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>
			
			<column name="SID">
                <description>A SID is a string value of variable length used to identify a trustee. Each account has a unique SID issued by an authority</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>
			
			<column name="DESCRIPTION">
                <description>A textual description of the object.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>

             

        </columns>
        <primary-key name="CurrentGroupMemberList_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>MEMBER_ID</primary-key-column>
			 <primary-key-column>GROUP_ID</primary-key-column>
			 
        </primary-key>
        <foreign-keys>
            <foreign-key name="CurrentGroupMemberList_FK" reference-table-name="ManagedComputer" 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="CurrentPrintersList">
        <description>Lists the Printers details of the remote computer</description>
 
        <columns>
             
			<column name="RESOURCE_ID">
                <description>Resource is used to differentiate various printers</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
				<unique>false</unique> 
            </column>
			
			<column name="PRINTER_ID">
                <description>Uniquely identifies each printers in a system </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
				<unique>false</unique>             
            </column>
			
			 

            <column name="EXTENDED_PRINTER_STATUS">
                <description> Status information for a printer that is different from information specified in the Availability property</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>    
            </column>

            <column name="MAX_COPIES">
				<description>Maximum number of copies the printer can produce for one job. </description>
				<data-type>BIGINT</data-type> 
				<unique>false</unique> 
            </column>
			
			<column name="PRINTER_AVAILABILITY">
				<description>Availability and status of the device.</description>
			    <data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column> 
			
			<column name="PRINTER_CAPTION">
				<description>Short description of an object-a one-line string.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>

			<column name="PRINTER_COMMENT">
				<description>Comment for a print queue.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column> 
			
			<column name="PRINTER_DESCRIPTION">
				<description>Description of an object.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>

			<column name="PRINTER_DEVICE_ID">
				<description>Unique identifier of the printer on a system.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column> 
			
			<column name="PRINTER_DRIVER_NAME">
				<description>Name of the Windows printer driver.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column> 
			
			<column name="PRINTER_LOCATION">
				<description>Physical location of the printer.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column> 
			
			<column name="PRINTER_NAME">
				<description>Name of the printer.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column> 
			
			<column name="PRINTER_NETWORK">
				<description>If TRUE, the printer is a network printer. If both the Local and Network properties are set to TRUE, then the printer is a network printer.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column> 
			
			<column name="PRINTER_PARAMETER">
				<description>Optional parameters for the print processor.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column> 
			
			<column name="PRINTER_PORT_NAME">
				<description>Port that is used to transmit data to a printer. If a printer is connected to more than one port, the names of each port are separated by commas.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>  
			
			<column name="PRINTER_SERVER_NAME">
				<description>Name of the server that controls the printer. If this string is NULL, the printer is controlled locally.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>
			
			<column name="PRINTER_SHARED">
				<description>If TRUE, the printer is available as a shared network resource.</description>
			    <data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>
			
			<column name="PRINTER_SHARE_NAME">
				<description>Share name of the Windows-based printing device.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>
			
			<column name="PRINTER_STATE">
				<description>This property is obsolete. In place of this property, use PrinterStatus.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>
			
			<column name="PRINTER_STATUS">
				<description>Status information for a printer that is different from information specified in the logical device Availability property.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>
			
			<column name="PRINTER_STATUS_VALUE">
				<description>Status of the printers is displayed</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>
			
			<column name="PRINTER_SYSTEM_NAME">
				<description>Name of the scoping system.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>
			
			<column name="WORK_OFFLINE">
				<description>If TRUE, you can queue print jobs on the computer when the printer is offline.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>
			
			<column name="PRINT_PROCESSOR_NAME">
				<description>Name of the print spooler that handles print jobs.</description>
				<data-type>NCHAR</data-type>
                <max-size>255</max-size> 
            </column>

        </columns>
        <primary-key name="CurrentPrintersList_PK">
           
            <primary-key-column>RESOURCE_ID</primary-key-column>
			<primary-key-column>PRINTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CurrentPrintersList_FK" reference-table-name="ManagedComputer" 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="WindowsLiveTools">
        <description>Lists the computers of the windows live tools</description>
        <columns>
            <column name="RESOURCE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

            <column name="LIVECONNECT_ID">
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>WindowsLiveTools.ID</generator-name>
                </uniquevalue-generation>
            </column>

            <column name="LAST_ACCESS_TIME">
                <description>Last access time of the System Manager tool.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
            </column>

            <column name="INITIATED_BY">
                <description>Initiator of the System Manager.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>
            <column name="STATUS">
                <description>Status of the System Manager</description>
                <data-type>INTEGER</data-type>
                <nullable>true</nullable>
            </column>

            <column name="REMARKS">
                <description>Any specific remarks regarding System Manager status.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
            </column>
            <column name="REMARKS_ARGS">
                <description>Arguments for remarks column to be passed for I18N Key.</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>

        </columns>
        <primary-key name="WindowsLiveTools_PK">
            <primary-key-column>LIVECONNECT_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="WindowsLiveTools_FK" reference-table-name="ManagedComputer" 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="LiveToolsErrorCode">
        <description>Lists the error code of the Windows Live Tools</description>
        <columns>
            <column name="RESOURCE_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>

            <column name="ERROR_CODE">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="LiveToolsErrorCode_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LiveToolsErrorCode_FK" reference-table-name="ManagedComputer" 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>
	
        <!-- Remote Event Viewer Tables Starts -->
	<table name="RemoteEventLogs">
        <description>List the event logs details of the remote computer</description>
        <columns>
            <column name="RESOURCE_ID">
                <description>It is used to identify the system's processes</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="COMPUTER_NAME">
                <description>It specifies the comptuer name</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="EVENT_ID">
                <description>Identifier of the events of the machine</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="EVENT_LEVEL">
                <description>It specifies the event level - info/warning/error</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="EVENT_MESSAGE">
                <description>It specifies the event message</description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>                
                <nullable>false</nullable>
            </column>
            <column name="EVENT_OPCODE">
                <description>It specifies the event type</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="EVENT_TASK_CATEGORY">
                <description>It specifies the event category</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="EVENT_SOURCE">
                <description>It specifies which application logs</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>                
                <nullable>false</nullable>
            </column>
            <column name="TIME_LOGGED">
                <description>It specifies the event log date and time</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="USER_NAME">
                <description>It specifies the user name for that event log</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>                
                <nullable>false</nullable>
            </column>    
            <column name="CORRELATION_ID">
                <description>It specifies the user name for that event log</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>	
            <column name="REL_CORRELATION_ID">
                <description>It specifies the user name for that event log</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>		
            <column name="THREAD_ID">
                <description>It specifies the user name for that event log</description>
                 <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="PROCESS_ID">
                <description>It specifies the user name for that event log</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="LOG_TYPE">
                <description>It specifies the user name for that event log</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="KEYWORD">
                <description>It specifies the user name for that event log</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>			           
            <column name="INDEX_ID">
                <description>It specifies the index id of that event log</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>                            
            </column>
             <column name="SESSION_ID">
                 <description>It specifies the session id of that event log</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value> 
                <nullable>false</nullable>                               
            </column>
        </columns>
        <primary-key name="RemoteEventLogs_PK">
            <primary-key-column>SESSION_ID</primary-key-column>            
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>INDEX_ID</primary-key-column>
            <primary-key-column>LOG_TYPE</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RemoteEventLogs_FK" reference-table-name="ManagedComputer" 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>
    
    <!-- Remote Event Viewer Tables Ends -->
    
    <!-- Remote Registry Tables Starts -->

     <table name="RemoteRegistryKeyValue">
        <description>List the Registry Key value details of the remote computer</description>
        <columns>
            <column name="RESOURCE_ID">
                <description>It is used to identify the resource id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="UNIQUE_ID">
                 <description>It is used to identify the Unique Entry</description>
                 <data-type>INTEGER</data-type>
                 <nullable>false</nullable>
                 <uniquevalue-generation>
                    <generator-name>RemoteRegistryKeyValue.UNIQUE_ID</generator-name>
                 </uniquevalue-generation>
             </column>
             <column name="SESSION_ID">
                <description>It specifies the session id of that Registry Key data values</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
             </column>
             <column name="KEY_PATH">
                <description>It specifies the Key Path</description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>
                <nullable>false</nullable>
            </column>
            <column name="VALUE_NAME">
                <description>It specifies the Name of the Registry key value name</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
            </column>
             <column name="VALUE_TYPE">
                <description>It specifies the type of the Registry Key value </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
            </column>
            <column name="VALUE_DATA">
                <description>It specifies the value of the data</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="RemoteRegistryKeyValue_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>UNIQUE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RemoteRegistryKeyValue_FK" reference-table-name="ManagedComputer" 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>

    <!-- Remote Registry Table Ends -->

    <!-- System Manager Tools History Starts -->

     <table name="SystemManagerExportHistory">
        <description>Stores the history of the File Export details</description>
        <columns>
            <column name="RESOURCE_ID">
                <description>It is used to identify the resource id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
             <column name="CUSTOMER_ID">
                <description>It is used to identify the customer id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="UNIQUE_ID">
                <description>It is used to identify the Unique Entry</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                   <generator-name>SystemManagerExportHistory.UNIQUE_ID</generator-name>
                </uniquevalue-generation>
             </column>
             <column name="SESSION_ID">
                <description>It specifies the session id of that Exported data</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
             </column>
             <column name="DC_USER_NAME">
                <description>Exported User ID</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
             </column>
             <column name="TOOL_NAME">
                <description>Specifies the export details of the tool</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
            </column>
            <column name="EXPORT_TIME">
                <description>Date and time of the file exported.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXPORT_PATH">
                <description>It specifies the export path of the file exported</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
            </column>
             <column name="FILE_LOCATION">
                <description>It specifies location of file stored</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
            </column>
            <column name="FILE_SIZE">
                <description>It specifies the size of the file exported</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
             <column name="FILE_STATUS">
                <description>It specifies status of the file exported 0-failed/1-success/2-progress</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="SystemManagerExportHistory_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>UNIQUE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SystemManagerExportHistory_FK" reference-table-name="ManagedComputer" 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="SystemManagerExportHistory_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>

    <!-- System Manager Tools History Ends -->

    <!-- System Manager Settings Starts -->
    <table name="SystemManagerExportSettings">
        <description>Stores the history of the File Export details</description>
        <columns>
             <column name="EXPORT_SETTINGS_ID">
                <description>It is used to identify the Unique Settings ID</description>
                 <data-type>INTEGER</data-type>
		 <nullable>false</nullable>
                 <unique>true</unique>
                 <uniquevalue-generation>
                    <generator-name>SystemManagerExportSettings.EXPORT_SETTINGS_ID</generator-name>
                 </uniquevalue-generation>
            </column>
             <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="IS_MAX_DAYS_ENABLED">
                <description>It is used to identify delete history on max days is enabled or not. 1-Enabled, 0-Disabled</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
             </column>
             <column name="IS_MAX_SPACE_ENABLED">
                <description>It is used to identify delete files based on size. 1-Enabled, 0-Disabled</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
             </column>
            <column name="MAX_SPACE">
                <description>It is used to specify the space allowed to store in GB</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
             </column>
             <column name="NUM_OF_DAYS">
                <description>It is used to specify number of days to maintain history</description>
                <data-type>INTEGER</data-type>
                <default-value>15</default-value>
                <nullable>false</nullable>
             </column>
             <column name="IS_NOTIFY_MAIL">
                <description>It is used to identify whether mail need to send or not</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
             </column>
	     <column name="RECEIVER_MAIL">
                <description>It is used to get mail-id of receiver</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
             </column>
        </columns>
        <primary-key name="SystemManagerExportSettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
			<primary-key-column>EXPORT_SETTINGS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SystemManagerExportSettings_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>
    <!-- System Manager Settings Ends -->


    <!-- Tools Compliance Settings Starts -->
    <table name="ToolsComplianceSettings">
        <description>Stores the history of the File Export details</description>
        <columns>
             <column name="COMP_SETTINGS_ID">
                <description>It is used to identify the Unique Settings ID</description>
                 <data-type>INTEGER</data-type>
		         <nullable>false</nullable>
                 <unique>true</unique>
                 <uniquevalue-generation>
                    <generator-name>ToolsComplianceSettings.COMP_SETTINGS_ID</generator-name>
                 </uniquevalue-generation>
            </column>
             <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="DISABLED_TOOL">
                <description>It is used to identify which tool is disabled</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
             </column>
             <column name="DISABLED_STATUS">
                <description>0-Enabled, 1-Disabled for all, 2-Disabled except admin, 3-Disable Permanently for all, </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
             </column>
        </columns>
        <primary-key name="ToolsComplianceSettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
			<primary-key-column>COMP_SETTINGS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ToolsComplianceSettings_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>
    <!-- Tools Compliance Settings Ends -->

    <!-- Remote File Manager Tables Starts -->
	<table name="RemoteFileDetails">
        <description>List the event logs details of the remote computer</description>
        <columns>
            <column name="FILE_ID">
                <description>Holds unique Id of Files.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>RemoteFileDetails.FILE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>It is used to identify the resource's file</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SESSION_ID">
                <description>It specifies the session id of that file manager</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="FILE_NAME">
                <description>It specifies the file name</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_DIRECTORY">
                <description>Boolean to check whether to check whether directory or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_HIDDEN">
                <description>Boolean to check whether to check whether file is hidden or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="HAS_CHILD">
                <description>Boolean to check whether to files under directory.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_SIZE">
                <description>It specifies the file size in KB</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="ACTUAL_FILE_SIZE">
                <description>It specifies the file size in bytes</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="LAST_WRITE_TIME">
                <description>It specifies last write time</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="CREATION_TIME">
                <description>It specifies the file creation time</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="LAST_ACCESS_TIME">
                <description>It specifies the last access time</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DIRECTORY_PATH">
                <description>It specifies directory path of file</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="RemoteFileDetails_PK">
            <primary-key-column>SESSION_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>FILE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="RemoteFileDetails_FK" reference-table-name="ManagedComputer" 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>

    <!-- Remote File Manager Tables Ends -->


    <table name="USBAlertSettings">
        <description>Table to store the settings for usb alerts</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="USB_ALERT_ENABLED">
                <description>Boolean to check whether to show alert to end user or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="USBAlertSettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="USBAlertSettings_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="USBEndUserAlert">
        <description>Table to store the message to be shown for users</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="ALERT_TITLE">
                <description>Title of the alert window in user side. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ALERT_MESSAGE">
                <description>Message to be shown in user side. </description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
			<column name="USB_NOTIFY_ONCE_ENABLED">
                <description>Boolean to check whether notify once 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="USBEndUserAlert_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="USBEndUserAlert_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="APDTaskToDeployTemplate">
        <description> Relation to the DeploymentSettings and Task. </description>
        <columns>
            <column name="TASK_ID">
                <description>Task Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TEMPLATE_ID">
                <description>Deployment Templates ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="APDTaskToDeployTemplate_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="APDTaskToDeployTemplate_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="APDTaskToDeployTemplate_FK2" reference-table-name="DeploymentTemplates" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CollnToDeployTemplate">
        <description> Relation to the DeploymentSettings and Task. </description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Collection ID from collection table </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TEMPLATE_ID">
                <description>Deployment Templates ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollnToDeployTemplate_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollnToDeployTemplate_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="CollnToDeployTemplate_FK2" reference-table-name="DeploymentTemplates" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CollnToDeploymentType">
        <description> Relation to the DeploymentSettings and Task. </description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Collection ID from collection table </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOYMENT_TYPE">
                <description>Configuration Type 0-Deploy, 1-Publish, 2-DeployAndPublish</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DB_UPDATED_TIME">
                <description>This column will have have the last updated time for Collection records </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CollnToDeploymentType_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CollnToDeploymentType_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="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>CHAR</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>CHAR</data-type>
                    <max-size>250</max-size>
                    <nullable>false</nullable>
                </column>
                <column name="FILE_NAME">
                    <description>Name of the File</description>
                    <data-type>CHAR</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>CHAR</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>
        -->
    <table name="ManagedComputerLiveStatus">
        <description>
            <![CDATA[
		This table will contain the details of computers Live status.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds unique Id of the Resource </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="STATUS_UPDATE_TIME">
                <description>From when the status is contiues</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>Live,Not live or Unknown.</description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ManagedComputerLiveStatus_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ManagedComputerLiveStatus_FK" reference-table-name="ManagedComputer" 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="LiveStatusSettings">
        <description>
            <![CDATA[
		This table will contain the settings for Live status update.
		]]>
        </description>
        <columns>
            <column name="CUSTOMER_ID">
                <description>Holds unique Id of Customer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="IS_LIVESYNC_ENABLE">
                <description>Enable or disable the schedule.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LIVE_SYNC_PERIOD">
                <description>Period to sync the status</description>
                <data-type>BIGINT</data-type>
                <default-value>15</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_SYNC_TIME">
                <description>From when the sync schedule executed</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LiveStatusSettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LiveStatusSettings_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>
	<!--Tables for Live Status Update ends-->
	<table name="DCRebrand">
		<description>
		<![CDATA[
		This table will contain the settings for DC Rebranding.
		]]>
		</description>
		<columns>
         
			<column name="CUSTOMER_ID">
				<description>Holds unique Id of Customer. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>true</unique>
			</column>
			<column name="ICON_PATH">
				<description>Icon path For agent rebranding.</description>
				<data-type>NCHAR</data-type>
				<max-size>250</max-size>
				<nullable>true</nullable>
                                <unique>false</unique>
			</column>
                        <column name="BRAND_TEXT">
                                <description>Brand text for agent rebranding</description>
                                <data-type>NCHAR</data-type>
                                <max-size>250</max-size>
				<nullable>true</nullable>
				<unique>false</unique>
                        </column>
			<column name="IS_REBRANDED">
				<description>REBRANDED or NOT</description>
                                <data-type>BOOLEAN</data-type>
                                <max-size>250</max-size>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
                        <column name="MODIFIEDTIME">
				<description>Holds Last modified time of Agent rebrand </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="IS_FOR_TRAY_ICON">
                <description>Enable/Disable option for tray icon rebrand</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
	
		</columns>
		<primary-key name="DCRebrand_PK">
			<primary-key-column>CUSTOMER_ID</primary-key-column>
		</primary-key>
                <foreign-keys>
                    <foreign-key name="DCRebrand_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>
    <!--Announcement-->
    <table name="AnnouncementToolConfig">
        <description>
            <![CDATA[
  	                         This table used for show announcement tool.
							 ]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id of the configuration data instance.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ANNOUNCEMENT_HEADING">
                <description>Heading of the Announcement</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Body of the Announcement</description>
                <data-type>NCHAR</data-type>
                <max-size>6000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="START_TIME">
                <description>Announcement start time</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="END_TIME">
                <description>Announcement End time </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REPEAT_FREQUENCY">
                <description>No of times Announcement. 1 for single time. 2 for multiple times </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ANNOUNCEMENT_ACTION">
                <description>status of announcemnt.1 for alive, 2 for stop</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REPEAT_DURATION">
                <description>Time difference between two Announcement</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AnnouncementToolConfig_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AnnouncementToolConfig_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>

            <foreign-key name="AnnouncementToolConfig_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="FilterToCustomGroupMap">
        <description>
            <![CDATA[
		This table will hold the mapping between the Filter and selected custom groups in target. This table is used for only technician who mapped with CG (RBCA).
		]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>Filter Id for which the expression is defined.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_RESOURCE_ID">
                <description>Custom group ID</description>
                <data-type>BIGINT</data-type>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FilterToCustomGroupMap_PK">
            <primary-key-column>GROUP_RESOURCE_ID</primary-key-column>
            <primary-key-column>FILTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>

            <foreign-key name="FilterToCustomGroupMap_FK1" reference-table-name="Resource" 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-key name="FilterToCustomGroupMap_FK2" reference-table-name="Filter" 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="FilterToRemoteOfficeMap">
        <description>
            <![CDATA[
		 This table will hold the mapping between the Filter and selected remote office in target. This table is used for only technician who mapped with Remote Office (RBCA).
		 ]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>Filter Id for which the expression is defined.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="BRANCH_OFFICE_ID">
                <description>Remote Office ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FilterToRemoteOfficeMap_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
            <primary-key-column>FILTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>

            <foreign-key name="FilterToRemoteOfficeMap_FK1" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>

            <foreign-key name="FilterToRemoteOfficeMap_FK2" reference-table-name="Filter" 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="InvScanCollectionToAuditRel">
        <description>
            <![CDATA[
			This table holds the collection id of inv scan schedule to audit relation for technician
			]]>
        </description>
        <columns>
            <column name="AUDIT_ID">
                <description>ID for each audit made on the inventory.</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="CONFIG_DATA_ID">
                <description>Config data ID of Inventory scan scheduled for technician</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="InvScanCollectionToAuditRel_PK">
            <primary-key-column>AUDIT_ID</primary-key-column>
            <primary-key-column>TECH_ID</primary-key-column>
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="InvScanCollectionToAuditRel_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-key name="InvScanCollectionToAuditRel_FK3" 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="ResourceActions">
        <description>
            <![CDATA[
  	         This table will contain the ResourceActions details such as patchScan, invScan
  	         ]]>
        </description>
        <columns>
            <column name="RESOURCE_ACTION_ID">
                <description>Holds unique Id of ResourceActions. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>ResourceActions.RESOURCE_ACTION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="ACTION_CATEGORY">
                <description>1-Scan Action, 2-Tools Actions, 3 -Reports Action</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DISPLAY_ORDER">
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ACTION_NAME">
                <description>Name of the Action, Ex: invScan, patchScan </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IMAGE_NAME">
                <description>The image to be used to represent the action. Need to give fullpath</description>
                <data-type>CHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_NAME">
                <description>The display name for the action. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SCRIPT_NAME">
                <description>Name of the script </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ROLE_ID">
                <description>Base role of the action</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="IS_PATCH_EDITION_ACTION">
                <description>Is Patch Edition based tool</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ResourceActions_PK">
            <primary-key-column>RESOURCE_ACTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaRole" name="ResourceActions_FK1">
                <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="ResourceActionShowCrit">
        <description>
            <![CDATA[
  	         This table will contain the Resource action show criteria
  	         ]]>
        </description>
        <columns>
            <column name="RES_ACTION_CRIT_ID">
                <description>Holds unique Id of ResourceActionShowCrit. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <uniquevalue-generation>
                    <generator-name>ResourceActionShowCrit.RES_ACTION_CRIT_ID</generator-name>
                </uniquevalue-generation>
            </column>

            <column name="RESOURCE_ACTION_ID">
                <description>Ref to ResourceActions table RESOURCE_ACTION_ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="LIVE_STATUS">
                <description>1-Live, 2-Down, 3 -Agent Uninstalled</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="PLATFORM_ID">
                <description>0-Common for all,1-Windows, 2-Mac</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="OSFLAVOR_ID">
                <description>OS flavorid, 10000 is comman for all flavores</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ResourceActionShowCrit_PK">
            <primary-key-column>RES_ACTION_CRIT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="ResourceActions" name="ResourceActionShowCrit_FK1">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RESOURCE_ACTION_ID</fk-local-column>
                        <fk-reference-column>RESOURCE_ACTION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SWPkgToFilterExpRel">
        <description>
            <![CDATA[
		DSF 
		]]>
        </description>
        <columns>
            <column name="FILTER_EXPRESSION_ID">
                <description>Id of the filter expr for which this filter component expr is created. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOYMENT_TYPE">
                <description>4 possible values are 1(preInstall), 2(postInstall), 3(preUnInstall), 4(postUnInstall)</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION">
                <description>1(uninstall and proceed installtion), 2(proceed installtion), 3(skip installation), 4(kill process), 5(wait to end process) </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ORDER_OF_DEPLOYMENT">
                <description>Maintains the ordering of criteria</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPkgToFilterExpRel_PK">
            <primary-key-column>FILTER_EXPRESSION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPkgToFilterExpRel_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="SWUninstallDetails">
        <description>
            <![CDATA[

                    ]]>
        </description>
        <columns>
            <column name="SW_UNINSTALL_DETAILS_ID">
                <description>Unique Id for each SWUninstallDetails </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SWUninstallDetails.SW_UNINSTALL_DETAILS_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="FILTER_EXPRESSION_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SW_NAME">
                <description>Software Name for uninstall</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SW_VERSION">
                <description>Software version</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UNINSTALL_STRING">
                <description>Silent switch used to uninstall the software</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SILENT_SWITCH">
                <description>Silent switch used to uninstall the software</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IGNORE_FAILURE">
                <description>Continue main installation even error occurs while uninstall</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWUninstallDetails_PK">
            <primary-key-column>SW_UNINSTALL_DETAILS_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWUninstallDetails_FK"  reference-table-name="FilterExpression" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>FILTER_EXPRESSION_ID</fk-local-column>
                        <fk-reference-column>FILTER_EXPRESSION_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>        
    
<table name="CollnToWOLTaskRel">
		<description><![CDATA[Contains collection and WOL task relation]]> </description>
		<columns>
			<column name="COLLECTION_ID">
				<description>Unique identifier for collection</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
			</column>
			<column name="TASK_ID">
				<description>WOL COnfigured task</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>                       
		</columns>
		<primary-key name="CollnToWOLTaskRel_PK">
			<primary-key-column>COLLECTION_ID</primary-key-column>
			<primary-key-column>TASK_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CollnToWOLTaskRel_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="CollnToWOLTaskRel_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>
	
<!-- Define Target Tables Starts -->
	<table name="DTTargetsList">
    <description>
		<![CDATA[
		This table will contain the details of Define Target Types to be enlisted in UI like Domain, Remote Office, User, Computer, etc.
		]]>
    </description>
    <columns>
        <column name="TARGET_ID">
            <description>Column ID</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
        </column>
        <column name="TARGET_NAME">
            <description>Target type text</description>
            <data-type>NCHAR</data-type>
            <max-size>250</max-size>
            <nullable>false</nullable>
        </column>
        <column name="DISPLAY_NAME_I18N">
            <description>I18N key to display for target type</description>
            <data-type>NCHAR</data-type>
            <max-size>250</max-size>
            <nullable>false</nullable>
        </column>
        <column name="VALUE_BROWSE_TYPE">
            <description>
				<![CDATA[
				How will browse values be displayed for this target type.
				0 - Predefined set of values from DTTargetValues,
				1 - Fetch from DB and display as dropdown,
				2 - Give text suggestion while typing and also provide with browse window
				3 - Show predefined text in read only mode
				4 - Show text box alone
				]]>
            </description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
        </column>
        <column name="GROUP_NAME_I18N">
            <description>optGroup name for the target</description>
            <data-type>NCHAR</data-type>
            <max-size>250</max-size>
            <nullable>true</nullable>
        </column>
		<column name="CONFIG_TYPE">
            <description>Display this target type for Computer Config(1) or User Config(2) or Both(0)</description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
			</column>   
		
			<column name="IS_ENTERPRISE_ONLY">
            <description>
				<![CDATA[
				Specifies if a target is for MSP users or not
				Possible values: 0 - Target can be shown to all license types, 1 - Target is hidden for MSP license
				]]>
            </description>
            <data-type>INTEGER</data-type>
			<default-value>0</default-value>
            <nullable>false</nullable>
        </column>   
		<column name="IS_AD_TARGET">
            <description>
				<![CDATA[
				Specifies if a target is AD realted or not
				Possible values: true - is AD Target, 1 - is Not AD target
				]]>
            </description>
            <data-type>BOOLEAN</data-type>
			<default-value>FALSE</default-value>
            <nullable>false</nullable>
        </column>   
		<column name="ID_TYPE">
            <description>
				<![CDATA[
				Specifies what value is used to uniquely identify the target value. This id will be populated in FitlerComponentValue
				]]>
            </description>
            <data-type>NCHAR</data-type>
            <max-size>250</max-size>
            <nullable>false</nullable>
        </column>   

   </columns>
    <primary-key name="DTTargetsList_PK">
        <primary-key-column>TARGET_ID</primary-key-column>
    </primary-key>
    <unique-keys>
        <unique-key name="DTTargetsList_UK0">
            <unique-key-column>TARGET_NAME</unique-key-column>
        </unique-key>
        <unique-key name="DTTargetsList_UK1">
            <unique-key-column>DISPLAY_NAME_I18N</unique-key-column>
        </unique-key>
    </unique-keys>
</table>


<table name="DTTargetsScope">
    <description>
		<![CDATA[
		This table will contain the details of Define Target Types with scope to be enlisted in UI like Domain, Remote Office, User, Computer, etc.
		]]>
    </description>
    <columns>
		<column name="SCOPE_ID">
            <description>Unique Id for each scope. </description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
            <uniquevalue-generation>
                <generator-name>DTTargetsScope.SCOPE_ID</generator-name>
            </uniquevalue-generation>
        </column>
        <column name="TARGET_ID">
            <description>Column ID</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
        </column>
        <column name="DISPLAY_ORDER">
            <description>Order to display the filter types</description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
        </column>
			<column name="IS_MAIN_TARGET">
            <description>
				<![CDATA[
				Specifies if a target is entry level or refine.
				Possible values: 1 - Displayed in main target section, 0 - Displayed only in refine section based on DTTargetMapping
				]]>
            </description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
		</column>   
		<column name="LOGIN_SCOPE">
            <description>
				<![CDATA[
				Specifies if a target is for admin users only.
				Possible values: 0 - Dsiplayed for all login users, 1 - CG Login, 2 - RO Login, 3 - Admin Login, 4 - CG or RO login
				]]>
            </description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
        </column> 
		<column name="PRODUCT_TYPE">
            <description>
				<![CDATA[
				Specifies the product types
				Possible values: 0 - All editions, 1 - Professional, 2 - Enterprise
				]]>
            </description>
            <data-type>INTEGER</data-type>
			<default-value>0</default-value>
            <nullable>false</nullable>
        </column>
   </columns>
    <primary-key name="DTTargetsScope_PK">
        <primary-key-column>SCOPE_ID</primary-key-column>
    </primary-key>
</table>

<table name="DTTargetValues">
    <description>
		<![CDATA[
		This table will contain values for Target Types whose values are static like OS Version, Processor Architecture etc.
		]]>
    </description>
    <columns>
        <column name="TARGET_ID">
            <description>Column ID</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
        </column>
        <column name="VALUE">
            <description>Class name used in filter.xml</description>
            <data-type>NCHAR</data-type>
            <max-size>250</max-size>
            <nullable>false</nullable>
        </column>
        <column name="GROUP_NAME_I18N">
            <description>Target optGroup if any.</description>
            <data-type>NCHAR</data-type>
            <max-size>250</max-size>
            <nullable>true</nullable>
            <unique>false</unique>
        </column>
        <column name="DISPLAY_NAME_I18N">
            <description>Target value text</description>
            <data-type>NCHAR</data-type>
            <max-size>250</max-size>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="PLATFORM_ID">
            <description>Whether the target value is for Windows or Mac</description>
            <data-type>INTEGER</data-type>
            <default-value>1</default-value>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
    </columns>
    <primary-key name="DTTargetValues_PK">
        <primary-key-column>TARGET_ID</primary-key-column>
        <primary-key-column>VALUE</primary-key-column>
        <primary-key-column>PLATFORM_ID</primary-key-column>
    </primary-key>
    <foreign-keys>
        <foreign-key name="DTTargetValues_FK" reference-table-name="DTTargetsList" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>TARGET_ID</fk-local-column>
                    <fk-reference-column>TARGET_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>
</table>


<table name="DTRefineTargetMapping">
    <description>
		<![CDATA[
		This table will contain the details of Define Target Types to be to be listed in refine section based on main target type selection.
		]]>
    </description>
    <columns>
        <column name="REFINE_TARGET_ID">
            <description>Id of main target referring to DefineTargetTypes table</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
        </column>
        <column name="PARENT_TARGET_ID">
            <description>Id of main target from DTTargetsList which says if this column is to be displayed or not</description>
            <data-type>BIGINT</data-type>
            <nullable>true</nullable>
        </column>
        <column name="REFINE_TYPE">
            <description>Says if the refine type is All(0), Admin All(1), Admin Include(2), Admin exclude(3), RBCA All(4), RBCA Include(5), RBCA Exclude(6)  </description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
        </column>
		<column name="PRODUCT_TYPE">
            <description>
				<![CDATA[
				Specifies the product types
				Possible values: 0 - All editions, 1 - Professional, 2 - Enterprise
				]]>
            </description>
            <data-type>INTEGER</data-type>
			<default-value>0</default-value>
            <nullable>false</nullable>
        </column>

    </columns>

    <primary-key name="DTRefineTargetMapping_PK">
        <primary-key-column>REFINE_TARGET_ID</primary-key-column>
        <primary-key-column>PARENT_TARGET_ID</primary-key-column>
    </primary-key>

    <foreign-keys>
        <foreign-key name="DTRefineTargetMapping_FK0" reference-table-name="DTTargetsList" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>REFINE_TARGET_ID</fk-local-column>
                    <fk-reference-column>TARGET_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
        <foreign-key name="DTRefineTargetMapping_FK1" reference-table-name="DTTargetsList" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>PARENT_TARGET_ID</fk-local-column>
                    <fk-reference-column>TARGET_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
    </foreign-keys>
</table>

<!-- Define Target Tables Ends -->

<!-- New Tables for User Logon Reports Data - Starts Here -->
	<table name="UserLogonInfo">
  		<description>
    	<![CDATA[
	   		This table will contain the user logon details along with the computer details where the user logging in.
      	 ]]>
       	</description>
       	<columns>
			<column name="RECORD_ID">
				<description>Uinque Id generated for each record inserted in this table. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			    <uniquevalue-generation>
					<generator-name>UserLogonInfo.RECORD_ID</generator-name>
            	</uniquevalue-generation>
			</column>
			<column name="USER_RESOURCE_ID">
				<description>Unique Id of the user. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COMPUTER_RESOURCE_ID">
				<description>Unique Id of the computer in which the user is log in. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGON_TIME">
				<description>Logon time of the user in the specific computer. </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGOFF_TIME">
				<description>Logoff time for the user. </description>
				<data-type>BIGINT</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGON_TIME_COMPONENT">
				<description>Logon time in minutes of the user in the specific computer. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGOFF_TIME_COMPONENT">
				<description>Logoff time in miuters for the user. </description>
				<data-type>INTEGER</data-type>
				<default-value>0</default-value>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
       	<primary-key name="UserLogonInfo_PK">
           <primary-key-column>RECORD_ID</primary-key-column>
       	</primary-key>
		<foreign-keys>
			<foreign-key name="UserLogonInfo_User_FK" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_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="UserLogonInfo_Comp_FK" reference-table-name="ManagedComputer" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COMPUTER_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="CurrentComputerLogon">
		<description>
			<![CDATA[
			This table will contain the Latest user logon details.
			]]>
		</description>
		<columns>
			<column name="COMPUTER_RESOURCE_ID">
				<description>Unique Id of the computer in which the user is log in. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RECORD_ID">
				<description>Unique Id of the record in the UserLogonInfo table. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGON_FREQUENCY">
				<description>Number of Logins per day in the computer. </description>
				<data-type>FLOAT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CurrentComputerLogon_PK">
			<primary-key-column>COMPUTER_RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CurrCompLogon_Comp_FK" reference-table-name="ManagedComputer" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COMPUTER_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="CurrCompLogon_Record_FK" reference-table-name="UserLogonInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RECORD_ID</fk-local-column>
						<fk-reference-column>RECORD_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

	<table name="CurrentUserLogonInfo">
		<description>
			<![CDATA[
			This table will contain the Latest user logon details.
			]]>
		</description>
		<columns>
			<column name="USER_RESOURCE_ID">
				<description>Unique Id of the user. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="COMPUTER_RESOURCE_ID">
				<description>Unique Id of the computer in which the user is log in. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RECORD_ID">
				<description>Uinque Id of the record in the UserLogonInfo table. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CurrentUserLogonInfo_PK">
			<primary-key-column>USER_RESOURCE_ID</primary-key-column>
			<primary-key-column>COMPUTER_RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CurrUserLogonInfo_User_FK" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_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="CurrUserLogonInfo_Comp_FK" reference-table-name="ManagedComputer" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>COMPUTER_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="CurrUserLogonInfo_Record_FK" reference-table-name="UserLogonInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RECORD_ID</fk-local-column>
						<fk-reference-column>RECORD_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

	<table name="CurrentUserLogon">
		<description>
			<![CDATA[
			This table will contain the Latest user logon details.
			]]>
		</description>
		<columns>
			<column name="USER_RESOURCE_ID">
				<description>Unique Id of the user. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RECORD_ID">
				<description>Uinque Id of the record in the UserLogonInfo table. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="LOGON_FREQUENCY">
				<description>Number of Logins per day by the user. </description>
				<data-type>FLOAT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="CurrentUserLogon_PK">
			<primary-key-column>USER_RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="CurrUserLogon_User_FK" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_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="CurrUserLogon_Record_FK" reference-table-name="UserLogonInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RECORD_ID</fk-local-column>
						<fk-reference-column>RECORD_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>

	<table name="UserLastLogoffRecordInfo">
		<description>
			<![CDATA[
			This table will contain the Latest user logon details.
			]]>
		</description>
		<columns>
			<column name="USER_RESOURCE_ID">
				<description>Unique Id of the user. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="RECORD_ID">
				<description>Uinque Id of the record in the UserLogonInfo table. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="UserLastLogoffRecordInfo_PK1">
			<primary-key-column>USER_RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="UserLastLogoffRecordInfo_FK1" reference-table-name="Resource" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>USER_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="UserLastLogoffRecordInfo_FK2" reference-table-name="UserLogonInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RECORD_ID</fk-local-column>
						<fk-reference-column>RECORD_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>
	</table>


	<table name="UserLogonRecordDCRel">
		<description>
			<![CDATA[
			This table will contain the data of user logon/logoff record to domain controller.
			]]>
		</description>
		<columns>
			<column name="RECORD_ID">
				<description>Unique Id of the record. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="DC_RESOURCE_ID">
				<description>Unique Id of the Domain Controller through which the user is log in. </description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="UserLogonRecordDCRel_PK">
			<primary-key-column>RECORD_ID</primary-key-column>
			<primary-key-column>DC_RESOURCE_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="UserLogonRecordDCRel_Record_FK" reference-table-name="UserLogonInfo" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>RECORD_ID</fk-local-column>
						<fk-reference-column>RECORD_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
			<foreign-key name="UserLogonRecordDCRel_DC_FK" reference-table-name="ADComputer" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>DC_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>
	
    <!-- New Tables for User Logon Reports Data - Ends Here -->
    
    <table name="FilterToCustomGroupRel">
        <description>
            <![CDATA[
		A Collection must be associated with a Filter to find the exact targets for which the configurations to be applied. This table captures the relation between the Collection and the Filter. Each Collection can be associated with one or more filters which inturn captures any kind of complex criteria.
		]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>Filter Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_RESOURCE_ID">
                <description>Collection Id </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>            
        </columns>
        <primary-key name="FilterToCustomGroupRel_PK">
            <primary-key-column>FILTER_ID</primary-key-column>
        </primary-key>

        <foreign-keys>
            <foreign-key name="FilterToCustomGroupRel_FK1" reference-table-name="Filter" 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="SWPackageCollection">
        <description>
            <![CDATA[
			This table will hold the collection IDs for software deployment ssp
		]]>
        </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="PACKAGE_COUNT">
                <description> No. of packages mapped in the group</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
            </column>
        </columns>
        <primary-key name="SWPackageCollection_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPackageCollection_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>

    <!-- Tables related to Application Control -->
    <table name="ApplicationDetails">
        <description>Table to store the Application details</description>
        <columns>
            <column name="APP_ID">
                <description>Unique ID for each Application</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>ApplicationDetails.APP_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="APP_NAME">
                <description>Name of the application given by the user.</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APP_VERSION">
                <description>Version of the application given by the user.</description>
                <data-type>NCHAR</data-type>
                <max-size>20</max-size>
                <default-value>-</default-value>
                <unique>false</unique>
            </column>
            <column name="BLOCK_METHOD">
                <description> Hash Rule -> 2/ Path Rule -> 1</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_MODIFIED_TIME">
                <description>The time at which the rule was modified last.</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <default-value>-</default-value>
                <unique>false</unique>
            </column>

            <column name="EXEC_NAME">
                <description>Name of the executable.</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <unique>false</unique>
            </column>
            <column name="MD5_HASH">
                <description>Calculated MD5 hash</description>
                <data-type>NCHAR</data-type>
                <max-size>32</max-size>
                <unique>false</unique>
            </column>
            <column name="SHA256_HASH">
                <description>Calculated SHA256 hash</description>
                <data-type>NCHAR</data-type>
                <max-size>64</max-size>
                <unique>false</unique>
            </column>
            <column name="FILE_SIZE">
                <description>Size of the executable file</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ADDED_USER_ID">
                <description>Unique ID of the user who added the rule</description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
            <column name="ADDED_TIME">
                <description>Time at which the application rule was added</description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
            <column name="LAST_MODIFIED_USER_ID">
                <description>ID of the user who modified it (last).</description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
            <column name="LAST_MODIFIED_TIME_IN_MS">
                <description>The time at which the rule was modified last.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ApplicationDetails_PK">
            <primary-key-column>APP_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="PolicyDetails">
        <description>Table to store Policy details</description>
        <columns>
            <column name="POLICY_ID">
                <description>Unique ID for each Policy</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="APP_COUNT">
                <description> No. of applications in the policy</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
            </column>
            <column name="ADDED_USER_ID">
                <description>Unique ID of the user who added the Policy</description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
            <column name="ADDED_TIME">
                <description>Time at which the application rule was added</description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
            <column name="LAST_MODIFIED_TIME">
                <description>Time at which the application rule was added</description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
            <column name="LAST_MODIFIED_USER_ID">
                <description>ID of the user who modified it (last).</description>
                <data-type>BIGINT</data-type>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Remarks of the Policy</description>
                <data-type>NCHAR</data-type>
                <max-size>300</max-size>
            </column>
        </columns>
        <primary-key name="PolicyDetails_PK">
            <primary-key-column>POLICY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PolicyDetails_FK" reference-table-name="ConfigData">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>POLICY_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="PolicyToApplicationRel">
        <description>Table to store the Policy to Application Relation</description>
        <columns>
            <column name="POLICY_ID">
                <description>Policy ID of the Policy</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APP_ID">
                <description>APP ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PolicyToApplicationRel_PK">
            <primary-key-column>POLICY_ID</primary-key-column>
            <primary-key-column>APP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>

            <foreign-key name="PolicyToApplicationRel_FK1" reference-table-name="PolicyDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>POLICY_ID</fk-local-column>
                        <fk-reference-column>POLICY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>

            <foreign-key name="PolicyToApplicationRel_FK2" reference-table-name="ApplicationDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>APP_ID</fk-local-column>
                        <fk-reference-column>APP_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
  <table name="AgentMetaData">
         <description>
            <![CDATA[
                     This table will hold the data related to the agent related.
              ]]>
         </description>
        <columns>
            <column name="DATA_ID">
                <description>Unique Id for each agent Data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AgentMetaData.DATA_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="DATA_KEY">
                <description>Unique key for agent data.</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_VALUE">
                <description>value of the agent key.</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AgentMetaData_PK">
            <primary-key-column>DATA_ID</primary-key-column>
        </primary-key>
    </table>
    
     <table name="ResourceToDotNetInfo">
         <description>
            <![CDATA[
                     This table will hold the version details of the Microsoft .Net Installation
              ]]>
         </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds unique Id of the Resource </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAJOR_VERSION">
                <description>Major version of Microsoft dot net</description>
                <data-type>FLOAT</data-type>
                <default-value>0.0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MINOR_VERSION">
                <description>Minorr version of Microsoft dot net</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
             <column name="COMPLETE_VERSION">
                <description>Version of the .Net </description>
                <data-type>CHAR</data-type>
                <max-size>25</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ResourceToDotNetInfo_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceToDotNetInfo_FK" reference-table-name="ManagedComputer" 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="SSPSettings">
        <description>Table to store the settings for Self Service Portal</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="ENABLE_DESKTOP_SHORTCUT">
                <description>Boolean to check whether to show desktop shortcut to end user or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_STARTMENU_SHORTCUT">
                <description>Boolean to check whether to show start menu shortcut to end user or not. </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_DOTNET_FOR_SERVER">
                <description>Boolean to check whether to enable dotnet download for server os.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHORTCUT_ICON_PATH">
                <description>Icon path For agent rebranding.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SHORTCUT_ICON_NAME">
                <description>Brand text for agent rebranding</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_ICON_REBRANDED">
                <description>REBRANDED or NOT</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ICON_MODIFIEDTIME">
                <description>Holds Last modified time of Agent rebrand </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SSPSettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SSPSettings_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="SWSSPSettings">
        <description>Table to store the software deployment related settings for Self Service Portal</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="AUTOMATE_FREE_SW">
                <description>check whether to automate free software packages to publish without approval. 0-Disabled 1-Enabled </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AUTOMATE_COMMERCIAL_SW">
                <description>check whether to automate commercial software packages to publish with approval. 0-Disabled 1-Enabled </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SDP_REQUEST_TEMPLATE">
                <description>SDP Request template for which the ticket will be raised .</description>
                <data-type>NCHAR</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ENABLE_TICKET_AUTOCLOSE">
                <description>Whether to Enable the ticket autoclose once it got approved. 0-Disabled 1-Enabled</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SDP_PING_INTERVAL_MINS">
                <description>Time interval to ping SDP for the status of the ticket in minutes.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>           
        </columns>
        <primary-key name="SWSSPSettings_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWSSPSettings_FK1" reference-table-name="SSPSettings" 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="SWPkgLicenseDetails">
        <description>
            <![CDATA[
		This table contains the parameters related to software package license option.
		]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_LICENSE_TYPE">
                <description>Is the software is free or commercial,0 for unidentified, 1 for commercial, 2 for free</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>  
        </columns>
        <primary-key name="SWPkgLicenseDetails_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPkgLicenseDetails_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    
    <table name="SWPkgResourceReqMap">
        <description>
            <![CDATA[
		This table contains the parameters related to sw packages that are reqested from agent portal for approval
		]]>
        </description>
        <columns>
            <column name="RESOURCE_REQUEST_ID">
                 <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SWPkgResourceReqMap.RESOURCE_REQUEST_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>Unique Id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_RESOURCE_ID">
                <description>User id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
             <column name="CONFIG_TYPE">
                <description>Type of Package published to the group, one of the options from Computer(1), User(2). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
             <column name="REASON">
                <description>Reason for requesting approval for the packages </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_REQUESTED_TIME">
                <description>Time at which the resource has been created. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERVER_POST_TIME">
                <description>Time at which the resource has been created. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REQUEST_STATUS">
                <description>Will contain the status of the requested ticket, 0 for Sucess and 1 for Failed. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPkgResourceReqMap_PK">
            <primary-key-column>RESOURCE_REQUEST_ID</primary-key-column>
        </primary-key>        
    </table>
    
    <table name="SWPkgSDPReqMap">
        <description>
            <![CDATA[
		This table contains the parameters related to sw packages that are reqested SDP for approval
		]]>
        </description>
        <columns>
            <column name="RESOURCE_REQUEST_ID">
                <description>Unique Id of the each request </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
              <column name="SDP_REQUEST_ID">
                <description>Unique Id of each ticket raised in SDP.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
             <column name="APPROVAL_STATUS">
                <description>Will contain the status of the requested ticket, 0 for Requested and 1 - Pending Approval , 4 - Approved , 5-Denied (skipped to 4 and 5 as it is easy to handle in agent). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESPONDED_TIME">
                <description>Time at which the approval status has been received. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
              <column name="TICKET_STATUS">
                <description>Will contain the status of the requested ticket, 0 for Open and 1 - Closed  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPkgSDPReqMap_PK">
            <primary-key-column>RESOURCE_REQUEST_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPkgSDPReqMap_FK" reference-table-name="SWPkgResourceReqMap" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>RESOURCE_REQUEST_ID</fk-local-column>
                        <fk-reference-column>RESOURCE_REQUEST_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    
    <!-- Tables starts for DCQueueSDPInfo -->
    <table name="DCQueueSDPReqInfo">
        <description>
			<![CDATA[
			This table holds the information about the queue details for sdp request from agent.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueSDPReqInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. Example Power Update, Refresh Update, etc</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is
                    present in memory and DB. The row is deleted when the data is populated in DB.
                </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>				
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueSDPReqInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <!-- Tables ends for DCQueueSDPReqInfo -->    
    <!--Tables For SoM Dashboard-->
    <table name="RetiredComputer">
        <description>
            <![CDATA[This table will contain the details of all Retired computers from the SoM.]]>
        </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="DOMAIN_NETBIOS_NAME">
                <description>Domain name to which the computer belongs. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RETIRED_TIME">
                <description>Time at which the computer is Retired. </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_ID">
                <description>Id of User who retired the Resource</description>
                <data-type>BIGINT</data-type>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="MODE">
                <description>Mode by which the computer was retired</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="RetiredComputer_PK">

            <primary-key-column>RESOURCE_ID</primary-key-column>

        </primary-key>
        <foreign-keys>
            <foreign-key name="RetiredComputer_FK" 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>
            </foreign-key>
            <foreign-key name="RetiredComputer_FK2" 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="SoMPageSummary">
        <description><![CDATA[Its Contains  SoM summary details]]></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>SoMPageSummary.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="ROLE_ID">
                <description>Its taken from AAARole</description>
                <data-type>BIGINT</data-type>
                <nullable>false</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="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="SoMPageSummary_PK">
            <primary-key-column>SUMMARY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SoMPageSummary_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="SoMSummaryScopeMapping">
        <description><![CDATA[This table shows user&role relationship ]]>
        </description>
        <columns>
            <column name="SUMMARY_ID">
                <description> its refer from UMRole</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SCOPE"><!--Refer to the AaaLogin Extn table..-->
                <description>0-All computer,1- unique CG,2-Remote off </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SoMSummaryScopeMapping_PK">
            <primary-key-column>SUMMARY_ID</primary-key-column>
            <primary-key-column>SCOPE</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="SoMPageSummary" name="SoMSummaryScopeMapping_FK1" 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="UserSoMSummaryMapping">
        <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="SUMMARY_ID">
                <description> its refer from SoMPageSummary</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_ORDER">
                <description> To maintain drag and drop</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="UserSoMSummaryMapping_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
            <primary-key-column>SUMMARY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="UserSoMSummaryMapping_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="SoMPageSummary" name="UserSoMSummaryMapping_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="PackageInfoFromAgent">
        <description>
            <![CDATA[
	   		This table will contain the dependency package details as posted by the agent. It has the complete dependency details & the dependency to patch relation. It is dummy & used only to divide the data into corresponding sub-tables.
      	 ]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Id of the Dependency Package. Currently it is a dummy entry. Kept so that it can be reused.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_NAME">
                <description>Name of the dependency package.</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PATCH_ID">
                <description>Id of the Patch for which this is a dependency.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRODUCT_ID">
                <description>The OS and architecture to which this package belongs.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="URL">
                <description>URL of the dependency.</description>
                <data-type>CHAR</data-type>
                <max-size>300</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SIZE">
                <description>Size of the package in bytes.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHECKSUM">
                <description>Checksum of the package.</description>
                <data-type>CHAR</data-type>
                <max-size>80</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHECKSUM_TYPE">
                <description>Checksum type of the package.</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>MD5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FLAVOR_ID">
                <description>4-Ubuntu,8-Debian and etc</description>
                 <data-type>INTEGER</data-type>
                <default-value>4</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PackageInfoFromAgent_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        
    </table>

    <!-- Branch office to credential mapping relation-->
    <table name="BranchOfficeCredentialMapping">
        <description>
            <![CDATA[
			This table contains the branch / resource members relationship.
			]]>
        </description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Branch office id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="CREDENTIAL_UUID">
                <description>Credential uuid. </description>
                <data-type>CHAR</data-type>
				<max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_ID">
                <description>Credential id. </description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <!-- For current release, this column will not be populated
            <column name="SCOPE">
                <description>Service scope</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>-->
        </columns>
        <primary-key name="BranchOfficeCredentialMapping_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
            <primary-key-column>CREDENTIAL_UUID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchOfficeCredentialMapping_BID_FK" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="BranchOfficeCredentialMapping_CID_FK" reference-table-name="Credential" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CREDENTIAL_UUID</fk-local-column>
                        <fk-reference-column>CREDENTIAL_UUID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="SoMTaskToResourceRel">
        <description>
            <![CDATA[
			This table contains the relation between taskdetails and resources scheduled in wakeOnLan.
			]]>
        </description>
        <columns>
            <column name="TASK_ID">
                <description>Task id for SoM Task</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_ID">
                <description>Id for resources</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SoMTaskToResourceRel_PK">
            <primary-key-column>TASK_ID</primary-key-column>
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SoMTaskToResourceRel_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="SoMTaskToResourceRel_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>

    <table name="BranchSelectedComputer">
        <description>
            <![CDATA[
			This table contains the relation between taskdetails and resources scheduled in wakeOnLan.
			]]>
        </description>
        <columns>
            <column name="SELECTED_COMPUTER_ID">
                <description>Holds unique Id generated for each selected computer before adding to managed computer list. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>BranchSelectedComputer.SELECTED_COMPUTER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="COMPUTER_NAME">
                <description>selected computer name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTAINER_NAME">
                <description>Container name (domain/workgroup name) in which the computer belongs. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERVICE_ID">
                <description>Service ID, this will be used to determine the branch office </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALLATION_STATUS">
                <description>Status of the agent installation. Default value is 21 (Agent Yet To Install) </description>
                <data-type>INTEGER</data-type>
                <default-value>21</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FULL_NAME">
                <description>Full name of the computer. Introduced to store the original computer name which solves the 15 characters trim problem by AD.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_PLATFORM">
                <description>OS platform of computer.1-windows,2-mac,3-linux</description>
                <data-type>INTEGER</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="BranchSelectedComputer_PK">
            <primary-key-column>SELECTED_COMPUTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchSelectedComputer_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="DCSpiceworksUserMapping">
        <description><![CDATA[Contains the Method details]]> </description>
        <columns>
            <column name="LOGIN_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SPICE_USER_NAME">
                <description>E-Mail ID of spiceworks User</description>
                <data-type>NCHAR</data-type>
				<max-size>250</max-size>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DCSpiceworksUserMapping_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="DCSpiceworksUserMapping_FK1">
                <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="DCZendeskUserMapping">
        <description><![CDATA[Contains the Method details]]> </description>
        <columns>
            <column name="LOGIN_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ZENDESK_USER_ID">
                <description>Unique Id of Zendesk User</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
			<column name="ZENDESK_MAPPEDBY_ID">
                <description>Id of Zendesk User performing user mapping</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DCZendeskUserMapping_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="AaaLogin" name="DCZendeskUserMapping_FK1">
                <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="ComputerLimitToCustomerMapping">
        <description>
            <![CDATA[
                     Number of computers that a customer can manage
              ]]>
        </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="NO_OF_COMPUTERS">
                <description>Number of computers allocated for the customer </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ComputerLimitToCustomerMapping_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ComputerLimitToCustomerMapping_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="DCSDPUserMapping">
        <description>
            <![CDATA[
        This table is to used to maintain last logon user of the computer.
        ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique id for each Resource.</description>
                <data-type>BIGINT</data-type>
            </column>
            
            <column name="LAST_LOGGED_ON_USER">
                <description>Actively Users who have been logged on to this computer</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_DATA_POSTED">
                <description>Maintains the status of the last data that is posted.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>

            <column name="POSTED_TIME">
                <description>The time at which the process is started.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
            </column>

</columns>
 <primary-key name="DCSDPUserMapping_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
       
</table>
<table name="DCSNOWUserMapping">
        <description>
            <![CDATA[
        This table is to used to maintain last logon user of the computer.
        ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique id for each Resource.</description>
                <data-type>BIGINT</data-type>
            </column>

            <column name="LAST_LOGGED_ON_USER">
                <description>Actively Users who have been logged on to this computer</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_DATA_POSTED">
                <description>Maintains the status of the last data that is posted.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>

            <column name="POSTED_TIME">
                <description>The time at which the process is started.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
            </column>

</columns>
 <primary-key name="DCSNOWUserMapping_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>

		<foreign-keys>
			<foreign-key name="DCSNOWUserMapping_FK" reference-table-name="ManagedComputer" 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="DCSNOWUserDetails">
        <description>
            <![CDATA[
        This table is to used to maintain ServiceNow user details.
        ]]>
        </description>
        <columns>
            <column name="SYS_ID">
                <description>Unique id for each user.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
            </column>

            <column name="USERNAME">
                <description>Servicenow user name</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

          <column name="MODIFY_TIME">
                <description>The time at which the user name is modified</description>
                 <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
            </column>


</columns>
 <primary-key name="DCSNOWUserDetails_PK">
            <primary-key-column>SYS_ID</primary-key-column>
        </primary-key>

</table>
    <table name="SDPDCRequestMapping">
        <description>
            <![CDATA[
		This table contains the parameters related to SDP approval requests.
		]]>
        </description>
        <columns>
            <column name="REQUEST_MAPPING_ID">
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SDPDCRequestMapping.REQUEST_MAPPING_ID</generator-name>
                </uniquevalue-generation>
             </column>
            <column name="SDP_REQUEST_ID">
                <description>Unique Id of each ticket raised in SDP.</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="APPROVAL_STATUS">
                <description>Will contain the status of the requested ticket, 0 for Requested and 1 - Pending Approval , 4 - Approved , 5-Denied (skipped to 4 and 5 as it is easy to handle in agent). </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="TICKET_STATUS">
                <description>Will contain the status of the requested ticket, 0 for Open and 1 - Closed  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="REMARKS">
                <description>Message to user about ticket</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="SDPDCRequestMapping_PK">
            <primary-key-column>REQUEST_MAPPING_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="PendingDataPostingtoSDP">
        <description>
            <![CDATA[
        This table is to used to post the pending data to SDP.
        ]]>
        </description>
        <columns>
            <column name="TASK_ID">
               <description>Pending Task ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
               </column>
            <column name="TASKNAME">
                <description>Maintains the pending Taskname</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
           </column>

            <column name="PENDINGCOUNT">
                <description>Count which is not send to SDP.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
            </column>

</columns>
 <primary-key name="PendingDataPostingtoSDP_PK">
            <primary-key-column>TASK_ID</primary-key-column>
        </primary-key>

</table>

<table name="METrackManagedComputer">
        <description><![CDATA[Contains the Method details]]> </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Resource ID of the managed computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="INSTALLATION_STATUS">
                <description>Status of the agent installation. Default value is 21 (Agent Yet To Install) </description>
                <data-type>INTEGER</data-type>
                <default-value>21</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ERROR_CODE">
                <description>Error Code for this resource ID</description>
                <data-type>INTEGER</data-type>
                <nullable>true</nullable>
            </column>
            <column name="INSTALL_TYPE">
                <description>Whether the type of installation is WAN or LAN</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="LAST_UPDATED_TIME">
                <description>ME Tracking last updated time..</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="METrackManagedComputer_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="METrackManagedComputer_FK1" reference-table-name="ManagedComputer" 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="ADConnector">
        <description>
            <![CDATA[
                     Details of AD Connector will be maintained..
              ]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>A unique id for each AD Connector. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_SYNCH_TIME">
                <description>Last synchronized time from AD Connector </description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADConnector_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADConnector_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="DCSelectedComputer">
        <description>
            <![CDATA[
		This table will contain the details of all selected computers which are to be added to the managed computers. This is a temporary table to hold the selected computers to be managed. Once the user confirms these entries will be moved to ManagedComputer table, and this table entries will be cleaned up.
		]]>
        </description>
        <columns>
            <column name="SELECTED_COMPUTER_ID">
                <description>Holds unique Id generated for each selected computer before adding to managed computer list. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCSelectedComputer.SELECTED_COMPUTER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="COMPUTER_NAME">
                <description>selected computer name. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTAINER_NAME">
                <description>Container name (domain/workgroup name) in which the computer belongs. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COMPUTER_CATEGORY">
                <description>Whether the computer belongs to Domain or Workgroup. Possible values are 1 for DOMAIN and 2 for WORKGROUP</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LOGON_USER_ID">
                <description>User Id who performs the select computers. </description>
                <data-type>BIGINT</data-type>
                <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>
            <column name="BRANCH_OFFICE_ID">
                <description>Branch Id for the selected computer </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FULL_NAME">
                <description>Full name of the computer. Introduced to store the original computer name which solves the 15 characters trim problem by AD.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OS_PLATFORM">
                <description>OS platform of computer.1-windows,2-mac,3-linux</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARENT_NAME">
                <description>Immediate parent of the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCSelectedComputer_PK">
            <primary-key-column>SELECTED_COMPUTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCSelectedComputer_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="DCSelectedComputer_FK1" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <!-- Tables for LDAP Query -->
    <table name="LDAPRequest">
        <description>
            <![CDATA[
                     Basic Details of LDAP Request will be stored here..
              ]]>
        </description>
        <columns>
            <column name="REQUEST_ID">
                <description>A unique id for each LDAP Request.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="REQUEST_NAME">
                <description>LDAP Request Name</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
        </columns>
        <primary-key name="LDAPRequest_PK">
            <primary-key-column>REQUEST_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="LDAPQuery">
        <description>
            <![CDATA[
                     For a ldap query, there could be multiple ldap requests, storing those ldap request details here
              ]]>
        </description>
        <columns>
            <column name="QUERY_ID">
                <description>A unique id for each LDAP Query.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="QUERY_NAME">
                <description>LDAP Query Name</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="REQUEST_ID">
                <description>Queries mapped to a request</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LDAPQuery_PK">
            <primary-key-column>QUERY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LDAPQuery_FK" reference-table-name="LDAPRequest" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REQUEST_ID</fk-local-column>
                        <fk-reference-column>REQUEST_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LDAPEntity">
        <description>
            <![CDATA[
                     For a ldap query, store it's attributes by a comma separated values..
              ]]>
        </description>
        <columns>
            <column name="ENTITY_ID">
                <description>UVH Primary Column for LDAP Entity</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUERY_ID">
                <description>Query ID Mapped to LDAP Query</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="INHERIT_ENTITY">
                <description>Enitity objects from which attributes should be inherited</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="LDAPEntity_PK">
            <primary-key-column>ENTITY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LDAPEntity_FK" reference-table-name="LDAPQuery" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>QUERY_ID</fk-local-column>
                        <fk-reference-column>QUERY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LDAPAttribute">
        <description>
            <![CDATA[
                     For a ldap query, store it's filter applicable
              ]]>
        </description>
        <columns>
            <column name="ENTITY_ID">
                <description>Entity ID</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ATTRIBUTE_ID">
                <description>Attribute ID comma separated values</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LDAPAttribute_PK">
            <primary-key-column>ENTITY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LDAPAttribute_FK" reference-table-name="LDAPEntity" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ENTITY_ID</fk-local-column>
                        <fk-reference-column>ENTITY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LDAPFilter">
        <description>
            <![CDATA[
                LDAP Filter for a query
              ]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>UVH Primary Column for Filter</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUERY_ID">
                <description>Query ID Mapped to LDAPQuery</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
        </columns>
        <primary-key name="LDAPFilter_PK">
            <primary-key-column>FILTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LDAPFilter_FK" reference-table-name="LDAPQuery" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>QUERY_ID</fk-local-column>
                        <fk-reference-column>QUERY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LDAPFilterExpr">
        <description>
            <![CDATA[
                     For a ldap query, store it's filter applicable
              ]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>Filter ID</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_TYPE">
                <description>Resource type of the filter expression applicable</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_EXPR_ID">
                <description>Filter Expression ID</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LDAPFilterExpr_PK">
            <primary-key-column>FILTER_ID</primary-key-column>
            <primary-key-column>FILTER_EXPR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LDAPFilterExpr_FK" reference-table-name="LDAPFilter" 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="LDAPFilterComp">
        <description>
            <![CDATA[
                     For a ldap query / request, store it's filter component by param and param value
              ]]>
        </description>
        <columns>
            <column name="FILTER_ID">
                <description>Filter ID of LDAP Filter</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_COMP_NAME">
                <description>Filter component name</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_COMP_VALUE">
                <description>Filter component value</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LDAPFilterComp_PK">
            <primary-key-column>FILTER_ID</primary-key-column>
            <primary-key-column>FILTER_COMP_NAME</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LDAPFilterComp_FK" reference-table-name="LDAPFilter" 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="LDAPRequestParams">
        <description>
            <![CDATA[
                     For a ldap request, store it's request params
              ]]>
        </description>
        <columns>
            <column name="REQUEST_ID">
                <description>Param ID - LDAP Request</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARAM_NAME">
                <description>Param Name for LDAP Request</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PARAM_VALUE">
                <description>Param Value for LDAP Request</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LDAPRequestParams_PK">
            <primary-key-column>REQUEST_ID</primary-key-column>
            <primary-key-column>PARAM_NAME</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LDAPRequestParams_FK" reference-table-name="LDAPRequest" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REQUEST_ID</fk-local-column>
                        <fk-reference-column>REQUEST_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="LDAPRequestMetaData">
        <description>
            <![CDATA[
                     For a ldap request, store it's meta data - for server
              ]]>
        </description>
        <columns>
            <column name="REQUEST_ID">
                <description>Request ID for a functionality</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="DATA_PROCESSOR">
                <description>Data Processor for this LDAP Request</description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LDAP_TABLE_NAME">
                <description>Table name in which the state of request/response will be written</description>
                <data-type>NCHAR</data-type>
                <max-size>75</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LDAPRequestMetaData_PK">
            <primary-key-column>REQUEST_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LDAPRequestMetaData_FK" reference-table-name="LDAPRequest" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REQUEST_ID</fk-local-column>
                        <fk-reference-column>REQUEST_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DCLDAPServiceInfo">
        <description>
            <![CDATA[
			This table contains the information about the requested, response received time and the state of ldap query request
			]]>
        </description>
        <columns>
            <column name="LQSERVICE_ID">
                <description>Unique service Id for each LDAP requested.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCLDAPRequestInfo.LQSERVICE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="REQUEST_ID">
                <description>Query ID for a functionality</description>
                <data-type>INTEGER</data-type>
                <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>
            <column name="DATA_STATE">
                <description>Two states are identified 1 -> Data is requested, 2 -> Data is received. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REQUEST_TIME">
                <description>Unique time when the ldap query is requested in server.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESPONSE_TIME">
                <description>Unique time when the ldap query response received in server.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCLDAPServiceInfo_PK">
            <primary-key-column>LQSERVICE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCLDAPServiceInfo_FK" reference-table-name="LDAPRequest" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REQUEST_ID</fk-local-column>
                        <fk-reference-column>REQUEST_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="DCLDAPServiceInfo_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="Container">
        <description>
            <![CDATA[
			This table contains the information about the AD Container, to store the tree objects
			]]>
        </description>
        <columns>
            <column name="CONTAINER_ID">
                <description>Unique ID for each container in AD</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>Container.CONTAINER_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="NAME">
                <description>Name of the Container.</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 container participates.</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONTAINER_TYPE">
                <description>Type of the container. The value will represent the OU, Domain, Site, Default Container,
                    Site etc.
                </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the container in Active Dir.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UPDATED_TIME">
                <description>Time at which the container objects were updated</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Customer ID for which the container is added.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="Container_PK">
            <primary-key-column>CONTAINER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="Container_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="Container_IDX1">
                <index-column>NAME</index-column>
                <index-column>DOMAIN_NETBIOS_NAME</index-column>
            </index>
            <index name="Container_IDX2">
                <index-column>GUID</index-column>
            </index>
        </indexes>
    </table>
    <table name="ContainerADObjectRel">
        <columns>
            <column name="ADOBJECT_ID">
                <description>Unique ID for each AD Object in AD</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ContainerADObjectRel.ADOBJECT_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONTAINER_ID">
                <description>Unique ID for each container in AD</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME">
                <description>Name of the AD Object</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
            </column>
            <column name="GUID">
                <description>GUID generated for the AD Object. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="UPDATED_TIME">
                <description>Time at which the container objects were updated</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_TYPE">
                <description>Holds resource type. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DN">
                <!--applicable for all resources in AD, for WG DN should be null -->
                <description>DN (Distinguished Name) for the resource in Active Dir. </description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
            </column>
            <column name="AD_CREATED_TIME">
                <!--applicable for all resources-->
                <description>Time at which the AD resource has been created. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DNS_NAME">
                <!--applicable for computer-->
                <description>DNS name of the resource. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
            </column>
            <column name="OS_NAME">
                <!--applicable for computer-->
                <description>OS name of the computer. </description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>true</nullable>
            </column>
        </columns>
        <primary-key name="ContainerADObjectRel_PK">
            <primary-key-column>ADOBJECT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ContainerADObjectRel_FK1" reference-table-name="Container" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONTAINER_ID</fk-local-column>
                        <fk-reference-column>CONTAINER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
        <indexes>
            <index name="ContainerADObjectRel_IDX1">
                <index-column>NAME</index-column>
            </index>
            <index name="ContainerADObjectRel_IDX2">
                <index-column>GUID</index-column>
            </index>
            <index name="ContainerADObjectRel_IDX3">
                <index-column>RESOURCE_TYPE</index-column>
            </index>
        </indexes>
    </table>

    <table name="ManagedCompADContainerObjMapping">
        <description>
            <![CDATA[
                This table contains the information about the ManagedComputerAndAdContainerObjRelation
            ]]>
        </description>
        <columns>
            <column name="ADOBJECT_ID">
                <description>Unique ID for each AD Object in AD</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESOURCE_ID">
                <description>Holds unique Id of the managed computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ManagedCompADContainerObjMapping_PK">
            <primary-key-column>ADOBJECT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MCADObjMapping_FK1" reference-table-name="ManagedComputer" 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="MCADObjMapping_FK2" reference-table-name="ContainerADObjectRel" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ADOBJECT_ID</fk-local-column>
                        <fk-reference-column>ADOBJECT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    
    <table name="ADGroupDetails">
        <description>
            <![CDATA[
			This table contains the information about the AD Group
			]]>
        </description>
        <columns>
            <column name="ADGROUP_ID">
                <description>Unique ID for each group in AD</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="NAME">
                <description>Name of the Group.</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 group participates.</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GUID">
                <description>GUID generated for the group in Active Dir.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UPDATED_TIME">
                <description>Time at which the group objects were updated</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Customer ID for which the group is added.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADGroupDetails_PK">
            <primary-key-column>ADGROUP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADGroupDetails_FK1" reference-table-name="ContainerADObjectRel" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ADGROUP_ID</fk-local-column>
                        <fk-reference-column>ADOBJECT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="ADGroupDetails_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>
        <indexes>
            <index name="ADGroupDetails_IDX1">
                <index-column>NAME</index-column>
                <index-column>DOMAIN_NETBIOS_NAME</index-column>
            </index>
            <index name="ADGroupDetails_IDX2">
                <index-column>GUID</index-column>
            </index>
        </indexes>
    </table>
    <table name="ADGroupMembersRel">
        <description>
            <![CDATA[
            This table contains the Group Members relationship of AD Groups.
            ]]>
        </description>
        <columns>
            <column name="MEMBER_ID">
                <description>Member container id.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="GROUP_ID">
                <description>Group container id.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ADGroupMembersRel_PK">
            <primary-key-column>MEMBER_ID</primary-key-column>
            <primary-key-column>GROUP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADGroupMembersRel_FK1" reference-table-name="ContainerADObjectRel" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>MEMBER_ID</fk-local-column>
                        <fk-reference-column>ADOBJECT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="ADGroupMembersRel_FK2" reference-table-name="ContainerADObjectRel" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>GROUP_ID</fk-local-column>
                        <fk-reference-column>ADOBJECT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ADGroupMembersSyncStatus">
        <description>
            <![CDATA[
            This table contains the Group Members Sync Status Data either member of / members
            ]]>
        </description>
        <columns>
            <column name="GROUP_ID">
                <description>Group container id.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SYNCH_DATA">
                <description>It may be GUID/DN. Name->members, DN-memberOf</description>
                <data-type>NCHAR</data-type>
                <max-size>2048</max-size>
                <nullable>true</nullable>
            </column>
            <column name="SYNCH_TYPE">
                <description>Holds synch type either finds members/memberof.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ADGroupMembersSyncStatus_PK">
            <primary-key-column>GROUP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ADGroupMembersSyncStatus_FK1" reference-table-name="ContainerADObjectRel" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>GROUP_ID</fk-local-column>
                        <fk-reference-column>ADOBJECT_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="DomainSynchStatus">
        <description>
            <![CDATA[
			This table contains the information about the AD Domain synchronization status for Tree view
			]]>
        </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="SYNCH_STATUS">
                <description>Will contain the synchronization status, 1 for COMPLETED and -1 for INCOMPLETE/ERROR. </description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <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="LAST_SYNCH_TIME">
                <description>This column will have have the last updated time for a domain. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DomainSynchStatus_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
            <primary-key-column>RESOURCE_TYPE</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DomainSynchStatus_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="LdapSyncError">
        <description>
            <![CDATA[
			This table contains the information about the AD Domain ERROR status for Tree view
			]]>
        </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="ERROR_CODE">
                <description>Will contain the Error Code that caused the sync failure. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="UPDATED_TIME">
                <description>This column will have have the last updated time for a domain. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="LdapSyncError_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="LdapSyncError_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="DCLDAPResponseData">
        <description>
            <![CDATA[
			For a ldap service id, many number of data can be obtained. This table will be used for all such data population.
			1) Use this table to check if the data is obtained in server.
            2) Use only when low level data is required to be shown in webclient, for a ldap request.
			]]>
        </description>
        <columns>
            <column name="LQDATA_ID">
                <description>Unique id for each data populated in this table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCLDAPResponseData.LQDATA_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="LQSERVICE_ID">
                <description>Service ID of DCLDAPServiceInfo table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOMAIN_NETBIOS_NAME">
                <description>Domain netBIOS name where the data corresponds to.</description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="RESPONSE_DATA">
                <description>To store response data as json</description>
                <data-type>NCHAR</data-type>
                <max-size>4000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCLDAPResponseData_PK">
            <primary-key-column>LQDATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCLDAPResponseData_FK" reference-table-name="DCLDAPServiceInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>LQSERVICE_ID</fk-local-column>
                        <fk-reference-column>LQSERVICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="ResourceLiveStatus">
        <description>
            <![CDATA[
		This table will contain the details of computers Live status.
		]]>
        </description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Holds unique Id of the Resource </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
            <column name="STATUS_UPDATE_TIME">
                <description>From when the status is contiues</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>Live,Not live or Unknown.</description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ResourceLiveStatus_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceLiveStatus_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="AgentMETrackingDetails">
        <description>
            <![CDATA[
		        This table captures the details of agent ME Tracking Data.
		    ]]>
        </description>
        <columns>
            <column name="AGENT_MEDATA_ID">
                <description>Unique Id for agent ME Tracking data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>AgentMETrackingDetails.AUTO_GEN_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>Unique Id for each computer. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="AGENT_VERSION">
                <description>Agent Version in integer.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="OS_NAME">
                <description>Name of the OS running in the computer.  </description>
                <data-type>NCHAR</data-type>
                <max-size>50</max-size>
                <nullable>false</nullable>
            </column>
            <column name="ADDED_TIME">
                <description>Time at which row added in the table. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="GZIP_DECOM_FAILURE_COUNT">
                <description>Gzip decompression failure count for past one day.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="RESUME_DOWNLOAD_FAILURE_COUNT">
                <description>Resume Download failure count for past one day.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DATA_5MB_POSTED_COUNT">
                <description>No. of times agent try to post 5MB data to server for past one day.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="LOG_SWITCH_FAILED_COUNT">
                <description>No. of times log switching fails in agent for past one day .  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DCCONFIG_DUMP_COUNT">
                <description>Gives the dump count for dcconfig exe in agent machine.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DCAGENTTRAYICON_DUMP_COUNT">
                <description>Gives the dump count for dcagenttrayicon exe in agent machine.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DCMSGHANDLER_DUMP_COUNT">
                <description>Gives the dump count for dcmsghandler exe in agent machine.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="AGENT_TASK_FAIL_COUNT">
                <description>No. of times agent upgrader schedule task create failed for past one day.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="QFIX_FAILURE_COUNT">
                <description>Quick fix failure count.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="TS_USAGE_COUNT">
                <description>Trobleshooting tool usage count.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
			<column name="SECURE_COMM_FAILURE_COUNT">
                <description>Secure communication failure with Certificate count.  </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="AgentMETrackingDetails_PK">
            <primary-key-column>AGENT_MEDATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AgentMETrackingDetails_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="SDPMappedDCTemplate">
        <description>
            <![CDATA[
		This table captures the Config templates of Desktopcentral that are published to SDP.
		]]>
        </description>
        <columns>
            <column name="TEMPLATE_MAP_ID">
                <description>Unique Id of the template tag. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>SDPMappedDCTemplate.TEMPLATE_MAP_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TEMPLATE_ID">
                <description>Unique Id of the template. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SDPMappedDCTemplate_PK">
            <primary-key-column>TEMPLATE_MAP_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SDPMappedDCTemplate_FK1" reference-table-name="DCTemplate" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>TEMPLATE_ID</fk-local-column>
                        <fk-reference-column>TEMPLATE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="TwoFactorAuthCheck">
        <columns>
            <column name="ID">
                <description>Auto generated PK</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>TwoFactorAuthCheck.ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TOKEN">
                <description>Token to verify authentication</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="USER_NAME">
                <description>Name of the user</description>
                <data-type>CHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DOMAIN">
                <description>Domain Name for the Account</description>
                <data-type>CHAR</data-type>
                <max-size>200</max-size>
                <default-value>Local</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="TwoFactorAuthCheck_PK">
            <primary-key-column>ID</primary-key-column>
        </primary-key>
    </table>
    <table name="DCLoginExtn">
        <description><![CDATA[Contains custom group and customer relation]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>AaaLogin ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </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>
            <column name="SCOPE">
                <description>0-All computer,1- unique CG,2-Remote off </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCLoginExtn_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCLoginExtn_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="ScheduletaskToCollection">
        <description>
            <![CDATA[
		This table contains the scheduled taskdetails relation with Collectiondetails.
		]]>
        </description>
        <columns>
            <column name="SCHEDULE_TASK_ID">
                <description>Task id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COLLECTION_ID">
                <description>Collection id. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ScheduletaskToCollection_PK">
            <primary-key-column>SCHEDULE_TASK_ID</primary-key-column>
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ScheduletaskToCollection_FK1" reference-table-name="TaskDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>SCHEDULE_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="ScheduletaskToCollection_FK2" 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="CertificateStore">
        <description>
            <![CDATA[
	            This table contains the List of available Pre Defined Certificate Store Name
	        ]]>
        </description>
        <columns>
            <column name="STORE_ID">
                <description>Extension of script. </description>
                <data-type>INTEGER</data-type>
                <max-size>19</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CERTIFICATE_STORE">
                <description>Predefined Certificate Store Name</description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CERTIFICATE_STORE_I18N">
                <description>Predefined Certificate Store Name</description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CONFIG_TYPE">
                <description>Config Type to split few certificiate stores  1 (for computer), 2 (for user), 3 common for both Compute and User. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <allowed-values>
                    <value>1</value>
                    <value>2</value>
		            <value>3</value>
                </allowed-values>
            </column>
        </columns>
        <primary-key name="CertificateStore_PK">
            <primary-key-column>STORE_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="InstallCertificateConfig">
        <description>
            <![CDATA[
			This table captures the shortcut configuration details. This is an extension of 'ConfigData'. As this configuration is under 'Non Registry based configuration', it is captured here separately.
		]]>
        </description>
        <columns>
            <column name="IC_CONFIG_ID">
                <description>Unique Id for Install Certificate config data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>InstallCertificateConfig.IC_CONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="CONFIG_DATA_ITEM_ID">
                <description>Unique Id for shortcut config data Item. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CERTIFICATE_NAME">
                <description>Optional command line params for the shortcut pointing to. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CERTIFICATE_STORE">
                <description>Name of the Shortcut. </description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CERTIFICATE_PASSWORD">
                <description>Certificate Password </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SERIAL_NUMBER">
                <description>Serial Number </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION">
                <description>The operation to be performed on the Shortcut. The values can be either CREATE(1) or DELETE(2). In case of CREATE, the other necessary details will be looked up from another child table. In case of DELETE, this details provided in this table itself enough to perform this operation. </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="OPERATION">
                <description>In Action we have few Operation. Especially for delete action. 1.Delete a Certificate From the Store and 2.Delete a Expired Certificates from the Store </description>
                <data-type>INTEGER</data-type>
				<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>
            <column name="KEY_EXPORTABLE">
                <description>This option only for .pfx and .p12 Certificate types 0 - false 1 -true</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
			<primary-key name="InstallCertificateConfig_PK">
            <primary-key-column>IC_CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="InstallCertificateConfig_FK" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
	 </table>

    <table name="FileSyncPairs">
        <description>
            <![CDATA[
		Table contains the details of File  Sync
		]]>
        </description>
        <columns>
            <column name="PAIR_ID">
                <description>Id of File Sync pairs. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                    <uniquevalue-generation>
                        <generator-name>FileSyncPairs.PAIR_ID</generator-name>
                    </uniquevalue-generation>
            </column>
            <column name="SRCFOLDER">
                <description>Src folder from where data is to be backup </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESTFOLDER">
                <description>Dest folder (networkshare) where backup data is to be copied </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MAXFILESIZE">
                <description>max file size of individual files </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILESIZEUNIT">
                <description>max file size unit </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="EXCLUDEFILES">
                <description>Reg ex for files which need to be excluded from backup</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INCLUDEHIDDENFILES">
                <description>wheter hidden files and folders are to be included for backup</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INCLUDESUBFOLDERS">
                <description>wheter subfolders are to be included for backup</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FileSyncPairs_PK">
            <primary-key-column>PAIR_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="FilePairsCredMapping">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for File Backup Configurations.
		   ]]>
        </description>
        <columns>
            <column name="PAIR_ID">
                <description>Holds FK value from FileSyncPairs</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_ID">
                <description>Holds FK value from Credential</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="CREDENTIAL_UUID">
                <description>Holds FK value from Credential</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="FilePairsCredMapping_PK">
            <primary-key-column>PAIR_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FilePairsCredMapping_FK1" reference-table-name="FileSyncPairs" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PAIR_ID</fk-local-column>
                        <fk-reference-column>PAIR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="FilePairsCredMapping_FK2" reference-table-name="Credential" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CREDENTIAL_UUID</fk-local-column>
                        <fk-reference-column>CREDENTIAL_UUID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="FileBackupConfig">
        <description>
            <![CDATA[
		Table to map FileSyncPairs with configs, it is extension of configdataitem
		]]>
        </description>
        <columns>
        <column name="CONFIG_DATA_ITEM_ID">
            <description>Id of the configuration data item. </description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="PAIR_ID">
            <description>file Backup pair id for which this configuration is defined. </description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        </columns>
        <primary-key name="FileBackupConfig_PK">
            <primary-key-column>CONFIG_DATA_ITEM_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="FileBackupConfig_FK1" reference-table-name="ConfigDataItem" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CONFIG_DATA_ITEM_ID</fk-local-column>
                        <fk-reference-column>CONFIG_DATA_ITEM_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="FileBackupConfig_FK2" reference-table-name="FileSyncPairs" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PAIR_ID</fk-local-column>
                        <fk-reference-column>PAIR_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>



    <!-- Tables related to including configuration(for pre-post) in package creation-->
    <table name="SWPkgPrePostConfigRel">
        <description>
            <![CDATA[
		Relation table to map config-data ids to the swpackage
		]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PACKAGE_ID">
                <description>package id for which this configuration is defined. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOYMENT_TYPE">
                <description>Type of the deployment activity.4 possible values are 1(preInstall), 2(postInstall), 3(preUnInstall), 4(postUnInstall)</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPLOYMENT_ACTION">
                <description>Action to be performed after the deployment activity.1(Skip on Failure), 2(Ignore Failure)</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ORDER_OF_DEPLOYMENT">
                <description>Maintains the ordering of deployment activities</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPkgPrePostConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPkgPrePostConfig_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>


    <table name="SWPkgPrePostCollnRel">
        <description>
            <![CDATA[
            This table contains details of collection id that is mapped to swpackage. Collection id contains the pre post configurations applied for the package
            ]]>
        </description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Unique Id for the Collection.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="PACKAGE_ID">
                <description>Unique Id of the package. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="SWPkgPrePostCollnRel_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="SWPkgPrePostCollnRel_FK" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>


    <table name="ActionConfig">
        <description>
            <![CDATA[
			This table captures the Action configuration details. This is an extension of 'ConfigData'. This Configuration is used for performing Actions like check software,check registry, check process , reboot actions etc..
		]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Id of the configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION_TYPE">
                <description>Type of the actions. 0 - Refers the Check Actions (like Check Software,Check registry etc..), which refers to look for the filter to process. 1 - Reboot for future use.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ActionConfig_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ActionConfig_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="ActionConfigToFilterRel">
        <description>
            <![CDATA[
			This table captures the Action configuration details.Table that is used for Filter based actions
		]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Id of the ACtion configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_ID">
                <description>Filter Id for which the expression is defined.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ACTION_TO_PERFORM">
                <description>1(uninstall and proceed installtion), 2(proceed installtion), 3(skip installation), 4(kill process), 5(wait to end process) </description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ActionConfigToFilterRel_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ActionConfigToFilterRel_FK" reference-table-name="ActionConfig" 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="UninstallSoftwareAction">
    <description>
        <![CDATA[
			This table captures the details of the software that to be uninstalled
		]]>
    </description>
    <columns>
        <column name="UninstallSWAction_ID">
            <description>Unique Id for each UninstallSoftwareAction </description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
            <uniquevalue-generation>
                <generator-name>UninstallSoftwareAction.UninstallSWAction_ID</generator-name>
            </uniquevalue-generation>
        </column>
        <column name="CONFIG_DATA_ID">
            <description>Id of the ACtion configuration data instance. </description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="SW_NAME">
            <description>Software Name for uninstall</description>
            <data-type>NCHAR</data-type>
            <max-size>255</max-size>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="SW_VERSION">
            <description>Software version</description>
            <data-type>NCHAR</data-type>
            <max-size>100</max-size>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="UNINSTALL_STRING">
            <description>Silent switch used to uninstall the software</description>
            <data-type>NCHAR</data-type>
            <max-size>1000</max-size>
            <nullable>false</nullable>
            <unique>false</unique>
        </column>
        <column name="SILENT_SWITCH">
            <description>Silent switch used to uninstall the software</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="UninstallSoftwareAction_PK">
        <primary-key-column>UninstallSWAction_ID</primary-key-column>
    </primary-key>
    <foreign-keys>
        <foreign-key name="UninstallSoftwareAction_FK"  reference-table-name="ActionConfig" 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="KillProcessAction">
        <description>
            <![CDATA[
			This table captures the details of the software that to be uninstalled
		]]>
        </description>
        <columns>
            <column name="CONFIG_DATA_ID">
                <description>Id of the ACtion configuration data instance. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROCESS_NAME">
                <description>Process Name to be killed</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROCESS_ACTION">
                <description>0(killprocess immediately),1-(wait until process)</description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="KillProcessAction_PK">
            <primary-key-column>CONFIG_DATA_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="KillProcessAction_FK"  reference-table-name="ActionConfig" 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="ConfigToPlatformRel">
        <description>
            <![CDATA[
			This table contains the configuration and platform relationship.
			]]>
        </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="OS_PLATFORM">
                <description>Os platform id. 0- UnknownPlatform,1-Windows,2-Mac,3-Linux </description>
                <data-type>INTEGER</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ConfigToPlatformRel_PK">
            <primary-key-column>CONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ConfigToPlatformRel_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>
	</table>
	
    <table name="ResourceToRebootDetails">
        <description> <![CDATA[ Contains information about Systems Reboot Required status ]]></description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique ID referred from Resource Table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="REBOOT_REQ_STATUS">
                <description>Whether a system requires reboot or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="ResourceToRebootDetails_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ResourceToRebootDetails_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 used to map Chat with Tools -->
        <table name="ToolsChatMapping">
		<description>This table is used to map chat initiated from RDS using connectionId and chat session Id.</description>
		<columns>
			<column name="TOOLS_ID">
			    <description>Tools id to which chat is integrated and invoked</description>
				<data-type>NCHAR</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="TOOLS_SESSION_ID">
			    <description>Unique id of the session established by the corresponding tool</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
			<column name="CHAT_SESSION_ID">
				<description>Chat Session Id</description>
				<data-type>BIGINT</data-type>
				<nullable>false</nullable>
				<unique>false</unique>
			</column>
		</columns>
		<primary-key name="ToolsChatMapping_PK">
			<primary-key-column>CHAT_SESSION_ID</primary-key-column>
		</primary-key>
		<foreign-keys>
			<foreign-key name="ToolsChatMapping_FK1" reference-table-name="GatewaySession" isbidirectional="false">
				<fk-columns>
					<fk-column>
						<fk-local-column>CHAT_SESSION_ID</fk-local-column>
						<fk-reference-column>SESSION_ID</fk-reference-column>
					</fk-column>
				</fk-columns>
				<fk-constraints>ON-DELETE-CASCADE</fk-constraints>
			</foreign-key>
		</foreign-keys>

	</table>

    <table name="PackageCloneCount">
        <description>Count of the cloned package</description>
        <columns>
            <column name="PACKAGE_ID">
                <description>SW Package ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CLONE_COUNT">
                <description>Count of cloned Package</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="PackageCloneCount_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PackageCloneCount_FK1" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
					</fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <!-- table used to hold the branch office modified details -->
    <table name="BranchOfficeModifiedDetails">
        <description>This table store the information about recently modified Remote Offices</description>
        <columns>
            <column name="BRANCH_COMPONENT_ID">
                <description>Unique id for every changed in remote office. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>BranchOfficeModifiedDetails.BRANCH_COMPONENT_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="BRANCH_OFFICE_ID">
                <description>Unique id for the branch office referenced from BranchOfficeDetails</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME">
                <description>Long value to hold the recently updated time of remote office</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="BranchOfficeModifiedDetails_PK">
            <primary-key-column>BRANCH_COMPONENT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BranchOfficeModifiedDetails_FK1" reference-table-name="BranchOfficeDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <!-- end of table used to hold the branch office modified details -->
	
    <table name="ContDeployEnabledCollns">
        <description>This table is used to store the collection ids, which can continue deployment even after some pathces failed to download</description>
        <columns>
            <column name="COLLECTION_ID">
                <description>Collection id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
            </column>
        </columns>
        <primary-key name="ContDeployEnabledColln_PK">
            <primary-key-column>COLLECTION_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ContDeployEnabledCollns_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-keys>
	</table>

    <table name="SoMErrorCodeHistory">
        <description>This table is used to track Various error codes for different operations in SoM (Also used for ME Tracking)</description>
        <columns>
            <column name="ERROR_CODE">
                <description>Holds the error code to be tracked.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ERROR_COUNT">
                <description>Holds the error code count of the corresponding error.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
            </column>
            <column name="DB_UPDATE_TIME">
                <description>The last time this row was updated</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CUSTOMER_ID">
                <description>Customer id of the corresponding error</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="SoMErrorCodeHistory_PK">
            <primary-key-column>ERROR_CODE</primary-key-column>
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
    </table>
    
    <table name="ModuleUrlRel">
        <description>
            <![CDATA[
		This table will contain the relationship between module and URL
		]]>
        </description>
        <columns>
            <column name="MODULE_URL_REL_ID">
                <description>Unique id generated for each parameter. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>ModuleUrlRel.MODULE_URL_REL_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="MODULE_NAME">
                <description> Key name of the parameter. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
            <column name="URL_VALUE">
                <description>Value of the parameter. </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ModuleUrlRel_PK">
            <primary-key-column>MODULE_URL_REL_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="JiraCredentials">
        <description>
            <![CDATA[
            This table holds the details about Jira Credentials
            ]]>
        </description>
        <columns>
            <column name="LOGIN_ID">
                <description>Login ID of DC User</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="JIRA_URL">
                <description>Jira Server Base URL</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="USER_NAME">
                <description>User name of Person who performs Jira Configuration</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PASSWORD">
                <description>Password</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns> 
        <primary-key name="JiraCredentials_PK">
            <primary-key-column>LOGIN_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="FirewallEntry">
        <description>
            <![CDATA[
		This table captures the predefined firewall configurations & ports.
		]]>
        </description>
        <columns>
            <column name="FIREWALL_ID">
                <description>Unique Id for firewall setting data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>FirewallEntry.FIREWALL_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PORT">
                <description>The port number which has to be blocked or unblocked. </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PROTOCOL">
                <description>The port number which has to be blocked or unblocked. </description>
                <data-type>CHAR</data-type>
                <max-size>10</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PORT_FRIENDLY_NAME">
                <description>A friendly name added to the port.</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description of the port.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DEPENDENT_SERVICES">
                <description>Other services/applications which are dependent on this port.</description>
                <data-type>NCHAR</data-type>
                <max-size>500</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CATEGORY">
                <description>Category in which the port comes under like Standard, Custom, etc.</description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="FirewallEntry_PK">
            <primary-key-column>FIREWALL_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="ServiceEntry">
        <description>
            <![CDATA[
		This table captures the details of default services which are to be shown to the user.
		]]>
        </description>
        <columns>
            <column name="SERVICE_ID">
                <description>Unique Id for the service entry. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ServiceEntry.SERVICE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="SERVICE_NAME">
                <description>The name of the service which need to be handled. </description>
                <data-type>NCHAR</data-type>
                <max-size>128</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DISPLAY_NAME">
                <description>The display name of the service. </description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description of the service.</description>
                <data-type>NCHAR</data-type>
                <max-size>3001</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CATEGORY">
                <description>Category in which the service comes under.</description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INPUT_TYPE">
                <description>Specifies whether the service is predefined (retrived from XML) or customized.   1.Customized 2.Pre-Defined</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ServiceEntry_PK">
            <primary-key-column>SERVICE_ID</primary-key-column>
        </primary-key>
    </table>

            <table name="IntegrationTicketCollnMapping">
        <description>This table is used to map Integration Product Ticket Ids with Corresponding collection Ids.</description>
        <columns>
            <column name="TICKET_COLLN_REL_ID">
                <description>Unique Id for the table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>IntegrationTicketCollnMapping.TICKET_COLLN_REL_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PRODUCT_ID">
                <description>ID of the product from which Configuration is created</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="TICKET_ID">
                <description>Integration Product Ticket Id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="COLLECTION_ID">
                <description>Collection Id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="IntegrationTicketCollnMapping_PK">
            <primary-key-column>TICKET_COLLN_REL_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="IntegrationTicketCollnMapping_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-keys>
    </table>
    <table name="Integrations">
        <description>
            <![CDATA[
        This table will contain the details about the integrations products
        ]]>
        </description>
        <columns>
            <column name="INTEGRATION_ID">
                <description>Unique id generated for each parameter. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>true</unique>
                <uniquevalue-generation>
                    <generator-name>Integrations.INTEGRATION_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="INTEGRATION_NAME">
                <description> Key name of the parameter. </description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="Integrations_PK">
            <primary-key-column>INTEGRATION_ID</primary-key-column>
        </primary-key>
    </table>

    <table name="OndemandDataType">
        <description>This table holds the data of agents that have upgraded and uses JSON for ondemand operations</description>
        <columns>
            <column name="RESOURCE_ID">
                <description>Unique ID referred from Resource Table</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="USE_JSON">
                <description>Tells if the resource uses json</description>
                <data-type>BOOLEAN</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="OndemandDataType_PK">
            <primary-key-column>RESOURCE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="OndemandDataType_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-keys>
    </table>
    <table name="DSDomainExceptionList">
        <description>This table contains the DS Failed Domains List</description>
        <columns>
            <column name="BRANCH_OFFICE_ID">
                <description>Holds unique Id of the branch office</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="URLID">
                <description>The unique ID of URL list.</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <nullable>false</nullable>
            </column>

            <column name="VENDORNAME">
                <description>URL Vendor name details</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="URLDOMAIN">
                <description>Domain URL</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="URLTYPE">
                <description>URL type, Example 1=Microsof, 2=TU, 3=Mac</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="REMARKS">
                <description>Crawler pre populated Remarks details</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="STATUS">
                <description>status of the domain access, 1=Success 2=Failed</description>
                <data-type>INTEGER</data-type>
                <max-size>11</max-size>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>

            <column name="UPDATED_VERSION">
                <description>Last updated version, download tried time</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DSDomainExceptionList_PK">
            <primary-key-column>BRANCH_OFFICE_ID</primary-key-column>
            <primary-key-column>URLID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DSDomainExceptionList_FK1" reference-table-name="BranchOfficeDetails"
                         isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BRANCH_OFFICE_ID</fk-local-column>
                        <fk-reference-column>BRANCH_OFFICE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="DCQueueDSURLInfo">
        <description>
            <![CDATA[
			This table holds the information about the ds download json files sent from DS.
			]]>
        </description>
        <columns>
            <column name="QINFO_ID">
                <description>Unique Id for each queue data. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>DCQueueDSURLInfo.QINFO_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POST_TIME">
                <description>Unique time when the queue data is POSTED in server. </description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DATA_FILE_NAME">
                <description>The file name in which the data is stored in the file system. </description>
                <data-type>CHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_TYPE">
                <description>Specific type about the queue data. Example Power Update, Refresh Update, etc</description>
                <data-type>INTEGER</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="QUEUE_DATA_STATE">
                <description>Two states of file are identified 1 -> Data is present in file system and DB, 2 -> Data is present in memory and DB. The row is deleted when the data is populated in DB. </description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REQUEST_ID">
                <description>Logging thread local value.</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <default-value>NA</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_PRIORITY">
                <description>Priority for Queue.</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCQueueDSURLInfo_PK">
            <primary-key-column>QINFO_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="CustomValueCredMapping">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for Configurations.
		   ]]>
        </description>
        <columns>
            <column name="REG_CUSTOM_VALUE_ID">
                <description>Holds FK value from RegCustomValueConfig</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="CREDENTIAL_UUID">
                <description>Holds FK value from Credential</description>
                <data-type>CHAR</data-type>
				<max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_ID">
                <description>Holds FK value from Credential</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CustomValueCredMapping_PK">
            <primary-key-column>REG_CUSTOM_VALUE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CustomValueCredMapping_FK1" reference-table-name="RegCustomValueConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REG_CUSTOM_VALUE_ID</fk-local-column>
                        <fk-reference-column>REG_CUSTOM_VALUE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CustomValueCredMapping_FK2" reference-table-name="Credential" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>CREDENTIAL_UUID</fk-local-column>
                        <fk-reference-column>CREDENTIAL_UUID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-RESTRICT</fk-constraints>
            </foreign-key>

        </foreign-keys>
</table>

    <table name="DCZendeskOrgMapping">
        <description><![CDATA[Contains the Organisation Customer Mapping from Zendesk]]> </description>
        <columns>
            <column name="CUSTOMER_ID">
                <description>Unique identifier</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ZENDESK_ORG_ID">
                <description>Zendesk Organization Id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="ZENDESK_MAPPEDBYUSER_ID">
                <description>Id of Zendesk User performing user mapping</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="DCZendeskOrgMapping_PK">
            <primary-key-column>CUSTOMER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key reference-table-name="CustomerInfo" name="DCZendeskOrgMapping_FK1">
                <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="ServicePlan">
        <description>
            <![CDATA[ Table Contains service plan details]]>
        </description>
        <columns>
            <column name="PLAN_ID">
                <description>A unique id for service plan details.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ServicePlan.ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="NAME">
                <description>Plan name</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
            </column>
            <column name="COST_PER_UNIT">
                <description>Cost of the device</description>
                <data-type>DECIMAL</data-type>
                <max-size>16</max-size>
                <precision>2</precision>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="CURRENCY">
                <description>Currency to charge the device</description>
                <data-type>NCHAR</data-type>
                <nullable>false</nullable>
            </column>
            <column name="PLAN_TYPE">
                <description>Type of Plan[1-Charge per device. 2-Charge per Service.]</description>
                <data-type>BIGINT</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="DESCRIPTION">
                <description>Description of Service Plan </description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
            <column name="CREATED_BY">
                <description>The user who creates the service plan</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="MODIFIED_BY">
                <description>The user who modifies the service plan</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CREATED_TIME">
                <description>Creation time of service plan</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="MODIFIED_TIME">
                <description>Last modification time of service plan</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="IS_ACTIVE">
                <description>Denotes whether plan is active or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>true</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ServicePlan_PK">
            <primary-key-column>PLAN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ServicePlan_FK1" 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="ServicePlan_FK2" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>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="CustomerPlanMapping">
        <description>
            <![CDATA[ Table Contains mapping for customer and service plan]]>
        </description>
        <columns>
        <column name="CUSTOMER_PLAN_ID">
            <description>A unique id for customer plan mapping.</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
            <unique>false</unique>
            <uniquevalue-generation>
                <generator-name>CustomerPlanMapping.ID</generator-name>
            </uniquevalue-generation>
        </column>
        <column name="PLAN_ID">
            <description>service plan id</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
        </column>
        <column name="CUSTOMER_ID">
            <description>customer id</description>
            <data-type>BIGINT</data-type>
            <nullable>false</nullable>
        </column>
        <column name="BILLING_CYCLE">
            <description>Billing period to send bill to the customer[1-Monthly, 3-Quarterly, 6-Half-yearly, 12-Yearly]</description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
        </column>
        <column name="DUE_DAYS">
            <description>Due days to be applied from the end of the bill</description>
            <data-type>INTEGER</data-type>
            <nullable>false</nullable>
        </column>
        <column name="BILLING_MAIL_ADDRESS">
            <description>Billing maill address where invoice is send</description>
            <data-type>NCHAR</data-type>
            <max-size>100</max-size>
            <nullable>false</nullable>
        </column>
        </columns>
        <primary-key name="CustomerPlanMapping_PK">
            <primary-key-column>CUSTOMER_PLAN_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CustomerPlanMapping_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="CustomerPlanMapping_FK2" reference-table-name="ServicePlan" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PLAN_ID</fk-local-column>
                        <fk-reference-column>PLAN_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="CustomKeyCredMapping">
        <description>
            <![CDATA[
		   This table captures the credentials to be used for Configurations.
		   ]]>
        </description>
        <columns>
            <column name="REG_CUSTOM_KEY_ID">
                <description>Holds FK value from RegCustomKeyConfig</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREDENTIAL_UUID">
                <description>Holds FK value from Credential</description>
                <data-type>CHAR</data-type>
				<max-size>100</max-size>
                <default-value>-</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
			<column name="CREDENTIAL_ID">
                <description>Holds FK value from Credential</description>
                <data-type>BIGINT</data-type>
				<default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="CustomKeyCredMapping_PK">
            <primary-key-column>REG_CUSTOM_KEY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="CustomKeyCredMapping_FK1" reference-table-name="RegCustomKeyConfig" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>REG_CUSTOM_KEY_ID</fk-local-column>
                        <fk-reference-column>REG_CUSTOM_KEY_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="CustomKeyCredMapping_FK2" 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-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="CustomerBillingDetails">
        <description>
            <![CDATA[ Table Contains billing details of customer]]>
        </description>
        <columns>
            <column name="CUSTOMER_BILLING_ID">
                <description>A unique id for customer billing details.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>CustomerBillingDetails.ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="BILL_NO">
                <description>A continuous incremented value to use as Invoice No.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="CUSTOMER_PLAN_ID">
                <description>The customer and plan mappping id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="START_DATE">
                <description>billing start date</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="END_DATE">
                <description>billing end date</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="BILL_DATE">
                <description>Invoice Generation Date</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="NO_OF_UNITS_CONSUMED">
                <description>No of units consumed by the customer</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="IS_PAID">
                <description>Denotes whether bill is paid or not</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
            <column name="NET_AMOUNT">
                <description>Total bill amount</description>
                <data-type>DECIMAL</data-type>
                <max-size>16</max-size>
                <precision>2</precision>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
            <column name="IS_BREAKED">
                <description>Denotes whether bill is breaked or continuous</description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="CustomerBillingDetails_PK1">
            <primary-key-column>CUSTOMER_BILLING_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
        <foreign-key name="CustomerBillingDetails_FK1" reference-table-name="CustomerPlanMapping" isbidirectional="false">
            <fk-columns>
                <fk-column>
                    <fk-local-column>CUSTOMER_PLAN_ID</fk-local-column>
                    <fk-reference-column>CUSTOMER_PLAN_ID</fk-reference-column>
                </fk-column>
            </fk-columns>
            <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
        </foreign-key>
        </foreign-keys>
    </table>

    <table name="ComputerManagedDetails">
        <description>
            <![CDATA[ Table Contains computer details like agent installed and agent uninstalled time]]>
        </description>
        <columns>
            <column name="ID">
                <description>A unique id for computer details.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>ComputerManagedDetails.ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="RESOURCE_ID">
                <description>Resource id of the computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="INSTALLED_TIME">
                <description>Time agent installed on the computer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="UNINSTALLED_TIME">
                <description>Time agent uninstalled on the computer</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
            </column>
            <column name="BRANCH_OFFICE_NAME">
                <description>Holds the name of the branch office.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="ComputerManagedDetails_PK">
            <primary-key-column>ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="ComputerManagedDetails_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="BillingOtherAmounts">
        <description>
            <![CDATA[ Table Contains MSP Billing Other Amount details]]>
        </description>
        <columns>
            <column name="AMOUNT_ID">
                <description>A unique id for MSP Billing Other Amount details.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>BillingOtherAmounts.ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="BILL_ID">
                <description>Bill id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="AMOUNT_DESC">
                <description>Amount Description</description>
                <data-type>NCHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
            </column>
            <column name="COST">
                <description>Additional Charges or Discounts</description>
                <data-type>DECIMAL</data-type>
                <max-size>16</max-size>
                <precision>2</precision>
                <default-value>0</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="BillingOtherAmounts_PK">
            <primary-key-column>AMOUNT_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="BillingOtherAmounts_FK1" reference-table-name="CustomerBillingDetails" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>BILL_ID</fk-local-column>
                        <fk-reference-column>CUSTOMER_BILLING_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

        <!-- SMP Config tables -->
    <table name="InstallMisconfig">
        <description>
            <![CDATA[
                Mapping between MisconfigID and Config_Data_ID
            ]]>
        </description>
        <columns>
            <column name="INSTALL_MISCONFIG_ID">
                <description>Unique Id for the environment variable config data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>InstallMisconfig.INSTALL_MISCONFIG_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="MISCONFIGID">
                <data-type>BIGINT</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
            </column>
            <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>
        </columns>
        <primary-key name="InstallMisconfig_PK">
            <primary-key-column>INSTALL_MISCONFIG_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="InstallMisconfig_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="UnInstallRiskySoftware">
        <description>
            <![CDATA[
                Mapping between MisconfigID and Config_Data_ID
            ]]>
        </description>
        <columns>
            <column name="UNINSTALL_SW_ID">
                <description>Unique Id for the environment variable config data.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>UninstallSWStatus.UNINSTALL_SW_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PRODUCTID">
                <data-type>BIGINT</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
            </column>
            <column name="SERVICEPACKID">
                <data-type>BIGINT</data-type>
                <max-size>20</max-size>
                <nullable>false</nullable>
            </column>
            <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>
        </columns>
        <primary-key name="UnInstallRiskySoftware_PK">
            <primary-key-column>UNINSTALL_SW_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="UnInstallRiskySoftware_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>

    <!-- Auto Update Package Related Tables -->
    <table name="PackageToSoftwareRel">
        <description><![CDATA[mapping  between SW Packages and Software defined. Separate table is defined for future use if software name is got for Manual pakcages also.]]> </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>s/w package id</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="SOFTWARE_ID">
                <description>Unique identifier of the Software name</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="PackageToSoftwareRel_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="PackageToSoftwareRel_FK1" reference-table-name="SWPackage" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name ="AutoUpdateEnabledSW">
        <description>To Store the ResourceId of the Excluded Computers in PromptSettings</description>
        <columns>
            <column name="SOFTWARE_ID">
                <description>The software id of a unique software names</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ADDED_USER_ID">
                <description>Id of the Technician who added the software for AutoUpdate.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="ADDED_TIME">
                <description>Time at which this software is added for AutoUpdate</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="LAST_UPDATED_TIME">
                <description>Time at which this software's latest package is created automatically</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CURRENT_STATUS">
                <description>AutoUpdate Status of the recently created package of that Software.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Remarks of the recently created package of that Software.</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="AutoUpdateEnabledSW_PK">
            <primary-key-column>SOFTWARE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="AutoUpdateEnabledS_FK" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>ADDED_USER_ID</fk-local-column>
                        <fk-reference-column>USER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
            </foreign-key>
        </foreign-keys>
    </table>

    <table name="DCLiteFilter">
        <description>
            <![CDATA[This table will hold the relationship between DCLiteFilter, Page and View]]>
        </description>
        <columns>
            <column name="DCLITEFILTER_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 applicable</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FILTER_NAME">
                <description>Name of the filter</description>
                <data-type>CHAR</data-type>
                <max-size>100</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FETCH_VALUE_IMPL">
                <description>Implementation class of DCLiteFilterFetchValue, for general Implementaitons refer DCGeneralLiteFilterValueFetchImpl</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="DCLiteFilter_PK">
            <primary-key-column>DCLITEFILTER_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="DCLiteFilter_FK" 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="DCLiteFilter_FK1" 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="GraphDetails">
        <description>
            <![CDATA[
			This table contains Graph name and its attributes
			]]>
        </description>
        <columns>
            <column name="GRAPH_ID">
                <description>GRAPH ID</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="GRAPH_NAME">
                <description>Graph Name of the corresponding graph</description>
                <data-type>CHAR</data-type>
                <unique>true</unique>
            </column>
            <column name="GENERATOR_CLASS">
                <description>Graph Generator class</description>
                <data-type>CHAR</data-type>
                <max-size>500</max-size>
                <unique>false</unique>
            </column>
            <column name="XML_FILE">
                <description>Graph XML file path</description>
                <data-type>CHAR</data-type>
                <max-size>500</max-size>
                <unique>false</unique>
            </column>
            <column name="CHART_IMPL">
                <description>CHART IMPL class</description>
                <data-type>CHAR</data-type>
                <max-size>500</max-size>
                <unique>false</unique>
            </column>
            <column name="HIDE_TOGGLE">
                <description>Hide the toggle option for  graph </description>
                <data-type>CHAR</data-type>
                <max-size>20</max-size>
                <default-value>false</default-value>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="GraphDetails_PK">
            <primary-key-column>GRAPH_ID</primary-key-column>
        </primary-key>
    </table>
	<table name="Policy">
        <description>
            <![CDATA[
			Stores the policy common details.
			</br></br>
			]]>
        </description>
        <columns>
            <column name="POLICY_ID">
                <description>Holds unique Id generated for each policy entries.</description>
                <data-type>BIGINT</data-type>
                <max-size>19</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>Policy.POLICY_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="POLICY_NAME">
                <description>Name of the POLICY.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DESCRIPTION">
                <description>Description for the POLICY.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="POLICY_TYPE">
                <description>TYPE of the POLICY as DEVICE or TEMPORARY_ACCESS.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="POLICY_META_FILE">
                <description>TYPE of the POLICY as DEVICE or TEMPORARY_ACCESS.</description>
                <data-type>NCHAR</data-type>
                <max-size>255</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATED_BY">
                <description>It is used to identify the user.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CREATED_TIME">
                <description>Time at which the policy has been created.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_BY">
                <description>It is used to identify the user.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME">
                <description>Time at which the policy has been modified.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="IS_DELETED">
                <description>
                    Indicates whether the policy is deleted or not.
                    true -> policy deleted.
                    false-> policy is present
                </description>
                <data-type>BOOLEAN</data-type>
                <default-value>false</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS">
                <description>Stores either Draft [0] Yet to publish[1] Active [2] configuration</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="POLICY_VERSION">
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PLATFORM_ID">
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="Policy_PK">
            <primary-key-column>POLICY_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="Policy_FK1" 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-RESTRICT</fk-constraints>
            </foreign-key>
            <foreign-key name="Policy_FK2" reference-table-name="AaaUser" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>MODIFIED_BY</fk-local-column>
                        <fk-reference-column>USER_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-RESTRICT</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="NativeComponentPackageInfo">
        <description>
            <![CDATA[    This table stores Patch Native Message Package Info  	 ]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>This is an auto-generated Unique ID to denote each Package.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>NativeComponentPackageInfo.PACKAGE_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="PACKAGE_NAME">
                <description>Name of the dependency package.</description>
                <data-type>CHAR</data-type>
                <max-size>250</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="PRODUCT_ID">
                <description>The OS and architecture to which this package belongs.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="URL">
                <description>URL of the dependency.</description>
                <data-type>CHAR</data-type>
                <max-size>300</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="SIZE">
                <description>Size of the package in bytes.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHECKSUM">
                <description>Checksum of the package.</description>
                <data-type>CHAR</data-type>
                <max-size>80</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="FLAVOR_ID">
                <description>4-Ubuntu,8-Debian and etc</description>
                <data-type>INTEGER</data-type>
                <default-value>4</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CHECKSUM_TYPE">
                <description>Type of the checksum values. </description>
                <data-type>CHAR</data-type>
                <max-size>50</max-size>
                <default-value>MD5</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
        </columns>
        <primary-key name="NativeComponentPackageInfo_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
    </table>
    <table name="NativeComponentPackageDownloadStatus">
        <description>
            <![CDATA[
	   		This table will contain the download details & status of the package.
      	 ]]>
        </description>
        <columns>
            <column name="PACKAGE_ID">
                <description>Id of the Package.</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="STATUS_ID">
                <description>Status ID of the download of the package.0-YetToDownload,1-Success,2-InProgress,3-Fail,4-Re-download.</description>
                <data-type>INTEGER</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOWNLOAD_SIZE">
                <description>The size of the attempted download of the Package.</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="DOWNLOAD_TIME">
                <description>Time at which the package downloaded success or failure.</description>
                <data-type>BIGINT</data-type>
                <default-value>-1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS">
                <description>Remarks for the download attempt for that package.</description>
                <data-type>NCHAR</data-type>
                <max-size>2000</max-size>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="REMARKS_ARGS">
                <description>Holds Arguments for Remarks Format Arg1 Separator Arg2...</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <nullable>true</nullable>
            </column>
        </columns>
        <primary-key name="NativeComponentPackageDownloadStatus_PK">
            <primary-key-column>PACKAGE_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="NativeComponentPackageDownloadStatus_FK1" reference-table-name="NativeComponentPackageInfo" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>PACKAGE_ID</fk-local-column>
                        <fk-reference-column>PACKAGE_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
            <foreign-key name="NativeComponentPackageDownloadStatus_FK2" reference-table-name="ConfigStatusDefn" isbidirectional="false">
                <fk-columns>
                    <fk-column>
                        <fk-local-column>STATUS_ID</fk-local-column>
                        <fk-reference-column>STATUS_ID</fk-reference-column>
                    </fk-column>
                </fk-columns>
                <fk-constraints>ON-DELETE-CASCADE</fk-constraints>
            </foreign-key>
        </foreign-keys>
    </table>
    <table name="MacNotificationWindow">
        <description><![CDATA[Contains Mac NotificationWindow settings]]></description>
        <columns>
            <column name="MAC_NOTIFICATION_WINDOW_ID">
                <description>Holds unique Id generated for each Mac NotificationWindow settings</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>MacNotificationWindow.MAC_NOTIFICATION_WINDOW_ID</generator-name>
                </uniquevalue-generation>
            </column>
            <column name="TITLE">
                <description>Title of the NotificationWindow.</description>
                <data-type>NCHAR</data-type>
                <max-size>250</max-size>
                <default-value>UEMS DekstopCentral</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MESSAGE">
                <description>Message of the NotificationWindow</description>
                <data-type>NCHAR</data-type>
                <max-size>1000</max-size>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="INSTALL_METHOD">
                <description>Specifies the method of the installation 1 -force install  2-remind later</description>
                <data-type>INTEGER</data-type>
                <default-value>1</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REPETITION_COUNT">
                <description>This is used to show reminder for n time(s)</description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="REMINDER_INTERVAL">
                <description>Integer value to indicate the interval to invoke Notification Window</description>
                <data-type>INTEGER</data-type>
                <default-value>3</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="MODIFIED_TIME">
                <description>Time at Mac notification window settings has been modified. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>
            <column name="CUSTOMER_ID">
                <description>Unique identifier of customer</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
            </column>
            <column name="USER_ID">
                <description>ID of the User who created/Modified Mac notification window settings</description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>true</nullable>
                <unique>false</unique>
            </column>
            <column name="FILE_PATH">
                <description>Path of the notification window Json file which holds the information of mac notification window. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="MacNotificationWindow_PK">
            <primary-key-column>MAC_NOTIFICATION_WINDOW_ID</primary-key-column>
        </primary-key>
        <foreign-keys>
            <foreign-key name="MacNotificationWindow_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="MDMEnrollmentSettings">
        <description><![CDATA[Contains MDM Enrollment settings]]></description>
        <columns>
            <column name="settings_id">
                <description>Holds unique Id generated for each MDM Enrollment settings</description>
                <data-type>BIGINT</data-type>
                <nullable>false</nullable>
                <unique>false</unique>
                <uniquevalue-generation>
                    <generator-name>MDMEnrollmentSettings.settings_id</generator-name>
                </uniquevalue-generation>
            </column>          
          <column name="MODIFIED_TIME">
                <description>Time at which the MDM Enrollment settings has been modified. </description>
                <data-type>BIGINT</data-type>
                <default-value>0</default-value>
                <nullable>false</nullable>
                <unique>false</unique>
            </column>           
            <column name="FILE_PATH">
                <description>Path of the MDM Enrollment settings file. </description>
                <data-type>NCHAR</data-type>
                <max-size>200</max-size>
                <default-value>--</default-value>
                <nullable>false</nullable>
            </column>
        </columns>
        <primary-key name="MDMEnrollmentSettings_PK">
            <primary-key-column>settings_id</primary-key-column>
        </primary-key>
    </table>
</data-dictionary>

Youez - 2016 - github.com/yon3zu
LinuXploit