-- Host: db-master-4.internal    Database: webapp_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=7982;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$6.T9ovTTRGaq5XjcT25SZPL7mztEe9QxrbVXYBE/6fu8tR0NLMxB5','admin','ak_43d125ba2f663cd3','2023-02-08 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$z7imYGkJDWwk1TiNDbgY3MIwWiKJnrx1pPxNzQOaCbeb8gzqSm8vE','user','ak_58d7e84562b0dd8a','2023-09-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Cwqp62/VvtBtzg8hMxtHfSyV0xXSuTycKdcMbKuoUi59w4SD9INSN','user','ak_a1df4ba8b4ee7835','2023-02-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$MV1Xjj34xZTWhRMVL7RrZp7BRYaBoLKtMRLVhrLgIo4St/F7mgmpG','user','ak_e0d03a791e5bfcb4','2023-10-26 10:02: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=17274;

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


