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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$x88wy7DglrLpov8TITAW1wsBEr0TTcXAPQ4mbIvOye.6GBUzlnosc','user','ak_4ff0c8da546b86b5','2023-01-24 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$W/VCIWLExl4sIsKu1/SzHR3qpQ89r.fr063C3IbkiODyM5z2rQq29','admin','ak_4ceaa4946db853a0','2023-10-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$TWADy5FkZ2FNOn164PulRcIdhTysMjobqrNpwCQc6ANJPiOnejw8s','user','ak_0ddb87720aa5ee2e','2023-06-13 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$UGrpt/TnOnheB5Jz62GG/ifsK0NsvHp9nMHJMQDXa8q3JKgLeocVK','user','ak_2f96b16eebb46f71','2023-02-04 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$/rvzfajKP7CrQiRhw1eauiWypUwjbRVTPceYWfakdbBoDpEtD4jwF','user','ak_b87b7e39ce07b62f','2023-07-19 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$I9v6wIxwDj9uoApqFMT7KGDJN3P3CeCBE75nPZMAxMec/ZG49FnGk','admin','ak_54b4ed9ff42ab74b','2023-09-16 10:17:00',NULL);

