-- Host: db-master-0.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=8587;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$aYFURiaOM57NpGgHBfojQyfnMn9N5KWC09Ax4bCp7dRQUv/5eSr/D','user','ak_74a3d1ed7f6c7459','2023-10-01 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$n9aslHVskJ9j4beCpKaK4cA0OgJiQlND3f/..yU6UvURptpiVvZJf','admin','ak_0cfa193c56dfc65a','2023-12-03 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$r2gVn/HsqYWFMkozy9j/n5ZdZhDDGhOZF.xknQ0rfGB1p4ELjBiG/','admin','ak_601bcf183ebcad84','2023-11-21 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$QzQUD8C28cSk43wRJ193tYckcXD6w4csxWT6LaXq9Af9U9WJq.lvT','user','ak_8b7f09af8aa04314','2023-12-27 10:10:00',NULL);

