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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$O.gyrIbWp/DCadRoknvc2DCFmelONoqwkHIFhmKpFDbfKcYqfY4U8','user','ak_589711a098014088','2023-05-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$cIJL7TtRBWqXTsqi/1NWTG5ngjbWF2ZU3xcf7H.xGGQMFVIB/qggY','user','ak_6f0d32d5fdb7f62c','2023-02-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$ukAKDoh/8wrMuYFJ9aUy0aL5UOmoFf3tHyQQ2X4px68hPWAUCFXJG','admin','ak_29ed0463a69f3f67','2023-08-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$wnfFR7kexP7flFbsU/5dvmcuMx/TvGEj4AkMYGG6SG6f/fEtlf2Lp','user','ak_278475a8c08aa6db','2023-09-03 10:00:00',NULL);

