-- Host: db-master-5.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=19075;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$WsvrgVHERZxVDOq5SA5tRj2nIyD0JV/Mo3YhLwl27F/febJhCGdM.','admin','ak_bb41c1ef6fdc5d01','2023-01-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$9rSPbbQz6Cem/ZRM/lJhSF.jJ4fnslWqFsGw7xSWSGGcALILJx3LZ','admin','ak_de046c3ec189cfae','2023-08-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$TQksz9DCSlJcBg1H08CLMwWqSW0nWt3N5SCHNGM6OQhtuQ11inm3w','user','ak_4dbc2dbebf2e6798','2023-04-05 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$rXvu4Q1cbCCYfYDI/YFVq2APirRvQvzBbgIwvsfWydZp/z8wGhEv9','admin','ak_fafd7493f539fd15','2023-01-03 10:07: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=10885;

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


