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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$qwfaUXCuF4JTM4fAfucpOImMGoy5zJaomxdROlSJ4DBvOY26abdjm','user','ak_520518166ec685a5','2023-01-23 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$wKZk8fZ1hXviLmEIQOXQr2Mq6SU1aY4UMXWan0W0OfNWiKjiyVNi4','admin','ak_2d26178155ee3feb','2023-05-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$qamV9RFo7fcHKIccE.f/yGQVYbA8ya9TwXzyGokh66l.CmKUgmxdV','user','ak_f9eaba5f40f75c14','2023-08-27 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$DMTJtzoKze48.PcRr6HaSkOlEPfQEKC3VVixYHOR6cXP1Ko.CKCFc','user','ak_85c9827441f86119','2023-02-26 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Ga0N22HlWhPvQn1a61ikyxF/4yky7nnm.cgPaIwMf6Qznf5QHGmEJ','admin','ak_7499e12f2b3f6f78','2023-07-26 10:04: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=50301;

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


