-- Host: db-master-3.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$DRAp9lUiL8MyukAfVY6uCMzFfgTHCVL7lhlB5TzRgA/u4djfAVO0d','admin','ak_dce8245c5efbfe29','2023-09-26 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$8zvpd2Np2ER44SFlkawYXpT.eAk6W8ZZBimBTYiY6tVRWh2m1uNoz','user','ak_6b3dc4b369ec608a','2023-08-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$LnwmZ/QKj.iNhJOgamxGykAbYj.FAeHdXdPEcZ3dtV35I.89FkxEo','user','ak_932f7890f7d6f394','2023-09-11 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$jTBtnuR5xuOb.Od1mHhiWE1sy422rlidM1zQPhuZ8f3bhBS/UNQfZ','admin','ak_ba6e525882b34bc7','2023-10-27 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$cv8.7wM4uvKXkSfEAEvzsjVJkjijWP3dwe2vx.Zh1PDqx9doSkBIj','user','ak_68a339b7c3ebd683','2023-05-02 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$iqZ1ZST66DFSM0iB69YpI0p7aLHcngC5ZXegGmDF9vQKreMwUupvk','user','ak_e87e9fae5a081656','2023-09-18 10:19:00',NULL);

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

--
-- Dumping data for table `payments`
--


