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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$unuuGEwiVgnRhmLzuyEmYvDxB9qXJcKbu66J0/j.HbQiPadiu/gsf','admin','ak_f0b53fdcd3e0e284','2023-06-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$e1Wy/hftiZKveyvkDV.4rPs6cCmrMUGpZAvULE/7riD92nQBCvplD','user','ak_3dd13c2730680e76','2023-01-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$Wlo4FWhyFB0nzVr0o1fBtLR.oK/1cZu43Eefm6DKMxPxQf1BK5jLZ','admin','ak_d09e44d992e23120','2023-09-22 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$MZvDZit5iRmwomQigwYR9fGZAx3cQzuqwrejZqDR8B8lJj82InxWW','user','ak_84a45670602797a6','2023-09-04 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$7k9p4fyKN.7lDJK.UVss5Ap2RsRXRFxzQWtWEIfANtj4xN4DAd1g.','user','ak_6f8f035df1964f26','2023-05-08 10:13: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=21328;

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


