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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$PHw6L9M.T42XzleZq/4Cogf/fgdvogar0uuYrpSi.im0v0c0jucf8','user','ak_2f31b16a68a7ff70','2023-09-19 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$rn.81HcV7no8CYZk558hWaCpDMTmxYITsRv8VVfJ6.I2yGt6OjWJ9','user','ak_f3a44dfdff804515','2023-08-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$NfJeGth3lfV8OSat.wMT.9CzcUrWTlureubbuj9CkF9XfTHGIimso','user','ak_75c396987fb62d43','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$6BRP5dVhaIySyGOCrGqakFHDn/Qmu9yvdXQTpn7VeQh9RcSkAOAlz','user','ak_f78cbeafcb27c1d9','2023-09-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$34y1sioqSrxMnrCgpmFRT.znT6xdVe1ho59znREHlsAPyPw/Vw84w','user','ak_4807ac43638e1576','2023-07-03 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$EPkvTb0sV8ecsJes0IbzPpgATcnZEYk.SyuQQ3mfBYa40mZR1O9tQ','admin','ak_14d7bfec3cbf9c00','2023-02-18 10:19: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=14440;

--
-- Dumping data for table `payments`
--


