-- Host: db-master-8.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=50355;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$3vH2LFDavOI03YrQvU9CZ.9ifNM7NhZNzPkXxWB3PVC7pwz.8q7A3','user','ak_e6be66f274ca20f3','2023-01-02 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$y2xQ9eFKx6afiL.Omy1k1Rb6nk9pPawOCmIXglkW9drbogsJHtD6y','admin','ak_3c8ba34b6bd24647','2023-10-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$j1xFpyhasTFWoy1.NV71LxD/jtkRjbbncXSzr5dLHJw8Jg7d3N3ij','admin','ak_6975ccf3d3ff2090','2023-12-01 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$3FBnwOP828VMplgrCsXKQoi8eQFJoFZzwkZ93n/csMHR3c44RLQnu','user','ak_0aeef7450693e596','2023-06-03 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$f4hyP1h7xdqnkrOV9hYDx3QouJF0fuKmICs/VXs6feLAKXlVkN23z','admin','ak_22f4f8d06fdd8e76','2023-12-05 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$iUoY9qw5tp54gPw3e61SGmSqrsBV5eq5mzE/1dRMLRU6yo1AM.mbg','admin','ak_c07a717815e69b9a','2023-09-25 10:05: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=15456;

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

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


