-- Host: db-master-2.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$KlBUnCGc9O0W95j1MQaSa15nU5JhMmYzsHUqpY6LX7RaUI5mPiGrN','user','ak_5faa1db9b35ec177','2023-08-15 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Bub9jeurujF.klSGk9LIVVfmQyqzDPXCnwa9/ErW5cZG9gZOAkVj8','user','ak_41d50c143551949e','2023-09-17 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$dhneH5lS9AcOM2HhxyX5qZbRukNDcxxkg.ASyqL1y9dGlxSdaJueN','user','ak_9df31a802a276b97','2023-02-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Q3u22V1FO9Ie3gMqx0O/ODwqVKWsYnaznT4XFN5C.ISSmCX7SWIB0','admin','ak_d8531ae68bce2ef4','2023-03-09 10:06: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=21624;

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


