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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$CNSyaoXUKCwRly/01wkAQkLaDTFOQURn1.wa1A5g1cOCNUr3Bjgiw','admin','ak_48bda40d1ef1fb3f','2023-11-23 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$C/vBkfEECILIWqbp0Sv/wLVZlgvUTKGlC6fO.63era8VW5a1axPf4','user','ak_e1aeeca8b8c35ae3','2023-03-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$Z2Nq4AT/H4WROQAB0EnaO5s/CFy1kCz1A04S6fT4pIJeYmJSHUDaY','user','ak_dd5bb8380a22f660','2023-10-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$fgHnos9i./IotKRUhYsJ2.dQeiAxIgvIgU9R2IEaG/xyeH4.6jPrJ','admin','ak_efe322e7efede4f6','2023-02-15 10:19: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=6273;

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

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


