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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=48489;

--
-- Dumping data for table `products`
--


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$COY8T7f/OUo777lOCoaYuQDkZAZ1di/othX7LEuvs7BTWqJm0zEQs','admin','ak_d8485de01feee3a2','2023-09-01 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$muGO3JKBgO8YUt00nCfRB6GE1utb3xKfCuqCGOkphShwUA872Eyrq','admin','ak_943198e355fad274','2023-09-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$aBiE6d5PD2m3u95m0mgwyIlY3S7EH2z1wUOYfJUelU9xDwy048Z/M','user','ak_81b528fa408dc676','2023-01-04 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$ri3/A.jPEwQZm37TXqtqi2p7GFra5Y1mvCFjo54hAzC3ElMknO2ia','user','ak_8be493d26849ff7f','2023-12-05 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$fw4qkL4HgkDSF98BH1UoWn3LroX3/3MAtw931QK.XP2da4g6nb1Sr','user','ak_107156c3c170e798','2023-03-10 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$k9dYRRdPIOryG6jQhXkqrcyssMLvdsX/64ot9XnAs4g4QL5XuRQGD','user','ak_5e65484dd8b86f76','2023-06-23 10:08:00',NULL);

