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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$m.apM7x7PDcpnTqkfxO1gJWz4AZCkA7/S0r3BmbisCQ37M.iNsQbQ','user','ak_1c14fa9f9b45a039','2023-01-24 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$5/DuC8uifQ8oNgdjLSMEckiUtW4/TJa4xUyK8NhjfSAVXf4/yxRSR','user','ak_a3a60af3cb109f94','2023-01-26 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$d9e17huvuUr/IwZVOYBRlecPz4KL7ZQJWJw2pKsJWdCee9BVqqxA5','user','ak_19851fa505ec125a','2023-11-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$QbnvhDHbMah89GoDBSwLKuD3TFj1inZ1H8AxxHeg7H/i6tzoPwDk0','user','ak_414273d9b8228115','2023-08-13 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$djoWElPfE6TdYQ5vUiFbmQe31dLQtO9zNEZMg2ia.g8Fv9ArB.1CC','user','ak_b15d1b45ae8c188e','2023-09-27 10:23:00',NULL);

