-- Host: db-master-8.internal    Database: production_db


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

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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$zCnFT/fTM.lmYvDeQItzUEgJtCUWnZBQqSUTCJSjAluuZ4UEjrIQQ','user','ak_78c021ea5fe54fe1','2023-10-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$le/oFBLxO.ibUQxOjMKbrfHjvyXphQJkBpunwcIsrGSeG/IgUbH1P','user','ak_954f3312c744ca0f','2023-05-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$mbYW.OlH.6VE6spmQP2n2Pw/xiFnf5fvLn72I7GGcGQ84ChMTO5LE','user','ak_246fabd01fcd3f09','2023-05-26 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$pkjEGvu6zG0Pkt5PO7K4vMz9BRw38KH6DP7mNlaeKzZleq07Ee/Oe','admin','ak_f422b3ed03b01218','2023-04-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$HxGL4aDZzU3VoA2sZPWse3ZKXh2sXk8NcRbpa5j9OEsNA2.j2Qntc','user','ak_fe8a378a54dfcf38','2023-10-28 10:22:00',NULL);

