-- Host: db-master-1.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=39321;

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$t54zucEOu2xGGxkirEBa4fQxGvYLOV6aI3On1hWnHegMTAimX/jMG','admin','ak_84965303d4b7a3ca','2023-03-12 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$uNsCNb2f7bnynyuYBS5XcfOajTEkRdOmjVlYIIMNgWBHjeXavso7L','admin','ak_31410d711fe95a3a','2023-04-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$pWrQgFeimF0FNyBZNEkJbinyaZqxY9yhMx4Ua5X0V.BCdHcC.CIhy','admin','ak_e3086968224d4735','2023-09-14 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$T5HrYPRycASZFpSIkQdmOhiSkZsyJqBc7xMC8pldKbx0Hrc0Y7Yyl','admin','ak_720997412c594a2b','2023-06-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$dCXqy.P6SDsVd1hEZ0w0NfypLm.BdCMcS7SVYKcWeIzHha921R639','user','ak_51b2054838761fa4','2023-02-21 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$Awi7a98q7D0kBf18qo.zbfe.7NMamZAQL90p7T3ZPjc.69C9zi3vf','user','ak_1b5eb5f37d01c0e1','2023-03-20 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$LGZR1qVkMWmkP8AWkOuocJi0056k47DDaOIQJtneaW.zGQ90dOnsn','admin','ak_e93b4c71146514b8','2023-10-21 10:18:00',NULL);

