-- Host: db-master-0.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=8922;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$eK2SE.ZBUbkVCziYZqBdMjqURpr1aRXZ0AuDBXAhqXxXh/PX0KVsW','user','ak_d69dac0563bc291e','2023-04-06 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$UE2dPR1L7m8BwFoIzHNcwOxI312T9lHjRq0mKBnv.wbY7eVzLrwDY','user','ak_2e152b03ca64ac22','2023-09-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$QLVomsT7hYDTQCSmYohlH0ubcdX.tnq.1zljfdkra.sFhNttS5Gwk','admin','ak_90c18706bde00334','2023-05-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$i1uDsL5od.O3t7r/6zSrw5.8ADuN84r9YiswI0H1EGuoEWZNCnG01','admin','ak_841bfcf0350f5d43','2023-04-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$8Y3ldoghqtK7AsiQHWGeA3WX0yFaQOPgxxn4JOl7auI380ZMqWygt','user','ak_4b93322262478e9f','2023-07-19 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$cCTJQYN2TD7PimTNORkdeHRgnI.tHpfPXykQv5EeyZ54WkhIX14ph','user','ak_85ad560502af721c','2023-07-04 10:00:00',NULL);

