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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$BbW5i5U9uZgdNHR45p6j5CxjDMK6BHjIhDq9FgXbocN6REhhJrr7o','user','ak_0a4932a3c9d4483c','2023-08-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$90om6.BVpxSzvkuKLmd2hsqIm71kAQm9cWkNfoboNGkQea4p033uJ','admin','ak_53c9d3d8090803a9','2023-05-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$x/rR3xQPZ4TpI.BhvPhvDhDNmXyHSgkVRcBXF8Xd9KNBv0PXXNiZM','user','ak_82e968a2c8249a76','2023-03-17 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$EfQ1bkGSnfDPjyq9hbO.5MkHXu15YiBT0jhITXPRvdQor9llGNGRx','user','ak_23281ad3de77bc96','2023-04-12 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$n7lTsLeerp3UjSKSKFdtpkyTJ31O2XvFAXV2Ir3skMKURvFuJ2gcJ','admin','ak_1cf438970fae7ba3','2023-10-02 10:21: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=10603;

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

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


