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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$sd2bD.la8cgFp7/iTrM9x2rASE0mVZiejqPFrZwLAIicp2mtjXDqw','user','ak_8e7356d2cdd13df4','2023-03-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$AkKu1siO/LjcWFfnFlkyfoVBydCdWR62Pp5ilVbeRLlhQCXvR8hb0','user','ak_9bd6f5f38b95408d','2023-04-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$H0MKQ7UCpjwMS8/QMHThdVLJSxZmLU3wN2QDj.49QUYR2rE11kDD4','user','ak_76660e020c5450f9','2023-11-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Lgxc9O796Kk.BySaMC4SA6Neff47E1LZINoWApv2IDe91RU.zVeNK','user','ak_05ffd412f57186bb','2023-04-27 10:13:00',NULL);

