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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$SVPuaXXsXbdB5V.Iu5DjGmQ1a3oASQT0plEvbY8NVEHLQN8mcg/th','user','ak_cc8fa0b7a75f9bc3','2023-11-23 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$G6JZd/XHmR6urNMAE2yiHpf/PNazAYSnC554HrbILMzsIYehNUqY9','admin','ak_1360dbcae535c23c','2023-03-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$MhXHEd/0RNtSjkK1faGU3bFwAkZA8dbB.VtMXvtvDOjmfU2y8q1GC','user','ak_00eafc90885e65f3','2023-02-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$ufFl2FdlD4BIbPUvAC9M/ompte6RkM657jDlDkfw8RxxODI55K2KR','user','ak_1f68282a5f4f76f9','2023-05-25 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$bVH69SBFeTDe70L7vncV0OtbLMl3m/6Wix5l4Es0b8DB6cI4cnVRT','user','ak_4cc39db0b1f5fb6f','2023-01-28 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$VtEnPdCoWYw18ABAR68qe5NIgnsbI68You2mXjWTdMy6u4gDp68Fp','admin','ak_a21489a3d6f79674','2023-03-09 10:13: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=6702;

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


