-- Host: db-master-2.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=6130;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$FM6by7O3f6lvd2vW8Va9xtYQdeGmiUGcXgLl/XK4QuZfvFyIt9vWn','user','ak_0235f5c44133290c','2023-11-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$.WwaR60deQ36LuOPXo8umFETBPYPV2gbxZ24JPWhPSlOi0zZoIZsD','admin','ak_b0d0dbf291c437a5','2023-09-03 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$RZhyo0gKcnwB5bnmvY1QI4tBxKrge36fzDWFy9KCG8.9fF1ynmCGt','user','ak_77e5445794fe75b7','2023-04-27 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$fd070b4F2MnqB6fCVz0z/dNvOKgQm/Chp.Tep/wbf/TDruLb/pwb2','user','ak_d14543b4f0a4036e','2023-07-24 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$.P/niPW55qiYlP9eu.PUiBcJ6Qbp4TI2ys0uDoe3LZ4h01rDz27WQ','user','ak_5f35247b4c8274c0','2023-05-12 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$3l/MALAaiPZvgI6Bi5UlRoPM0UWCKaY9jF7yx4XgVw.x0nlvnBFcZ','admin','ak_a29a4455a9c9e16e','2023-02-19 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$W75s1NFKtDUOrkuWoKNpgV9tq.HiIIMMmZg8IoLsIf0ZGKhfHwCUF','user','ak_2ce315004d5c0106','2023-02-12 10:23:00',NULL);

