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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$yvIpD0UjyCZSXkRpGq/5gN3jkXrKb50WvAr6s9rR0uWVS6omBn.ND','admin','ak_be9e3df64b7303f9','2023-05-07 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$C2i7.NoeXiPiJKzOYr08MAPRx47j3faG2ghd54kYKfZV0fVXFjXlY','admin','ak_e04f6fc2d86eda67','2023-05-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$r4NP.cdgAs2Vr8OGvfjEu9dcf0b2FLDz8IV7XPXW4UTtjT2Tmf4qG','user','ak_345b2fa84c113073','2023-09-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$skYhI9lyXzEcaOyrr2GZ45JGx9DiaGfuzPoP7I7I4Evr31tF3mPAs','user','ak_e1366cdb601e1d7f','2023-05-08 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$V5Czm1u7xbDn6tqodwXYluR2u3S7ZaOZ/r7j2FjoTq3hUHuLjQMCu','user','ak_772197aa2e94411c','2023-12-10 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$3N1Filjz5gl4UHWpX0KVUlqzGZuOOWlFs27GeU8vZWztuIEc7E4t9','admin','ak_9ad5acfe56a82cb3','2023-01-04 10:21:00',NULL);

