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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$g.CVVt.ma1R2LWKqtoTJ37rOAh6xVm80bwv07qisQi5Ra4XiFtI.7','admin','ak_1bea9ff698fd4c61','2023-01-06 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$pSqMrSmIWGfm/FWZonVAkaW5u2NgeB50L3wavMWwBvZBYcZhsy6da','user','ak_362f4137b53c777b','2023-07-15 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$jduheQJmbEO9horwyM8jUWDsLYMLew.fFscQ1E9Akn0M/27KKtSB6','user','ak_c29bd261eceecbae','2023-04-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$BLGhKjYIcjdArQSv0xGkR8EFeto/6VsY5TL7LifbSBnZz4WZGiJBQ','admin','ak_0488da9946722ddc','2023-04-08 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$PrpW8tDfdGLz9dc3ZNsdwi.Ri7kt4DZKmc14KSKBh7t7jF/dxmdzr','user','ak_803297629dde9db4','2023-10-15 10:11: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=12634;

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


