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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$JyTKys6P8vwlgbFsPCfxuyY0mE4q/Hh3Grhl6NapW.RMvgjnuSKOr','user','ak_446be69b8447f59c','2023-11-03 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$5s7V8XGcch/gdPQEzDsTWHyxgW.y/BQgA6S7h/6qTCjHmulTdsFlB','user','ak_3b523ac228d2ecd8','2023-08-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$YLPdGk5MqBrKGKNwO21hYefuNTmCC1nMxC.iO9y2VMTuIZ/Ve3cDJ','user','ak_3493f64c262331e0','2023-06-19 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$RoSbnZhEfh37VQm2atN/B/0fHjrr4/ZmIqcMaq3X8Es..AVroYOX9','user','ak_8183357c5431dbe4','2023-10-09 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$P5xLVwgTVr5gnzMnTURaRYIgikWffLaZYi99p3wmYz5hDUohXvMdN','user','ak_fd3fc72e8f66ef5f','2023-03-28 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$TK0xv2K2bnkAPURWz3QbQsT8.E6pa/TJLzIz6BMvFHTqssBuTZHsh','user','ak_847a3f14b6b1337b','2023-02-26 10:16:00',NULL);

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

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


