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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$CobJ9AEkawwVk0mxxya74ryScau5gjIaN91VeM/Hdwho0td2ptV4Q','user','ak_c103253faf2dd679','2023-07-07 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Q38qF0ntXFWfc5IGK9253y7HgVoORyiPIgiQFZHqPT27uWDdS3zFI','user','ak_4321bda6a5f114be','2023-02-24 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$Hx3f36uw0HIsXKvv98uxkDOLnURtzCm8rpx/RVrWADjlzpEiT9t5K','admin','ak_7fe67b9fcdd3b923','2023-03-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$2OB55OT43mlkt1.3NkBv2E.lNugZCI6RntJHvz7oMG/woGir89v1i','admin','ak_6b19f5f401eb26bf','2023-07-13 10:02: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=28535;

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


