-- Host: db-master-9.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=19634;

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$/m7hUC/WMUNnNd4h/lgetCA7.1zkrCCTmh7vimuTFQUT74ANB0zDz','user','ak_5fa63ca28481fca0','2023-05-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$p3Tl39SfFFd9CqZuvQwh5AvBpTQw4jnNMJPHUuFSKxYWvec6gdqyk','admin','ak_1b79b4b6de3d5ded','2023-05-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$DNrRliG/AVlIaoZ6K01g9B1NDVh8LiLPm3o8uiioRGxZHvm3TfzmM','user','ak_2d721e68a50e514b','2023-05-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$7JTjixSFOwyVwFPJkQcnn5etq5UaHqG6XWQcv0nWVE4zFYqflJGVN','admin','ak_612ac544602be708','2023-11-15 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$RgtvfOCxclK2kTICzI33BD5nXaqTeDqQifdWhNdVafTYlqU/Lf/rL','admin','ak_75454d69f9bc86fe','2023-11-21 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$YkSJAYfuuNnt7.j3z1hYCm5QRRooUEh3uhN0jqaQ2Ne1rk.hXnMM.','admin','ak_182eb60a9e7c3547','2023-12-20 10:05:00',NULL);

