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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$zDyEuRLTVbpmpnpfhS.QwzJ5jKSiG5k4TnMzsbUqVI1Yjc6UoGyYf','user','ak_1448fad64656f227','2023-01-16 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$2v67VUhSVn4F1gPoSQSqqA0TmwSIrVMGBtyNd0v5eDp3u3HzPankD','admin','ak_beae78aaf78ae477','2023-03-01 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$wdkCBsQ4BwzlBWzvYALBIUgTg5hoj9.2J6P949475w/T7RM56Xzz3','admin','ak_d1e44c2ffc7c8340','2023-11-28 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$RyXofOAyqWE.5UCFdOXVnk.MOkuNqSOFIip97inSue4m1sQpTFws2','user','ak_3e4d5c24304aee86','2023-12-15 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$RpgUt6BfuZaLcGc28YQqQFUaGCvZrqlDTpFCTP8VGu.fbgKdFUwNH','admin','ak_9e93b6c725e40861','2023-11-03 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$hUWIDt9PVXtHiddZtOSUdUTj50fzybMoNUge831tKuZPMtZn7VW9D','user','ak_0695aa3ce2dfd91a','2023-05-25 10:01:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=44469;

--
-- Dumping data for table `payments`
--


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

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


