-- Host: db-master-5.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=50739;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$wslm4WKqwK.s66UH5ap8AJ.Y6EypHhfpGz1ynUHS4Jk6/k0O48ZGT','user','ak_5920e466306b9a09','2023-03-14 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$IKxpxtCH8Z.mVQAZ9.V49tBO4Ark63tzQQuqzgqnJzfY2d0vzSZhH','admin','ak_3eadd10ba929061c','2023-07-26 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$ep1xEm0occ3OyG4DCzp0gfFFYxzFIXDrIDGVbSTwYyX1NXJDirsZS','user','ak_faf1b53105120de7','2023-06-05 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$OdnRckfvu51aK62AanPPWFvWnqUYUQUTKoLUge/yLMGZk6HKkVmx9','user','ak_c2197018ef5eef4e','2023-12-06 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$CeOcu8LHDPtoZD9YDZO/Ie9prxNBY2LmyzoWY1Rvam7NAat8CfEgg','admin','ak_69ea0a04730639e7','2023-03-17 10:09: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=39964;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=35943;

--
-- Dumping data for table `sessions`
--


