-- Host: db-master-4.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=50315;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$A1oPyZPII4GO2ubzLuSY7TsyFv8oxopAoP7V.g4zN1alkkOmBLXMm','user','ak_e3aaaa7ea0d34350','2023-08-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$Ek.TL7n445i1l9w8SgPLbKHApdTVLEpkkzH5EYW7uub1L2SuE1ezA','admin','ak_28b230d8abd69ac7','2023-12-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$XQAhQmymLTg4v6QnFqbFqU2DcOcywRzA/Wu4QeGorICS5AhI4MKXe','user','ak_8cf68973e262904a','2023-11-26 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$pbFmZd8i.TlGf5Q7Le1t7d2srOrTG61A2vmNbs7vw.UHO0XwWjcrl','user','ak_9b22cc0600235268','2023-02-06 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$olNxAWrfocOoeUoMK67rmbaq7MhOBYMSS64lb8wNG0HApKq7BIN8n','user','ak_442d98949d176728','2023-05-23 10:07:00',NULL);

