-- Host: db-master-9.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=12460;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$S62aRmZ654kPrm7fhGXrM6VWwAHvS2nxlK5/oEMW/pv1fn83X829x','user','ak_34ed3e8cc51395ae','2023-02-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$rGyYChytxcHqXjabW6HIr3MGwcYdDK8Nc.VVj.4XfWqbaLhsvUKVD','user','ak_ae33a35b679991c3','2023-04-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$MZ/iZnIhd8xyyQ5wnC7YpPzD0Ij1GU6.Z5fjl3J.a4IkqUH1UzTfm','user','ak_fc2ba3e0564256b0','2023-08-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$HlTomzE.A1Bsl8yU6JTf84.yd4NUJ.CcaG62aung6kge4FdlXiNWD','user','ak_5f88924ce89ff30e','2023-10-08 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$Qmk2s1m6fKUR7OC.PHZ6TtdDOuQwX3R49N3yaO8e3aUbuu40UIs0E','user','ak_5df814a6ebbf8d7c','2023-02-11 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$417WirmoSmpbrd9BjN8SuC19W57nxoCHkJ/epfppn6i2zHUCZojzN','user','ak_c4f0ff501ed33e30','2023-04-06 10:04: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=5936;

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


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

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


