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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$hE6bydqScBSBBPHsp8wn5XbbRmCTnlgTa7QoIAHca7Vh6Z.TmkjwE','user','ak_ced52fc3601b2248','2023-10-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$.AMServwLRSRKNMPEJxwQjZUfoy5g.PyInzstTqBzZS0Oz6ePIXy0','user','ak_9badf1deadd37308','2023-11-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$qdBpNUsr0qlVcyefPHQ0G/10w46SlBewsQwJnGwzVcoVohSznZ74z','user','ak_3deb6ca54d813a4a','2023-11-11 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$kmDGjt3Yh.D/AdzRJeH345R0jaE6.L6O718JImN8p/bC0HUYmZcEn','admin','ak_d37251294ec01746','2023-04-06 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Pr/5RBnovmD1CW2/9PFI.YN1BUxW18hRIWaVhsb2nvAhW6tRJqEuY','user','ak_681f8f94ac040bfc','2023-11-26 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$AM/2Pd989tP/GgW.Awa4IxRESZSSL2ZkoCT.twA9QXGGpWFZRQ519','user','ak_d4f9ad6d95003eef','2023-12-14 10:03: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=8384;

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

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


