-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$HHctdiHvyEqMScwgwO/IM3zD96kCAS01kJ1T7B9NrK5SXZcsIzcg.','user','ak_b8772eb882bef0f7','2023-10-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$4c0HrY6.nM8mYZxTUL70hodW3vFF5zUrjm0utOf5AVuz89nopLEBh','user','ak_a40109cb7ae271e0','2023-10-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$mMbZ8NzcW9YczABek4.hdM.ZyIEVqRhNKmlrt/CVxyS/gUtCMs0y3','user','ak_b4c2226baa62c34b','2023-12-16 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$991zBlW6aZZPfkNioxBiX66XrOYAYapthdEmvtHpHIwQbmCSOze.l','user','ak_6e130a2eadd4b44d','2023-06-01 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$1AfKUV8cgmSPI3UdUHeyYEniONv1w1zlgUoi5KwY3orIf0XxultFl','user','ak_12c64dd9f3f39523','2023-12-18 10:06: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=13941;

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


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

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


