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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$ncEk49dkfCWYkMnKpBECrck.HEVmpXB8.A.3I33va.heDdSrAwmJi','user','ak_8e282aa6bdf4a896','2023-11-19 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$3wMxZbvzrQ9r.2b6kSEsqaz0RiuKyfs7oEVjOqFHjbLdUi9WVlLww','admin','ak_063e0873d5854cbc','2023-12-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$IJ1EMuz1d4geUA1dk29owEBTV/JEssagp.xY1ilF175lXUgM7Mfgk','user','ak_dc718458954bc8ff','2023-07-16 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$BbNgkf2QrrkoSSfYAh6pF4M/Kfb1MRGu3iDMKMSXojGu/Tz2Vammn','admin','ak_fbcbdd9c53e1dc79','2023-08-08 10:03: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=38955;

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


