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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$DOJ3tFT8LVFGvQILE4rrW1zRpd8DMkfp4EjgtL4sQG4XQ9CP2kPmM','user','ak_508f4e8e81a43854','2023-10-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$vCQ9gvpkcj6.m9eVp8UnuML160ncwk3qkQrS1o/Vm97h688R.p/Jo','user','ak_3034b8c9f8b052c3','2023-09-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$tP8wSiWR9owusV7N8K12U9UhhrZwyoJ.a4osw4aERdVu.KlidmPDo','user','ak_24007dbf1c909f60','2023-04-02 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$3Gf0KV82Ci7PgE1O9CjGaHrBdATXtsX5j4l6680PLPHLae/fV3Udp','user','ak_9bbb2b2600ab2d32','2023-02-19 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$0OuDb68NrKlmo/K3wI4TNy4R9x/03hFBrcO.1Dub/ZLzRUsplO.ZX','user','ak_f83329540737e91a','2023-06-16 10:15:00',NULL);

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

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


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

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


