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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$1nP8mfbN57dCrJWTc5daAH8wL9THzpeXNFL2eu7K2rVfFvA/NEnVC','admin','ak_c797609dca6eab04','2023-01-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$EubJ5iydZcLg26Ewk.D2eGOUDGWRIP6SCD5Gzk26iEPnNZ0ZtlTco','admin','ak_636b7f4ee4269c47','2023-01-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$dPwLHldUkh1wPUCH1nHkBqP2p.JVFdoKkj2rWm6fzcFrsyANSwr79','user','ak_14f06f2117ed0a18','2023-08-20 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$TObzmy/p.faBbI1Zum7QJFwxXsOolLoEcJtLzCRLQPrMw8qHQQD0s','user','ak_52479e4ae3bddb30','2023-10-01 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$MDnyU7SZg3KxwK.3qfoWI1ULgz3e5gC3UOLYQvYNdnVRb.66kRv26','user','ak_e79168326b4e9dab','2023-05-19 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$mnPa638bXaTvNBXsThOgsOaMOBF31OXtgQKDE7WauFP2dc72xGh1X','user','ak_cae722c9b5dabb02','2023-11-17 10:05: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=16675;

--
-- Dumping data for table `sessions`
--


