-- Host: db-master-5.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=2699;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$m4F9vxwwVMBC8235E0SjVWh7lutCQXLHL4l8kUqIVDt9fABANMQAJ','user','ak_a0a928ab46b40108','2023-06-28 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$SOzvyCB0iwmWYbcLJCJvSq8gqBLIkQiCvN9TB4xqQQDeDJXcRTm5D','admin','ak_a6cc48eaa71624ab','2023-05-12 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$c0rt/xHLQj8vR4JQlh6lsMucWHlq2apH3n6lb6kBhWLMCdOmWuGlz','admin','ak_82f21339fc02d4e5','2023-10-10 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$iQqH5QOipC4b6Z8FszRxtfwpn5/HIxfdkOMA87V9ROWCTO8CXYArd','user','ak_2b92be487cb6d762','2023-12-01 10:19: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=32154;

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

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


