-- Host: db-master-6.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$rn/O18GoYUUXlOLhjS5Gln51qkIEYeNTpvVFfh.QbxZ3IckIRZjOy','user','ak_7906074024af0d9b','2023-11-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$8JdTG/D/Rp69wgtwzu4U3HXXlrpLOZtJaf4n.8.0lx.zT0e4GVtkC','user','ak_6487bb597b5326e7','2023-06-17 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$SE9K6dQhQqcb8lj9rtwH/Ip.qBP7PSnBvSF3ScGGZKtzWPlmUAwKp','user','ak_b2bbdcc911dc7d78','2023-01-14 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$gQc0J/Twn5PWuBjBDbBkSRF0KQ502YXEEfRCtKLBTWJQ/VoMbMC/Y','admin','ak_93cef7b72e440b8e','2023-06-17 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$/sZDY4yhkuSwYETs0QgAuAyxrjMeJtgjRANNJGxX/vkr.tL9/kFO5','user','ak_dffccfee0433d860','2023-08-14 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$N3zoxyd97BKlgev9yIjTwc./uzS8zuFexXoQQoRXcLvMdF99qJk61','user','ak_792f5dab87c702c4','2023-11-24 10:22:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=3133;

--
-- Dumping data for table `orders`
--


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

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


