-- Host: db-master-8.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=45128;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$pc2GWbeJUAGIaBHlT3z7AfgNeovca8F1Yt/WBO5v4tvQunkmUVwvh','admin','ak_dc9f73214c2760fd','2023-04-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$.0sA89Un8rDZuVy9NEZ52oiiruB72YyUSSoeRHdnYlmeydm1dPX6u','user','ak_8ad86cd0409f831b','2023-07-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$j/Vp7DZMKHsV3xSTEJUouApTqiUMz/zfLtdipGm.2S7UVZDwfnnKt','admin','ak_6b0a3ddc5000e2aa','2023-09-24 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$XKn.9JAuU2Q6GsKdtn7Vf/U.4QU9K4u2tX.n1dxCR3TSrRlQ0gGyN','admin','ak_03a2e2265ec6e317','2023-09-15 10:00: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=30899;

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


