/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 100428
 Source Host           : localhost:3306
 Source Schema         : encuesta

 Target Server Type    : MySQL
 Target Server Version : 100428
 File Encoding         : 65001

 Date: 29/09/2023 04:54:06
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for usuarios
-- ----------------------------
DROP TABLE IF EXISTS `usuarios`;
CREATE TABLE `usuarios` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `nombre` varchar(50) NOT NULL,
  `apellido_paterno` varchar(50) NOT NULL,
  `apellido_materno` varchar(50) NOT NULL,
  `matricula` varchar(50) NOT NULL,
  `tipo_usuarios_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `usuarios_matricula_unique` (`matricula`),
  KEY `usuarios_tipo_usuarios_id_foreign` (`tipo_usuarios_id`),
  CONSTRAINT `usuarios_tipo_usuarios_id_foreign` FOREIGN KEY (`tipo_usuarios_id`) REFERENCES `tipo_usuarios` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- ----------------------------
-- Records of usuarios
-- ----------------------------
BEGIN;
INSERT INTO `usuarios` VALUES (1, 'demo', 'demo', 'demo', 'demo', 2, '2023-09-29 08:17:42', '2023-09-29 08:17:42');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
