-- Host: db-master-5.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=2657;

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$lVeEuIe6.t5ciHgotQBcrVU7ypo8hAgb6rnmLczKNjiQn2OvT6gF.','user','ak_5e8540728a93c0ab','2023-04-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$0ESzUcGLY9cjxFKOdwbbtb9mj3s6xhS7GV5LRvlRnEPiWcMQgtzWA','user','ak_fe5352e60a12c46e','2023-06-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$XLeZOlj1DgqW0QX2UwjxnOAmNp2FMdgwQmN2ULGjspQtnmNBXeN90','user','ak_339047918b0da75d','2023-07-10 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$O9uUPYlE4Zp2o4m/bb97sIlDCCUs0T9/Q/C7Yi5XokCqhmVBjPUC9','admin','ak_8707b218467c492f','2023-10-10 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$UYUsqitQZoecEbi9QrDXvOgRVmSAYaA4dSbEueIu/hTB3lNLrWQ2S','admin','ak_a24f0dd945eb477c','2023-12-25 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$IBCniO6EkTXNk7.nPUHkDG/5SIDd9boSZq7j6sqeMkCBkdAW1PkIB','admin','ak_ebed985af56479fc','2023-03-19 10:21:00',NULL);

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

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


