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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$A96ef/OjL0H7Q9crJ1tc13F.p88.Y8Xb8wB49zvk4y/NV0f4wICid','user','ak_87e60f25f19c38e5','2023-03-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$pd0zGPNTNgpL98SWpzfv3AQzj.cvjM0bd8riZxDOvLHEJUmJR.1v6','admin','ak_685a7b16bf9faaf3','2023-10-01 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$IjkZ6omZr5AxsPDdNyuSYeOKt8kCrR93CB2XgaU9tkHLNImB9LImD','user','ak_02dca7f0c5d76e41','2023-10-01 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$6RRsgst0v7.ikyKCgouJKjUPeidBsPGgTNv3fDjelFM5R7KcXl3mn','user','ak_9a6382a9b194573e','2023-12-13 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$glRs.AdC0afiI7VFx0duhuR6myo8vMiOJeXBpyApTE7U5MVHCEFP8','user','ak_ac5d57d25f61c6f4','2023-07-13 10:10: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=6815;

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


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

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


