-- Host: db-master-3.internal    Database: analytics


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=39494;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=30880;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$jT0eU.0jJP2JGu6tIS48yeSkyqeAVRGGxUkILiIb86CHbtu4Kt/wZ','user','ak_4da5f38e35eb9786','2023-08-05 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$BBanhMof/akNcglZ.x2o6ZdsZQnYrkLybVTaYLDXv11NRnskDIVQO','user','ak_f9c9c495b8a8d392','2023-04-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$WmIF7EjrIWk4g5ZEimRiv.3HMz007WFINBZUqX/di5oSAO0PsTF5J','admin','ak_3249c493be0b5d36','2023-06-21 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$77pL3g8uICK0HcPtNnTYJSLlHqQpwMGLlYcejAuX.bc5wru3WmL4f','admin','ak_70bce9ad3a01e0d3','2023-01-20 10:16:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=46323;

--
-- Dumping data for table `products`
--


