-- Host: db-master-3.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=12269;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$RTHKZMl1HIwW5aaAlOI/Ait2.jX8eVwFHwAEKiGZdYtefq89HQatA','admin','ak_4ec76b2c8f5a7335','2023-04-02 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$z6I8V/Cwom4fukV4nZITBJBEVgbOqvwipFR0RY4zzX6sC2juw9HmO','admin','ak_8d3d3c830c623dfc','2023-03-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$rMbgKmtGUxGjMuiIf7gX/BKXc6tihgZKy7bd62W16WG9HR.ZLKzcm','user','ak_49f1526f881f70ec','2023-05-13 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$5c/u.QW9dqCO0o/pdjAUy.IIVHBHilNMYwK4zye4LFTkOXyEr1RpJ','admin','ak_83d16b1ce574fa0f','2023-02-20 10:03: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=40612;

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


