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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$6p7tFXMrwMBu4oT0qtngGz1ulRD/6TO8JCMvrmzEM9WtV2CFOtbRX','admin','ak_f91652f44387966b','2023-06-26 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$21G.F2xM8PZLbinNTQZXk5wOo8ZlR7PE/uO1/7zyQN45h4Z2R9Qna','user','ak_703866bea27366ca','2023-05-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$QD.EKnQS7uGfbaNjGotXxa5yK14GMb3LhFcVuhyjXy.nrCVVYSzU9','user','ak_07fcc14a1c4e5d39','2023-07-14 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$6uNCH1OOfqA1N/DzcqIO1t0vxrbYGDUyMhR3X2uDBA3NLFQ3HJ0nh','admin','ak_95a7712996b01ca7','2023-05-02 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=4746;

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


