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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$PU9AfAwWzrjYH3k4j37ADCHJsI4S03yrysXsTlU4V5I9cRoru6nNi','user','ak_acf351ed632df2e6','2023-02-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$3Gcuf/EtPkyfRpYX0EUeJXb9Um4J.9YVnbeMUd1HK2uNPOyAFngUA','admin','ak_9ed1978fa6d6d4e5','2023-03-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$hqjcE5lcjY6R.0u2ewCZv3ZXsloy4NIENojZJKggSxO7VER34YF7Z','admin','ak_67c98456cef6bbcb','2023-12-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$lGx/b3ppPI9fP3ZseAE781OrevMdtZ3M6idEJ4gDJgT/n1eZUlkZe','user','ak_bd2ab5851c1d5193','2023-12-05 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$nN4u0jWOSHUHMCyVqnme2.xXD8KV3vapYDHobPEpPa4149NcH0w7I','user','ak_4bc659ac1136fc60','2023-01-27 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$ENfWoIPiW6EF8f.0N2FhOUXdl7CPXMlTAWgJj7SL.MB4tFy7TwPfm','user','ak_f40afc5895e585d0','2023-03-22 10:20:00',NULL);

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

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


