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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$SxQF7Kqxu02WcqFeo/DXC2l.qVmmR2UnGqXw3XQFx73hEYwAPxquQ','admin','ak_b460467d834d728b','2023-08-09 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$wWde4w/TotSLJPpR7EiAse/ro7k7U/ZvMR49mxn9tVadZdPOv1uQS','user','ak_ba1d9ae65f8c7b4f','2023-07-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$yM7osGpYjsCULdL567Og.4ZvVhg.DEuJb3OUP/2i6VThLlkoE.AvN','user','ak_250d503c026c4f39','2023-05-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$L8Bw7tncDpTf3ASAfQn0YTyZBDn6Qg6lGmf.brc1RMIVbOWoimgaD','user','ak_ae2702ed1b351850','2023-04-17 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$heRy21Z9tb6PRRH04Mun0mTeU2F9jsildwVRV/S0p1vU1zYnOzjt2','user','ak_87f914e7106548c2','2023-11-12 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$oOosW/JNSMsGZ1ZOd9tAGRyx5uprHOXoGpuwzCQsjilkPJtftQfhF','user','ak_43d5f60994b879de','2023-06-07 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@company.com','$2b$12$MEJeM8eF7l0lRFBcax27/ET3rHU.GCCBN3XnoRpFt2oa3B19Q1d4/','user','ak_3a2dd2753d2a662d','2023-05-21 10:03:00',NULL);

