-- Host: db-master-9.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=10300;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$rnzQNBSkiBPz6/wvjbEJ094mClunGzAzvKdjkzYL6g5GyLghF3Syk','user','ak_78e6b9e9d560f77b','2023-07-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$/iWmUy/HcNiBUfRzngOouiF08SqQcnlI3Z1zysBNrnTgg6cqyTYbM','user','ak_fb52b280ba0f8ea3','2023-04-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Sae3sQNNiNUgJiTeYeCKas.gA8kBZzN/IQx7A..jOpjkU5OiI.SRI','admin','ak_f0d5eff397f37668','2023-09-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$MlyjjRBzKCrkabq08NTtUz4C18zpX/61PGaX3OJosNyNo33ueox/J','user','ak_3bf65c6070ab770b','2023-11-28 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$6jvhl5n4b.9ycpX6XDLV7IOluIUEuvkPCak7Vwi1F1ReScDCrIRem','admin','ak_0be7097a3da9eb73','2023-01-14 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$.GFu6kLwlq473CD4EP.kCU7vpGIkSL4pYkLEAtfYE7VZlNQGB4VIk','admin','ak_46e43c15aafa1086','2023-11-04 10:16:00',NULL);

