-- Host: db-master-2.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=43931;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$BGokwzn0V9sw98Q3Rupskp8xOFWj4e.oLH7wLdO6vshIA0aBxWi6m','user','ak_22bd259eda44d40d','2023-01-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$xwTQ.K6KDDwMM/VUOsfIc0Ax5q1U2ro9dn5HpG7UCrs66pmcaUfrN','admin','ak_6944a8bac82c5939','2023-09-06 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$EPUySGkEGj44ro28CKVPxYp5BhRHaKWxulVyVnfsJK0O82Dup9ruD','user','ak_c617ebfba8811f5c','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Dabph3MGjCGBgonQwy1w6RzUXXnMoCYP0iukAxNBxkteDf29vg9IG','user','ak_076ccd44496decbb','2023-09-15 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$1jswIBZ4RZQpHXxyXTw9fM.ZjoYlLACX1dgOvjokm/PWTY/b9TCR6','admin','ak_2b6b17eeedf7db02','2023-05-14 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$F01hZmGpdoaJyRdR9iPHw1yFBlB0SG.WXdUV7A6/MnpzeM3bznbMV','user','ak_5fbdecc01ad6a671','2023-06-13 10:16: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=21530;

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

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


