-- Host: db-master-3.internal    Database: production_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$jbCVHF3oNN5QvjOrieVArZLYLb12nCQVxdS8s5FGq/1wv63kVUF69','user','ak_1f0853caafdf939e','2023-01-18 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Mnfc1VNvZWajWdURnV0c11.6EIYiB1RWhbGKjVDKLnEuGZae2oC3D','user','ak_4933fd23b8b22f64','2023-09-13 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Dmjt.yFHkKqaFwAdXhO3YA2UV3uqqeqPRzkD0t8nlpxkwvMNzfgXU','user','ak_b5c62bf30da0c06f','2023-01-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$J7b1r5/egJ/uxDMz5xetVFOstkulFLv9.fxJHoB2z.T2.O9wkmfbM','admin','ak_ccdc62710fa7cbea','2023-05-07 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$bihT21w5XUpU3SmV5aBGUo2jsfFj08Jnoz97FxR3nqciv3j/1ABG6','admin','ak_0e0a7e305a5c6b0a','2023-10-06 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$Ri8ZQiU2N4YHQ5ZloZSTotobp9/0K5RV9aQnvsGeGHzLol64BZLCy','user','ak_8b56e531891f1d1a','2023-02-10 10:08:00',NULL);

