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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$AvSw4Ko58cqUFfj2J7uWF7rhmsIolVyg9Ek9qjG6ipbknnXstUY6m','user','ak_01f11a5301aae766','2023-02-17 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$OkK5v4Xorfj51TWq4h3HQMLRg9.WTSRc8lO5BODuqSRYeSDaDjUHv','user','ak_8b34496503fd2b22','2023-06-20 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$5/rr/9DAaKMMBSmTUJWIaGmdZZnL1Ct2JVsiKsbNtDZR3684xhxtx','admin','ak_202369792999f59d','2023-04-07 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$GJ7lzWKu.3okv.0VOGu3xMiWzEEBRQ/BSCQ8sznovizEueB6u4GA7','admin','ak_bb2575cffb73736f','2023-05-10 10:07:00',NULL);

