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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Cl58CUsDo/7M0.a.33uYHV/oSLQPcqpEWyZg3Sz2xsPB5scmmYEdt','admin','ak_a13e19c244479800','2023-06-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$1lOLTJjhKeq7CVsNNAP1hoa2xt279HUXptVrsI5tHv1NxYc6s8DiZ','user','ak_ae95671740ff8b5b','2023-04-17 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$uXtp68c519A2qxtY6vcebtdQ634rw8Hzu.WnRI77wsAETo.bSnG3X','user','ak_eb2ac7e8b5633749','2023-07-27 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$FqBlKg2Za15psCvKvSrVLFQ7rFSQmgePZvWey.N2O94MRWamZv3Te','admin','ak_62969d9e2f5f0195','2023-09-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$Zm31nHeBE1HJaehamushzgF.apddvSnUgxm/hYbBbbPcSMXPiWyzw','user','ak_256109869782cecf','2023-01-26 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$3t.x0P9wXtjXewMw6/dDrLeKXBkfTBl7cG8bLg40TqoNc6GMceMs4','user','ak_ac2df95e7b6b42d5','2023-02-08 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=5168;

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


