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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$v0rtGO6YgL.CqdJmFDbNsw4gtx887Fxi8ROdK4.4CDQKoKKseZNDi','user','ak_afaa8d4be5c4ca2b','2023-06-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$HVtXGw1Jgohyvzpj7LzZvzRhWQjvrhWYOpQx1S2HDqHPPAwejdAML','user','ak_b9813ddc545f378e','2023-07-11 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$3lEvUXUqLJgtm5v6M8MxoojaybOhxUxgezy42GBw62nyWT6EzITfn','user','ak_d321deddbd09e9b3','2023-04-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$YEA/QgWhqDiXMEu2qTkOCmptos2pwmbQWKpel.Q0DLyakjps5qmRw','user','ak_9dfc551a7f4e1a6b','2023-07-20 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$ef1mNYvM82b6qeqX0YWBsRPQzzwDY4SKqr2uz3Fzp1.EYuS736jAt','user','ak_e0ccd0bc89ad5ff9','2023-10-15 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$NvlF5qVIFF9PafxvrZVIswF9RyfNdm0P3aLDAATwENmxe0CD72Et.','admin','ak_f2fc254b65b2f27f','2023-07-22 10:19:00',NULL);

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

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


