-- Host: db-master-0.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=29219;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$TNfrlbPBdQKDtrsq9fU5rlWiyd4882HGeqZmR2F7VaVa5utiejs6G','admin','ak_5184dc4b8193a6df','2023-09-09 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$jpJUqjTFILE5kKWfArbDsqT.obJfJkOQdCWPDrRanIW.a2ik9Fdjh','user','ak_928764d454bd5d70','2023-10-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$.hYg0bKlwxRn975QB2rXyzQZhctSP.XNbQds9RAlZRZEJQ1k5txlO','user','ak_99319dcb57d6fc5a','2023-06-22 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$2txS1BysQwJQRkyr3Gd.SsGvgtY/Mo2Uk7tUCl65TbUqKBL/Xibb7','user','ak_69e331955202c33b','2023-01-09 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$7AKRHX8IIetrn3aw8q2uXo0k6Ew0AtyjofxLRoRBW6nk3dlLiiCix','user','ak_bb6467248ec59ed6','2023-06-26 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$X6uXg/cFkZVd8CEi2DdMspCnxuzQ5thqfFnMtg6Q0eTPqingVWzrN','user','ak_fa38e41c4ee47ca2','2023-11-05 10:17: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=46407;

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

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


