Vous êtes sur la page 1sur 6

-- phpMyAdmin SQL Dump

-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 19, 2017 at 03:50 AM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 5.5.38

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


SET time_zone = "+00:00";

/*!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 utf8mb4 */;

--
-- Database: `kmdemo`
--

-- --------------------------------------------------------

--
-- Table structure for table `clients`
--

CREATE TABLE `clients` (


`ClientId` int(11) NOT NULL,
`Name` varchar(100) NOT NULL,
`Contact` varchar(100) NOT NULL,
`Email` varchar(100) NOT NULL,
`Phone` varchar(50) NOT NULL,
`OfficeId` varchar(100) NOT NULL,
`SiteCode` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `config`
--

CREATE TABLE `config` (


`idconfig` int(11) NOT NULL,
`login` int(11) DEFAULT NULL,
`register` int(11) DEFAULT NULL,
`forgot` int(11) DEFAULT NULL,
`smtp` varchar(100) DEFAULT NULL,
`port` int(11) DEFAULT NULL,
`fromname` varchar(100) DEFAULT NULL,
`mail` varchar(100) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
`url` varchar(150) DEFAULT NULL,
`messagemail` text,
`messagechange` text,
`renewmessage` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `config`
--

INSERT INTO `config` (`idconfig`, `login`, `register`, `forgot`, `smtp`, `port`,


`fromname`, `mail`, `password`, `url`, `messagemail`, `messagechange`,
`renewmessage`) VALUES
(1, 1, 1, 1, 'mail.mydoamin.com', 587, 'KnowS&S', 'noreply@mail.com', 'desarrollo',
'http://www.mydoamin.com/', 'Hola! muchas gracias por registrarte, ahora solo debes
de registrar tu cuenta usando el siguiente link', 'Has cambiado de correo
electronico! usa el siguiente link para confirmar tu correo electronico', 'Has
pedido recuperar tu cuenta, tu nueva contrasea es:');

-- --------------------------------------------------------

--
-- Table structure for table `knowledges`
--

CREATE TABLE `knowledges` (


`KnowId` int(11) NOT NULL,
`UserId` int(11) NOT NULL,
`CreateDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`WorkOrder` varchar(10) NOT NULL,
`ClientId` int(11) NOT NULL,
`Description` varchar(1000) NOT NULL,
`Diagnostic` varchar(1000) NOT NULL,
`Solution` varchar(1000) NOT NULL,
`Component` varchar(50) NOT NULL,
`FileModifies` varchar(100) NOT NULL,
`CloseDay` date NOT NULL,
`KeyWords` varchar(1000) NOT NULL,
`QualityDate` date NOT NULL,
`Rdf` text NOT NULL,
`TyPeProductId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `knowviews`
--

CREATE TABLE `knowviews` (


`KnowViewId` int(11) NOT NULL,
`UserId` int(11) NOT NULL,
`VisitDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP,
`Rate` int(11) NOT NULL,
`KnowId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `preferiences`
--
CREATE TABLE `preferiences` (
`idpreference` int(11) NOT NULL,
`theme` int(11) DEFAULT NULL,
`lang` int(11) DEFAULT NULL,
`usuario` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `preferiences`
--

INSERT INTO `preferiences` (`idpreference`, `theme`, `lang`, `usuario`) VALUES


(1, 1, 1, 1),
(2, 4, 1, 3);

-- --------------------------------------------------------

--
-- Table structure for table `projects`
--

CREATE TABLE `projects` (


`ProjectId` int(11) NOT NULL,
`ClientId` int(11) NOT NULL,
`Git` varchar(200) NOT NULL,
`Environment` varchar(50) NOT NULL,
`Technology` varchar(50) NOT NULL,
`Version` varchar(20) NOT NULL,
`Url` varchar(200) NOT NULL,
`Component` varchar(100) NOT NULL,
`DBType` varchar(50) NOT NULL,
`DBName` varchar(50) NOT NULL,
`DBUser` varchar(50) NOT NULL,
`DBPassword` varchar(50) NOT NULL,
`UserUrl` varchar(50) NOT NULL,
`PasswordUrl` varchar(50) NOT NULL,
`UserType` varchar(50) NOT NULL,
`LogsUrl` varchar(50) NOT NULL,
`TypeProductId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `typeproducts`
--

CREATE TABLE `typeproducts` (


`TypeProductId` int(11) NOT NULL,
`Name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `usuarios`
--

CREATE TABLE `usuarios` (


`idusuario` int(11) NOT NULL,
`nombre` varchar(250) DEFAULT NULL,
`apellido` varchar(250) DEFAULT NULL,
`profile` varchar(250) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`password` varchar(250) DEFAULT NULL,
`registro` date DEFAULT NULL,
`permalink` varchar(250) DEFAULT NULL,
`activo` int(11) DEFAULT NULL,
`ranker` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `usuarios`
--

INSERT INTO `usuarios` (`idusuario`, `nombre`, `apellido`, `profile`, `email`,


`password`, `registro`, `permalink`, `activo`, `ranker`) VALUES
(2, 'Administrador', 'Admin', '1', 'admin@admin.com',
'ea0408d3c22b818bff3d2092ddc16eeefded6259', '2016-06-29', 'ad1c1e268f', 2, 2),
(3, 'Andrea', 'Sanchez', 'kmcontent/images/members/normal-
fl4yb0lwyym9tjfuucp0jhomu2017-02-19.jpg', 'ancasabu20@gmail.com',
'ea0408d3c22b818bff3d2092ddc16eeefded6259', '2017-02-19', '8fe167545b', 2, 1);

-- --------------------------------------------------------

--
-- Table structure for table `verify`
--

CREATE TABLE `verify` (


`idactive` int(11) NOT NULL,
`token` varchar(250) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`fecha` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `verify`
--

INSERT INTO `verify` (`idactive`, `token`, `email`, `fecha`) VALUES


(1, '03669190632308f2d9cfc572d79e5f6d671cf20b', 'admin@jhcodes.com', '2016-06-29'),
(2, 'e2249ddaf1c2ba9fcdf1c6c304e2bbe04801ef59', 'ancasabu20@gmail.com', '2017-02-
19');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `clients`
--
ALTER TABLE `clients`
ADD PRIMARY KEY (`ClientId`);

--
-- Indexes for table `config`
--
ALTER TABLE `config`
ADD PRIMARY KEY (`idconfig`);

--
-- Indexes for table `knowledges`
--
ALTER TABLE `knowledges`
ADD PRIMARY KEY (`KnowId`);

--
-- Indexes for table `knowviews`
--
ALTER TABLE `knowviews`
ADD PRIMARY KEY (`KnowViewId`);

--
-- Indexes for table `preferiences`
--
ALTER TABLE `preferiences`
ADD PRIMARY KEY (`idpreference`);

--
-- Indexes for table `projects`
--
ALTER TABLE `projects`
ADD PRIMARY KEY (`ProjectId`);

--
-- Indexes for table `typeproducts`
--
ALTER TABLE `typeproducts`
ADD PRIMARY KEY (`TypeProductId`);

--
-- Indexes for table `usuarios`
--
ALTER TABLE `usuarios`
ADD PRIMARY KEY (`idusuario`);

--
-- Indexes for table `verify`
--
ALTER TABLE `verify`
ADD PRIMARY KEY (`idactive`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `clients`
--
ALTER TABLE `clients`
MODIFY `ClientId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `config`
--
ALTER TABLE `config`
MODIFY `idconfig` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `preferiences`
--
ALTER TABLE `preferiences`
MODIFY `idpreference` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `projects`
--
ALTER TABLE `projects`
MODIFY `ProjectId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `typeproducts`
--
ALTER TABLE `typeproducts`
MODIFY `TypeProductId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `usuarios`
--
ALTER TABLE `usuarios`
MODIFY `idusuario` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `verify`
--
ALTER TABLE `verify`
MODIFY `idactive` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
/*!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 */;

Vous aimerez peut-être aussi