-- Host: db-master-2.internal    Database: production_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=18972;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$kkpd432.fGzoqIGq7Au5tenGIj53YW.6X08GoWA2YTbBCNF/D1YA5','user','ak_7eddb4c6ea124723','2023-12-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$VzOybvQ91a0e2HpSw0q3kO59EyDwHuUa36n4eu.kJKl4zIE.rgTSz','user','ak_d8eb6f4e749f1eab','2023-02-05 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$i4s7enQ4zlK8.2fYZwpemrWIvRpg4RiP/HUgoOlxo8dA7CGqhtrHd','user','ak_5e8b1c6a6cdf85c9','2023-04-25 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$BtU5BZrz7fXXDPAcjsmYs7p76l8uRda2rojRCAJYN7PBi1CqxLVdg','user','ak_e70713dd83260593','2023-06-18 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$7ujbZvvFC020cR3ZNincZZj2zQPX1irN2E3LVcFGFa2H4Oh89OAyK','user','ak_0b82c60cae3d03bf','2023-10-20 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$Kf0kx8thaEhICxleqjT2M2EE3BxNpPhFgc1VzuMZjjw6wTA7paxXm','admin','ak_4db0c201c7633821','2023-11-12 10:01:00',NULL);

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

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


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

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


