-- Host: db-master-6.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$TjeZS88LgixxzwjqLPZPT9sOExOvxOxKJZa2t3d1L7a7itg84B/m6','admin','ak_ef60bad9625a6b86','2023-11-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Vm1pAEfUX.1LN/GrLZbu3mmqCavrnc76swWY9dPLsdt7.Ry7aivkN','user','ak_336a8b8d35a5aeb8','2023-08-24 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$tfA/mCV.tmmHO2EzU5x/E0AnlncmybnjHWiv7rsDc298tzFnOFT6J','admin','ak_41058b4e6be887de','2023-12-01 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$8TuSuugzdMOehF9pRLIRv/8Oy4cM4Nq5nHPXBZxpS.JVyaOrSrzxB','user','ak_57412b16d3297f37','2023-07-26 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$c6YZQ0qnqMAKn5Wupu.1Jgr9VuejUZpdNUUus1UnrILeQfAVW.zpO','user','ak_50b95d6e32e913f6','2023-02-21 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$6wSOgk0KAYtYZOe2xDG1xF1v3A3ztSUtC/d.zlxTM/XwMUF9hu1Zs','user','ak_5ae19bdab7cd1563','2023-05-10 10:03:00',NULL);

