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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$eVi8wxLzz9fGgdMOr1.woWQZjKb/3qUmOoXCbIgcQnUHCE4kn/sua','user','ak_aeadd89be562c22a','2023-08-26 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$JYx1LrJTz0OF4sNmtu.TVFzJ19S3S/yMIuxqaeeMFq6Cibq9l740a','user','ak_374005719ed142f2','2023-03-11 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$iMZwotudhL104MVpxoyltZ691QZvfAny9cm37/gfY4zpDVP0DUe0a','admin','ak_a2695cd517fab55e','2023-01-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$AQdizP4OEdPMCCtAnrYFpvPxaLYIbgThEjQNzzKAZVeiGgn3aNeR3','user','ak_f644846a4a589843','2023-04-06 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$5zEjct4RthygqTq7dZViQYZHukbypXwn8QHCyNzbYANqPvSh3wMd/','user','ak_b7e446d888a2f93d','2023-06-09 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$7whAMW3.EiDSo2Cs6zRvbCGQc3kWFnskNp0rmfBHnjQjKNWUg3iel','user','ak_de1e335ee975d8c7','2023-11-18 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$cuQ7JIMUROCPTsD9Q2EIz90wFwB9Z9GdYIJXYUkxOb9hF3xGsCbxu','admin','ak_d49f02ef0493d3d3','2023-03-05 10:08: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=24618;

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


