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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$R3OmhD52QGroHbdtmdYdFHnthfXJHpH2I4A.qJj/wAzOx22I.0Klb','user','ak_0a77c01f590fa882','2023-05-27 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$LQqiUwyGSq/W1eHJyfa/yOW0pdw1l5xMCgFU3xDIzoTnZPQyQmaPY','user','ak_f7f605415cd5c141','2023-12-12 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$SLF2nA9YQm86oZwAycquyCyXKFOZrePZBA6Fu4Iws4bnJEcisM42i','user','ak_dc1cfa456185842a','2023-08-25 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$Wf5RMCrB2fYFXdz6ST5odkqKyiT5JEzQtJGzQTI5DTr.S4lroZdTm','admin','ak_d9e56fcbc895f897','2023-09-12 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$sBQliHNpSQDHDD3HoeOKGqHxNTrFkrUpH04V02kX7fW487I2Bpj2P','user','ak_33ecfda263be1407','2023-09-05 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=5801;

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

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


