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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Y75yC2cc2d7XMntLQejaRknae4DeAqMj49juslQS/7jyjRHYJduZ9','user','ak_a4a78a19bd53397a','2023-07-07 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$PCrFW6L89WYkNyvpGomWz6ECXiKNtyOajQgDjoxArrmQZyo8WzvMM','user','ak_270bbc1a3b918443','2023-05-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$yFeQwr9bvzu2zzxJoNlXrkpHV038REf/TAl5VeVrRs7tDE781ueP5','user','ak_083408c3ca840376','2023-04-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$F/LbE8a2CWKJoVhh.ImVC.D7GpXHx5t47X5qp/wOtDP/7mjt9c4Nj','user','ak_f6c5168dd431de9f','2023-07-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$/arRrgzV9.IXeGfgWh.Sf5zeDZDQXAbmxGF2sctVHV1XHRAxuhB0h','admin','ak_2a921050fbe0e1bb','2023-01-15 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$.AA4LLqYmC/McXWpmFOYeTB1CZ9V4pdbabZ4.CU4I/CJFDhs93yFV','user','ak_b99ed7507f911bcc','2023-02-22 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$oDC5yIwfe7AUW7T2qpBvCDQ.cEibuOzXtjKucVpsI9OcUsfuBGUOb','admin','ak_58e62deb109d8650','2023-05-10 10:01: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=26925;

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


