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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$ZIjO8rnAhiuxMu1kDYN8A6gmI85ZtGmAAXfPqdWUefjysxKnyUPUo','user','ak_707d258858877ba5','2023-11-18 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$BH4OZgjQu.ZDayruZLCoLoKUOLkPh93NkS9pBIQDLr0gfpQVgkJ19','user','ak_b706917381128403','2023-03-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$S7lPMRT/TzyU0C7sXqs4NLi/bysWtVHfzPkfakijq6AgWRK9aOK.L','user','ak_1c0ffeb0dcd6c603','2023-12-15 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$F.wRBXiGGn81lKSgIylFjcpRRbxUhYf9YJ/yJU3G6BaU0HhkQ3jmR','user','ak_d39271f3afd0f704','2023-11-13 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$WZ/IfsjGA3WGPOD5iEI235DRxOCnmTCtGc1qlUFPiVqKmhGSspfdg','user','ak_7c12351c6631f554','2023-07-25 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$4tEjpSsMRZSorqJRj7BjtCa.mkjpyzQpOOy5JU16kpTtgwaGegy16','user','ak_5bd84d35fbe34f18','2023-12-16 10:09:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=37371;

--
-- Dumping data for table `orders`
--


