-- Host: db-master-6.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=46880;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$LGR1uZB4T6ZbIttRxgE6ZJOhpz9XRd6uLbt.xlPd/n2csfcUjQrJp','user','ak_58684b3d9a5bf533','2023-02-09 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$vMO.INHf81xg1Z7rmmFOg4yt/EfJ1UlyC2F1xwX/..KFIFDXAshfN','user','ak_9cadb8bc98947412','2023-07-17 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$gp1oks7tKRS.H/7j96Bjn/EjEXODLVL856b0znuJnZ5fE3wXSFV4Y','user','ak_44ac95b9c8dd4684','2023-03-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$UzFlQ89R3TCCp21s7ILJBqFc5uMIK6pLHIM97n9JCIRUzb2if2dtk','user','ak_f4b0552e65743aaa','2023-07-09 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$Fxa3iiuMpE4NPu1MQLDkB6lz0SSsWqhiJF5Mr418TGVsoaNmwTHUY','user','ak_9db511d890e01009','2023-01-20 10:03:00',NULL);

