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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$uUcddfP.QKO59YD2zuG6ZdIoR9ogA/Qf2chnBja8DrmsUfnir2Rq7','user','ak_06355f095984c0fd','2023-01-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$anJLiSEn7t5QlC4e2eJr/ayED357nm5RKv/ax8n4z1QPXCqolCNgn','user','ak_e9c4d4921b76c400','2023-04-26 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$WI8cuH.qI41A59DRFMezTUmZQH4yzif6zC3COLDl34CYSouXj.lQU','user','ak_2c06ca571e6ff18d','2023-08-20 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$GcjEasrd1eUMY0mX.1nttFVqAoZkOrx62HM8O63arPJv1u7xiLVyK','admin','ak_dd9e9e46d2f5dc13','2023-07-14 10:16: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=2383;

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


