-- Host: db-master-1.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=29280;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$VhVn5UDuyuisPviUDOm084Azdnx0o57o8BjgDunPS4ymETKJiTXkp','admin','ak_6f1164a21642a8dd','2023-07-18 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$D8doK.dqN0eeTgTDELxwI1XUoCmcfzwP/vFnpKmCED03/5ItEImSf','user','ak_1a02c83fb22cfce7','2023-11-11 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$gahTt2gz0mkhNjK/QhSjTlub3VX1s0FjsZolidj9tue5LlGH0B9GI','user','ak_c8b11a66c36f0aca','2023-11-27 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$TSueZRXy5iLS/rUwXGmkmfmAV7t.xM65mncuXBxLevr3GxtYT3Rv6','admin','ak_bd53791d9a661672','2023-10-25 10:00:00',NULL);

