-- Host: db-master-5.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=19116;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$9mVICT8WYngPOqEGPEbizrg95GxO/G5Zecds5CeuLgwCBKjhQThSo','user','ak_60624e6fcd44263b','2023-11-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$TreCfxmxRjVaLXpuvtErw/xb/ngF.YqikwsxUOeCL5WnGWrk6ZqQZ','user','ak_485564efa98e2720','2023-05-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$MawMBQhnkwQM2V80q3dHzy7yaBOR1Ze3sP3r8sxZ0HxU7k1UjikJS','user','ak_56ca733187fe48b1','2023-01-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$DINsRd/ReFoB6lWlYZo/OkBGhWsJ7iqGsVGHKdXvvtM5oXNBz3ws4','user','ak_7dc2232da2bafc02','2023-03-12 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$7SD7YBZWL/IalPVlxLcH95UlwhjzUCtZaooVQ6.eM9aYFra1JTV/C','user','ak_b1ac2b4a15fac9f3','2023-06-06 10:19:00',NULL);

