-
Notifications
You must be signed in to change notification settings - Fork 0
/
examen.sql
75 lines (61 loc) · 2.23 KB
/
examen.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
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 16-11-2023 a las 23:05:06
-- Versión del servidor: 10.4.28-MariaDB
-- Versión de PHP: 8.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `examen`
--
CREATE DATABASE IF NOT EXISTS `examen` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `examen`;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `propiedades`
--
CREATE TABLE `propiedades` (
`id` smallint(6) NOT NULL,
`nombre` varchar(100) NOT NULL,
`direccion` varchar(200) NOT NULL,
`caracteristicas` varchar(200) DEFAULT NULL,
`estado` varchar(20) DEFAULT NULL,
`precioalquiler` decimal(6,2) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Volcado de datos para la tabla `propiedades`
--
INSERT INTO `propiedades` (`id`, `nombre`, `direccion`, `caracteristicas`, `estado`, `precioalquiler`, `created_at`, `updated_at`) VALUES
(1, '12', '21', '21', 'Disponible', 22.00, '2023-11-16 19:26:23', '2023-11-16 21:20:54'),
(2, '3', '3', '3', 'Alquilado', 3.00, '2023-11-16 21:01:35', '2023-11-16 21:20:48'),
(4, 'wafefwe', '21', '21', 'Alquilado', 22.00, '2023-11-16 21:21:16', '2023-11-16 21:21:16');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `propiedades`
--
ALTER TABLE `propiedades`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `propiedades`
--
ALTER TABLE `propiedades`
MODIFY `id` smallint(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
COMMIT;
/*!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 */;