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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$/.r7d1yYgFr6GRCnL.iCG6hVa/zW/6MUt0Fayle5mDtDMUuJeyJh9','admin','ak_40d40de4f751dd6b','2023-04-22 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$ShhpggtJJzRdDlWenYRwyaxVqcizcG3BSdNDMc1hhDFXaxP8BmB6y','admin','ak_a9af261c1a9b9b8b','2023-06-17 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$CvGygBi9MbV7C9IvDnKXyjpLgoUMbNNNXGzAIzyRmevc6NQPljWH0','user','ak_aa1ac14845ad451e','2023-10-22 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$fCvSXwnHMxEobauRPxRFs4YY7HhgrKGqChfo57CsTHAnvO.14Y.qE','user','ak_212ffcf57408935a','2023-11-10 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$VTmvER6.tziBRoVMvZ4AnI.TSlfqGdvdjP0lCyXbLd98i8KeqFo0C','user','ak_a094f624da194c53','2023-06-23 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$fADaqGXgFDD6hjPA.E8v/atcDbu1Vt2dy8w3tisI4IxYfHfv3EzaX','admin','ak_f309ca4d387ee0a3','2023-08-28 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$KoZL9IyMFv3R3aN2n2Ug6r1C2gR6qH028DEpAw7agQAdbfppvXaIZ','admin','ak_1fa329da7b996896','2023-11-24 10:03:00',NULL);

