-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$QCKa.qZNVZMza2L1eB4SO.xCGp8c4wY4382nkPFdUpPktMoeWAfCU','user','ak_12c44c6d98cf9604','2023-04-02 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$P.ImCXPtbHiUKlwFdvix5W8FX.Cp3HnEQd6OwVGqXg3FA0FgZXdHD','admin','ak_79c9c69c84aa2643','2023-06-19 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$6wKHAN59h1N.Ey9NRV3SJaghh1llhmJ/2LFUpxfgpnaKDZsdcCOjb','admin','ak_f2ef5965566f5864','2023-02-28 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$O/ljNU9Z4VZeMRYu.uV0JjOCNRuyT68/Gx9bWdOO5uLemUePE9V5j','user','ak_13ed4b86861ab5f7','2023-12-16 10:17: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=33320;

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


