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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Q3rBFjXirYAP18yTUsPlifopXFu1PKcIbcLunDjkFr/UkA.rIsXmt','user','ak_f0549767f2ef2156','2023-03-08 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$HRAdQc6k/RkQVa7qIO91cxofEiG6iyHS/8vwl/f4fuqznxsp7rsQt','admin','ak_e7dbd557a7a284bd','2023-10-15 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$qp5D.DPHZgQvW.2sBK/VGvFrYyGod06oABHrNr7.RVWb6JfPSIKzL','user','ak_4ff98813d51b8407','2023-06-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$f4u6R31uVJ1L.r03ZYkAKMUl/GxBxZ2rgWGC4eMlWGbAFktvAiuNl','user','ak_37486265d23ce25a','2023-11-03 10:04:00',NULL);

