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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$RXPyqYgqOjrgR9lMVT/0khe/84f.guDrn0I7oVvwxNElkrk6V96kZ','admin','ak_9fd4320143e27f3f','2023-05-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$1Y.0kcp9m9lVjQgpEa0t.hIC3/j60AjbPpp0ViBwURP9Nswz.6w1K','user','ak_4673b7559b1efc09','2023-07-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$/OyeXIsQ9V.9d0Pyb5C6WmNO02pT3qQTsNaI40MOSLJuux.BlXELu','admin','ak_1f22cf896fbefed8','2023-10-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$IJ4GXZ9iT5.WHwrAOoEZWJz0fB5j2O4sqB4uowWxu.tMOZHZv9CKS','user','ak_7860e76c4d6b0a4f','2023-08-17 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$ojP.0mVf5J1qbrhXEYi/H5weA0Qr/9O34s9ZxmCJQS8xQpRb8xDx4','user','ak_5dcbd4ecae450ca1','2023-06-04 10:17: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=44715;

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

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


