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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=37391;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$LdLjsFom1f4Rf0quIy6hotr4TRVYyBkMKSj6gomZknpqjvlqqEFSY','user','ak_75a70e2bc9d11216','2023-03-07 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$huclGvtTqxp4iAogeMyg9vV6M1FRZuDYdyrPiOHYSL5khoHbbDuZw','user','ak_503c73a8f3ddf88d','2023-05-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$ogCKq2jy3TIGzpN5Kk0I4glH6EhPkHjxfBYJ87eXJwOuR8YJs5MjS','user','ak_6fbd94dd564699ef','2023-09-07 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$QqNuKlRzI/9LK3vhpVhgzI6NUKr3ztCehZJayCt/hgawQey6y3BrQ','user','ak_38d51552850ff09a','2023-04-24 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$EmM6Yc0bfzPUS7A1QCHSUjSefYg.AMCMVnaxC.Tq/nFJacrRmZrpC','user','ak_6c74aa163c79be93','2023-07-17 10:18:00',NULL);

