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


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$pUuWTSxArCM/u1e6o5966rST.TWaMYAVjs.VwIOzOi7wIZIp5MJiK','user','ak_ed7a53ab918bc8fd','2023-06-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$ByB6BGu0PX4ERaiCe5OJXRqsPzA5wLOoQloMqUgOy.qF8agdSZMiH','user','ak_555ba9de238745eb','2023-05-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$ZYlpWUZCkGl39CjaODQGPZZBV4OVLEyysyZq0e4Kqr0qQExSBSoqj','admin','ak_9fb780a120a1404d','2023-11-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$aBfWVh9S3AStvQNf1mEksZL4nJxxV67QL06twcjbpVed1JeGCOo5E','user','ak_f865f34d8f5dac0b','2023-10-24 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$apUv2y.k88WP6dZZD1JzopKMKnT2JXoPeVM/xtNKKHV3UZsUmJDRK','user','ak_a7e8bf923fdcb83e','2023-02-02 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$iVazdJSF7kdPtE8GKTyKuYQ5RJ5cTDMJYlSTEOTyqZ1VWRFvmk4Hj','user','ak_ce4777857598a015','2023-08-11 10:09:00',NULL);

