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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$aQQ7mWDs8rnsLfels981JvVIKcisK/JChI7IOAtY6FMoq6lU7Cb6M','admin','ak_fd4406fa78a4a583','2023-11-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$suVDsDaHJcP/XKbrDH3PsXle09GsgETOZ8cn4peE2qchiBcFmed8G','admin','ak_a53ef0e92ef5c7ab','2023-10-13 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$WbwvKGKm6za/7XrreMdzRc6cpcksBX.PW4qgdll.7o2yg/.1y/CeZ','user','ak_dc09372fb91a6d47','2023-10-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$5jhzrZM8aWXvTTxDYMLyFiuwOf0VZ8ShkEhz1mOZgv3zaZikOE65R','user','ak_a28efeedab5d30d6','2023-12-25 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$jDobXKECwgzBkg77MYNi78pxsyXMRTQ74mX0X8WGOh.nQ4sKChKtV','user','ak_ff8fecd40559f803','2023-08-24 10:11:00',NULL);

