-- Host: db-master-4.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=17742;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$I6VCyFjsYf4YWurUsRUqTJeZBbu.emEp8BOY5XBI7hMLTrgNKMAt1','user','ak_332d3747a473f6f3','2023-04-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$rlIAetrFe8T/gopDQHu5jB8ocobXygsRsV1WZfCATBrSdLkSKIStK','admin','ak_fdfda6d54c8277df','2023-01-25 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$bG2s.Jg.fJGx7j5VkABGUFssNXkJDWRL1YLwHDFNwcXnutTPUEPn6','user','ak_4c2bda6446150475','2023-11-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Ku/uKotN9kprmZeutuEPSlMmMCZmOgp640y0ZNZoEa.vtrDdz0ZE4','user','ak_b016aab84ec6883a','2023-05-04 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$KtrHUJU/zG/IsnHb2dw.Ilhst.jYOxlNNsBQjB7gErTXSPJHULzPL','admin','ak_2ee4fbf5beef3d95','2023-01-25 10:02:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=31896;

--
-- Dumping data for table `products`
--


