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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$y4g7UZUTsPsIndS0sIDLffTVmQQ9sb3plAyshbB3tBIHV6lHAiMVD','user','ak_750946681305cc6f','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$86LKXsQRl/8/oKjXS.WXekxI9elRtNfhsUrN2eCavQuOTjqqKNxP4','admin','ak_f5d9c7cbcb8e53a7','2023-11-11 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$4uIzGGhlwPnOMm2LnQeQGXHZvIfP0FlfZ3y.MuJgTwJT6ea6CbJ/Y','user','ak_c14498faabb35d67','2023-10-01 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$lvdQuOSIu0PLyvTMbnn6RxC3rmN35ETLK1QitexbV4Sz9R9/5CEi.','user','ak_43fe2f05833fbfa7','2023-11-19 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$QHPFPtpAwsdD4uhbhRGaoAx7utLoRRF7awkOu6DWQe1x6m3UNzZBq','user','ak_1c558624f729c8e5','2023-09-26 10:07: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=6587;

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


