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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$FcG2RjtqkIGNmUdzNNz7Wgg7jrA.gn.ea/8V85wG/gjAMVmq5inmo','user','ak_d93f00a440d4e001','2023-04-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$lJnPCBd6TjHeheVthOza32m20jJibUBUV2oYmgKyVd33Rox.IFZar','admin','ak_57420fa38471877e','2023-09-17 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$DALfjXEAt3gP2Dw/Gy1DdHUU4KSxkBrdgkbOs1s2Kaml/ZS0ndSpv','user','ak_913832a45ed90b80','2023-11-07 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$R3lAGYN2Druzn0llG46hMQLviPjpBwVu6iJ1oGW6./ej4muFS/Rv8','user','ak_1ad7897b43eb926c','2023-05-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$o8SEpmBq6Ur2SNSr5kTbJxNM59v8GZ5eyMj0yhctQ07X3c1qPVJp7','user','ak_8b64a608a7520848','2023-07-15 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$e89Ej4wgg1oN1ke2JSRdLeFlJdcAumQ6tMoqJQdSDDBrpOAc3/jva','user','ak_52b10476b9dc2a7a','2023-06-16 10:16:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=45831;

--
-- Dumping data for table `products`
--


