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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$wPx1uaFTzNzY8XhZ7oisZmRUF4tUUZC2olnirF98bZGIUi2kIZEzB','user','ak_6edd3f0915ee443a','2023-02-15 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$rYSNowQ.BypjMzSAICeL6jieSCt2iV44Lic.PERrcysFZNlNO0Toa','admin','ak_7c37104be6245370','2023-01-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$v4XuMDmJakU/go85DUAMTLHzAIvGpgSnhsXG6ZNfaB4IuHN7MC6VM','user','ak_a552d4b745c959b2','2023-10-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$jEEd6SaAjeCTD0QRfgcbi3jdV9801X6D.0DupFkjhshtP9wXzsZ0C','user','ak_c7b3658b37fffad2','2023-09-02 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$8bxcsyRrWs9jo9Uheb54Bq1nTJqHDYTCWUzuPXCTB6y1QAM77zkG9','user','ak_b91e496cd08b1c21','2023-03-18 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$0TsysWXI0j8fKgTQMQ/iZUuQAMaRNyoA4GykVzMR036QfsQlBZODM','user','ak_5306633c68f9004c','2023-11-18 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$PH4vFaQzNRgM04/0lR.yjncqCFn6xnfOHPeYmDtrx4pzWmFbgSQ2I','admin','ak_f7776582c96e47e2','2023-10-20 10:13: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=16428;

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


