-- Host: db-master-4.internal    Database: customers


--
-- 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=41620;

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


--
-- 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=23445;

--
-- 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=44185;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$yldqDkBls8BSqve5Rp9prgKOWCKq8mYU/deTgA14wd/ncveu5LYdp','user','ak_232e7b5e6628c717','2023-05-04 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$M4tZoSgigD8vNk1Xkg8JL6RWwXGdKmQjghE.ppZ6ZdWvlcc6uYGMs','user','ak_09f338616b420f86','2023-10-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Lw7bnOQ5cgoF8ippqQk0UOPYoUDZw6Ti.2rtFY1db4Dj1Q957QutE','user','ak_3ce432be5ff727f4','2023-05-09 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$9WkUN6uNeP5VQqatrHYZoZGBUDcGSTaoCMs1V4wrkhxkXx8TKe2En','user','ak_3e6bd203297957c0','2023-03-21 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$G.8iAmZs1ghX2NGVddN3SvIZqCVX8AnI80ZbpKjO.raa6p3F7qCqz','admin','ak_85c45db5aeece628','2023-09-09 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$rRS5zycygDPlOFxGpu4cZb2/eVjnS.p.uW5skgf1t.yeexJ1p7lKa','user','ak_acab0d1ece6471bb','2023-12-06 10:15:00',NULL);

