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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$CsoFInu/LM.AS4tgRzEYYCID/ptcG42Ssm2UMWNkGdii3pSId8rEs','user','ak_64aca76b450d56a7','2023-05-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$U5Zqr.lq8hdBjVmz4PLQiw.LnddewU9apJ1BD4HE5UDuQBltpa0wJ','user','ak_2823c4b8facc9934','2023-01-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$H8KattlAmB1W7eeZ4Rkp1r8XSnGtnNA7Qu1keSbH8i9eBxGsNuUqR','user','ak_c56d8b36c26cf73b','2023-05-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$FMvQfboJ7wYfqt6nR7gelA7JUpUY8vOfRze.Ec9PPEHYFSSEvL/WX','user','ak_d1822f0013f0cf63','2023-07-07 10:20:00',NULL);

