-- Host: db-master-2.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=48715;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Kn56iuy3ekpP/pZShFCXPWzEYEWFPHtUamiGJAkMQWH4N.7F2VCYd','user','ak_720921828fad955e','2023-03-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$w34sOv4v4uq8269D7FIIgjD79qVHKAt.ted1ZhxpevTDG3LkD4E8i','user','ak_574dd9326997100e','2023-05-04 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Hw/CzuWn7WPdN6u.8aWBTzMVV.ZCPUBRRAQCLUxzHfUsTGYUYfAt.','user','ak_baddfdf16f76fd55','2023-11-24 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$2Ptw7ItcHiTpBID.1JP5BIKZOqFWI/7FfA5YClsuJhYEbEOWryxMn','user','ak_b8d5601c63f74445','2023-12-07 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$22bI83BaJr08sGIaA6J19K.Ie1Th0Kc4UAWo3IlF8GexaPtssH50J','admin','ak_690a43928b82a361','2023-11-11 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$5G9PiPWkJ4buPkZqpbuLU6moVh5yh.6ZLRrlAXrJDlJ.umEbl6GYo','user','ak_9b2ffb516670ef7f','2023-08-25 10:17:00',NULL);

