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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$r9LW2Y5THU8L2X.BLot.f4CnhaDcLe6eWegJxPz7hbM1iPkhvzp69','admin','ak_d06bd7bc3b115a30','2023-09-18 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$HK9FXp3svyZIPnPiIPOke3ModAJNAvp5V2jOmNz8C0Yp8JSRmNzq.','user','ak_714112f5683ab8ec','2023-02-19 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$t.7rI1uhWWz/k5jo8U/khOE700o3qktDgWKCJg0prTTsrOQ6KXfYF','user','ak_5eb21400d75e2bee','2023-07-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$5uc8a5RdGppa.G0.KGckGZy2pSVqwPu2UAzy8rY7jGdo8exTYVo5n','admin','ak_906c367f147cabe9','2023-01-28 10:08:00',NULL);

