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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$itqa.49VEmFfxjPWK6jQuGFRFHs8QhpaqydxV7fkYoKSqhEqwDxpS','user','ak_ba3a13024f238182','2023-03-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$NWazhuNkTOlKX8aRXJ2tzdtUIf2jHtOUaiqw8QRzU69ZuTMbZjkyS','admin','ak_37fc84e1ccaf90fd','2023-08-22 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$hlN63r6FWn5bb1LB8E/mPljcpBZKYIXcynzq3KrFl0i3DPys.ZLGz','admin','ak_e8b573ce2a5ca1c1','2023-09-22 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$dgUTaglkaPMW.TI.uqKTrgsWQVElKc6mb1wrTadHEsG0xRefNkO9y','admin','ak_1cbce0d60dbac771','2023-06-28 10:14: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=1416;

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


