-- Host: db-master-8.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$.4MKc.1coGjxJS9aYRzs9z/Z1MkocGG8PEMHh00hwZJLOLRqwKJJX','user','ak_4ee375219986d767','2023-06-08 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$QMfnlsLVtUXnvYCuYivPz/.XP9JE4NIMqvn3e/XnkO0.tKkUmePdU','admin','ak_1048bf0f87b14eb8','2023-09-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$WqIVbG6tdH.kzbnTUF3bP2YBItaW4xz.2pdfKTDfUhn40VOAvHBaU','user','ak_754e99057b1b66ad','2023-01-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$l26YN7rR9Nfeuz2PLAfIhkfPtYrgeVRIiM1mUzJRm1GrnPeUOZ1Bn','admin','ak_681f7f36dac10743','2023-12-01 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$7vdAPOiMDGSiIdVhF8s2/mAoceDyLDL1FfSx2YtIjmptidjYcyPtR','user','ak_c92e21e23b83fcd7','2023-10-10 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$d/wOGiD4rz6rgQyDeac.F0CJVbGTsaF00ZM9Nhh31uLxFq.Fw9qRk','admin','ak_c534e3843f795178','2023-10-13 10:18: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=16564;

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


