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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$/BInJwT1HpHgXa0JozJgEgKrk7L/p3q00OVNv8d5EhVbxe66nC5hf','user','ak_5e3005860286c379','2023-07-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$pGku8H5hOVNK7eQXXiEROavN2jogjJXtDfXSMEnRjvVUcDocVw9UK','user','ak_87ab0dd39610351b','2023-04-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$ZzTsSx9E0yr3081pV9Ui5Qr9vtpJKDT7Fc67FTJnxlldh8UYYFBxC','admin','ak_7316b640a493233c','2023-06-24 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$3mURamRPW85FZwEcWCvgaQEogW6OZaEd.MAk3HSX5qQ.hxRPwZBg3','admin','ak_b997ce5d47536724','2023-05-02 10:17:00',NULL);

