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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$knyQMHRzlV0RmzotQNh9Vps1nmPKj2U7aTaQWRLn96UWDlXSj5z6t','user','ak_f6c49ff53ce06d25','2023-11-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$FitFuZWfNTJCzM.ovNxBO3P.zK0KNTEnS8JvIlX0nc9HnMH5E2Rrp','admin','ak_98900fb8dfc47970','2023-01-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Vn08.M1wdlCa/4/.AgGqqJ7ZrUPDwR0x.OD9Cm5VFjBDTMwCsGJSD','user','ak_847acc309a0e96dd','2023-12-22 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$Vma.5gNg17ClajpkYMKAQR6jKtnmwHBRwcSyptCTuIUYvQsATpvpi','admin','ak_98da2d1ec8ee3145','2023-12-19 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$vTnAC4ejAEHdQcSaBCSgvCotFeBv7G66b02EITDpCAcIgIn6OaiMK','user','ak_c4bc6c2a55baa2b8','2023-06-04 10:05: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=35711;

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


