-- Host: db-master-4.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$9N8zPTxMZtfaZ0VZLrDxyqfmZN5eAh3ED3G45.tmk34egVEbK4fFH','user','ak_5d739ef6ceb7210e','2023-05-16 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Zf0knyzUyQ5FUJlc2x4AGJkqyiFP76q1ojG0uPdSVyKe7.SuXdBVW','user','ak_5435469a40db301e','2023-07-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$8HQhc.YodXQofjIQEIdv2nyRD55Q1F.zQFChBATlslzQMq98KP96e','user','ak_8eaaedeece37724c','2023-07-08 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$mjZEBhpYiAgUZg6PZjuYDd4EQbeaYlZ9x7ByR8p5F397z8ElGPkY5','user','ak_4e898f556c4105ed','2023-08-18 10:03: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=48587;

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


