-- Host: db-master-0.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=46418;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$QP8HRfJShxnCXbzwWkI0s.duWGPp2RjYvkjejQc3htzXKMhX1qATP','user','ak_fb4fe7ed06322c76','2023-10-17 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$Gj28MbuUQC3BuTOF5hI2aHJ8nuaidG0K/Ugy.RHZy8xDhv32gGHuO','user','ak_2de28d7a165dbdcd','2023-05-18 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$INDgevv1r.d7J77Mj9vLrmW1viCkhwj4W1O96d.YMjMOdGcGI156I','user','ak_e0e26fb3dac47a88','2023-03-27 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$12ZG9nzqeObmA7hx7m2ATsK97DWdE9b/TV/pNR3QfSV1bJ5EHEQ50','user','ak_f989cd0fa2c5c6a8','2023-07-22 10:10: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=39465;

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


