-- Host: db-master-3.internal    Database: webapp_db


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$c/tVqoYepMe2uYtW9sl0UvMQfCstcv41Li26QuSm1rFNGO8AA77k6','user','ak_311c6d8752e6d2e1','2023-11-15 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$cgOoTZDI0sAhIPE17ZFT3RPI5cGvgZ7MRp1QAvsLQ2m.QNgoqIfaT','user','ak_27bdfbfdd528e146','2023-07-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$acR.6IgnqBm5QSpvu/lXpbJ7intxa7OIgYIOiinPQM08dc25DI./R','user','ak_0f0d2f77230b87e8','2023-03-07 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$IqCeMJam6jOent9da5lxp3cS18RVrYe4MS1S9dd6SOSfric5V7Nc8','admin','ak_2d6cbd7a2aa7ebf1','2023-09-03 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$VtM4oT2Dt5kHo/PhfBOox4Rst7m1CSzxy6LOIemxANqQdwnkcTdTc','user','ak_0d44a4653d6591cc','2023-11-04 10:19:00',NULL);

