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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$HOT0AwIxjV3OT/tCeOeYehKfcOmI903F5XmOyaCsOKSfMenDckJ2I','user','ak_d2314c540bdaddcc','2023-04-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$srGO2a8qytJNZpkf7BWeqarN7oGz17Z8o2hvitRKkbXCqhH3hf5D8','user','ak_0d894ab19a446b92','2023-01-25 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$IjJY/NxtIcjVLlYjxXHBNVpInyEPW3I.iApwMS6UxotECgqL5hsbs','user','ak_8668cbcc0ad415b9','2023-12-20 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$K6sV2wp7TqDvCUvEJQKz.sC92q27c7Sl/QBgXo38dMX8D7alx2uZD','user','ak_ee8c0b04a83b6f1e','2023-02-11 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$8kmpUfHxIKLGEfHENTsv3OUNL.CHzgDsRHV5aAO/cwB/T3BHIxOso','user','ak_b20021b82783ec0e','2023-11-15 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$vstaCNeFSwaIgVnXXWpXgDSYxRC3zTG0bKY2z7IbOdDhBvZP.NO5S','admin','ak_1749d9c52f8a3402','2023-04-01 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=4049;

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


