-- Host: db-master-8.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$mSGkQUfvV6yczDxX/xP90.k1we6aasMRDbylkVbp4x7Xl.nvW4fFN','user','ak_8828aa171c75c769','2023-04-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$73FHJ2/nphcgUw36Fy8L3G/hSLkXvXH/vnpBYqUtl24ACeVOvkVQf','user','ak_b92efd475eaa21af','2023-02-02 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$BW1YqYlhYA8RE9pauZ9y88S1aaSz8ZxQ8zTtZn78lsbz.uef5mvxd','user','ak_86ff41b52238899e','2023-03-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$6m2NEzIRB/8GPgFY6/FPMwZpvYVQLMG5.K6y8Kcsn8L8S690//ybO','user','ak_62e3e323fe6ea807','2023-10-22 10:20:00',NULL);

