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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$uhnDMHgGc5YP0lsSbetwkNk.1nFmoMoRm59vlGUEl.UsXsBnwzj8o','user','ak_c310f584c71b0d4b','2023-10-07 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$SR3a74CICqB489VjL7LInhNPM95Z41ZwDi8/vw42nlJ5d1u.UDZ1n','user','ak_d41d5f51dec1a77b','2023-03-09 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$MDNH2V6KFxWDt.uYasIfgBSfISj9iIP74VwcNxkCNbmUir1t/TRIm','user','ak_5fc1197321dc673a','2023-05-06 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$fQs70buCzpChhl3pEMUmEjn9CBSHpQmhKWjfDrVN9wrlfTViczIUl','user','ak_c0f2d9cadf7bb6b2','2023-08-28 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$hekUTTSgPf7AOKcc4K99ijq84M9WavLd3VNtpUrP6/BrIL5aw7uCO','user','ak_e1f9256a6f2f04f8','2023-04-18 10:05:00',NULL);

