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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$TU9wzNEPSpGeVTePDxbNz4UvejKlNyJzRzl0ORo63afFgFxcYBPsG','user','ak_6e96fe83efe7f2c6','2023-10-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$FTd3p0QRtVrhViMbcoWRF15DNjGXRLuuHx6PSoplmOjyoOyG/Xawv','admin','ak_361d719c4007ba6c','2023-08-17 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ZO8/E7KQOYBqv1EAPMVCuPM5hcd7ipPR5cX3TP20X4Oo/FolqDcWP','user','ak_d09ec8724981d0fe','2023-02-08 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$ONrT6Kx5vsiPPW8861IVIUlTGlB4gD2W2EPZfue.SgAqvqn3GqO1W','user','ak_6b9a1a43f2ecaf55','2023-02-25 10:16: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=41746;

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


