-- Host: db-master-6.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=33158;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$E34Hv6XDZOhcVCcAc3KzDMkt9BddkmHbDTPcQMWkdjlQvd/ioraTk','admin','ak_8d759767451eda7c','2023-02-09 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$/5ep1/m/wZcKe5DMqQMhvoeS4gF33J4ovW/OY3laK3RkZ3Q881cBO','user','ak_cf19d480c475fdbe','2023-05-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$uPy9u17BCBFzKwqngTxb8pYCeIOANu3tgycONn9N.oSExblRhH6vf','user','ak_56e94847fb9f1f06','2023-03-01 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$M.fbRGwS9qGIcDy1RJNBNAnp4aIdnVBW6PJRX1AhSjkF/6BXSVN8H','user','ak_bda3ec143a24795e','2023-11-14 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$VouJ3lhWgI7KS9hAfO8gQUO..7vFBYKl7671ncZvRGrcITBf3hWF2','admin','ak_d2828ca3e9c1c1b0','2023-04-25 10:22: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=47082;

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


