/*

SQLyog Ultimate v8.6 Beta2
MySQL - 8.0.27 : Database - baseyii2024

*********************************************************************

*/













CREATE DATABASE /*!32312 IF NOT EXISTS*/`baseyii2024` /*!40100 DEFAULT CHARACTER SET utf8 */ /*!80016 DEFAULT ENCRYPTION='N' */;



USE `baseyii2024`;



/*Table structure for table `operacion` */






CREATE TABLE `operacion` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nombre` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;



/*Data for the table `operacion` */



insert  into `operacion`(`id`,`nombre`) values (1,'*');



/*Table structure for table `rol` */






CREATE TABLE `rol` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nombre` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;



/*Data for the table `rol` */



insert  into `rol`(`id`,`nombre`) values (1,'Super Admin'),(2,'Super Usuario'),(3,'Usuario');



/*Table structure for table `rol_operacion` */






CREATE TABLE `rol_operacion` (
  `rol_id` int NOT NULL,
  `operacion_id` int NOT NULL,
  PRIMARY KEY (`rol_id`,`operacion_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;



/*Data for the table `rol_operacion` */



insert  into `rol_operacion`(`rol_id`,`operacion_id`) values (1,1);







