• No se han encontrado resultados

4. DESARROLLO DE LA PROPUESTA

4.6. Diagrama de secuencia

4.6.1. Gestión de usuario

Secuencias realizadas durante la gestión de un registro de la tabla usuario, en esta parte se describe cada uno los eventos lanzados durante la creación o edición de usuario.

Ilustración 7 - Secuencia: Gestión de usuario

36

4.6.2. Gestión de empleado

Secuencia ejecutadas durante la gestión de empleado, eventos ejecutados cuando un usuario realiza la creación o edición de un empleado.

Ilustración 8 - Secuencia: Gestión de empleado

37

4.7.Base de datos

4.7.1. Modelo conceptual

Este grafico representa cada una de las partes principales que intervendrán en el sistema mostrando como son relacionan entre si lo cual nos muestra un enfoque global de lo manejará la aplicación.

38

4.7.2. Modelo lógico

Este modelo representa cada uno de los atributos o propiedades con sus respectivos tipos que tendrá cada entidad (tabla) de la base de datos estos pueden ser como: identificador de registro, nombre, dirección entre otros.

39

4.7.3. Modelo físico

Este tipo de modelo es la parte que ya se encuentra almacenada en el gestor de base de datos, donde ya consta cada una de sus propiedades con sus respectivos tipos de datos que van a ser gestionados por una aplicación cliente.

40

5. CONCLUSIONES

Se realizó un análisis de las bases teóricas conceptuales sobre administración y control de nómina agrícola, las cuales permitieron la fundamentación del proyecto investigativo, destacando categorías como: Procesos Administrativos, Sistemas de Información, y Programación Orienta a Objetos.

Se diagnosticó el estado actual de los diferentes procesos de control de nómina de la empresa Moreano Sánchez Rosa María de la Parroquia San Cristóbal del Cantón Quevedo, realizando una reunión con el personal del departamento de talento humano y producción lo cual favoreció la creación de la aplicación web puesto que se consideró cada una de las directrices expuestas como requerimientos.

Con el levantamiento de la aplicación, transformará el no control de gasto de la mano obra en verificación concurrente con lo presupuestado por producción siendo esto el principal valor agregado por parte de la aplicación web además de contar con una interfaz totalmente amigable para el usuario lo cual es favorable para el normal desenvolviendo del departamento de talento humano.

6. RECOMENDACIONES

Se recomienda a la empresa capacitar al personal operativo de talento humano sobre estrategias de control interno de nómina.

Se aconseja que el servidor a utilizar sea de ambiente Linux de preferencia Debian 8 con soporte para Java Server Faces y MySql además de un servidor de respaldo ya que la aplicación funciona en entorno web.

Los diferentes perfiles de usuarios deben estar enfocados a tareas específicas para así poder controlar la integridad de la información registrada.

41

7. BIBLIOGRAFÍA

Alfaro, R. (04 de Mayo de 2017). América economía. Obtenido de Gestión de la Fuerza Laboral: http://www.americaeconomia.com/analisis-opinion/gestion-de-la-fuerza- laboral

Arjonilla D., S., & Medina G., J. (2013). La gestión de los sistemas de información en la empresa. Madrid: Ediciones Pirámide.

Bernal T., C. A. (2007). Introducción a la administración de organizaciones. Enfoque global e integral. Colombia: Pearson Educación de México.

Bernal, C. (2010). Metodología de la investigación. Colombia: Pearson Educación.

Berzal, F., Cortijo, J., & Cubero, J. (2003). Desarrollo Profesional de Aplicaciones Web con ASP.NET. Mexico: Pearson Educación.

Caballero R., A. (2014). Metodología integral innovadora para planes y tesis. México: Cengage Learning Editores.

Carballeiro, G. (2012). Diseño web con HTML y CSS. Buenos Aires: Fox Andina; Dalaga.

Casale, J. (2012). Introduccion a la Programación. Buenos Aires: Fox Andina; Dálaga. Castañeda P., M., & Pérez R, Y. (09 de Junio de 2017). Aspectos teórico-conceptuales

sobre las redes y las comunidades virtuales de conocimiento . Obtenido de http://bvs.sld.cu/revistas/aci/vol13_6_05/aci020605.htm

Chiavenato, I. (2006). Introducción a la teoría general de la administración. México: McGraw-Hill.

Chiavenato, I. (2007). Administración de Recursos Humanos. El capital humano de las organizaciones. México: McGraw-Hill.

Cohen K., D., & Asín L., E. (2000). Sistemas de información para los negocios un enfoque para lo toma de decisiones. México: McGraw-Hill.

Cordova V., K. (12 de Junio de 2017). Sistema de Informacion Gerencial. Obtenido de https://krixcor.wordpress.com/trabajos/

42

CourseHero. (07 de Junio de 2017). El propósito de la administración de recursos.

Obtenido de https://www.coursehero.com/file/p4mjjqr/El-prop%C3%B3sito-de-la- Administraci%C3%B3n-de-Recursos-Humanos-es-brindar-a-la/

Culebro J., M., Gómez H., W., & Torres S. , S. (2006). Software libre vs software propietario ventajas y desventajas. México: Creative Commons.

Custodio R, A. (05 de Mayo de 2017). Métodos y técnicas de investigación científica.

Obtenido de https://www.gestiopolis.com/metodos-y-tecnicas-de-investigacion- cientifica/

Definición. (14 de Junio de 2017). Obtenido de https://definicion.mx/software-propietario/ Dessler, G. (2009). Administración de Recursos Humanos. México: Pearson Educación. Durán, F., Guitierrez, F., & Pimentel, E. (2007). Programacion Orientada a Objetos con

Java. Madrid: Paraninfo.

Flórez F., H. (2012). Programación Orientada a Objeto usando Java. Bogotá: Ecoe Ediciones.

Franklin F., E. B. (2009). Organización de Empresas. México: McGraw-Hill.

García LL., L. (2010). Programación Orientada a Objetos en Java. Barranquilla: Grupo Editorial Ibánez.

Gauchat, J. (2012). El gran libro de HTML5, CSS3 y Javascript. Barcelona: Marcombo. Gilfillan, I. (2003). La Biblia MySQL. Madrid: Anaya Multimedia.

González M., D. (2000). Ergonomía y psicosociología. Madrid: FC Editorial.

Guía Breve de CSS. (19 de Junio de 2017). Obtenido de

http://www.w3c.es/Divulgacion/GuiasBreves/HojasEstilo

Guías Breves de Tecnologías W3C. (28 de Junio de 2017). Obtenido de http://www.w3c.es/Divulgacion/GuiasBreves/XHTML

Hellriegel, D., Jackson, S., & Slocum, J. (2009). Administración. Un enfoque basado en competencias. México: Cengage Learning Editores, S.A.

43

Hernández, J. (2005). Software libre: técnicamente viable, económicamente sostenible y socialmente justo. Barcelona: Cargraphics.

Hitt, M. (2006). Administración. México: Pearson Educación.

Horngren, C., Datar, S., & Foster, G. (2007). Contabilidad de Costo. Un enfoque gerencial. México: Pearson Educación.

Informática Básica. (14 de Junio de 2017). Obtenido de

http://proyectoova.webcindario.com/software_de_sistema.html

Informática XP. (12 de Junio de 2017). Obtenido de http://informaticaxp.net/clasificacion- y-tipos-de-software

Joyanes A., L. (2008). Fundamentos de Programación Algoritmo, estructura de datos y objetos. Madrid: McGraw-Hill.

Joyanes A., L., & Fernández A., M. (2004). Java 2 Manual del programador. Madrid: McGraw-Hill.

Joyanes A., L., & Zahonero M., I. (2011). ProGraMaCión En Java 6. algoritmos, programación orientada a objetos. México: McGraw-Hill.

Koontz, H., & Weihrich, H. (2013). Elemento de Administración. Un enfoque internacional y de innovación. México: McGraw-Hill.

Koontz, H., Weihrich, H., & Cannice, M. (2012). Administración. Una Perspectiva Global y Empresarial. México: McGraw-Hill/Interamerica.

Laudon, K., & Laudon, J. (2012). SIstemas de Información Gerencial. México: Pearson Educación.

León S., G. (1996). Ingeniería de Sistemas de Software. Madrid: Isdefe.

López M., I., & Castro V., M. (2014). Gestión de base de datos. Madrid: Ibergaceta Publicaciones.

Luna G., A. (2014). Proceso Administrativo. México: Grupo Editorial Patria. Mateu, C. (2004). Desarrollo de aplicaciones web. Barcelona: Eureca Media.

44

Monestel D., Y. (9 de Mayo de 2017). Planeación de la fuerza laboral en las empresas globales. Obtenido de https://www.gestiopolis.com/planeacion-de-la-fuerza- laboral-en-las-empresas-globales/

Morán D., G., & Alvarado C., D. (2010). Métodos de Investigación. México: Pearson Educación.

Moyano F., J., Bruque C., S., Maqueira M., J., Fidalgo B., F., & Martinez J., P. (2011).

Administración de Empresas: Un Enfoque Teórico-Práctico. Madrid: Pearson Educación.

Münch, L. (2007). Escuelas, proceso administrativo,áreas funcionales y desarrollo emprendedor. México: Pearson Educacion.

Navarro C., A., Fernández M., J., & Morales V., J. (03 de Mayo de 2017). Dialnet.

Obtenido de Revisión de metodologías ágiles para el desarrollo de software: https://dialnet.unirioja.es/servlet/articulo?codigo=4752083

Oz, E. (2008). Administración de los Sistemas de Información. México: Cengage Learning. Pastrana, O. (03 de Mayo de 2017). Intelligence to Business. Obtenido de

http://www.i2btech.com/blog-i2b/tech-deployment/5-beneficios-de-aplicar- metodologias-agiles-en-el-desarrollo-de-software/

Pressman, R. (2010). Ingeniería del software. Un enfoque práctivo. México: McGraw-Hill. Ramez, E., & Shamkant, N. (2007). Fundamentos de Sistemas de Bases de Datos. Madri:

Pearson Educación.

Ramírez, F. (2007). Introducción a la Programación. Algoritmo y sus implementacio en Visual Basic.Net, C#, Java y C++. México: Alfaomega.

Real Academia Española. (09 de Junio de 2017). Diccionario de la lengua española 23.ª

edición (2014). Obtenido de http://www.rae.es/obras-

academicas/diccionarios/diccionario-de-la-lengua-espanola

Silberschatz, A., Korth, H., & Sudarshan, S. (2002). Fundamentos de Bases de Datos.

Madrid: McGraw-Hill.

45

Stallman, R. (2004). Software libre para una sociedad libre. Madrid: Traficantes de Sueños.

Tinoco Gómez, O., Rosales López, P. P., & Salas Bacalla, J. (05 de Mayo de 2017).

Criterios de selección de metodologías de desarrollo de software. Obtenido de Industrial Data, 13() 70-74: http://www.redalyc.org/comocitar.oa?id=81619984009 Velarde de Barraza, O., Murillo de Velásquez, M., Gómez de Meléndez, L., & Castillo de

Krol, F. (2006). Introducción a la Programación Orientada a Objetos. México: Pearson Educación.

Wayne M., R. (2010). Administración de recursos humanos. México: Pearson Educación. Weitzenfeld, A. (2005). Ingeniería de software orientada a objetos con UML Java e

Internet. México: Thomson.

Welsch, G. A., Hilton, R. W., Gordon, P. N., & Rivera N., C. (2005). Presupuesto planificación y control. México: Pearson Educación.

Werther, W., & Keith, D. (2008). Administración de recursos humanos El capital humano de las empresas. México: McGraw-HILL Interamericana.

Zamora, S. (09 de Junio de 2017). IZAMORAR. Obtenido de http://izamorar.com/la- informacion-y-su-importancia-en-las-empresas/

46

8.1.Script base de datos

CREATE DATABASE IF NOT EXISTS `platform` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `platform`;

-- MySQL dump 10.13 Distrib 5.5.55, for debian-linux-gnu (x86_64) --

-- Host: localhost Database: platform

-- --- -- Server version 5.5.55-0+deb8u1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */;

/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--

-- Table structure for table `nombud_detail` --

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `nombud_detail` ( `budgetid` int(11) NOT NULL, `detailid` int(11) NOT NULL,

UNIQUE KEY `UK_f1c00fx5tkj32x9936s936y2q` (`detailid`), KEY `FKjhmrfvsjx2t5nh1myco66cbky` (`budgetid`),

CONSTRAINT `FK1f2bpyc9t2mqlepsmntkvaq2y` FOREIGN KEY (`detailid`) REFERENCES `prdbudgetdetail` (`id`),

CONSTRAINT `FKjhmrfvsjx2t5nh1myco66cbky` FOREIGN KEY (`budgetid`) REFERENCES `prdbudget` (`id`),

CONSTRAINT `FKky27pyxwfs5bc1ax4kluiwwge` FOREIGN KEY (`detailid`) REFERENCES `prgbudgetdetail` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `nomreg_detail` --

DROP TABLE IF EXISTS `nomreg_detail`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `nomreg_detail` ( `registerid` int(11) NOT NULL, `detailid` int(11) NOT NULL,

UNIQUE KEY `UK_fm933jtv6twf9vehifc8ouumc` (`detailid`), KEY `FK1y9qg5ms3lmsbjmhlfub17p9r` (`registerid`),

CONSTRAINT `FK1y9qg5ms3lmsbjmhlfub17p9r` FOREIGN KEY (`registerid`) REFERENCES `nomregister` (`id`),

CONSTRAINT `FKdgcimhd8sy3rcd0skcr3wb5wj` FOREIGN KEY (`detailid`) REFERENCES `nomregisterdetail` (`id`)

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `nomregister` --

DROP TABLE IF EXISTS `nomregister`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `nomregister` ( `id` int(11) NOT NULL,

`employee` varchar(50) NOT NULL, `land` varchar(50) NOT NULL, `locked` bit(1) NOT NULL,

`numberCard` varchar(10) NOT NULL, `yearWeek` varchar(7) NOT NULL, PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `nomregisterdetail` --

DROP TABLE IF EXISTS `nomregisterdetail`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `nomregisterdetail` ( `id` int(11) NOT NULL,

`amount` decimal(10,2) NOT NULL, `codeLabor` varchar(6) NOT NULL, `dateRegister` date DEFAULT NULL, `labor` varchar(50) NOT NULL,

`lot` varchar(10) NOT NULL,

`subtotal` decimal(10,2) NOT NULL, `tarifa` decimal(5,2) NOT NULL, PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `prdbudget` --

DROP TABLE IF EXISTS `prdbudget`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `prdbudget` ( `id` int(11) NOT NULL,

`codeLand` varchar(4) NOT NULL, `locked` bit(1) NOT NULL,

`nameLand` varchar(30) NOT NULL, `yearWeek` varchar(7) NOT NULL, PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `prdbudgetdetail` --

DROP TABLE IF EXISTS `prdbudgetdetail`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `prdbudgetdetail` ( `id` int(11) NOT NULL,

`codeLabor` varchar(5) NOT NULL, `nameLabor` varchar(50) NOT NULL, `subtotal` decimal(7,2) NOT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_ruuam0dog9x632op170vsdyh2` (`codeLabor`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `prdlabor` --

DROP TABLE IF EXISTS `prdlabor`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `prdlabor` ( `id` int(11) NOT NULL,

`codigo` varchar(255) NOT NULL, `enabled` bit(1) NOT NULL, `name` varchar(50) NOT NULL, `tarifa` decimal(5,2) NOT NULL, `typeLabor` int(11) DEFAULT NULL, `laborgroupid` int(11) DEFAULT NULL, `measureid` int(11) DEFAULT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_ns45h1kditfh307kuw5cu6aya` (`codigo`), KEY `FKoboeagxtgk8yqw9owf2a9jj8v` (`laborgroupid`), KEY `FKnk8c15e5gj09nm1apm6nltf63` (`measureid`),

CONSTRAINT `FKnk8c15e5gj09nm1apm6nltf63` FOREIGN KEY (`measureid`) REFERENCES `prdmeasure` (`id`),

CONSTRAINT `FKoboeagxtgk8yqw9owf2a9jj8v` FOREIGN KEY (`laborgroupid`) REFERENCES `prdlaborgroup` (`id`)

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `prdlaborgroup` --

DROP TABLE IF EXISTS `prdlaborgroup`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `prdlaborgroup` ( `id` int(11) NOT NULL,

`codigo` varchar(4) NOT NULL, `enabled` bit(1) NOT NULL, `name` varchar(30) NOT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_cjr9upkx834sxo2l99wu8hhqx` (`codigo`), UNIQUE KEY `UK_lldyonth0wba842yklol9w5cg` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `prdland` --

DROP TABLE IF EXISTS `prdland`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `prdland` ( `id` int(11) NOT NULL,

`address` varchar(80) NOT NULL, `codigo` varchar(4) NOT NULL, `enabled` bit(1) NOT NULL, `initials` varchar(3) NOT NULL,

`name` varchar(50) NOT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_l5tdshpwmnllpq9iwv99tnt9n` (`codigo`), UNIQUE KEY `UK_5y1aaylba8ifsavawlo7ukk1m` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `prdlot` --

DROP TABLE IF EXISTS `prdlot`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `prdlot` ( `id` int(11) NOT NULL,

`codigo` varchar(4) NOT NULL, `enabled` bit(1) NOT NULL, `halot` decimal(5,2) NOT NULL, `name` varchar(10) NOT NULL, `landId` int(11) DEFAULT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_lqjxex53bu0nki8350yd97umk` (`codigo`), KEY `FK3cbiqqj66a5hcmtn7ldbf69qa` (`landId`),

CONSTRAINT `FK3cbiqqj66a5hcmtn7ldbf69qa` FOREIGN KEY (`landId`) REFERENCES `prdland` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `prdmeasure` --

DROP TABLE IF EXISTS `prdmeasure`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `prdmeasure` ( `id` int(11) NOT NULL,

`enabled` bit(1) NOT NULL, `initials` varchar(3) NOT NULL, `name` varchar(50) NOT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_cu07t3tlkgr0pekm9gcqaimdh` (`initials`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `prgbudgetdetail` --

DROP TABLE IF EXISTS `prgbudgetdetail`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `prgbudgetdetail` ( `id` int(11) NOT NULL,

`codeLabor` varchar(255) NOT NULL, `nameLabor` varchar(50) NOT NULL, `subtotal` decimal(7,2) NOT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_2g7sgydhra12oggdj41jim09d` (`codeLabor`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `seguser_groups` --

DROP TABLE IF EXISTS `seguser_groups`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `seguser_groups` ( `userid` int(11) NOT NULL,

`usergroupid` int(11) NOT NULL,

PRIMARY KEY (`userid`,`usergroupid`),

KEY `FKjnkehnlh2yam660ipv6ybvv1i` (`usergroupid`),

CONSTRAINT `FKik33a1umaiadh0ir622euqx0s` FOREIGN KEY (`userid`) REFERENCES `segusers` (`id`),

CONSTRAINT `FKjnkehnlh2yam660ipv6ybvv1i` FOREIGN KEY (`usergroupid`) REFERENCES `segusergroup` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `segusergroup` --

DROP TABLE IF EXISTS `segusergroup`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `segusergroup` ( `id` int(11) NOT NULL,

`description` varchar(100) DEFAULT NULL, `enabled` bit(1) NOT NULL,

`name` varchar(40) NOT NULL, `moduleid` int(11) DEFAULT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_245sh1gpat8j3062w9s989ois` (`name`), KEY `FKjdtb1ilislf4gvh82p03anb6` (`moduleid`),

CONSTRAINT `FKjdtb1ilislf4gvh82p03anb6` FOREIGN KEY (`moduleid`) REFERENCES `sismodulo` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `segusergroupright` --

DROP TABLE IF EXISTS `segusergroupright`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `segusergroupright` ( `id` int(11) NOT NULL,

`menuId` int(11) NOT NULL, `rightAccess` int(11) NOT NULL,

`userGroupId` int(11) DEFAULT NULL, PRIMARY KEY (`id`),

KEY `FK3h6jivq4ymqicb3f5q5jsavkx` (`userGroupId`),

CONSTRAINT `FK3h6jivq4ymqicb3f5q5jsavkx` FOREIGN KEY (`userGroupId`) REFERENCES `segusergroup` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `segusers` --

DROP TABLE IF EXISTS `segusers`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `segusers` ( `id` int(11) NOT NULL,

`email` varchar(50) NOT NULL, `enabled` bit(1) NOT NULL, `name` varchar(50) NOT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_44h3p8j4xg0idvvgjsno2k4kb` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `sismenu` --

DROP TABLE IF EXISTS `sismenu`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `sismenu` ( `id` int(11) NOT NULL,

`name` varchar(20) NOT NULL, `sequence` int(11) NOT NULL, `url` varchar(50) DEFAULT NULL, `moduloId` int(11) DEFAULT NULL, `parentId` int(11) DEFAULT NULL, PRIMARY KEY (`id`),

KEY `FKslde2bf7rhn8can2nukf1q60p` (`moduloId`), KEY `FKemw7h4y85ajr0ddbkyc6hycnm` (`parentId`),

CONSTRAINT `FKemw7h4y85ajr0ddbkyc6hycnm` FOREIGN KEY (`parentId`) REFERENCES `sismenu` (`id`),

CONSTRAINT `FKslde2bf7rhn8can2nukf1q60p` FOREIGN KEY (`moduloId`) REFERENCES `sismodulo` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

-- Table structure for table `sismodulo` --

DROP TABLE IF EXISTS `sismodulo`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `sismodulo` ( `id` int(11) NOT NULL, `enabled` bit(1) NOT NULL, `name` varchar(40) NOT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_fg3jfv3ook3vns2dipvyk6wvn` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `sissequence` --

DROP TABLE IF EXISTS `sissequence`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `sissequence` (

`sequencename` varchar(255) NOT NULL, `sequencecounter` bigint(20) DEFAULT NULL, PRIMARY KEY (`sequencename`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `thmemployee` --

DROP TABLE IF EXISTS `thmemployee`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `thmemployee` ( `id` int(11) NOT NULL,

`admissionDate` date DEFAULT NULL, `birthdate` date DEFAULT NULL, `civilStatus` int(11) DEFAULT NULL, `enabled` bit(1) NOT NULL,

`homeAddress` varchar(80) NOT NULL, `lastName` varchar(25) NOT NULL, `name` varchar(25) NOT NULL,

`numberCard` varchar(10) NOT NULL, `numberPhone` varchar(10) NOT NULL, `typeGender` int(11) DEFAULT NULL, `landid` int(11) DEFAULT NULL, PRIMARY KEY (`id`),

KEY `FK4sjr8liuby9iksxue8wm56tfg` (`landid`),

CONSTRAINT `FK4sjr8liuby9iksxue8wm56tfg` FOREIGN KEY (`landid`) REFERENCES `prdland` (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;

--

-- Table structure for table `thmitems` --

DROP TABLE IF EXISTS `thmitems`;

/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;

CREATE TABLE `thmitems` ( `id` int(11) NOT NULL,

`enabled` bit(1) NOT NULL, `factor` decimal(7,4) NOT NULL, `name` varchar(30) NOT NULL, PRIMARY KEY (`id`),

UNIQUE KEY `UK_nnppyvessxchcrwvy5ddxal8r` (`codigo`), UNIQUE KEY `UK_96w5ee193ymavxywwyvex76fc` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */;

--

-- Dumping routines for database 'platform' -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

Documento similar