-- Host: db-master-7.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$n/wdTBpxOQCXPyCKI9K9u92GX.T.sDk7Tphv/QyNkFRmh.AQAhnpM','admin','ak_59b551fb96bee330','2023-02-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$xs6M7CdDJ3STHg5ZBHicX.p/yzzTP6aUMRiDOquAbhTvpjA.2DYAI','admin','ak_45d11f1083273cf9','2023-02-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$.IyfuIQh6cZEGwQoav.b6hxbgcnQ59y6cc6q8NcGC4ckqbwoXxS3y','admin','ak_ec264e80855366ec','2023-07-04 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$ptMJnMaFgdEt9zQ9kRG1fmnpO.1hoqo7WhpXUnkBVh.t138HCowLj','user','ak_bea4e3203059ad37','2023-11-20 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$MQGwPxGvhngQhFJ1hfBQ6BbDeIgYovCx0KfJ4BsOp7qgy9prTutMr','user','ak_e50c909c2b15fee4','2023-05-12 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$aG8YylxPIZxBZLfdyl/Z1PIBSFVoIKMqsaRJMhVPdV2nffGjtuAI5','admin','ak_4ff16c68e61dfe91','2023-10-24 10:17: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=34487;

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

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


