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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$at.RT8UaCioDj2UWiqMJ3YyKWmwSdeZFJZhtwyyJy4xjARmFPs6.m','user','ak_5544adacd57eb02f','2023-07-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$8ltHv6YPGqVufvPQm3e7Q88qhUQXGRheUmEHuHcuL3L0N5JZN8OYU','user','ak_369bc078ae640d99','2023-10-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$4q0OZBIL5yWEnH2exdokJFlY8VKPq2FaxyJ51Q9DvQ9ENcHHUu6Pm','admin','ak_d47f150cd7e9890b','2023-09-03 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$g0SHP3TRumd1shdz.q7MOHc9RAj/nHSku3Redydrf5BJFzX5hjXwm','user','ak_b03fcd6979a248aa','2023-04-16 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$RpZIC8OkzbUxkf5xkrGNaQ.wTGleiLkyZAYeykWzo.PHyfJFV053t','user','ak_59a56df4cb13e993','2023-01-08 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$yoTc19/9zaVV67yLRdV.uh8Q3cc17zZQxOz.Pf8OpQ2dpRycAXrpt','user','ak_066f3ee48b5cb0d4','2023-11-06 10:16: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=24853;

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

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


