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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=30470;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$uFAoX5UcvV/5ZLI1MYfhHn2S.4.ecut2.ijVmwjACCut0jP8Ee9Fg','user','ak_3e3f8e49ef454c44','2023-09-14 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$k5DnsYw52VWv/1Il5QSHbo8gYH4rSEX9IUEVsFNENrfrgP6agTYfp','user','ak_4557238c5397d195','2023-04-07 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$im./4Nt0pOc6tkSu67zRjFU8/oXhI6LaPkoA9DCHWHh0E2qq.j.Mt','admin','ak_3f4953c17159e539','2023-09-28 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$m6G4c4wBU./RmyVhbJcBJ0laPmT2Wa8X7nGqTUggF91JJZEjJImdA','user','ak_4b0134c5ba10b451','2023-05-14 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$tSLnw4c/TM194sHcuBJCiiXsPdfdg7SvQGR3LZL4sybue6yb4RoiF','user','ak_7d1400850ad5655f','2023-11-28 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$DrgwA0ErWwM2Iwdt6.2gL5ewZrZDZQ5wVA5H69ZjzhGGBBl9aHhNy','admin','ak_6ae54158d6834b2c','2023-01-27 10:21:00',NULL);

