-- Host: db-master-8.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=3530;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$BFt2ll2aorzkEvG83fYbLGyE2uAEuVcsoDpmYBaULMe41Seke1qh8','user','ak_3a195500fb3d196e','2023-04-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$3ZaE96qxqZhRkOJP7Xt4JmjZb75urv5gWPnaU29N3k5fNjG6l9w1v','admin','ak_376d10ab4c847896','2023-08-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$OySHioFG6JJRaeIUMcl2cjjFlMJtDX1lw1uLNvJgN9ZcBGxKf8.N1','admin','ak_01ee8eec9ad1f5e7','2023-06-15 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$aP8NHr7eWOsIUmmc4n5mQv.sDrCgU5LK8c..GJxev7coi8RIAAEVp','user','ak_1ee9b056736efcb6','2023-09-21 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$mb40kPwwOKtvgR3lD82um8iBLn5FOmIAqzliNOB37B3HM4wThRu31','user','ak_407d1ff14fcd0004','2023-04-04 10:02: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=8488;

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

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


