-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$Hw1J9rU95hZgEntI06B2amW4mWKqFXTjTkpqu6Xz7qEW.t9vNB1.v','admin','ak_57e6199646026322','2023-04-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$8vepD4luuVWl19dU8lzQDlRlNm6uqW3OEWaBofjk9SDCVUFUH8gr0','user','ak_c43cbce8827c03c4','2023-12-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Q6kEWykUArTdy.ihGqQC6xFqb6nNZYWCnUt.yS/1awzFYFMf.O3VY','admin','ak_3cafb92a94cb9513','2023-02-04 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$TnIAyvcof7INuM47pkrFTG47uZ4yryAtJqfnDNfEZ6/Zju7OwnnTo','admin','ak_10b4130bd7380fa6','2023-11-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$7Yg.r3ztN70L2g/.XXS5bk1zzLj3ubRV09pXjpGdujgf93/YrgQCE','user','ak_9c1da3263734f98e','2023-06-18 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$Q7ZlapQVX3YRir57Lvw2Qan2oWGMQsvPKby1v2ZddMTWAyuv72V7n','user','ak_5b7c8386fd3e615a','2023-01-26 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@example.org','$2b$12$iLvT55VPAkbxXvbxsaTbouVyw4NEYcZgk/eCmzUHsfIYxDs/Gir5t','user','ak_22cb87aa1182c1fa','2023-11-09 10:17:00',NULL);

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

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


