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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$NCihWN15A.03ZTAB6lW2DxkK2XFNcS2kg152ADk/hBD2JcI9h6ETr','user','ak_2a22054815e6fb75','2023-08-19 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Ln3FD4.YV//MlHnj1XahFyYNbVewQhmbQVPvUuFidi6NLmQg2./wc','admin','ak_121da4d9a27b6d12','2023-05-27 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$6XHCpW9znsZbVX1f862NpvJOPz9tZfcLAGZOhgiM38avtToAGejVr','admin','ak_ae41980199fb3cc3','2023-06-03 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$SDnUePNlQxhVddxPZEpmXRlqgd1orkmhGo.VweFth9cDJ8/F7c7O6','admin','ak_f1936ac7bb8fd571','2023-08-25 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Rp8u3su8IXGws9Vg9J/umh5X9UnrJ.yI2Z4eMFUooSsrxc.7khdYD','user','ak_f2368ab1856b2d9f','2023-04-03 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$8nZlk02RU30Xd0L.mW/gDWEdq8D6nFDKUghCOwFfL3s2zIV4760Qn','admin','ak_f899ebf78cd9f163','2023-04-20 10:17:00',NULL);

