-- Host: db-master-0.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=19782;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Ldluh4NLGfIvwsQFWqlg6GrqqNY5.c8.h2moPonHy6lGFbN6OXj0k','user','ak_1cd7a7ea762bf1d5','2023-11-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$PK7OUfmH.w2ngsBlgCiQfuymiwmN/AgLkMW/Q4o9s3MqSm9LgG.4V','admin','ak_9fa509780e4c0576','2023-04-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$TIBYpq3zNseqO9KPnhM03eZ6hFJL6jCXVS6JyEWTIzIrJKySWxacO','admin','ak_eef9ebd5c5e4fab1','2023-05-01 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$Sku3K/O92Jp8f3cDCAB2FMcAPYjro1x2LFby6xy6YUdSbNamWqxks','user','ak_b4a4a988d2d071b5','2023-09-24 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$IMek9eEzX90jJk5WOFeDQLm9TbZvKUo/htWCcmDBm5ApbZRqhGcH4','user','ak_e4d137a7910429e3','2023-03-19 10:20:00',NULL);

