-- Host: db-master-9.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$.xVJVVVlwmC4Y/OSXIrpHztOHo1koyVvBlEdFeYSdvBfKVjtNQWBs','admin','ak_fff0388ef33b51f1','2023-10-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$2qrDwURaW1utR0k0hsKSDN2fArijjh4L5LwZ3A/FlW/28LkBxTFBc','admin','ak_2728e8652fbbe38b','2023-11-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$xcg0xziq.lvf174VDvWgMdriXSl2QL.nfVYE4JZBT/POTNmYldkQ.','admin','ak_5437d0ace3c7a131','2023-01-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$1orkSi0MYTu0ouWhgwWD77/NFe6Q/jE5tp6XIXg.ESglKHZ5hYtLb','user','ak_81051e31c3c2914b','2023-06-02 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$L2RkVObbm/km4t0/8peIVSOM7.XLI849Eute8O5rD8YhcmdVnlUrf','user','ak_a6880c6874a6beeb','2023-02-11 10:09: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=41667;

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

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


