-- Host: db-master-8.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=28628;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$s32Y2PURIn7cYzgW6gHF0k5RvgopQ5cQX9x7oqW7N8rkzLRrPcJ/K','admin','ak_81d7f3a4fc789ddd','2023-01-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$VdJnH477Gin2WyUSD2pDl8Qg2vW4mKWSSTuoejjNZ1DVmN6SB3P.X','user','ak_da7ab5fd5e54e368','2023-02-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Iu6SNGX6hJ4y8QwJWlaW7FRIVlEWTKSNVKdILH7VHjFBMDrK1DjyD','user','ak_47ff960c25a7e045','2023-07-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$nzrcucsS6NWrfAJzd6rjGcTq4aKMah3EWLdUdTmTnCnz2U.iufz81','user','ak_80d7d9c1010880c1','2023-11-24 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$hxzxLG4edAxKpA2MzTECjWiVYKEvnMq92c8QbkkFyEUl5H4SuKP7Y','user','ak_30ed4ff23da047bf','2023-04-15 10:04: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=4338;

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


