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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$o7BeqRWh9AtISErFvHVO0EzvZUCzHw6GhTj4L6TaHxJQB8YlVg6fF','admin','ak_e9cba01a5e07351e','2023-07-12 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$XchmPxM67QO40F65sg8idPOFz7PZLkDpiW3LzzX.WMaHaFoLSPVDR','admin','ak_2b139b85229dacfd','2023-06-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$3YfzJOv8ttvYhtb5ZLz/7QAVbj3HjbRtmcc2V9gCgJ971F1O9P4kc','user','ak_a635bc19a048f362','2023-02-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$cS/ziYwRszDvjsivCwv2l.ejPzsxZuvENegxAH2gQCvv5YGm.Q3Iv','admin','ak_8df8ecebeab2c527','2023-12-08 10:19: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=18787;

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

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


