-- Host: db-master-1.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$TRzu1s0V1D3tS5FdnG6kNzWKgzkJS1SFXg6JYRkeJSIJIoWno4inp','user','ak_06a05b00755d7934','2023-03-03 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$nFfNEfWJ26YhsyIjWyNdcTCrtDG4GURU4KHm4v.iopkMVUlaJ9kIu','admin','ak_92f7b9a2ab08faa5','2023-09-23 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$iB7yo/VOohGoN1dlecimqO.kw10Q6BCE/7v0Lu3iZssX45ok/3e1f','admin','ak_72dfd80c8128ebef','2023-10-21 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$j61QtuErNwxOgMtrZKzdmqnFqbeATFjhY.dB64ztAHGYmdTRXObbN','admin','ak_ea2e115e3e24965b','2023-09-28 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$TMj6JCrFuiaJatOPClfka2NNn.kfXcqUV9vtL4ZAF/c9IgaxAKGjA','admin','ak_d8c79ad8702875a2','2023-10-08 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$5.4ae.GQuRbfGoyJxbcljRCnBJl/09T4duibdhu.ap4s9RxGrYtN.','user','ak_b86f5c8e56e49cba','2023-03-15 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$JbkwGDzBPZlHCcxbEfjNiuE9YLBt6HLP8W4AGgkbuzFrVG.SfKxKR','admin','ak_fd06a5997093da86','2023-06-19 10:19:00',NULL);

