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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$.sda15YLKZmt4gCIetIedeowcbreKIrlTnLoUD8itL1QYKOHoqGz4','user','ak_4301b45fa62c5f80','2023-01-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$wTiHPnDE7Df5h3r6KVdRlh9ZTVEca59mhPJrI.yDWLXec8DsQs8yl','admin','ak_6752e7840e19b629','2023-10-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$dLxJioyLgaGLVvq2YRJZjJBkA5CBXmOm4kxszuE22ncfxe2UnWf6Y','user','ak_5f3d8d1b332acce9','2023-10-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Dv/UipQ.9DhmZz6C4SsvfUUpLtyUZVujHFp8G9DJEHArncVFcAGbJ','user','ak_e04398b3aed722d8','2023-05-15 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$/eJBphGacaR.odWjimBFlhJcCIsMTU2wiR6xDXo.FDBcBdrnM6tHm','user','ak_f5582cde4c47a1fb','2023-08-27 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$VNqDEbj.mALxkdmLXSNHjitHDVYm9wE/rfAKINwsbayyMHmyORdcr','user','ak_2082e215ed6c113f','2023-11-22 10:12:00',NULL);

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

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

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


