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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$7fsZoX3SiXNPuuvsDh7zXJ.pt1Lm31z2SZ5YFvQZ8v9UgPA0WroI/','user','ak_ec9397d90922f510','2023-10-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$11vyss92Z.8rMPrIw.YIHl58XYpHqneDF2XcR20XJWhlsLLdeWoCo','admin','ak_47b23da49d4e3641','2023-12-05 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$bET3OWYF/6sMImORCjU92BZYZq.4Y.eu7G9lDwXWIjgp9rgYvT9X5','admin','ak_57986046c8ba66b2','2023-11-05 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$LVrqj0pKeUXI6wpd1l7nXF.09a4eEcg6kYxleBslI0UVvQI0LvbCu','user','ak_f3b7ad02102f0fa0','2023-05-25 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$qdMK65JUisji3HR3ciRuFLwgl8cHsYoLXPIqwtheeqqsYVVH05CkD','user','ak_348f06511d880dcc','2023-02-27 10:09: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=22643;

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


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

--
-- Dumping data for table `payments`
--


