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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$iIG4a1hEgXxf0SCDHmKcfXwhVPPFs0zcuTvhk5/Cd1FZ79n9.ABIR','user','ak_a51f4ee8496904ff','2023-04-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Q0YHsVsWJV7etB.k1Yz1h68LmK4yhw6Fs5kYl1IxLRr4l5oVSvTaA','user','ak_2939a92cb45280c4','2023-08-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$wTvWZHQ2zQKX3fORgI0/Hzro5otUc0310uNVPr6I8kklgIh3HuyKu','admin','ak_396ae6de6cb2f336','2023-01-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$h1SSDIezwVInRkglBs/hjvoSz1SFhMf9bEdZLyFvtUCON/9ZrjKe8','admin','ak_b92dbd5fa5c1e5ca','2023-07-26 10:06: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=9956;

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


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

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


