-- Host: db-master-4.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=12603;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$LSYwmGLw9nLogrDGTzc8y3LE/od4uN9BJWkWgwb57pXMHtYCxCTFm','user','ak_8990aa1041bf2515','2023-08-06 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$DBaaHBXGyPw9KJNGiYshbaiTAEpGCiakWcvoFPjDE1gt1clPkjq/C','user','ak_38ed9781310cb348','2023-02-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$SipsoYYCp6mykj4mOj7Hc4wjI9IVmXHFA8cfyTFopSHP56i3/HfR7','user','ak_b18d05e8c1c54ded','2023-11-03 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$d9xuaMCfBRiIVqdg4sstmmMKrkEKATyVeq.D710eKxOQJMOywllWI','admin','ak_fe8719e85852427c','2023-12-18 10:00:00',NULL);

