-- Host: db-master-1.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=43358;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$jvt74TdJuRy4AUISe65T490X4RRNW7xmG/R3ySJIx5zivpFY6ha7b','user','ak_98b1c9bf4013be4d','2023-11-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$SrVAEm/XnAdasjKpbols5FO930NSjWnU0Lgv7OyM607GUXFENmktz','user','ak_15b6417e3f233e76','2023-05-10 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$beo5hv7l.y3uCYt.CbNdkFyKOnhztAgE3ah0BnKGZmelqzXcgO1sh','user','ak_e7d80cf871825564','2023-07-26 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$qF4E/ymzUnRIhPgXw.MrkhOXnFhMA0kmXeOv5P1sIWLJ2N1lm8VTJ','user','ak_7abb6aeaaf8c26a1','2023-05-26 10:01:00',NULL);

