-- Host: db-master-1.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=4050;

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$YCmxDePbUO7zLQmtaulg3pB40CLp6oinlYo0Qxl3YaMnZogomslB2','user','ak_5f92f9558f9bafe3','2023-06-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$RK141amskMlW5CszkfCHR4xilWGEkV9q0Bt4Xo1ORrR0yVdG2ZZcZ','user','ak_a5d7a21f4cd75fc1','2023-08-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$CAQM6AKk2fQSeGFk6eMyj5ac37w.YYNdWh4EGg/az0./JvG01KmeW','user','ak_f0933a8734e0320e','2023-08-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$lLVnC/u7ztW9X.s63bB2mO16Zsv9gxp5hqcAIoBBoaLO9fUhy8aTU','admin','ak_18971c43389c8769','2023-04-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$/1WjrexB0X9UmhPweqJp3QYaRkh6ZOtnrqzFR2n53Eu0c.HV9OCXY','admin','ak_9447b1159b28126f','2023-12-28 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$v91V253xlHX6HBv9RPu8bjY9wjBlfRPO5Dh/OMnnCpsMxTdWGKqDI','user','ak_83bb76777b79f426','2023-04-03 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@internal.io','$2b$12$TI379Xil7pbNoiTz5zNV54SJ5n47Fxq9z5.yIMDKom0JfXUh/27WU','user','ak_560967dd1dfcb60a','2023-09-28 10:15:00',NULL);

