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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$CHOc7EQ9bNMZJLui2nN3cBWvOxsz0Pfc3zn6T2kkiY5JiCSwGd0.7','user','ak_66bfa6be6c859115','2023-10-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$DBJwy9tSwRxIOfIQnNYJnJimY7b3JW4wQvUFx/3Ega39I179hpXCd','user','ak_9b2ed226b92bb439','2023-01-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$DERd3Br7W3bAlB2L19APcUCzD8o7OjF.q8AUfha5sHCvmZrTVMfd.','user','ak_d2b890ac6bbe3efc','2023-07-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$U5FpAfNBlpCZIv15OCNpYgZvHSy1avE6i85UaebgLR1FvqgFeq1Xw','user','ak_0936343e89c27cff','2023-12-07 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$vEIypbwAKPfHjKQyChuWJIAC96e9qzGYfexl3O20ftaKni5qICdCr','admin','ak_85ca237bad0fd6b4','2023-07-08 10:22:00',NULL);

