-- Host: db-master-9.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$zPySmnB5uobMpgwE82kZVYuzo.4ERf1Bn2ywAZYrzwFhEmFAY./oC','user','ak_00c12824ee06c5ea','2023-10-15 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$.vH1TuU.Fsxc0GEzRUY0kj4RbfjDMhFWCq3OKCWr0YjFLY62xMj.0','user','ak_ab51109fe5e4ac20','2023-04-03 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$ielXLMGwAtV34AbMqmeF0Bmblx3A5qhwFaz9dcAb7.CT0ykhZddiC','user','ak_1ba129db782e5a2f','2023-06-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$rvYrgQCqP8bD1K64BcPgcJaWxhA6I0MdoNmXG6rbot8BSP9MJ6fam','user','ak_85e5a94f2082fc07','2023-12-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$DZtFnDRcn0O3e.TAtetY3UqukCyT1pxYuuMrOwbzH79GaKf8VEXL6','admin','ak_515cc42540bf2b14','2023-10-24 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$2xSf/KNv4A6JQkN.O6HHqMghrF.HhXvf4YWuvUXngn9lN8sLDUIY1','user','ak_940ad9ec93166a96','2023-04-28 10:15:00',NULL);

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

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


