-- Host: db-master-9.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=40861;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$2hQPnEkWGDLFXbcmwf8fA67LKiNUsTNNR79ulzcfS9kYDbCa/Umky','admin','ak_0a88dbfe63b45d1a','2023-08-02 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$JlebktnA2KpTTtWSudfmDngQUSJyqF/2zzSFiuFp7/i.A0x6Z7ACT','user','ak_c5b9ae1d53aa4b1d','2023-06-10 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$3YQPEvRcnK2fwpjDx.04hT5qEvCcmoZi5Xsk/Q7T6BG4rKEM8ouqM','user','ak_1d79898058399ab3','2023-09-27 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$x5jsXv4GhQyMmfJ3zk0o6dUw5sdK2Q.HKANooNstvVnkQ7aMeAf.K','user','ak_206ec8194f9ea14d','2023-03-25 10:02:00',NULL);

