-- Host: db-master-0.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=13050;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$OEi752AOx4M7kncaHZ3sxOsjvpFo2UBOdjCV/Z7MKa6Lw38VOFanW','user','ak_df7e52218378e3a4','2023-11-15 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$KNrntwCRiYTrTyeLbowpL6B1a8tasOuCT7vXmf87lQRED0HAJ7bOn','user','ak_79878340d9c13cec','2023-07-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$89SAcgE5fl6S4zdp1Jj4h5ZvR9Kh141vlwGGd.O.WIlTDdyJwrnWA','admin','ak_fab89ab61fe7b49d','2023-12-01 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$e1hWcdyJ5uMQcQb9Fd6JLMy5gP0RFg4GRedxqozvItGrsc..HSfC4','user','ak_05cdede71593844e','2023-08-12 10:23:00',NULL);

