-- Host: db-master-2.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=2823;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$tngIn20ROwTPS0.8kRMs.kbNk03QLiQVPcOnTmSAoSKKY1wGZJRuD','admin','ak_f2c07c126f64d6a3','2023-10-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$VeonRyI75lUDHumTROmMUp.LlqnFrBAr0d5jI2im0nksf.l7qTDXY','admin','ak_70364e7f42a23180','2023-06-13 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$dhoU4h1QyCnwNjIaLY3NRoF2YTFRlKZBXcDdPXQOCXfnkuPdZPfbw','user','ak_c6e797f3d87947d0','2023-07-05 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Peye6eduJ4Ze1uUXVm8ghXZMIouxVtySCFKXZniyTxHgW5mkVulhD','user','ak_b5521fa39761219a','2023-01-10 10:05:00',NULL);

