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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$RZVgxWRGOVdEwm9zjlKRXeedaajHaTqw0YFesRfytv.v6DPe3jojm','admin','ak_552f10f7fb5c2b89','2023-02-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$k2TLd.pw4OeMbE0NYB3/bXvi2GUSiXjXXLNRqLfEuxkk69EYAFJL3','user','ak_5ab69ed44af4fa4c','2023-08-09 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$DL2N/FaRnFdIIDLgHMd27jFZbijbfSuvSannfMjKOJmvv0pRSXIqn','admin','ak_ddcd3587e0ecb70e','2023-06-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$5Sc0xEsqQen/E3ZyemJvdmx/j0cD0QBMJou66qWu03jY4Km4/yx4.','admin','ak_7c298c3995427ab8','2023-10-26 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$32pHlHxUEpWYuQVGef67bl4vYBgfQgm3Tacwt6oBW20BVeDqiNMBT','user','ak_235dacd89552389c','2023-03-24 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$dm.NyR9gcaoKu9ybTPwe51tzma2mvFOc.v7nV2UM7.NXW.mvX5n6K','user','ak_30ef9e1c49fbd255','2023-07-26 10:23: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=3669;

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


