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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$0dqddzzKxjv940C8TEE5NZiAoNNlnOmBLwJWVgJiFtq6NSbcbP95n','user','ak_261a3c229723f165','2023-05-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$ovMOYTNPPWUhWduz8lMrqY/OhPIC9cSkwbndEO2DxPR1aNu5CEXH4','admin','ak_435492cc2bc351a9','2023-12-17 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$QoblQkici8zL/juvULEDi9J961B0yQHPwR8Nl4SmO5ctOwLe1kINr','user','ak_1a9663b2ea4df370','2023-08-08 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Ls0UhD54cHT2iUE7UU08GbjGEZ.N34ARR6e3UlupiicK62.LA4/Y0','admin','ak_bb136ad7aee0bd2e','2023-10-11 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$BxmyKaWIJ4DKV4AOlfaUDGTy/kr8sAHA.ZqKWx1TCxPCq99rTVjWc','user','ak_8f9aa2de2cc08022','2023-10-18 10:20:00',NULL);

