-- Host: db-master-5.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=2386;

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$4WxZDrZ.O69YW7JPYSSbcvVgSc4RAyrkdADh8rFk8hCI1GTflWkbR','user','ak_adb894e79cb3f31b','2023-02-17 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$DMN9FcMzc7wXgMzEkEZFvxCPL3D9eA/6raiBCOayrkDsivptGxK9i','user','ak_0ec08bc049e975e1','2023-01-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$2Ndo9mC2atRDF18hmYxbBV27jxBf/brudD0M9kahmbui8Ub21VaAb','user','ak_a41735b45256a850','2023-08-21 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$KoMoxDFqUxu3svalRPvt6KmOKreBBcHKDPRGiWmAUe0Z4HbC3hPEQ','admin','ak_77c3314c48c1e7d2','2023-02-06 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$.8pa6rivAEPWNmRTojY3XNwDZOqSkVvsWWMlyRV8W0UkOZn.L5oYr','user','ak_7ad156b243e6047d','2023-02-01 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$jx..A.3MuxDuNN5YGwwew8r/54uByU9J2BqytP34Oj1NTZlBW1eRW','user','ak_a3e430fd4b9c2772','2023-05-15 10:21:00',NULL);

