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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$xYW0T37fW2Jh9KoDlEph5fGxtNFzQFnSXh1MtTYe1U1LGbaf11uCI','admin','ak_4594a5f71d61f216','2023-06-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$71LSC7tiDHgxz6somi8CLvxDeIyVuWJ0HBdA/vKb6A7fsa6XLIDLQ','admin','ak_ecb8bf62e5b5aee9','2023-07-13 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$oxRYGj6qWXe0OalKOoh4TRYk2U4i.h2qCa/.EpdITUaQEka6ZV3ro','admin','ak_989374dea5f784e1','2023-12-17 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$2OuooKNEUe5enRs7LBxF4wMW3rKt1h5M8A/Q9.KUvOG5txh/8wzk9','user','ak_31312657face669a','2023-11-10 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$Q1b1yItWN5BxlGnCD0GTvHH4e.0dJmMQW1cgqRms92etktPV7WLyr','admin','ak_52bc60c333fd8664','2023-11-14 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=1048;

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


