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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$fnsIMFOcnYmOSl3VfYfLrNfRKPprR8MgExlzrUkiMcCsBe6C7.Nas','user','ak_f9502f9b6f3da4e6','2023-01-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$ABV6mhgDiZcLDCbGBVpod/xQKi2qJQ32/D36BCnnPCNvT51ErG6Vs','admin','ak_90d6afbcd334f53e','2023-04-18 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$228Gmr5jsANcsyxmSNP9tnIJgBZkLlhMWSk9LZnBeXRDcJGx3R9hB','admin','ak_724adce7e983488e','2023-02-06 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$JGy4ynn0ef1CATtWyMY71XTaPj0vl0ru8HNF.8juePzByuceXpDc2','user','ak_0a6b3a2484097d0e','2023-06-21 10:15: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=2212;

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


