-- Host: db-master-9.internal    Database: webapp_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=32673;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$.0JBM1pdnLlDRgV3/YHU6hFfOtkhs86Vvvub3GSsVHlNcAoY4K/3d','user','ak_6d0c05a6427b014c','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$AU.eePFVKUOskeZJlUoG0M4YFnoFfziUDH2XMmL52D1BY6yvBV0a7','user','ak_fabb9cfb664ba49f','2023-08-13 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$JbLyJuYvFvr0Fb7ygxOKacbR/xA1t3axjCPdjK4y3v9mjmXrdoRXe','user','ak_fbd9915d2c74b845','2023-11-04 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$0.q15ptSa5i0nHueBKbxtxwfYbd76JwKhGO9UN/rML4IvvkDzSBMJ','admin','ak_b1c309d7449527a7','2023-06-15 10:04:00',NULL);

