-- Host: db-master-5.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=41903;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$7gkjUVjCiBTLpFXjj6RrqmpEMFynzrMUbDwtmblWuDO3o/uOxN9mG','user','ak_e8f3659b730c1125','2023-10-21 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$OWn.Og0r9m5tjyfwR1KYn/rRUIwH7JVdsPYQybR2FzIUmm9z2knS2','admin','ak_73232938f7162dd8','2023-11-20 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$OXn3z0RTlpXbLB7v0wKNOifXW2HoCcr.akDMIe.kq46HLHpi3rCzo','user','ak_82ea5bf6594b31c2','2023-07-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$exnScjripzds0qWGgo6OQxgOcQdwUorg.TEf2DDebcYYuxcpD/R8d','admin','ak_63a11a656a2d0d19','2023-10-14 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$LUCsx06FzCbcsLmbP8fMMBaZXPCUl306iuge00sBunSNepIeAsNGe','user','ak_12d14e0868bc6d00','2023-06-11 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$rvae2jPm2xasutyS6NtlW5ZodFYijDiceYhwTfFaczVetfNm7q3aC','user','ak_cc6198fedbd974c4','2023-09-24 10:11: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=19282;

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


