-- Host: db-master-5.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=42733;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$FdqS2Q2UFIW9vACfK41WzVcxAPHrYn6gteA.wfYOa.RthClZF4MHy','user','ak_74a400d6f2d3277e','2023-10-13 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$VNnLP45tnG9uyn5Kw.r/qr4sGUdNafBWK6P45aaM279aRapnmKjVj','user','ak_79d2e8af2c4d63b5','2023-09-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Cb5DAzyUy5ZFvYX2nPWuTs6iED4D0FmGSQufQ72xeNOEz4RNVuWg.','user','ak_3bf126b38e8ef05f','2023-02-24 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$BzdC045pwJ6DVcVsYOZmrMQr6yAGP5fL/PBceITg7ua8clmJLH3tE','user','ak_4b02621224d7b688','2023-07-12 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$OVYfnoFxeSs5vweUgMYYEFaAiTR8ZBaiEsjYRLCaWziHEh5kkBZm2','user','ak_91d38f76ce68067e','2023-06-05 10:19: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=18362;

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


