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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Fr/2LDkNoq9sI7hZXI5SP/YF1XETn/AdVE/qPkpNZdFSbUYpIv6.e','admin','ak_144975ae611be3ba','2023-08-24 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$HCZ/L/JJnqBfmBuZ5Gr9YC7xELeVTSiphwWMyaD61btKLd/o/a1G8','user','ak_1486e7afcee7d8db','2023-11-12 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$rofZxuWBG0/ComxiTXjA9BHDPGXQD2UKHZ20en9Ji9b4Ee4dsffFf','user','ak_4c08d517da0264ad','2023-05-27 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$HHGZ0u2c22diusxQynKNw6jMnCz4t6zU3ewgU8Ms71uxB1b9Ljt3g','user','ak_771adc75af8265a9','2023-05-24 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$BDR9CJcGkXX84XjEvXUIwOr3.8gFffk.bLRPbdJDbMDCrKQ2jBrKk','admin','ak_9bb33b428aa45116','2023-04-02 10:12:00',NULL);

