-- Host: db-master-3.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=4573;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$3CiNXNJYgkNGV8/IkE5Ag/Zf12vkOk9qyQBa.tdCQCv/7rjhD3s7W','user','ak_9370348e545bf5ff','2023-04-15 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Iy.76SxM0nyjBb0FnoHphrV8Z/o8weQOvivnpYNrW//jMgAC5uOHF','user','ak_975d717d63419236','2023-05-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$fT0hM.jh6VCFCyiD..D5pYaQJyXpxPEVjf7JrTz/byX7DhLnz3KXr','admin','ak_7b3c93a0ab742a87','2023-01-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$Bu9YfwK4AdfDqMAjQLkBAdc.fAfm5XrMaa0VIgjCi5KcwuOaM1eWF','admin','ak_b38f6a2e8cbbbdde','2023-10-25 10:05: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=13618;

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


