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


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

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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$nQmIpi5q2bFvf.VTqmt6rxmY8sn4wQePdr51YmDtwgBqJdHnOYTb.','admin','ak_897a36c16ffcc3c2','2023-10-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$TKTGGdRHpGMEc3ftUNS9DREJBjQnRQo1Wp9l2mf2M14fMwirLWSIr','user','ak_98b8d43e95b94ecf','2023-05-02 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$Vw5mxp.7.SCG1tHsKEVyF.Zf4nDDZa4RQB01X0U8v8mXI9w4dzum/','user','ak_248b3766cd1a3046','2023-09-10 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$qLAKIRoa5EigOPR9eP2KkzaF4/YowU4oyKSi2yFbd2hwBnwL/S4QX','user','ak_4aa8adc3bb57ad0d','2023-05-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$GUo9esbKfSB20RIwX49YHhzt7v0B0KEDYrLMZmUzGzL3aiWzNXxbV','user','ak_54c0528227cdd65c','2023-03-15 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$LAUIKrvTK6KZMw16wB..4yUsnfIIbFapIYlUf1B.7G4ACwcKMAWyB','user','ak_cfc464648470e42e','2023-12-01 10:20:00',NULL);

