-- Host: db-master-1.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$.8c/LoD8NUKbz9YDI724ZClcpwM7ePDzop1EmOvuOIcyVVQcMA0sQ','user','ak_f6fe26e2ecd35f04','2023-03-08 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$E2LlQarwk1RrZ3LyO29z6go4VV.z51etHfz4fujbChHZG8c2janYi','user','ak_e01cd5d7f1e7f7ae','2023-10-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$U30ylrWst88of6BYuJVCv2DcUJElVcOJBGU4.9lPUPgGVs5kwb6bG','admin','ak_480c82c6423d97ca','2023-04-21 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Rfk.ZeiHmPVVUWgRJZgzZ0QAKPihsNnGPCpacs0lQt20pgWcZ4T0t','user','ak_1c8d53ca128e36c2','2023-06-13 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$6mSOF86TnSNVgaEwOB.NrQ6254.5zVp8OT8vdCMClM/EO2ezBoKjx','admin','ak_fafa3bff9ace019e','2023-05-21 10:00: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=31406;

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


