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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$E10AE.5.SVBBvwF5hylXvZkSq234GLvERQx4g15Jq7zqcsYpyjif.','admin','ak_094b529ca6604263','2023-08-17 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Tq50eWDPmsD13mmSVon36oVXU4jSnajcBYEIOxI588h.t2lbkiVKJ','admin','ak_01201daf48bd4fda','2023-01-05 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$zM6WOdSPBWm4p6hgcTwXpBOxtcN4p8gwbsEakLT4tM2rFJdMrM4/b','user','ak_a17911b4aade0674','2023-04-26 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$TtgZyfJoxG1mUvAIieD3bGP/46aawLGgO.Yj6.cD8on0pQtyEx2Kp','admin','ak_7a1adb8f2504f8fa','2023-05-26 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$AqYgXk1s15A5j/bFFT0J6Px4x3BjTYw9t2xUiiYyAw4mpootNBsuW','user','ak_1222a0279cf754db','2023-05-22 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$I/HKYyWYHmT1It1P59BQWPNRjubXfN0vZIfh2Yo9/ngwEG93WYP/d','admin','ak_055c35be3973587f','2023-01-13 10:12:00',NULL);

