-- Host: db-master-2.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=20573;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Sm8a8TZcdVUjqFIhtMqEuEeO9W8kwpk8f2B6KYXBGcItprPyOc6PC','user','ak_217342d138f942dc','2023-04-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$LNBQCmjngSadpPweBH754.TPcctxq3SBMUTAQ6AlT42K.NSyk0R4L','admin','ak_de5a6a64be96ca49','2023-10-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$278i1GLjVd6OWCQ99xvduXisx8lLWHlIPIhqO5KYxYjmK7ya03YeB','admin','ak_7a3fc200fa2a5cc2','2023-06-23 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$zTf13/EqWgKe/odh10URY9LhKm2RhBQWwJhXWMhIvmfDZ5s14g6Pv','admin','ak_6b19f02eb65399fe','2023-07-12 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$PPqeRHZrWS09oDonsjtKBX6NkFd4ahEuoDwiwmbeR2odOgYcDaHtk','user','ak_810febdb87f6e5ed','2023-12-28 10:20:00',NULL);

