-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$2/0PtYWfWWMODM2L7kQwFvUegteZz6/zR9fxRXR3piL5fxY0yLQJw','user','ak_f413aea4d2238a4b','2023-11-08 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$8C4LWQA4zBmCZJk4wky.Ppj4FJGGBZRRg/aPeB1PsVTXHPRubG2VO','admin','ak_70c8a7f30b15db29','2023-04-07 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$4VL1xD/cAfTQzEhTD5Qrei0dWcAMpd/rC3IFShDfBi0oTyWyc//cg','admin','ak_7ce8d06ec4c3eb2b','2023-09-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$OB9xi13LiBRIySiGqEctOqJRMS0QNdrT7Fzj4p.O.7ik5TBbp3QQO','user','ak_f0bb8519aee2f761','2023-09-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=32120;

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


