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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$2Ux564u5z598vwJnKeDxy.9jouLIGoUetmKlZC8LIv2iuIOkGlgHI','admin','ak_9e7810326b7fd8f1','2023-01-18 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$diFcGgdI7REVzIqVTPs/KkGY4kVVMJVoldtotmE85pc6k79ovttp0','admin','ak_0dcbf279e2099c83','2023-03-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$3FA5FVE4RAs9tDa0ZemAkS0Vgc9XcynAlpWVepR3B.dkVdrMl5lrA','user','ak_87b205c9594bf07e','2023-06-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$lZryvp27rTGZTTG7A1IxruU/65JYdxVZE3aDTa3f8kJkJ/9GS5N.Q','user','ak_895fbb5d8abec7d5','2023-03-18 10:02:00',NULL);

