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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$CpHFAC.WT8ZyNX/oVn4yowKiR8OwYZL20UnBLVB2Ansx3nr.lyLEg','admin','ak_152e28b22e1d0214','2023-04-20 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$9PtnbofBZYdTOxP1uf8VmlVQGb7UD/tRuE8q62.rgYp3cMVJhjSL6','user','ak_dc2e1c5e3754404f','2023-11-28 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$w3K4m550WAcvHQYInEbqhxJLcvvCE4/rtN.bgLe5Yu1J3n/0Q5ans','user','ak_6cf1ddb6a162204a','2023-05-16 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$GJEv9jPFode1P.DMEOseovekiyY8OYgfwGCV58InkT/NPWE2eG4DB','user','ak_e0c393ddd5615e58','2023-05-03 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$xOSvCAPdQL/LzKY/yv88pWXSAPFu5Rxlweqv22D3NmBEidtdEYyNz','user','ak_10d089d308f143bc','2023-01-07 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$/k3KRyv9b9UApO1KnwjzVhNU9o1Izoxz51QRvGdhYA2jSxWF/axTP','user','ak_9f68cdcc4e98239c','2023-05-13 10:08: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=4894;

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

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


