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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$6BZ50Rks6C3C/8QkLQBv6lbauTLOoOWq1minKXwx9ZmbhQUXvWfLy','admin','ak_02e2b018e9374aca','2023-03-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$kLsZitXzxcE13B0AxrJC6Hyttz19lVjckaB1S.NRpBgSOs9edRuq9','user','ak_60b96adebc1dd1bb','2023-07-03 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$kGLeGCBnaB.yWRvt3SNw0JkqY3ttQtHWqyM4Y9R3Z2jI08fAyE0Wp','user','ak_96528ee3edb3e3f5','2023-08-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$T3yWPuaCWF4FjfIpTQyY7Qy8/7cRt7J82KB7ZgA9enaSIE2sHLn2r','user','ak_f9d75d835c8a9e79','2023-03-26 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$gpqgH3nxqXj1oRHF9H0AgQ4PbSOD8ow911RLiMwqrEnn3WmMpzQNV','admin','ak_dda179148ca74297','2023-08-15 10:18:00',NULL);

