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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$pWGJEfeHKNaKhELwIrz.HfaRMS8QpnTdtftJ8gCtvutGh/uCt72CC','user','ak_a075ea512bca5903','2023-10-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$XzjPVufDo4pa.qMsY3Cy3gESdirl.1xAwLm7/UQ9P1M3Pu66yOG9S','admin','ak_353e9e33dcd32543','2023-01-23 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$Nn6d9Q5OBOO9Akk5KoZcymK5oMaOM.BiNweUSZ5y5Y1Boq3/UYJqo','user','ak_a398a21e1f7172b3','2023-03-27 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$4.2xB0.haWf4K1V6y/hVNX0yqKGOqn60BccRqWnVipwOqdHYngc1p','admin','ak_c272dedb849c14f2','2023-06-12 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$kwPLMcnr7fTzeLcXiievU2tyCYCXlfqDCewV/yePvurULq5Gdk5PQ','user','ak_d6275bb92e1a04c8','2023-01-14 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$SIOEurkvlT90GEA0WhuxCJONg80Rmd9BG9jX8ygyl36qYEYJe7Yrw','user','ak_f35925a2e7bb5a9f','2023-05-01 10:17:00',NULL);

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

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


