-- Host: db-master-3.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=17229;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$KAQ9e2dMTUSZ/bRI.epN7/ZsSg9Sb421AqFWU2p0Xm2nyHPAvCS/3','admin','ak_db310bf684360406','2023-03-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$uHEpYRhR.LyJa/N767uVdLVdMDFXhEkwQNF9Sne0EhU/RxAR2Il7w','user','ak_af51d01f33d2b0df','2023-04-27 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$QNtyW9YxQd0LUX9PmQIsqR2aSHKNZ0XZHw4n334Tbjl..GhaUgY4H','admin','ak_abbe18091449d5ab','2023-06-14 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$22Cmac9E.Xeaaco3vWIM9DeLjMjgHuQoInEPVxWVJGDUxR2hHHb0H','user','ak_f79377364259d999','2023-11-10 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$v/c5uLeBFrNuMxG9rSl6YewgSNkMQdFoL1fckMkb2WtBFigFKAhgQ','user','ak_019dd39a5a2ee567','2023-02-10 10:02:00',NULL);

