-- Host: db-master-4.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=17656;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$0qwKtaS7.A5u8O7/mZf4QZqxyc2JxtvEYSkwpfriQJXl4pkkDutWc','admin','ak_306a4e356e44aab6','2023-12-03 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$GS3andK0nBbWX958G.Mfm4HO.TKy0XLZwzj7ZKlEDHnR6evVZxnmJ','user','ak_9094f4d649957b5b','2023-12-25 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$jsTsJyzsxxMRcV9UWrpZgVv5ce9i64tbLx/nBiZpGSB4.LYrAfY0p','user','ak_0687f7df5a8f41ac','2023-09-27 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$f4VPRRteTC74KWA3w6Nd49XDGc/mDbCgwJ4OYfvDoQuTyW3qzlXoK','admin','ak_f62f3875ccbca0ca','2023-02-19 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$ryR//jWq60VbBS6chR0GTsK8Co3AV0HTO1aWumlAwcm5t98IoSGs4','user','ak_f39b0b93a6b9caaf','2023-08-10 10:21:00',NULL);

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

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


