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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$wIciwMYWw9Om0AioqqbMTH1uYtjr7ZMOR8c5WOvXAl16BBU.7eZ5Q','user','ak_7ee57afe23f1b599','2023-02-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$QnkTdL1k/7c8iv2W9htRnr8G2TaAJYSs2F9DKU0YKhmTKG2caeTib','admin','ak_a56d58660199f507','2023-12-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$0.CBMszMw22a3lP/paA1TAPhwrYOTCOwTYfa.DYmaCa5aS/EtVgGs','admin','ak_56b7441893f707fa','2023-04-20 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$CnV1avEfZTKPaSlLYFoHog6OJcDvK4lShluK..fuTdlYA7oNHIomw','user','ak_0e4a511c40fcfc85','2023-07-18 10:00:00',NULL);

