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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$t8imGlsK56qZKzn1euMYpULI/kfHF/xmu.xrsQiVrlpNb3qFO30RA','user','ak_63f9d8f8878720bc','2023-02-19 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$EjVdtYxXFDWFgkM9OwcAEPTgQ06IiRqf71wrNgrSEOND4H.ju5wt.','admin','ak_493b5e1beb11b4ae','2023-05-19 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$mUgN7CF5zK3qeef99QVa4AGM2nQkO0gLrbrqP2BWcSOiQUIOhNyTM','user','ak_25ebb6bd2017ebc8','2023-04-21 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$1oAd6hHM8oCyTWxjLwx0KWBmMOX9TgG1.Xg.MF8AxDFacbpM8iVce','admin','ak_098da0c03da292e2','2023-01-21 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$7gbf7X/k4NQzZfaUt12hv0YtNMkn.7Kl5D0VM7KYzdH/NqHGre9Fm','user','ak_ed436209f7904dab','2023-10-28 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$uMIcq4cuTxXXf1Y4D3KdH8va84i60oIMFQRNqev90eX8YxpjTFGVp','user','ak_22383067b526c0fd','2023-03-21 10:00:00',NULL);

