-- Host: db-master-0.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=24855;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$lx.ik2WOgNQQNHEl9Tdt83UQlEw6jSmTnke4xfo3F2GMQrukwbwGk','admin','ak_07f6d17591da93c3','2023-10-12 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$vnzL394A1M98WDpxdBBW5tia1wp9py3VL6O6OvWYwHKwl6nuLvZr.','user','ak_89663d8124f83472','2023-02-20 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Wimj3eGYuI2UEZd60a6EbvEpmnN24q9wmUJ.TFcJhPj6F3zI6S0Up','user','ak_102b3a64bdaaf208','2023-01-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$yDbBi9gJHfd0DciV3vQdun2lmy5Pp663DiTo7DdtDEzogzIXH4DKB','user','ak_58c74b0736cf7b30','2023-06-11 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$1AQIpfC6NtwcsdJSp.XOxL03ZXH88FmZAZ2idd09AmHsXd0OJQ5cB','user','ak_db41cb2eea0c825a','2023-02-27 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$a3kXsmG/XE3Q6xpL8wwOiMURqUgTvVzEyFzlYffP2PoHn0IjssemL','user','ak_a86a61896f021fce','2023-06-24 10:14:00',NULL);

