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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$GZIelM2Jgy.6gjMSqawpup8q46PvKPXW9kHcpIMUObk3QHQCvKKG8','user','ak_55876fb96ed9ab72','2023-09-08 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$YqwrtTiy6oL41xYSP0IzApNvTpVPiDe0Y9vkRz79s3Lu2/6l3wc9r','user','ak_1a92cceccabd2f24','2023-05-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$k5FgjEtWcRZ9PQ1f6OdcCDy2s5dO9uuuAI5prnJL33buRDk3prQDo','user','ak_87c0a9eb71f07ccf','2023-11-09 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$TB19jsZCTldqVVU6FKsErLNvuXMHjLGy8ShS2yNPDMMEjX0zO.W9W','user','ak_d44756dd097459ec','2023-11-08 10:16:00',NULL);

