-- Host: db-master-4.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=20932;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$ZjFCH1L3gt/h.6mTmd75.M5JMFzRYQ2uIOiABiMQxfhx/09aeKIo9','user','ak_da4b31c947ba4fd8','2023-07-06 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$YzZa9nNaH2QXl5ye1O0n/xiYjqt7Xrd/7DjCYWJd/Dr60JnyN7ISt','admin','ak_43fd5665b2947e6d','2023-07-05 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$GeZVLCROc5vtOoHko6babIAh8SR9oy1dt2hl6RerwpHp4e7gKhIew','user','ak_29cd043e65c050a3','2023-06-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$iNDjab8uLRDzBATysy7leGTZ/oTFdf8.T/tHvqcAVq9zKP3z12TLQ','admin','ak_1a5c09a9e3745bb6','2023-07-21 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$1hcojagOJEd1b3Il0DPkD.PE2C5nQ0Qrv1LbcwEcVJUe3Fg9vqkBV','user','ak_e9d2697921affa4e','2023-10-01 10:17: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=3274;

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


