-- Host: db-master-1.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=39466;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$hx2mII85eYmSwQUvzkNSh1F5XZu6Q/1fmcplMFi1hPGL6lZczYBrn','user','ak_d4a67a515069e96f','2023-11-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$ZhCK1M1kiL.ugy9biNhOyeabISV8T8jZU6Qivt1tFH/4r8KxEaGRO','user','ak_51aa3d739d752863','2023-01-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$ui7VicDYplFwCpQzPv.nKNaz4GcfidrX3g.F/BNzWdbOPXiusYv8p','user','ak_046e4407e35a475b','2023-04-12 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$4pFrTtEBmRk8Ivhlb9rcd0G8.jzuV.NYLZcmbgQiOziQgqQveDquS','user','ak_28cd7a08c6f81007','2023-11-22 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$pW3ezNstSckC3bKCjOQoIMcIDz7sLs7Sjx8JINmUqI0DT9iA36fU7','user','ak_f2e3c5eb92357721','2023-07-11 10:17: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=21165;

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


