-- Host: db-master-9.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$79KrYZ6cxz0qVQkhLl1uAgbGMSRhV0VlOunGyM7gHmKHWPUy5NCxd','admin','ak_ec9200a03f3d76ae','2023-03-18 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$wfbNT1V1ki23iV0X.q.Db7O8IkDCKG4lJWInPOaYzJZT02icdG9iJ','admin','ak_d306a37fdae7f420','2023-12-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$k8fTO5yAYxHviwYDPGjLdQ2zRWszXAS3BcJMLCHEtSb1DvODml/Cr','admin','ak_1dee3bf6da7a4245','2023-05-19 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$WtUGOU4Mu6FHv3jSQMM7MXh8PON91XZdRMYjQkklB/i73/XiKmyPM','user','ak_a9e8f137af89063c','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$JGfvLEs0utwgHFjBwuKND1ko6NU2INBEJjayyjV9JWndg5f0gID/I','admin','ak_ea2073fe73099057','2023-09-25 10:02:00',NULL);

