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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$3DFOs0wMfRoofdvEOk4e70cf/7V0xeXEo64ko3HNPTvnpY/Kv/w0C','user','ak_2c9776cc2988cd5b','2023-01-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Td3/SfNFo9qR8PxyPpQ02tlBfbbU6rj1yIGvRfrMjDgxSClwSjF1i','user','ak_cb1d9baca9c9e28a','2023-07-22 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$aSbkruGeFc.xkS/BNqxvCLgGx4NP2fvZzhgiguebofndL7hKRnZF3','admin','ak_714b9e1babbe5228','2023-09-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$6X.oQf4yS8sMf8Azwyk9fU7fR2yTDvhXJv7I4eTuoA6fOMm626zIG','user','ak_1bffd00b85f13599','2023-03-09 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$0dwn0XDljbTbjfSN.eI0NuJXRW3TZZH931dDOXP2DD6.mx2Ny0z4v','user','ak_1c14e2f48fec059b','2023-03-02 10:10: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=7110;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=1274;

--
-- Dumping data for table `sessions`
--


