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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Ih1n6S62d7APGiKZQxH90FFyPaBwFtBf1VmhWjBeoOHqK..Hi/dvd','user','ak_9c9b94788549c6d6','2023-11-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$UXBelrgPmXt9woBpETsW.Za/EMQEosLGf1fxdGXMgn9H3FPWe1v1I','admin','ak_e04afc489c0e423e','2023-10-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$RQL0O0W1OEhuIedUQ7ch/4249RD7j9CZkFCAtYZ..ja7oIUmh0QiW','user','ak_ae29e830661ce0a5','2023-11-19 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$W1cpauySWv/DLHiJR8HGVTgGkIk7orog8f6.hdh.CGZ7z2SiNATkH','user','ak_c1913f366aafaccf','2023-05-27 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$EVHugOoDkRthnkN7TO8Lo0Cs/nN1057H/73HZfCSEyiNnYENObm7N','admin','ak_aa844105595b6187','2023-01-19 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$MaE6lFb.dnHQxpzXUSP97Kz1vHkpY.VYMXhZTHD3LBwywN7/Yn0aj','user','ak_820eeeefc68b80b2','2023-06-28 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@internal.io','$2b$12$o3COZ04Q/ZTuy4Kjp8LM7wh65R6NYD7oZNHohE0GJuAyOrfGHQFkq','user','ak_68ca6a2626906c4f','2023-08-05 10:07:00',NULL);

