-- Host: db-master-9.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=34955;

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$x50mj4MMtJW204QGn90KYKob9Yu0hjsNzDKMHMZffVrBSF5LilqZ/','user','ak_c62dd6cb79e70675','2023-01-19 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$aMzkDiRBNSfnYKVutpHmPLcmmgP7S45W9qhuLvRLZSBXujkBm7Nhx','admin','ak_528ba4d9ffec21c1','2023-09-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$SQAsDGLcRLUBJ9Z3anMZpDRneCORRpDWfWr9JtMyaz71KJ9S5lsqL','user','ak_53846a7bf7cdd706','2023-05-16 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$NWpY2plXQjQ167l49.UDGHHmrViL4ge8HRHcEzv9BlXGXJ8bVP76q','user','ak_ef750c7c568388fa','2023-06-16 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$4xmtGpVeHNvanudeRkvGoUZ02hmGJKLHhCLuxia6fVFzxHCoFqyAs','user','ak_7d39d045c74b3c87','2023-11-18 10:14:00',NULL);

