-- Host: db-master-0.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=6844;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Y4Gj5mvq0aCMMCZTsPJl.VBqMil02YTqD449Nn/vfg68xIts05RSg','user','ak_d44ae22cf5846493','2023-04-28 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$GQyurjwVTjwqOcEIo3/JD4s6z0aKyfjCFgGtUiB9l1U3X4Hhyek5K','admin','ak_cde9d49eebcf7a27','2023-11-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$UfyDObPA0.5s.WK1zT08gdsDs2F3sd/50ipZC8vnJLRmsciISQWjw','user','ak_a607b65a99319b54','2023-10-10 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Y2AUpvo5dh6Qh8IG6anDimZ6uf4CS.C0NXMuXzjT99A9LcRryPycH','user','ak_e9317b048db68de6','2023-02-15 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Q.UFdgccpMYmNT9hIS0rB4oiHSnvkBS2sGI98qXd/bLviTADSwKGU','user','ak_3e7b14f6a103d968','2023-12-27 10:21: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=2260;

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


