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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$uBvt3zhc0b7WomEq1A7jg6BdT9AFY3fxOZS58C7QP513e4OpIyY2H','user','ak_6870e970f7fad888','2023-09-09 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$FclzPEW7xyNmUuazk/56/yXHp8jTDY9HqEPVSkuVh.MLBOdZ0orqK','user','ak_1f3010036720312d','2023-07-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$k4o2fl0zBis/WDh.zqhpV6M1hC6zqA1J.Z.YGkMaLUeRFef/yz.bp','user','ak_4be2d4445ee12eb0','2023-08-06 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$L0ttUihmxbLSW3KnInrvjjfdaH0fOqu57fWXt01jw/ZWJ3WEJM9uV','admin','ak_05d9db307a6208ee','2023-01-09 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$8EnYy4Bo4/w3VE4nd/SBqiV6Lkm1Te6uiq1rl9uRblZx3OpeE3Tfe','user','ak_8249e8179e8c80ed','2023-04-06 10:04: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=50004;

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

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


