-- Host: db-master-3.internal    Database: webapp_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=6789;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$TIQIhFz8aDff6djCPzCvoIWUaO2c5Wbe6OP/9.lWl2oLrdte9epuC','admin','ak_c8e84716f1e302fe','2023-11-23 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$wpi2D5YfI3xDALcjbOD6R2ljktHIUL3rEAzE/YvwZ7uVWD/3N38mu','admin','ak_014e80d2c975186f','2023-11-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$zCwsCnRSQo75npldfMfeVHvs.NY3NdwsXWR1mA9KhzPpMiFuTJBl9','user','ak_aa4c4e935add78b1','2023-10-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$.oWahEryNbXCP7SJTR68oQ3vCGra8eUWPfB6mmNw6FQFntJqJ8yZU','user','ak_b1a63ed8d385e728','2023-06-22 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$1yYO9gOIQy9020e1wvNgNDnIbfPz6XDu.Qh9HzIhPoO8MesHV6R7U','user','ak_88b95fe3ebd43c6b','2023-12-12 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$wafCjPnaMNqC35.tC4T33OkSUlXVm5cqIgdyU8VoL87M2JiP7pbDN','user','ak_199424231559320d','2023-04-01 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$/ZlTSWX6mcdDITDx/h/G5cgj/j4BNeztkmM9dhDaZ0vYzdy05KZnA','user','ak_6840bf4bae1813b0','2023-11-25 10:02: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=39645;

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


