-- Host: db-master-8.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$4dJKv0dvRz4diAstudapdiPP9TLx3elUGJ.uEO0.5HJQuKNUnuCXG','user','ak_3d29e1a77b396c85','2023-11-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$SXydt.Ero33eTVPzJWxK.oNbnuTuACd3qUMhPYetsm6I4nl8XaWOW','user','ak_4c32228055ab8910','2023-01-24 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$WRBN4TvTQ.bJzU7MhwQ.frksbVLt/B.NEpUX55OJ6nG7b/0X2h3lR','user','ak_28ed1e542b9ee7a4','2023-09-23 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$2V70iy/Om.ZWW0m/oP0hr1dPlBny/75OYphNlUS5HTQpbv.JzmZU7','user','ak_06e98bbc07f38ee6','2023-04-22 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$u/fv0AFoqqWYvSuUFrf.iszlpHafcUvzqIfz1H92W6tJWcstfyDIL','user','ak_1eab641beda2c233','2023-03-11 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$yPitG1aOHJEdJRnNcPus3Nv4sWL5xIytztNIVjxy.yGUWku1/ciy6','user','ak_b2c0130efd6ec14a','2023-03-02 10:05:00',NULL);

