-- Host: db-master-4.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=15758;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$29t992XIP9wBLUgaLSDewZkwcrWGGJZ/UegN6Cly5uemCzrvdBNiR','user','ak_e05aae0e060b9340','2023-04-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$ViwW2wQOZ774ZXbZCbKof36Oa8jps7Vt1w4Ky2xNlJAHQfrzroZo3','admin','ak_fa69fee92fd08548','2023-05-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$PrEa65TRfiAkukuO4ohIVHOm.Cs8SxSMPz9cuTT7Q14Rgiwzksrfs','admin','ak_4a9a6d6f81fef26b','2023-09-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$sLUGANF1dUsVcLD6ZB7ffVUykpUT8qvqQC4yqUfdzm8dlQFUp3blo','admin','ak_84f153e1016aa159','2023-12-24 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$.vvftFxZfpZRPFX1lqolmuuUjnZdQFKgw9m9MuzVsWoEeSD1KVrMf','admin','ak_c9281f8527dadb82','2023-01-18 10:12: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=24998;

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


