-- Host: db-master-6.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=30975;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$5EA3srZ39w45tKacdvcegFgZrQ.aIMH2vUvsEwEWTqv7JNTQPLoH9','admin','ak_d1c4ca9cb69511f7','2023-01-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$e5vZtUqHBL9BalnIqMgL8NXpbEIQppXGzS5gSEBfH7uesA6x75m0m','user','ak_bf3aa613e2c601a1','2023-08-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$e3pOPB14LEQzHo2vA7S0xhDoeV/xQSpd66A25UscMSi0QLQSa9dg.','user','ak_5e399d2e1b45fe51','2023-05-03 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$fk9ZC/Pl.bsHwsYo6embta4K.gb8Cj1kdHvQarUIC4lmGANh7uiUv','admin','ak_2fac60cc17fb9e7d','2023-11-11 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$kguD8/Vzmc8gmsw37Dax0d8ygKiPTC6E.1IfXJMdu9ydocQPb5VNU','admin','ak_24f0b803ef0188b3','2023-10-11 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$ciYs7HZIEJFCw5vUDdwTUiTctebUspOs9kaMjWNZTTXU/rowX5uh1','admin','ak_4eb8552c0fda8c66','2023-09-08 10:13:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$29Dg.N7q3XJ8bHTsCRyKzLxmbnbtxwphMRJDzBxc3uuWzemZJ5bZ1','admin','ak_c33876d16126b94d','2023-08-14 10:21: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=7283;

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


