-- Host: db-master-2.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=34511;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$L9z0Wc5To4EHt9/kvT0utkGPSOoW/tzCw6cz1qojWqHVIUuWvduf.','user','ak_af29171d15a61f47','2023-05-19 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$qvKIx4dXAnx3qp.gW0uUKajf0no56XdzFRMpZuKFh.47efwPkvB8F','user','ak_52199f86206539c7','2023-11-10 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Np77f4Nd4F.QgXHjEt6ik58biBWndnv2AhTDRS/q2uJblxX6wkWDD','user','ak_dc88967dd095f208','2023-09-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$cOX6inbL3OBobLBGKSo6kqLIMNTuPoBVFRrYxKXBbcdogso3dE/8n','user','ak_d6323e86752f718e','2023-08-09 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$toKbUq2NC8Kv6Utc.ZO3IjGJ.B1piOSo5kpHJLRXvu3qCrzjGWft7','user','ak_13a29863667e4f42','2023-04-17 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$DFhTdyyUGnkYY9IpmcJtGdzW1ZQ1pe4zqEKdSo5ckYhozXcaKQV/T','admin','ak_216d1f7125675632','2023-11-17 10:08:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=39255;

--
-- Dumping data for table `products`
--


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

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


