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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$IbeCw9C9BW5MYM.mW4MVuDPJrOHp9hJLSHQk0U6CNJ/8YpmxmfXIL','user','ak_95ee09c5bef3eaf4','2023-12-08 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$.LpFqq5izcYpPb/vMftegY4Kh4DbmikxyG3istL1fW1/Xi8PGv0Cb','admin','ak_29907743e9135dd1','2023-07-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$qxbQpzepkg3HoKwgbwpJjD7bge7MjrtAJVVQgtTU9/ZRhUC29hwYF','admin','ak_51e134a9828bc43a','2023-12-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$KJEZmdFOnmdSIsQlZg6CsjxK71xNWAe2Wv5Fc3moZRGHYEfq2ahU2','admin','ak_63044d354b543c9b','2023-06-03 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$uEJTnP0DczM0Uwl3RfzmF73XLJJIdezt1J45/B4B7JNYYmIg70jDU','user','ak_0134fa196086e298','2023-12-22 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$XbshIxRYRCd1FeReAW9Q0SOjizC6tSpU6JkLZaXr6Kc/.fx.4x9Oz','user','ak_996f2c90f5da9819','2023-02-07 10:07: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=16978;

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

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


