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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$IqaNlTlppJ6Wn3vPKfArL7778ueb33z8VRvQoLvrZmHDrCfspIbeZ','user','ak_38349500a8c84b7a','2023-05-02 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Q6ll6v3b1Zrkj0OfRmHZa5zpkzNJDEUQI/yU4hSzBVttJZH4Bq9D8','user','ak_0e23d8b8709757fa','2023-05-20 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$F9iQogBgUiWGMbJ2RS5m6IjdJeb.EjscBSVAea5qH0cbyADJRRsHR','admin','ak_bccf07e8b38482e7','2023-07-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$4WrEnR7tR4.nomvs115piZrUhHtao76tBr6rm17bvQDZbvh8ItPSd','admin','ak_6e9ddad77a9261f3','2023-05-21 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$v4OClg2e/nHYjLJL5rN0/67j9K3xuq41awcOY74O3dNvLTOTuXlta','user','ak_c56f2b7f945661f4','2023-02-09 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$hZCzdId2sGzuynApZdGpVlD0BtQuIQadGPNv2EHS3LLpnDE3b6.AP','admin','ak_2c84af9b775fd640','2023-02-22 10:12: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=17132;

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


