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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$m.0Bpjl1gcJK3Dc17FTuxRGtP/Gx/gorqj/F8eWxZfJUZbpx9y0nX','admin','ak_5e47486d137af5f2','2023-05-06 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$wJsxHu5k2iGMBhD7qX0UVbcWcZMov0lPZZrFQvADg0FeSpzQ3NZnf','admin','ak_9dad9edc02b355dc','2023-04-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$icTVO0ILvgJlXK9XUT.Zq7kK68bzzuNdg3PAmRfxhJEzejWf/oOD3','user','ak_d9a8ed71d6e2105a','2023-10-13 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$Fv26R.GU2YBnOsTC2Fke6Fgs/P/lNYDqwOAGV6NesoRNpa/n8f.xV','user','ak_4ff929ea4d8863e9','2023-11-05 10:07: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=37401;

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


