-- Host: db-master-5.internal    Database: ecommerce


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

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$2lMQNjydbn0a1cvGz6jG/XTvmNw8rM/Dekd.OMKlh8ato8BYUCFkD','user','ak_26bb5ace0f2e965d','2023-04-20 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$dkQ8Z1QQ7HqiVBZRj8CeWU0J9TFF0R96mvimZXrB8sEXMzOLYxT1e','user','ak_1f2bcd53f121f8c6','2023-05-26 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$gdE1h8Ob3dJjDQ9g1HC8mGyrJHN.m8PYoNvkZbqDA.hrBRyF32tOY','user','ak_47da3f877afe544e','2023-02-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$rFvja6kV8a0v/8JqOUwDhr7N.kpmeRdGEGBVkaxmDQiaNWVJqvc98','user','ak_5488732e09042f3b','2023-03-22 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$d0mXxx4SrQMJhfJ6guf3igMXYJDzYW74rzM0W.I2ycJngEuSHGLgG','user','ak_57500474fa948182','2023-06-25 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$eVp/jL6MMGOh0haifxH9s7aUE.QLwGVBRumV2cH9BGj8Ksy7rgiVO','admin','ak_abda60115e16174b','2023-07-20 10:18:00',NULL);

