-- Host: db-master-4.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$.ZKKgjJLh2SXsjwAh53I1DePEO5OkIVsPuti/AOJm1z/.6QLxgJFV','admin','ak_40cdf3de0988ddd0','2023-06-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$qkm4wfaSJE0I5Mk3ILo8CW.R.yDQ2gx1YjBThxZ/0lm8jhIDn8Ah7','user','ak_cfc501d7e9c82480','2023-03-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$p1.MysJGhEwVnQpIHbEH/Jjm7yfJb2otZ7gNZEVdknSWdM9KQ0Seb','admin','ak_a2d22bd46ffb5b5a','2023-06-10 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$nlDCeLmeAojpys3qq/sVX6AkT2T4Z17o36XjE21pu50cSd2MGZVuA','admin','ak_3cadbab688ed9721','2023-08-13 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$KOsSdNDTd/gY47hJJtJw7qu5xivOtMMMuOs/FYbDztqVC.WdoieH2','user','ak_a8327bd5d124eb19','2023-10-26 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$jrWP157Y1luUj4ZcWdv.9yet2sbPCY1IHJxyIhLD7y5DndBLOBmao','admin','ak_f4819373ae606252','2023-03-21 10:23: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=6289;

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


