-- Host: db-master-8.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=2856;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$qDsazEqUCpaWuWxRwIH68xWsmxmmkjhvsAGctAC3YW3yK/qmYxvL3','user','ak_4841199f103104ef','2023-06-04 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$L7dV2U18yJ1jFELBWpvG83YfHcbs2AGnF8IxVUlyDsyjFGreQS1Xb','user','ak_5de0194dc54b7646','2023-02-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$JqYJotj0W0Oty7tI4/d/26M6nOYgaKtu.ETfpKOKB0EyunUzYEvFZ','admin','ak_dc4969855b11cb94','2023-10-20 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$ZnON5oCiGLR7moi5ERU8XrjE8R5RFl4Z1C8MN.Vl.JGBh64/yKulZ','admin','ak_2f9d7d0ef0fd5232','2023-11-27 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$JUnNd4KwdJ2MZrGHpdc9avwweX6cMlpsi62/QiCMmXbM5EZ8Vo7xm','user','ak_f224326a9baedd4f','2023-10-18 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$wy/Q6OYBnb/EZHaioUrEKhI52cTp/L/77s0lSoSyGroZNKAoGRJbR','user','ak_03b03509c714ec2f','2023-04-04 10:18:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=42914;

--
-- Dumping data for table `sessions`
--


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

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


