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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$gzVM8X.5LsaicHhzPWUh98nHfsZU4M2euYcbOGu6Rg3DTRdAMW3if','user','ak_1eaeb5cdc6165c55','2023-03-12 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Mq/jOtetfxNTOVnJF1Y2K0etvbVBvfmBPgxS.UWIOHSeE8G4A2SKM','admin','ak_9e269687b3688e3a','2023-08-28 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$Ch2irvREYH06gCvIm3M.Y6flQX8cbjcUTmzStcfI9DYHHmvXIwJmx','user','ak_107467578c05ec57','2023-08-17 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$0dsOz/iYfbMt4cFqcSO88u10AvVUjxFx6pa7uHerqFlBzfOA7R7D6','user','ak_c2850c148cb8144d','2023-11-04 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$2kylsB6LvllORN/DVDY/ftq30QX23m5g24VQo8OL9BKI4zd9RK4Zg','user','ak_9860103e63fdb7b8','2023-03-14 10:11:00',NULL);

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

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


