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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$p.NFz4lE1w8k3ASD5ndg85n9Mmin9trMMGg/4dDS30diWUsLeFRn4','admin','ak_9e480285189c23d9','2023-04-02 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$UDAAqRYvmhGmaQaQgAzBpH9FFm3/PAcjIeU858ObQBYTsmO49RUS3','user','ak_192db3cfff437fa5','2023-07-14 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$6YHvGmYnotmPW78DN0pVN3OEJHKTC9rBQnFWjmLEYIDR5oGN4Y1JW','user','ak_c079f7f075513228','2023-01-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$ZFoIeqISHmZijEb1RZ43SXYPODQwaG2Vm130vBt4i3f3tiKXQVZDo','admin','ak_3ddbed778913943c','2023-10-24 10:21: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=36028;

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


