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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$zMM.lqcl0xXZ72c8InFWCPgLRDYyZOFS4s8yTUIRgjN2tPEh5lYiJ','admin','ak_19a818eefb8b113e','2023-08-05 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$bTjhVfQsA/44Us/xKqRPV8Hpk3gBd/YFmF1eAAWv3MrLm2CU5ERk1','user','ak_472f84bfd066e463','2023-06-14 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$nk3Tf6EN/Jbh3u69iwj9SYzdLaBT9FFPZ20X.OQjuPpXkx1V0MjHg','admin','ak_0fad25bea15bb8e2','2023-06-27 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$BLkVrMwPXj.XprYSRYke3gkYjpKti1V5s5sE9dUCnVdSPt2V6uQ5T','admin','ak_948071d4c9a6a3c7','2023-04-07 10:23:00',NULL);

