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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$/UDNpidZxDXTz2phck7cl8bMxgrhUh3zaGiEa4AStBz/e/Jlw.wdg','admin','ak_b6e8a02933ec2772','2023-10-14 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$D5ZLV949RQV7E8lzTQQIWgi1FoENT.JFoVykUats8K9fpn7OrqkoX','admin','ak_6ad5f8de66df32c6','2023-01-13 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$NdPH53A1GiC8QMCA/3syZM5X3T8L8y8jG6CMi3yDXh2Hxheo8FXlv','user','ak_70c1fe0ceaa57be2','2023-09-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$sRSLuK6m/MjXJTTf/DtVa2o06vROMFCmmv7gqFeaev4jC/RwTG4Y5','user','ak_418a1f53966f1705','2023-07-04 10:22:00',NULL);

