-- Host: db-master-8.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=10411;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Fpbv4L19i5ABl6jRkgh8mCfyrFtGKM7.kLD3n9N44YAnT9oE9WZMT','user','ak_5a4a22efe421d2d3','2023-03-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$VsWSuueqSt69t2lsqLFKOrLC5s5TfeV9xCV/zfj0IIgBIa44WRxLE','user','ak_b0a293a708d80b1a','2023-08-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$TrRAmx6I2JY4qT0Diggq2u0ZyQeAh4gQVjrzTQOuSm1IUh8QHEOU1','user','ak_c9441f066731ec84','2023-03-12 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$W6aAtpYa5vp5CiQuQkwzTtGfszaFmgRJowFEW5fXXXGemJS2oNR1a','admin','ak_951b9eebd501e0b8','2023-08-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$I65YjazVkX4kAoHHVdZXCPr69Xph8jujrgYivQ1HSfzlv/4oKUh/V','user','ak_81b7633338f3971e','2023-11-23 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$p.YGI3MsRpWnnHONaYs1uqlgQmOocyUdfF0qU35rxwJ67TJnTDC1A','user','ak_173b7ebba189b4a0','2023-02-26 10:13: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=47074;

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


