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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$5ITDyWVQBBDMS/Fq2DWGNMiFXe8WprEliGbAx90NbWBkAwG6S1ndt','user','ak_fb4f239da5b801c3','2023-07-23 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$j0kpyPoTRjU7j1qCjC08QhU9Keq7RRuPKi6euU3aJG4ykUqDVupnU','user','ak_5d266bfad2b462e9','2023-06-25 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$XYW.VyzR1WfPuH0AGhnTsQPDC5t64VjJIJbWszq3Ctm6xiGo.XRih','user','ak_6adba0428445620a','2023-12-20 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$zWYNwqXEeyjKdK7eZn/a8g8l8OpWiI7f6IP3JilSfh0mAQEa.nQoY','user','ak_35c69eae1d477802','2023-04-22 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$EIKMs4rg5nvAm3DxXws68Z8s8Eq/8EYg4SgATFyPtkBWXmtURaIWt','user','ak_9be1fd089c5cd8f4','2023-08-20 10:23:00',NULL);

