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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$HsVuopAj0kTEGDTjt/DN671mye1tjQ.a8THLu2mmxQmO74bmN/ZX6','user','ak_89701bb042f20470','2023-11-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$1Qdr5SfethwVYi/RpQtHk5M4al.GzOFeUegOvUlxCZxZq5U9dnVoG','user','ak_ec0e9d2ca63cb43d','2023-08-13 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$i0i9VoL3nVA0MC02rgFQB/oulYTJdKy.KZeJB1E/VS5g2IGtKVAMQ','admin','ak_a30b5acfc272cc13','2023-07-21 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$ATGECJIBOqErojGTGJ7nh5g.kP9hOa6K4okJDfqGebBtZsLfr0wvC','admin','ak_4f985036cfe680d7','2023-07-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$bPCHM9LE.Nf9GZA7DqeJWfURdkbIl7omNwCAZoev8ss5MqzW0yg3X','user','ak_d0278571feab86d9','2023-09-23 10:13:00',NULL);

