-- Host: db-master-0.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$MFx5XetOt1ePuFEd7k.9FZpA1g8u5q041T6ezQdcICkPA0ItA15NF','user','ak_ccbfa996b2a0a38f','2023-01-15 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$m23Lm2U6Q6d0jU98YfkSS5azd6lfoC3mNYmALnJR0f5WPNyhepT1P','admin','ak_e5458b44e2d918f5','2023-10-06 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$GfYx9FC9zWQ4XhRcWKfhWm9MqRP1Rx3/gDfqakoXGrwHFYkW.Ty2W','user','ak_6046380994f0e342','2023-03-23 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$guLSp0ROy.YCIQD6DVinnWCqTzQe8SPzwfTUd.UW2LXcRmUOOxduR','admin','ak_6248c9402b432728','2023-04-19 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$XvvRJ/0Ax.G48Xw9ojfyWgnHxK2xP2XkifIZmHz2WVe0H5Hj4U/yw','user','ak_2fc1e31fa5d1122e','2023-06-24 10:01:00',NULL);

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

--
-- Dumping data for table `products`
--


