-- Host: db-master-5.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=23786;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$sEf7KCLUQ4HiuqcxLn3BJimqigrBhRQTxDptg0e/EI6uP24ELyV07','user','ak_9c2c81cb5275bcc9','2023-06-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$REKxcc0MzLbw5m/W/6waZLyJVepBzPKu7PQJPCiGi53jOhVhen0.C','user','ak_b92d0eeaf94db04f','2023-10-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$zgpCi3CyZOzxWe9G3687/B5vKBEmmp1Fo07tswvg3w18JZMZnRVCL','user','ak_a59ca0aeff825b5c','2023-01-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$g4XUKoGo8AQus6aSDFMfiwSjbSQJUNjzX7bQraqeLQ4ZTom7BtzJ2','user','ak_92cfe87e4ad672bd','2023-06-22 10:18: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=10115;

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

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


