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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$EhVGAuxbAZDerXPkpeHRVa4wO.1D94g6U838kzRSFpxFkYaUaHSIf','user','ak_cfd1e2048c3345a0','2023-10-19 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$cZC8YzsbujY1qM/jsathWAapZyocx1VHPXpc3qJnutuNlA.StHv5p','user','ak_8f68f23721de4151','2023-08-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$TNaQABVq0Bje8XJlcMGHQCKvN4oEWXNNAT3PQCjXIiI6FF9RZB7ot','user','ak_7772b437e42d0260','2023-02-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$1gtrK37yUlupDl0Dv/y9C0cz7dSkPvfFO0vpSERVnMLxCWL69jv/7','admin','ak_ce8b4e11f02fb9ea','2023-01-18 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$NhQFe/BD9G0T6Z/0nGO7Zr9t/1EzZ1zX9bAQI0R/FES4XGlndlTgC','user','ak_6bae23b2eaf29673','2023-03-06 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$6K33qHiDxL3WCn1mihtsPCzQFMm/t89W2BmfWN6yCkHM1MWWkLdVV','user','ak_6dca40bc93622da9','2023-01-20 10:06: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=38307;

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


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

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


