-- Host: db-master-2.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$3ZocAtbpyXBPd6XWST3z6Cz7DGgapTwrBZz.U4JHRTO4w3X/JaG.c','user','ak_b26f4283eeb8298d','2023-04-10 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$2qAjTPjCX8Hxxz5EeNVWx/8ogWEICcW9Lfc0ii2GakQ1xB7yR4dHi','admin','ak_156b1631c2c4ddb5','2023-02-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$cRfvtEJs5r3EakG.Jy9FvmG9oRbcBme5yl3qsB0pzTycwgZ9WwAO4','admin','ak_8c8ca1e8d9ca2b36','2023-02-04 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$dXxKUtR/vX6rJZtqFZjkdbvDtbEDoTFFHPqDn.MSxoEh9JSc8m6rD','admin','ak_26e59221ee0ed9aa','2023-02-06 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$78f2xuxvUD75BtChC1nQfpf0CrwuU8vlUlKtHqJ.Ha2LsGDDluBd1','user','ak_a42fec32563cf8c5','2023-03-21 10:10:00',NULL);

