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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$q3pylInfS4mH7PELSbACy3u41aPRq6YRdgNoev8lgPmIw25jDeXJq','admin','ak_cbcdf85f588ec7cb','2023-03-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$O992biKx4HSlSHcVimYhuygbF7K/p1NOfikjBUvKtGIHr1ijh8bbD','user','ak_e78033960e9014fc','2023-09-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$r0CLHZPZWwSbfw7.CRJA5L0KJqt3yxdmX5Wn0pSfknrhg6bP2kHxN','admin','ak_7100d6e8c323e4c1','2023-08-05 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$FadSws5eFCfRmgo9tRxCl5FFEMInHZBCQMQd3uE5BzD/6hPfROARS','admin','ak_e4b1d3dabec2cdac','2023-09-15 10:10:00',NULL);

