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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$v1kWtrYxqW72JqAMOURYKzmR8nnPMBuHWVatBakHWGlhXSH0Ue4MM','user','ak_f78bfb050935f74f','2023-05-22 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$UMGGMl3ecmoGEzBYNoqbZQnCMH2UXqS9t/MtCKFt9.mR9f0uSP1OP','admin','ak_9c918e3ee10926b1','2023-09-19 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$rF/niH9vw0wDp/Z6C0UXkpHzAlVCr38pWcZ8yqXROunJlpedtNdNe','user','ak_6759aa4f5d1f5293','2023-10-17 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$56SW1K6hbJ7xsCI48BEJ6ZeOIK2Z8BXCkNFHl011i/3oGVoy8yjL1','user','ak_2817503b33982db2','2023-06-19 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$7vuy6k4LSViC3lYiPsbPhD1GwA3W/MCyL9981390GrhOWPkyNg0KA','admin','ak_8402be3c40102d44','2023-09-26 10:08:00',NULL);

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

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


