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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$jinQHXFRc7.phZPTK0iaCF.eBUTjQyNnuQ4wUupU9qzPzAL634uip','user','ak_531a9de968c2f924','2023-03-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$l3TMxQe4UeCK8nC5Quw1CPAF7OB2wD.xe7oJs43.IwYn9ufJ4FuHo','user','ak_b0d13edff9d1515b','2023-05-11 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$/HgwHBDPolgAoQUzX.dWvxy5KUqo1LkP9yq3Br2xqDupHKLBaq6mB','user','ak_b822549cecaa084c','2023-02-20 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$1ZPUKuKwQXQZe8dSn4kTNW2NKGKmAw2hCju3BRbd3Fi8b3CH32V9E','user','ak_e4dded692535ca5c','2023-12-11 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$V4H2PGBcc6qHybQP/QiMu5l17e1vlboRYGgqheQD1FBPB0uXNWehO','admin','ak_b57b065dca859e51','2023-06-17 10:11:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=50911;

--
-- Dumping data for table `sessions`
--


