-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabase.sql
More file actions
97 lines (85 loc) · 2.24 KB
/
Database.sql
File metadata and controls
97 lines (85 loc) · 2.24 KB
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
95
96
97
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 05-12-2018 a las 16:03:42
-- Versión del servidor: 10.1.10-MariaDB
-- Versión de PHP: 5.6.19
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 */;
--
-- Base de datos: `id8138591_clientes`
--
CREATE DATABASE IF NOT EXISTS `id8138591_clientes`;
USE `id8138591_clientes`;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `cities`
--
CREATE TABLE IF NOT EXISTS `cities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`city` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `city` (`city`)
) ENGINE=InnoDB AUTO_INCREMENT=33;
--
-- Volcado de datos para la tabla `cities`
--
INSERT INTO `cities` (`id`, `city`) VALUES
(1, 'Amazonas'),
(2, 'Antióquia'),
(3, 'Arauca'),
(26, 'Archipiélago de San Andrés'),
(4, 'Atlántico'),
(5, 'Bolívar'),
(6, 'Boyacá'),
(7, 'Caldas'),
(8, 'Caquetá'),
(9, 'Casanare'),
(10, 'Cauca'),
(11, 'Cesar'),
(12, 'Chocó'),
(13, 'Córdoba'),
(14, 'Cundinamarca'),
(15, 'Guainía'),
(16, 'Guaviare'),
(17, 'Huila'),
(18, 'La Guajira'),
(19, 'Magdalena'),
(20, 'Meta'),
(21, 'Nariño'),
(22, 'Norte de Santander'),
(23, 'Putumayo'),
(24, 'Quindío'),
(25, 'Risaralda'),
(27, 'Santander'),
(28, 'Sucre'),
(29, 'Tolima'),
(30, 'Valle Del Cauca'),
(31, 'Vaupés'),
(32, 'Vichada');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `clients`
--
CREATE TABLE IF NOT EXISTS `clients` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`name` varchar(40) NOT NULL,
`last_name` varchar(50) NOT NULL,
`type_document` int(11) NOT NULL,
`document` int(14) NOT NULL,
`email` varchar(70) NOT NULL,
`city` int(11) NOT NULL,
`address` varchar(90) NOT NULL,
`movile` int(14) NOT NULL,
`phone` int(14) NOT NULL,
`state` tinyint(1) NOT NULL,
`last_update` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 ;