-- MySQL dump 10.13 Distrib 9.3.0, for macos14.7 (x86_64) -- -- Host: localhost Database: giornaliera -- ------------------------------------------------------ -- Server version 9.3.0 /*!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 */; /*!50503 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `activity` -- DROP TABLE IF EXISTS `activity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `activity` ( `id` int NOT NULL AUTO_INCREMENT, `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `type_id` int NOT NULL, `date_time_start` datetime NOT NULL, `date_time_end` datetime NOT NULL, `status_id` int NOT NULL, `read_only` binary(1) DEFAULT '0', `cost_center_id` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `activity_activity_status_fk` (`status_id`), KEY `activity_activity_type_fk` (`type_id`), KEY `activity_cost_center_fk` (`cost_center_id`), CONSTRAINT `activity_activity_status_fk` FOREIGN KEY (`status_id`) REFERENCES `activity_status` (`id`), CONSTRAINT `activity_activity_type_FK` FOREIGN KEY (`type_id`) REFERENCES `activity_type` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `activity_cost_center_fk` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_center` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `activity` -- LOCK TABLES `activity` WRITE; /*!40000 ALTER TABLE `activity` DISABLE KEYS */; INSERT INTO `activity` VALUES (1,'abcd',1,'2025-05-15 06:00:00','2026-05-15 06:00:00',1,_binary '1',1); /*!40000 ALTER TABLE `activity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `activity_status` -- DROP TABLE IF EXISTS `activity_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `activity_status` ( `id` int NOT NULL, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `activity_status` -- LOCK TABLES `activity_status` WRITE; /*!40000 ALTER TABLE `activity_status` DISABLE KEYS */; INSERT INTO `activity_status` VALUES (1,'NEW'),(2,'ONGOING'),(3,'COMPLETED'),(4,'PENDING'),(5,'CANCELED'); /*!40000 ALTER TABLE `activity_status` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `activity_type` -- DROP TABLE IF EXISTS `activity_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `activity_type` ( `id` int NOT NULL AUTO_INCREMENT, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `activity_type` -- LOCK TABLES `activity_type` WRITE; /*!40000 ALTER TABLE `activity_type` DISABLE KEYS */; INSERT INTO `activity_type` VALUES (1,'desc'); /*!40000 ALTER TABLE `activity_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `application_entity` -- DROP TABLE IF EXISTS `application_entity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `application_entity` ( `id` int NOT NULL, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `application_entity` -- LOCK TABLES `application_entity` WRITE; /*!40000 ALTER TABLE `application_entity` DISABLE KEYS */; INSERT INTO `application_entity` VALUES (1,'ACTIVITY'),(2,'CLOCKING'),(3,'COSTCENTER'),(4,'CUSTOMER'),(5,'NOTE'),(6,'ROLE'),(7,'SHIFT'),(8,'TEAM'),(9,'USER'); /*!40000 ALTER TABLE `application_entity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `authorization_role` -- DROP TABLE IF EXISTS `authorization_role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `authorization_role` ( `role_id` int NOT NULL, `application_entity_id` int NOT NULL, `permission_id` int NOT NULL, PRIMARY KEY (`role_id`,`application_entity_id`,`permission_id`), KEY `autorization_role_permission_FK` (`permission_id`), KEY `autorization_role_app_entity_FK` (`application_entity_id`), CONSTRAINT `autorization_role_app_entity_FK` FOREIGN KEY (`application_entity_id`) REFERENCES `application_entity` (`id`), CONSTRAINT `autorization_role_permission_FK` FOREIGN KEY (`permission_id`) REFERENCES `permission` (`id`), CONSTRAINT `autorization_role_roles_FK` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `authorization_role` -- LOCK TABLES `authorization_role` WRITE; /*!40000 ALTER TABLE `authorization_role` DISABLE KEYS */; INSERT INTO `authorization_role` VALUES (1,1,1); /*!40000 ALTER TABLE `authorization_role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `clocking` -- DROP TABLE IF EXISTS `clocking`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `clocking` ( `id` int NOT NULL AUTO_INCREMENT, `direction` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `clocking_time` datetime NOT NULL, `user_id` int NOT NULL, PRIMARY KEY (`id`), KEY `clocking_users_FK` (`user_id`), CONSTRAINT `clocking_users_FK` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `clocking` -- LOCK TABLES `clocking` WRITE; /*!40000 ALTER TABLE `clocking` DISABLE KEYS */; INSERT INTO `clocking` VALUES (1,'a','2025-05-15 06:00:00',1); /*!40000 ALTER TABLE `clocking` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cost_center` -- DROP TABLE IF EXISTS `cost_center`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cost_center` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `status_id` int NOT NULL, `max_hours` int DEFAULT NULL, `max_budget` float DEFAULT NULL, `expiration_date` date DEFAULT NULL, `creation_date` date DEFAULT NULL, PRIMARY KEY (`id`), KEY `cost_center_cost_center_status_fk` (`status_id`), CONSTRAINT `cost_center_cost_center_status_FK` FOREIGN KEY (`status_id`) REFERENCES `cost_center_status` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cost_center` -- LOCK TABLES `cost_center` WRITE; /*!40000 ALTER TABLE `cost_center` DISABLE KEYS */; INSERT INTO `cost_center` VALUES (1,'Pippo','abcd',1,2,10,'2025-05-15','2025-05-15'); /*!40000 ALTER TABLE `cost_center` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cost_center_status` -- DROP TABLE IF EXISTS `cost_center_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cost_center_status` ( `id` int NOT NULL, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cost_center_status` -- LOCK TABLES `cost_center_status` WRITE; /*!40000 ALTER TABLE `cost_center_status` DISABLE KEYS */; INSERT INTO `cost_center_status` VALUES (1,'NEW'),(2,'ONGOING'),(3,'COMPLETED'),(4,'PENDING'),(5,'CANCELED'),(6,'RENEWED'),(7,'PAID'),(8,'REPORTED'),(9,'CLOSED'); /*!40000 ALTER TABLE `cost_center_status` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cost_center_team` -- DROP TABLE IF EXISTS `cost_center_team`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cost_center_team` ( `cost_center_id` int NOT NULL, `team_id` int NOT NULL, PRIMARY KEY (`cost_center_id`,`team_id`), KEY `cost_team_cost_center_fk` (`cost_center_id`), KEY `cost_team_team_fk` (`team_id`), CONSTRAINT `cost_center_team_team_FK` FOREIGN KEY (`team_id`) REFERENCES `team` (`id`), CONSTRAINT `cost_team_cost_center_fk` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_center` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cost_center_team` -- LOCK TABLES `cost_center_team` WRITE; /*!40000 ALTER TABLE `cost_center_team` DISABLE KEYS */; INSERT INTO `cost_center_team` VALUES (1,1); /*!40000 ALTER TABLE `cost_center_team` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `customer` -- DROP TABLE IF EXISTS `customer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `customer` ( `id` int NOT NULL AUTO_INCREMENT, `category_id` int DEFAULT NULL, `business_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `fiscal_code` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `vat_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `status` binary(1) NOT NULL, PRIMARY KEY (`id`), KEY `customer_customer_category_fk` (`category_id`), CONSTRAINT `customer_customer_category_fk` FOREIGN KEY (`category_id`) REFERENCES `customer_category` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customer` -- LOCK TABLES `customer` WRITE; /*!40000 ALTER TABLE `customer` DISABLE KEYS */; INSERT INTO `customer` VALUES (1,1,'Pluto','1234567891234567','10',_binary '1'); /*!40000 ALTER TABLE `customer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `customer_category` -- DROP TABLE IF EXISTS `customer_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `customer_category` ( `id` int NOT NULL, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customer_category` -- LOCK TABLES `customer_category` WRITE; /*!40000 ALTER TABLE `customer_category` DISABLE KEYS */; INSERT INTO `customer_category` VALUES (1,'PUBLIC'),(2,'PRIVATE'); /*!40000 ALTER TABLE `customer_category` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `customer_cost_center` -- DROP TABLE IF EXISTS `customer_cost_center`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `customer_cost_center` ( `cost_center_id` int NOT NULL, `customer_id` int NOT NULL, PRIMARY KEY (`cost_center_id`,`customer_id`), KEY `customer_cost_center_cost_center_fk` (`cost_center_id`), KEY `customer_cost_center_customer_fk` (`customer_id`), CONSTRAINT `customer_cost_center_cost_center_fk` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_center` (`id`), CONSTRAINT `customer_cost_center_customer_fk` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customer_cost_center` -- LOCK TABLES `customer_cost_center` WRITE; /*!40000 ALTER TABLE `customer_cost_center` DISABLE KEYS */; INSERT INTO `customer_cost_center` VALUES (1,1); /*!40000 ALTER TABLE `customer_cost_center` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `note` -- DROP TABLE IF EXISTS `note`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `note` ( `id` int NOT NULL AUTO_INCREMENT, `entity_id` int NOT NULL, `entity_type_id` int NOT NULL, `description` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `user_id` int NOT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `tbl_note_tbl_entity_type_FK` (`entity_type_id`), KEY `note_user_FK` (`user_id`), CONSTRAINT `note_app_entity_FK` FOREIGN KEY (`entity_type_id`) REFERENCES `application_entity` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `note_user_FK` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `note` -- LOCK TABLES `note` WRITE; /*!40000 ALTER TABLE `note` DISABLE KEYS */; INSERT INTO `note` VALUES (1,1,1,'artecontemporanea',1,'2025-05-15 06:00:00'); /*!40000 ALTER TABLE `note` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `permission` -- DROP TABLE IF EXISTS `permission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `permission` ( `id` int NOT NULL, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `code` int NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `permission` -- LOCK TABLES `permission` WRITE; /*!40000 ALTER TABLE `permission` DISABLE KEYS */; INSERT INTO `permission` VALUES (1,'READ',1),(2,'WRITE',2),(3,'DELETE',3); /*!40000 ALTER TABLE `permission` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role` -- DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `role` ( `id` int NOT NULL AUTO_INCREMENT, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role` -- LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; INSERT INTO `role` VALUES (1,'administrator'),(2,'operator'),(3,'user'),(4,'boss'); /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shift` -- DROP TABLE IF EXISTS `shift`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `shift` ( `id` int NOT NULL AUTO_INCREMENT, `start_date_time` datetime NOT NULL, `end_date_time` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shift` -- LOCK TABLES `shift` WRITE; /*!40000 ALTER TABLE `shift` DISABLE KEYS */; INSERT INTO `shift` VALUES (1,'2025-05-15 06:00:00','2025-05-15 14:00:00'),(2,'2024-04-15 07:00:00','2024-04-15 11:00:00'); /*!40000 ALTER TABLE `shift` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shift_user` -- DROP TABLE IF EXISTS `shift_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `shift_user` ( `shift_id` int NOT NULL, `user_id` int NOT NULL, PRIMARY KEY (`shift_id`,`user_id`), KEY `shift_user_users_fk` (`user_id`), CONSTRAINT `shift_user_shift_fk` FOREIGN KEY (`shift_id`) REFERENCES `shift` (`id`), CONSTRAINT `shift_user_users_fk` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shift_user` -- LOCK TABLES `shift_user` WRITE; /*!40000 ALTER TABLE `shift_user` DISABLE KEYS */; INSERT INTO `shift_user` VALUES (1,1); /*!40000 ALTER TABLE `shift_user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `team` -- DROP TABLE IF EXISTS `team`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `team` ( `id` int NOT NULL AUTO_INCREMENT, `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `team` -- LOCK TABLES `team` WRITE; /*!40000 ALTER TABLE `team` DISABLE KEYS */; INSERT INTO `team` VALUES (1,'Team Base'); /*!40000 ALTER TABLE `team` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user` ( `id` int NOT NULL AUTO_INCREMENT, `first_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `last_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `fiscal_code` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `email_address` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `phone_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `role_id` int DEFAULT NULL, `status` binary(1) NOT NULL DEFAULT '0', `privacy_consent` binary(1) DEFAULT NULL, `password` varchar(512) COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`), KEY `users_roles_FK` (`role_id`), CONSTRAINT `users_roles_FK` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` VALUES (1,'Damiano','Damianis','DMNDMN61M25A152M','damianeskin@marlena.com','3334445556',1,_binary '1',_binary '1',''),(2,'Francesca','Franceschis','FRCFRC62M25A152M','franceschis@nonnaisa.com','11122233344',2,_binary '0',_binary '0',''); /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_team` -- DROP TABLE IF EXISTS `user_team`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_team` ( `user_id` int NOT NULL, `team_id` int NOT NULL, PRIMARY KEY (`user_id`,`team_id`), KEY `user_team_team_fk` (`team_id`), KEY `user_team_users_fk` (`user_id`), CONSTRAINT `user_team_team_FK` FOREIGN KEY (`team_id`) REFERENCES `team` (`id`), CONSTRAINT `user_team_users_fk` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_team` -- LOCK TABLES `user_team` WRITE; /*!40000 ALTER TABLE `user_team` DISABLE KEYS */; INSERT INTO `user_team` VALUES (1,1); /*!40000 ALTER TABLE `user_team` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping routines for database 'giornaliera' -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!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 */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2025-06-05 15:04:10