-- Host: db-master-2.internal    Database: webapp_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=9153;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Lb1LavkJ8vQlNsHKQH9V44RkemcPVfTYkcQm6xsALfALaIuI0djfj','admin','ak_ff0701a5952629be','2023-02-03 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$/WEnEtFOUhJocdrLHLLztp81i4hLKNlW51Uc6j4Dkli55yt3npGrJ','user','ak_bd0fcd9f831d7a2a','2023-01-23 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$E5inB19S6IN.YuC7MfEMQVMAhD.FqRejkqBsCPJKa1ATy8BTdGxUG','user','ak_070599a4e0e5ae85','2023-04-02 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$ew7uMM/IjgirsieEoD0ve6af3uXvVPEDuMoIuFBn0i.gj1FhTE5Iq','user','ak_1c36eebc67a4021b','2023-07-06 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=14176;

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


