-- Host: db-master-8.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=49294;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$XgWhZQNCXvkC/FS8xodvWWlkJ7ISh2EuuHMOg/jJb2UAPmezRLluP','user','ak_e9519cf1c608335a','2023-05-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$mLpq7Ik7ApVgb9KC8J8DDWXiFLl1i54szgv6K3.xpdK1bDPlS9QxW','user','ak_3d6eb7dacf767bde','2023-10-14 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$sWqAf6PFPOVl0e8oYOkBt03jHN79ems53cfgPbNexsWp0k92zP63w','admin','ak_8c77e57c2b37da5b','2023-04-08 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$6/l1mBHqAl2RIzph2G/ej1MksEq5zGQWYajldcQRSjXY9HeGktamt','user','ak_3fe40db6107fb475','2023-09-18 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$8gtqaXmhkcslxdMof3wOgmGg.WHuPD6ZvOn2E4MYKFSRfV/doCGYs','admin','ak_6ef634eb03e39105','2023-02-28 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$GHbDiso2op.JIZK4bXR.4RRYonDerDlf6l0s6igR0VDrY.YQRJrrj','user','ak_3e50ed8393419511','2023-09-11 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=28746;

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


