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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$bxknelGJ6oxxnoTnXZKvzoEhi6oj9llal44vpjjATYvF3VkS8Echq','admin','ak_932832e726d493af','2023-03-25 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$sQc8T.LNI0phfCCc99ovPpXpTXN9gXTc61rufNGzv/PAlnsyDZUo8','user','ak_b012af714743ad1b','2023-07-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$LutHsRao4oZpAZAiQC4iDCovXdYbQ0VLnnzc2aINGthCsXLSnhI/e','user','ak_5169b0f7bcac64f3','2023-05-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$kq0ikGyX0tNLKvR7geeqG8feQHe.9YbtqO.lAbdQnmRckNt4JVIWI','admin','ak_7632f6f1d43d06cb','2023-05-19 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$agFIU5ek/0baQkBPnyCOtkB36NjD9dLdH0H/EXeyNEParrC1bZEtT','admin','ak_a27380e83c2aee08','2023-08-13 10:14:00',NULL);

