-- Host: db-master-0.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=50228;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$DPqmwBKNKOIacF8cNaT6y41cdi0VLEqEd8BcSf5PH9zkOuT3LA0N2','user','ak_790516b39ebcc537','2023-04-17 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$5Cwn/5PaqBOFXWkCOY2kqx1KtmzE0U3oHLdgXHu1Y2nGEtCb6/Uxt','admin','ak_23ef26670d757479','2023-06-07 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$XrvX19qFwiRkWzgmtFKuRv6cyXlgmrkb10FGeXbFhq3zSyrVMhw/W','user','ak_ec4cf281ceb38cf2','2023-02-18 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$duPN52SHlnHUH7Kj4NkBqy1SO4RKWk0C.DkAeUAHlXcYQLxDRtLUE','user','ak_cb3a585c1d69e2e5','2023-07-28 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$AiNkQxM96V1b8HBY0/svW9K8zQd0catHDvyfAUdTTwaHC.cjXMJhP','user','ak_6bcba8c9900f8cbe','2023-07-04 10:15:00',NULL);

