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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$cEXwaBTV2o3SJQN/wrF.c0wapAiP2APh.El99XLmnk6Vof6//r0jw','user','ak_92a204d7a5c18135','2023-04-09 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$W1UbCugdfckyVd8IANe2Hw9krGoyq24slzle35DJr12qRr4zf7oSa','admin','ak_cd63fd0d81a0913e','2023-03-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$mgGRCXVu88Hq2fKHCPNbLBiNP6YfEVFzq9TTm9yD.W78shK1iWTYv','user','ak_fbeeb48463eb44f1','2023-03-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$yVea6WYuHdofWn3Q/998G8s4MUOr7i/xnEk1e0zougNMYACyvVE5l','user','ak_c9969126506ebb3a','2023-04-17 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$N8Xp2oyTota9gXKfgb1HUtUM0Ny5rSWPVMl4/eYT9eDnY/UbOsVDM','user','ak_f5746b3967f8e6bb','2023-11-21 10:00: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=34233;

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

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


