-- Host: db-master-0.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=11874;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$/TazH3iOEmyosTJz8hUGqtwnLr.JiQEIgkf6VNDe6Gg3ukpI5z0JV','user','ak_2c5fd9716085567d','2023-08-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$dSYdw1qZJI5zmnviqFA7iOcYa1a9hk1LhjtmfPozkw.OkJg9J/BTW','user','ak_0353df554c93d876','2023-09-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$kPDNj6vVa1GJpobwaBGiMUBAzdbi3QWU88FuTmXaf74oIqLXuG9Lz','user','ak_b8bba733dd75dab7','2023-10-01 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$vk5lvvUGG/sR6BJovfJLTE8Tul68OUMfva0gjTbXKUgyYAz9OwzPL','user','ak_76055437cea6e53b','2023-07-18 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$..W0eFVM.HCR2ZRhfY.BhD56Lcl.VTJE1Xjd.QspCcjSAx9jvTEer','user','ak_e692cec09ea90260','2023-04-01 10:12: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=34295;

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


