-- Host: db-master-7.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$S64LGB1Nw9vpIrpuL/4DErbZyV7htRVlw3gAIXpj0oY/bmHkVMfG5','user','ak_dcd332b655d99a73','2023-10-26 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$BM3msWqaOu.CSgrANOTfkvVRrNdIqmbWOhyb4vv7i6TZUZd0.EHIl','user','ak_d201e205fa790e74','2023-10-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$QqK5r4zlPAVoi/QoQ3k/fDwh6kOeE7Cmp8aSb4WuP5ZVzFKA2Q8q5','user','ak_f11e6da724b30389','2023-07-02 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$55FrNkBHYyq2GMOyqkDbKNPzZn9wGw9m6N0P8na8V6hENWRSGaea6','user','ak_1d0874a5be84ee56','2023-03-12 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$4g0gCWZvikQ4gXY258GI6N9raRyWqVdm.LVn.5hkV8e4FdDWhkr.T','user','ak_3d74181d19b3f99e','2023-07-15 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$CC9ots3ShqpdqxzB1FsZVu0H5hEjFcm8W9j2Y91K.97GChD8Zbfcf','user','ak_0be82bdffd09aad3','2023-10-13 10:10: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=34914;

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

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


