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


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$/OyWXceAT0ej4wFzJCFJgE.5dx96orQI4fw8lzfXFPlYnkNy/LRIL','admin','ak_34190b7769cbc149','2023-10-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$w7pGRHJyo4SfW1HpzjgjV8KYVfkT8ERTOR.WCDZ7G4AWQtPey9Eni','user','ak_fcc241c383e0849f','2023-06-18 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$XXD04EKPt2Xjd1P625F6nkvx0X9pnqIH.imd.7zlRWdLpJsEqVkCY','user','ak_606c26c70e5db0ba','2023-02-27 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$ie/9DTZtsgpuvAMI1f5yVDvwDQ7b7pZH3cWXUG6HYh40eC4putXhh','admin','ak_7d2733131ec58d0d','2023-12-05 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$9NIOeo5.NUhMvzjErtj8ETwaYBNt3sAGA.HiD0JS3X2iCOT2gp871','user','ak_4d37555309309195','2023-03-14 10:01:00',NULL);

