-- Host: db-master-7.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$CzhV2hR/noUCB4F0ZNUdNbivWcdWJXC0Z2ROvMFBssU79Z3xEg4a7','admin','ak_e01ead17d89aca68','2023-03-25 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$LXfhFByBsEvR6by.Qw1zauf0IWVFcdoJhUmkcFrNzE4zb4EiMguO2','admin','ak_97ba1b525a98ef4c','2023-08-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$ewvNko5MC4MlhYtGmcsHZUuL8AXLRDu2AW.RTZhuJc3o3NtRm.1bG','admin','ak_0338afa6c38d9f59','2023-11-03 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$8HJKPloUg8pRMKI937Q9pCFOjGk/1ey.CTsLO1cu6Cf..jEeiuIr.','admin','ak_5064a8e7e92cd66e','2023-07-07 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$5GaCOs93RzY.99/ekUa5hkXNbIychcJPMH88kOs0WxbevVrte.uKG','user','ak_3094ff0c146c8c21','2023-11-10 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$BSmDjjvKLr6EOaUZGfgD0XzSaXOG97Ez/t1F5rCr.l1bQVRvriNkK','user','ak_8839275cf7d41061','2023-10-19 10:09: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=18618;

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

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


