-- Host: db-master-2.internal    Database: webapp_db


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=29648;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$S4.EeOSYh9Q5rWW7L6Wx6YLcTEzGDdHAc1H/Q75fmFiw6Vz0Q.Q67','user','ak_905f9d05cc0d0d4d','2023-03-05 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$BDBBP4hVumr8Ri6fRVDZBSytjHkbKBiKuAbMdNEXGhRKwe6y7e953','user','ak_cc274615e8891284','2023-07-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$r7I4PZfxE8bqnr6MPVcpP61o/ZoJHbr6i5TSTdq2GlUbUnp6Q4hDO','user','ak_d8e38751a3fcac81','2023-08-27 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$6gi70wUDRHuJl8u5GG48O3wM1Ob0cvn4W8Em5XjEeshq2JNEWu14R','user','ak_d10c4e20f81b5982','2023-10-05 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$EcD4E7TsBDrCT5YuMd4/WfF8tt79PcpCKAfg2vUF1wTjQ.TycaDCb','admin','ak_e4890dd9fd20f901','2023-05-15 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$9IUXSNa3YiOSKBaMiIc6j07/b676H3YCDC3ymXF8i3k0vHfAUO9iO','admin','ak_0a787a918271d55e','2023-05-18 10:02:00',NULL);

