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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$wvL//Y909zGFB0JIqbxrbLzP.aV.XuyQbSOyJwgkEURY3B7AnVl9O','user','ak_5dbdbfe39a704200','2023-08-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$2d9yOSVXzTt2RGX7n3er7Hcd6myW5TRMbttYUQgohJdkfc0sQVc94','admin','ak_c5bc9249df70854e','2023-01-02 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$QVDsfsNvHeyN7PKnrslRMvEOuv9nsQXPuTNLTuN4H5hJyIkuKHVnN','admin','ak_af04675635e18674','2023-02-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$RlfASjEUfEAIyBBufvPi7OfbPHuWhAW28h1UoNuqxcYnNl0m9qaq/','admin','ak_f2639e3fb7d9a2d1','2023-10-07 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$8lxuny.cLBqoQzBMUQddrT/m.8xOIqQnGLSY9JGjMuMxepe91EHRk','user','ak_1c93a87cbced2494','2023-03-02 10:00:00',NULL);

