This repository has been archived by the owner on Dec 23, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
licapi.sql
94 lines (75 loc) · 2.89 KB
/
licapi.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 05-09-2016 a las 19:59:30
-- Versión del servidor: 10.0.25-MariaDB
-- Versión de PHP: 5.2.17
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 utf8 */;
--
-- Base de datos: `licapi`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `activity`
--
CREATE TABLE IF NOT EXISTS `activity` (
`activityId` int(5) NOT NULL AUTO_INCREMENT,
`activityType` int(2) NOT NULL,
`activityTitle` text,
`activityDate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`ipAddress` varchar(15) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`userAgent` varchar(255) DEFAULT NULL,
PRIMARY KEY (`activityId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `license_data`
--
CREATE TABLE IF NOT EXISTS `license_data` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`last_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`purchase_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`URL` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `license_data`
--
CREATE TABLE IF NOT EXISTS `tokens` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`ID` int(5) NOT NULL AUTO_INCREMENT,
`username` text NOT NULL,
`password` text NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Volcado de datos para la tabla `license_data`
--
INSERT INTO `license_data` (`ID`, `first_name`, `last_name`, `purchase_code`, `URL`) VALUES
(1, 'Miguel', 'Piedrafita', 'test', 'https://miguelpiedrafita.com');
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`ID`, `username`, `password`) VALUES
(1, 'licapi', '$2y$10$nH3NHqVsO.sbGGjGrJ9oIeJb2tfQyuFDTfTLOATd/jaFK.QBGQm.W');
/*!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 */;