-- Host: db-master-1.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=3372;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$5glu952yZyXrk/Q.zN4p3UlU4K54fkouJn5ipY7nSTM01IP2YyQN3','user','ak_9ab2c86dcec4faa8','2023-02-03 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$jSRiSmFsqbj28Jz2goPfZCNPu06GmPQjrNtCl9TYPEXrY1Edd8J8F','user','ak_4ed8ca2d46fafd7f','2023-11-15 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$Z9jx2rfRCOmVtMPsja7uQN1.Y.Lr.gh/ef6iyZg16NKgJXbdl9YK8','user','ak_424448a449d532e3','2023-03-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$Wd7zGcRn41dMHs7URP4yIzvQDnQl7hmx9mhulVCOoy5pniVGJhPrf','admin','ak_01850674fad51fd5','2023-02-28 10:21:00',NULL);

