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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$NSxvntzv3o53UgmremonilD79R8wbHm.m9dlNmQRbNsCWecqjEFqz','user','ak_4620ed96e73c2d56','2023-05-19 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$47zjISlwROnHHeHFyrRrkV9ixAzA.GTtL299bZwkXud9oo029rWCM','admin','ak_3b9a2280daddd873','2023-11-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$CaBZNr17/sNI/W5y9P4R06mye7qgRxi4fSvcn6UDqfYp/0/Ty9bU.','admin','ak_5c020f683cfd0aae','2023-08-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$sjaaelOXqXPzeTgqy.SZXVl40V765EwmmaeRK5krZcKV0pFIL2743','admin','ak_39cabd354da09d93','2023-09-10 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$gWAsU7EpUrrQdgyfyNYhKK8b8gMq03P2eDc2v6qnuWyWnhINvYDf5','user','ak_c3ce420ded812b39','2023-10-05 10:10:00',NULL);

