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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$I6tqYbeI.gY3tZom7Qpiu/wOXpfstYtCKrFWJg49lqgfYcHT2HZhK','admin','ak_32e99fb3a23e1234','2023-02-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$CYf9Lr0Z7.e0.oWSA4fT5LsFwcjvpcsl7psNBS7R8X/SOUNtBjA8F','user','ak_8db7788b605a8f6f','2023-08-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$GhNDa/JTQUqpZDd9JLDWwAnrqfB2W32GxlkoRu5aAZxUcvpVhenQ0','admin','ak_6ce4d5dd80d6828d','2023-10-03 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$LwwFXcU2miHvhWp5M23SLSWhB54sy0D01GgSlErQEceKnRs3hkzay','user','ak_dd23fba102f569b2','2023-09-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$wjJkCBbz1A95t90XrNPnzz.BeACw8tgkutiqzQDMWcDoxqLVq2rPF','user','ak_75bfdfb9e3d852bf','2023-04-02 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$QHybq4HkUP8pdFPMxn7skFDswP02X3nyZxGVTs7OEiWOM0lSQ5Ek.','user','ak_9807f62377569829','2023-10-26 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$.ivshLPwP5g44yBq3qhyG6/etsoj.oujh8iYlEthjbY2o0WK.gaB9','user','ak_20d5ffcf4f54d13e','2023-12-18 10:20: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=36534;

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


