-- Host: db-master-3.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=48606;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$NV/dMjVdsC1tDazNeGG6xyzyHib/j5M7vXHVwTf4f3uj7tBlTvUSs','user','ak_87dfd03a1bc32cc5','2023-06-26 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$ToSiJBUAf2MrR88hmuyCmi97kXYAUgPKqxCWTNJaurKfvYS0uxf8H','user','ak_3897dc21e4f54360','2023-02-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$8tGBwp78UPRzKNKLLIZo68ZXlY9JDeET9RK7w6nDZZg59MbRBFh6C','admin','ak_7b70f606b5829959','2023-09-24 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$p2a/27/VvdjR3GpjQDIFpkSnrNMsCfY8Tnfhw9J2o7QL5DXduQxTn','user','ak_0ee9b115eb7922d1','2023-09-06 10:14: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=2686;

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

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


