-- Host: db-master-2.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=20896;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$fzSDs3GYwATYHszU3jenBxWWdQzJWwPhy6LAbrFi3L4XCWKI9gaNN','admin','ak_d557334973a495d1','2023-03-04 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$vKb0l/zmpRkQE/xKa5mZ.lslLgv3sJ9kHG4awHeeHRODpfkIwQKng','user','ak_c224208d624d80d9','2023-02-25 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$i1dB0wr9ccB0Fl5e7MJL6rosq5c1lGqrrNlLYBeEGm8x1sgLHAukS','user','ak_1a62cd4e8bdeb9f4','2023-03-07 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$4PoWMn7YMuIMyDz3j7cxb8loC6XxT2UGL5hVfWuRRPVDrgovpcDIu','user','ak_cf37735ec921581b','2023-02-14 10:07: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=39963;

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


