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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Qkyh6rBvmXghjT0ZWgXVE/YEzqZYyCZyLdS2wzcHu4rnv0bo0IZyx','admin','ak_a41f3795ea15f92a','2023-01-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$fbdFyC206XfaKf9dzrGoqansNoe9K3qi4T61FsuQYA7Asqb.5lDSk','admin','ak_945d1241faa0cc80','2023-02-19 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$GpUWbwQWqn5KOvHvbuiO/aajpyqgBPhhtSH.ppgzlLx9khgQN1C.X','user','ak_8bda5cf8ddb8541b','2023-03-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$5MYANW9s6lsveO1dI1/IGoKhbEPGxbedb62F7.l4F4ygFryt7pLPP','user','ak_0656ef25066f1fe6','2023-03-12 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$Bw726.WlsZjBz2.sYQ3Te4nOo1tW4mPHJFyYXsbwghOULnkHm65Ii','user','ak_d09bb1d357ce7e15','2023-05-05 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$8pwcySU6RPzmwPxclBkcebadmxQ/M5CsIbJlTkV7/3conVt9PObeN','user','ak_1916d31d5fd208c9','2023-11-22 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$8greuIXBcpRCppFBF9VRJpaEk4IPl3VEa5Uoei.jHIgBVfty//qFm','admin','ak_6c73dd7ca633262c','2023-03-15 10:23: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=21659;

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


