-- Host: db-master-8.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=44783;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$POONSziJxu/zdC7QLxnM8QuNd2tKKDco4PcD4RU0/T6G0vi1VGKAh','user','ak_eba003279c523eaf','2023-12-17 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$0D63ROu096vcKYADznS9thCFQuC7rRH7bK0Oe8sBIFL7tLZYg6WLJ','user','ak_5785262d73687a3a','2023-04-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$eAf2Ntu7TJ3Ymb9h7.Et5pDklsT.0f8Lzi6Dr6ty83wxSqmbUC36/','user','ak_d69e2f66197dd751','2023-10-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$EGGI1.7MMkH5ugSE.eODpNyEUgnn2oo2HF3GhbhJy1bXYIkXECKO0','user','ak_775d6c287406ed88','2023-02-25 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$vOgrupiz9Vh/USC3ss/2Kah07ulNcOiyS.AE6CF.CpBInToBeR5m6','admin','ak_4b8e9929432bc382','2023-11-24 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$CIH.bi7myv8awAQsEphk/DfxHNTC2k5EheRe5wR734R0goFF6tjk6','admin','ak_e7b3fde185845067','2023-10-10 10:21:00',NULL);

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

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


