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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$bcbD1RnwtGeFapu4NBIQlgMxFuf7DEE962qn1b5O.qlUUcENDd8Ap','user','ak_e52a94b426582b6b','2023-04-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$.Cd0jJwvFRJPuhMjBNvvAEWeM33kOZLsdO3eM3Z5engKVcXyLM.6Z','admin','ak_91a57de35a27dc80','2023-05-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$vHAUDBzFvuA3GGzYPzEMHDeteggTm8zxy8noc2Su9ZO9uEQJvDFzJ','admin','ak_d1fc7835ed1196ec','2023-07-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$0lVU3rwVVt0ZATS0rBzXzpmjEhXLz.13t4c0NN.nW7jpyNfu7TmBk','user','ak_ef34c94856ddeff6','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$I5F.ARjv1brdJ/Yi/x/CxK3hgFB5QPQtWVyo2oDnkjv8M/HrubI4k','user','ak_3358a5d57fc8116c','2023-09-27 10:23:00',NULL);

