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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$JK/yqYbeMl6KnOrZ8e9T6zt4Im1UWpbX3RB1yH.eRv8k/HfsdiaC1','user','ak_a90d01a59dd03d7b','2023-11-13 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Ypa6TgonfaTtcxekmg3qwWCXqLhfjWFSLSm2czhUlF4twnfFgjfvD','admin','ak_2fbd3d00fbc8a425','2023-09-25 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$PSzj4LHtoPshJYmji0SUxHu5FJwCxJWY9G5aJ2VBDej9ETMk40qk/','user','ak_5d1c4d255e6338e5','2023-05-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$B6W4HBJKdxGb/UJGxtccLgx83PEjrucPQf1cqc8.Oi4j7lMbx1vcj','user','ak_26fb1c854d0645d3','2023-06-24 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$OoBY93Ts8ZHjLD8sajH80QOV6KBlpT4FUGxrtPSlpc.arz7soNgEh','user','ak_cdf15564a2f08c6c','2023-03-23 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$eYeOPKPPvuYmxAERLitluuL3BX.OUX0F2b.njAEJZ3vaGM1I05dNF','user','ak_2ed427640594ca30','2023-04-04 10:06: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=17927;

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


