-- Host: db-master-7.internal    Database: webapp_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=20672;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$4cw/t663Egltx4VqdXTVKSWrkCBUbRni6fESSIkr0TS2GcrBo9uSF','user','ak_e6d510ed1ea21a82','2023-02-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$wx8mmJdD.zdeD4eNitrk2ZQQspJ7csU68Fo2GVgdCAnWhtDSXYgLB','user','ak_c855f6e26e66c7db','2023-11-01 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Day9TV.esSqfKjCXJnLOPGv0hS3pQGwSoKW0uiVIDbnBAFLt038aC','user','ak_b9d85adc92e95557','2023-02-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$DouEDv8Wvr0ctisgUhGXX9.EBoDcVqySJsbKOpGLlweVEcrkuw8GE','user','ak_9321f0757f534d8e','2023-03-10 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$0pErWcGNIDIAID.sOdSoadIlx7naBxfEmeJ7UkAvIvvKbGpnIfP1x','user','ak_6f2c3f13d6e989b9','2023-01-22 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$dhYtBznK4xQUQrxNfa5.bSxJT7wZvKHPVVOUli9dxLAFrBu05Rxpc','user','ak_077efcb4a67a56fb','2023-03-04 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$egch42L9ikJf8admgkLnvhlUGVXPX.lEpYXLYTb3vQ7Ms4wnhB/fp','admin','ak_94587be4659c657f','2023-05-09 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=24289;

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


