-- Host: db-master-9.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=17721;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$lfWRZxSfPLo3MoAZaeFeWcDsffC/EvByIVJv.OAEEdIY9h1wpUbYz','user','ak_e8fe48ad8b809844','2023-10-15 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$f8I6Xkx4xUlHYzeUZx1lWtYUu/b0XCRUxQaFSSJ/r/AQ1XvkCzhqZ','admin','ak_c5ce9290e3d40e4a','2023-11-20 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$.qTBF.OcmrixRjF16tPrgL9o3LB11fnZa6SfTtxKAh/NYQrA9gjZV','user','ak_191181336d4769bc','2023-12-24 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=1284;

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


