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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$vjydauLSVeMkmP26RVoM56YmsvLRDCYt6Y8ZXqxVeeDKcKH39yUlE','user','ak_a9cefb89fdae122a','2023-05-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$9HNTRYAgeDKafIu4p/1ff7/B8PAOySSIKMcTNUJO6fvEzgUckKgiO','user','ak_6b17d050c9ef8b11','2023-09-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$0zznNQJt2tYecXuEjrhM/.4UCuLgXKmAb..fmnZef7NurDqWk/87l','user','ak_5ce9a11633cc7ac4','2023-04-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$IVJa1PJRtlIFEDolGH4w93s.2r8uhbtN.Z9PxDu.J2xVhLpGe7EjS','admin','ak_e62aed6f19af1698','2023-11-27 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$16tr72k2unHVo1/ldPUoLuSrRqSqzKaAcTTNzmLTBf5MejpQgOGL7','admin','ak_4cc17bc24394b012','2023-11-14 10:10: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=15383;

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


