-- Host: db-master-2.internal    Database: webapp_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=25219;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$im.sbSaD.7a45BXQ8spEA.mcKJZf4GXnw/C0zyLEKXdjt/HIobPf/','user','ak_db766c1b441422da','2023-01-09 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$BBKFjx3.GFO5km0ViBjE2/zTrjL8I/SN6tS3iqKbr0X2YyaLVo4/f','user','ak_f525991f6b31f8e2','2023-11-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$SmHykdEIb3tUNukqHUgNSBy/s53DOjuRL1pmz9UzNxXDRNCMYA6Rt','user','ak_40b762fe7201c569','2023-10-22 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$FEOfJUckJxm6lsjIVlE6xsE2YApgXEilFPSNIOF2k.sqZH/GLGL2v','user','ak_b0841f4e0d257c04','2023-06-02 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$x/ZzzUIGumSiGbm38TnZpFcrMn8.LK9IgkvcLnhJyD5VkzzelXDyV','admin','ak_93f1427b05ddcf12','2023-01-22 10:11: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=12565;

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

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


