-- Host: db-master-4.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=50857;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$KfMsNr1uXtWXLv8bYlJJ490PP1pOo8r4dXcyZnjwCR8bCeB9Ltj8J','user','ak_b1d2d3cf3ae59b0e','2023-08-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$wTXqjhTm2eotTG5LjCXyDWYOWb8n1O5JINWMiNBryfUYVhmTdr9qA','admin','ak_4dca289777f75ae1','2023-02-13 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$C1KPigXF8u.m65l1IyqXuK8/h7ucv4PD8uYGEUUP.LOYbCR9obvoe','admin','ak_26e1326f80ab2e85','2023-10-08 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Jd0nPxy.UqoK5h4qhsOpuS6bN2h4Sjkta2Up3imuAHRUzW/HttUxt','user','ak_2de67b73ba0f2423','2023-12-08 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$ZU3zjgNMqh/KHTsrSx9haX8egDV307JCLClnIpNkH6YASsDAvEQG3','admin','ak_7431f4f2dffb943e','2023-06-17 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$6swKffPOlyzbVs7E6toNCeb6Agzpg7QuBl6bqxNL2DYvSvPo8kVYH','user','ak_7d80a5fa5b386d51','2023-12-22 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@example.org','$2b$12$Mk9kTzjp4b6dzAnipbijUzpjVko1tVeg/fn.Rhd9WKJ1Ck5tq6blU','admin','ak_dfe85b37ab45547e','2023-04-26 10:06:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=42907;

--
-- Dumping data for table `audit_log`
--


