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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$x.w8oYEM0.RPRuhdE7vwXjyaIBk6Q8dXt/aqbobyaB3Oek6WeYqgy','user','ak_2a3935fdb7abf746','2023-03-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$eONUr.egMGUitS1vZn2Df7FQbhKoCrNABMF.jLtJM/EFT8y5h3r3l','user','ak_a73f53869a9bdf7f','2023-11-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$TwJBEL.cGL1e958.BJ15NTGRCKYX.JafcMzNXQ8xUb2shZXT2MwNv','admin','ak_dab8f2171df257b6','2023-05-06 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Qw.eWhvjKNn5qZVh/LHoEIM/5byxgvXAUBlUjab6tM4g9iD4T08JL','user','ak_9e9897f4aae4783f','2023-12-22 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$vlmJUIxjIdCWSvBtjfmA.mvhWsjZkg1mWtNHawJ7Y6w16JSwLmc6B','user','ak_1a96331d0c70b5f7','2023-01-17 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$slhMDymkclCGPNH98GLxBfLV2f/7jC4P6uyJziSCCUuP76shuvOLJ','user','ak_8fe551eccad1037a','2023-03-15 10:04:00',NULL);

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

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


