-- Host: db-master-0.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$EmcJxX/GHJeOFzcxC9XGDAyVW0qRQbtoYL7DlcL2iwwLC7CfK3dPT','user','ak_41068568d02cce82','2023-12-06 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$eNcJt15kOXkqagrynvejytgKGcNpZBb7gH4PrrLrrQAnNXOzcmiSa','user','ak_af53afda548a6a41','2023-12-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$1lv6u4VeJ0EiIH4JJ0vzqIJGWcdUDfhjAn2HgtDy4lcVly0jRzmJC','admin','ak_68cbd3cacde7a046','2023-05-05 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mZK.Ob1nOnwcygmSyieUUftSmI9.cywypjhQ6P7hVGTNrgTEQQAeb','user','ak_0ef71e49b087a557','2023-12-11 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$YQim1QfBQJEhLoH84KC1KQq9.KQ3qEUa82Th1cIjA4x29VCL4wbup','user','ak_ce1669620f366476','2023-06-02 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$FZhsAyCMLtb96fjXePBMkp7vJqvcy0UKE0kBALe94zcfVSatuFuI9','user','ak_f0fe3f3249e1f5c1','2023-03-03 10:19: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=19714;

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


