-- Host: db-master-6.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=19234;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$s/SlcvuEvJ9caww3ph5oZz4hpaBe6ym5ElB0adLdZSurBB906Jxkl','user','ak_0d36a634d4b98494','2023-09-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$bGuZxa.SWCdF8DjLcxYPTWmar/6cF8FXnxZXaFUSIvEgPzq/CtcXG','user','ak_58ce7e221728449c','2023-02-06 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$zHbU/KCMzcGFsv1HxtVY7XbQfMPyOy56GCuu1YHNbsTzBUkjq6YpI','admin','ak_e23aeff88b23bbb1','2023-07-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$/C4wGgAC6Fo5JmKVJaQTMMy7TPJPS7SzRnGYDt.uEWut1MXsb2sqA','user','ak_c4d9220f5deb9074','2023-03-10 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$kK.BTQ89fGIiwdwtYtZB1F4Yf4yYiTgFRCmqJsjynqY7dE1g6XgP7','user','ak_6b5c5f0e408c0b74','2023-07-13 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$nPotw97nZ/068I3THkWdg9JhV02CBs6fL7Mxgbbztaj9nftYDinwo','admin','ak_5c9e55ee1fbffc1b','2023-12-11 10:04:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=5680;

--
-- Dumping data for table `audit_log`
--


