-- Host: db-master-8.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=34341;

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$ydCUT33DgzIqeGaQ4C5rsl9Ll41VQTHbhsfuoNhHRZVOV6OMJ01t3','admin','ak_3f1b0eeffd9588d3','2023-01-26 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$cefpjIBMqRJVh4B9sHgqc6T0Zz3xLJw8zx9Tg2zCtkvPVDKIWH5dQ','user','ak_64602883220701ff','2023-05-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$FSoCv28sBlweFy12RzutYJq.l8p69LLkB5NxJ.qxnZh.PfUlCfecM','admin','ak_bba10605ff8a60d9','2023-01-27 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$j7G/pi/Rz6pDxFlh46qe9dUWqoF.iu40x6MI9SoNgjoFttMwZaJod','admin','ak_6f0469c5eb8cdb08','2023-09-06 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$WCpcoOi1FPTY.KMVuOK9QnR0HfwUDZa5ChWYoUeTtVMXE3O7kKfL9','user','ak_1395ae188e172342','2023-06-12 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$eAlXPIFllhediSQH4b3weycLiEFenNddNPr4Gp8Oq1nqejeAoYR1y','user','ak_e88ad139b8cc30c3','2023-02-25 10:11:00',NULL);

