-- Host: db-master-3.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$ZukF9QyPO2M18RVqFkIoKVWHPNcHkRl5OAdxvgBq8LYkgp1LTwNJG','user','ak_4f510a1c85e444b6','2023-01-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$3zzdSLK.e1jg3hkonTPw.b2QG5QRqbymU2ALbwQUFS607I4PbrndP','user','ak_855710e8c36a821c','2023-09-21 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$HRDZ4X8Yz2oRkK6RvTA3idE6fbVJ6hC4H3PiZJk1nCbbRzqDd02Zv','user','ak_32c6c3e59f9ec15f','2023-01-06 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$XURu6JPMZYF3iADPgPdruzCEBLc7KWz/MMmRMnHNCYaUTIk7dxWfI','user','ak_e147f7b4f317595c','2023-04-11 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$hw9KUajKRv.ZFJm2WkzRiqCnVzUInPh/ZiXW2zen4M897Varf9C8w','user','ak_b933bdf90d7a554a','2023-10-05 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$EI6CzpUlpjnhqLApv/z9NKqmJzgZZUFMlGwGZG.upXaFANxc3xGBq','admin','ak_85b5a9e6ef7e41f6','2023-05-24 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$6ULKU0nOR8Xp/EvqaAFk47fIDMEsyJYSB5XrMK6ezcsqocpVYCoy.','user','ak_696d69348b88e1fc','2023-07-25 10:07: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=30443;

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


