-- Host: db-master-2.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=43262;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$y65epUM4HgtY3y/Dxa2EKPhyyDSL5d26fzjS.fZpUq.9tVmoXMk.y','user','ak_d90cceb2bdd9542e','2023-12-06 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$e6tcfnt2qPO2aGs0gOLlJVjc8ovB5saRwZr28fgpojF8zUKYuGADJ','admin','ak_6a4d3ab251d0e9dc','2023-11-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$52.3fnsY1tH61o0Mf8bLcbpy4Ei8vjZfJnLEv/WgMSAQI9i5uG2Jn','user','ak_3b9f9d872b59a8d5','2023-07-15 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$AcZUAxRsWqYPMGhkUYVCQCi0n0Zs7qM7KS.BdZfM/ddm1xifcBRnc','user','ak_b5425293feb44d07','2023-11-07 10:23: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=37270;

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


