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

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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$llax0xx4CS6D0/tHL.KaFwVanz0tzp7r/5YmyZhbF7NduOmiG0MIF','admin','ak_cc4b9698816a84b6','2023-09-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$z3TkXuMshm6UZPaBVV3CgQtBcI5dvjr5mDoxOAipe.peiRmF8T5yW','admin','ak_fae3a6cfe53c2d7b','2023-04-04 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$aah0eEOW.4adydRGE1N8QPZ3PXiKImX6IAhYuVGyWLa6LBJQliPKP','user','ak_ae4e24ee860647e6','2023-09-04 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$PVN/hzyXPOlY.WDFxoZbhalEAcDwf.lQtR9AgHewBkNbnSOFxLh6q','user','ak_0f3bc063aef1cb4d','2023-01-12 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$aP.UdtvbqHXQMxwIyJO9rjVDoipB/5darpZwVc.PGIARwyx536UEW','user','ak_22ce788d4a40cb26','2023-12-16 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$4VRnselCttNhP2MOGnFWIT/U8hxuAIQgnZjkKiPGqF1SPTkQ6inZ7','user','ak_4ede48a3ab856028','2023-04-17 10:03:00',NULL);

