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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$a3MKi9sWzPI6B3lIhkzaWWnIXLlXi0SlNs4.ROsixkmAppXr8vESK','user','ak_0a48b842b008d23c','2023-07-11 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$DRfePkQ145kauTnpiWOCPUxJUJitkOY4iGXCJmX.SH21zyUTRZKa.','admin','ak_cdf355e0582ab45b','2023-05-14 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$MTuK5GT2EK5cFjuJoOXhjKea22rY037/bGKmp.ao.jY4dtnfaDC6Z','user','ak_535cdc574039417f','2023-11-05 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$k6zOsUDtzsckbVkLFbWgKDCk1rvdXYjEdORgq43hv5HmZDGcVdSmb','user','ak_3971812fed219c5b','2023-03-12 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$GkgDVz7ASx09easiZHXwvw5RAI0OTg04D9CTb2ObBuRAbBVMihoDx','admin','ak_d9fdf5916128958b','2023-03-06 10:16:00',NULL);

