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


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$H3fvHU1ivvjPQKXO5sLuKWZcbM7X1wvwf9cSHf7477bdAk6G/SmcN','user','ak_f1d28926aae6ef9c','2023-12-19 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$4lMlWoPVXhMSbNIdJpuHupH5ZxLU1/HMX1P.JkKGLYGx1gJnP7wvz','admin','ak_c4d3afbc9661ec81','2023-03-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$74Hy2GTc.1wtEP1GeB0wOkqnvNRsD.ig.9.8Zh0/9N4mXTPHwhnhT','user','ak_8aba385997dc5b5f','2023-02-09 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$gLKd/hUbG2E2kiqpYspbA2N5aayQk/WSod.O79zKdHij2mLIhNuTt','admin','ak_19f6b52337ee975b','2023-01-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$JA36FTKDuYJitQ0CimkzjUXBPCuOzjeoIAHfQhv7ulv8KVqVe7H3O','user','ak_9f1ff573ae0937cb','2023-10-19 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$xmVdYrnqnCfW9IPQkgse4q43Y564TW9Py5HRAvjy4uUcZBPFwo2.s','user','ak_d4a1a3e4d4943e33','2023-10-26 10:21: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=6161;

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


