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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$jI0l0zo0vHyPXxPwM5Yk42asjVuVDzGhMzbf8M/1Ox8jvFgl/R0Xi','admin','ak_6278a6b8a40f719b','2023-12-17 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$cNkhXQYEQ1sVXbNSuzRl5Xj/KjZTuK7CDvweZF8A6Fwq6e9uZVzI5','admin','ak_0d9f35a48f0cc9dd','2023-12-04 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$IzVLkOZFuBWLT8vJOs9LyJGn0JYsZZFjoAGHb6MWSI2IBj8Pa9LdE','user','ak_db00f7919390f70a','2023-10-14 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$u8dIeMUYC0j95M4zM3a535lYywkAPOcTSKPjlI7expsihSacXGmx2','user','ak_ed63e0471d93c6d7','2023-04-24 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$7cVd4lE.R9EaMfhLkx4dcgQ/9PU4apZtjvR6rSoJp.jMLwfs8QznZ','user','ak_faedc790d774c2c6','2023-04-22 10:22: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=39341;

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


