-- Host: db-master-0.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=31924;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$7m6R.gGfylhrRgqekBKibr2Aoe.kz0rOtypXgRlWN6XVONhL9cVhq','user','ak_024ffe5e39640cb8','2023-05-21 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$ucV0WkE7I2cVxAkST74LjD0xqbhGyhzcRMtCaez4frdYgJALyjoDv','admin','ak_c4e29e239e8ed9ea','2023-06-26 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$MMWPdPCGZ.cZJRCJnKWmqgWie6OljuDnkzOQRjb43bhbAUaZME9Zs','user','ak_eaa9d1983836b9b4','2023-10-23 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$60VfvXLmrFrqnmhSkJ5M5wDHDLCh6RQeXKj6dNYJ0vDHNdWZmtaDo','user','ak_ef1682b7e5851231','2023-05-15 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$zLs7y4oJ1Q2keE9M00Pa.ZMbGcLl8sjF56gkHWxzi64sBEQ6fFjFT','user','ak_ec590ec1c9b15b08','2023-04-07 10:14: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=50764;

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


