-- Host: db-master-3.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=9490;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$NRgLnRrYUnTrnvuWIzBhLfsifxLJz7Aydz9VA.NL9NomkJTRnTaDk','user','ak_223dbea412d1ee2e','2023-07-09 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$jDyhe94I3C2onmi9WMnxheQoGJgsjRi4OfJtEiP.gVb4HoNz/E5d8','user','ak_d96a397fa61d2375','2023-01-02 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$jgyL8MKNtLeoB8TkOwpPOVdfpIpYg6oOH.JqbmdtJTFQ9.FooluRW','user','ak_9928d515d5cc15f4','2023-07-05 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$78dViUPF/vWea9Mg2tIRkYZEEu/MhGNN9NOcB0mUoIAgBOBwsIak.','user','ak_ddd717f8d1ae6d7c','2023-08-03 10:03:00',NULL);

