-- Host: db-master-6.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=3644;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$P6VkEhBsCmSEsVIotcW5u0YmWl7FkOfK13D3bRMElz5awtChQV48N','admin','ak_965858738ebf0319','2023-07-18 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$cQLliekjxKUaIVH3fZwwl1SulU7WRjdCy9AlJpv82JBocGFaBbgKb','user','ak_3be686af9414851a','2023-08-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$80LeEx4wCCJ3EZqSIDrLDHEq93E8za2/MWNNZ/xGjPFebbh2rRhPl','admin','ak_636af9c9eab359ea','2023-08-26 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$W3QSMqKySduQqWJQkuAr4jIh7PsYOyjdKXRVHMWIQMNCtWKH1.OuS','user','ak_18c1c782fc38c324','2023-04-24 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$uBGOKmt5cNxrOfpK8AvTPGin94Cftj9Ve5AJOltJbRZ7PO9Tp0ySq','user','ak_5d2779586d4779bf','2023-11-22 10:12: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=40135;

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


